b27ef8db08775db164cbfb789b7b4a0cfe5ae9c4
[gnulib.git] / ChangeLog
1 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2
3         getloadavg: clean out old Emacs and Autoconf cruft
4         See Glenn Morris in <http://bugs.gnu.org/11905>.
5         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
6         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
7         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
8         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
9
10 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
11
12         bootstrap: let warn be like tests/init.sh's warn_
13         Reported by Jim Meyering.
14         * build-aux/bootstrap (warn): Remove, replaced by...
15         (warnf_, warn_): these.
16         Adjust callers.
17         Shorten messages that no longer fit in 80 columns.
18
19 2012-07-09  Bruno Haible  <bruno@clisp.org>
20
21         getopt: Simplify after Emacs changed.
22         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
23         (gl_GETOPT_IFELSE): Remove macro.
24
25 2012-07-09  Jim Meyering  <meyering@redhat.com>
26
27         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
28         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
29
30         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
31         Bugs in both of those conspired to make the
32         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
33         _sc_search_regexp's handling of non-empty $in_files would filter
34         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
35         choice of in_files value meant there would be no match in most
36         projects, due to the presence of two or more Makefile.in files.
37         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
38         Fix a bug in how a non-empty $$in_files was processed:
39         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
40         in spite of the name, it's a regexp, not a list of file names.
41
42 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43
44         getloadavg, getopt: fix commentary re configure.in
45         Autoconf is deprecating the name 'configure.in', so change it to
46         to the new name 'configure.ac' in a couple of places.
47         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
48         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
49         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
50         Emacs has renamed it to configure.ac, and it no longer refers
51         to these macros anyway.
52
53         timespec: mark functions with const attributes
54         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
55         Mark with _GL_ATTRIBUTE_CONST.
56
57 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
58
59         canonicalize[-lgpl]: handle "guessing" values when cross-building
60         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
61         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
62         matches "*yes" instead of just "yes".  Regression introduced in commit
63         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
64
65 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
66             Bruno Haible  <bruno@clisp.org>
67
68         canonicalize: make the right guess when cross-compiling to GNU
69         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
70         determine whether cross-compiling to glibc systems, so as to
71         include GNU/Hurd.
72
73 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74
75         timespec-sub: avoid duplicate include
76         * lib/timespec-sub.c: Do not include <config.h> twice.
77         Reported by Juanma Barranquero.
78
79 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
80
81         bootstrap: use a more consistent error reporting scheme
82         * build-aux/bootstrap (warn, die): New.
83         Use them.
84
85 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86
87         sys_time: allow too-wide tv_sec
88         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
89         timeval even if tv_sec is wider than time_t.  This allows
90         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
91         as without this patch gnulib replaces struct timeval
92         and OpenBSD futimes therefore has a type mismatch.
93         * doc/posix-headers/sys_time.texi: Mention this.
94
95         pthread: check for both pthread_create and pthread_join
96         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
97         alter the check so that it tests for both pthread_create and
98         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
99         Suggested by Bruno Haible and Richard Yao in
100         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
101
102         parse-datetime: doc tuneup
103         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
104         spacing issues.
105
106 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
107
108         do-release-commit-and-tag: fix the previous commit
109         * build-aux/do-release-commit-and-tag: Actually the test was right,
110         but the comment and the error message were misleading.
111         Fix comment, and improve error message.
112         Perform check first, so that NEWS is not modified uselessly.
113
114         do-release-commit-and-tag: fix typo
115         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
116         _not_ start with a stub.
117
118 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
119
120         pthread: check for pthread_create, not pthread_join
121         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
122         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
123         pthread_join in libc.  I hope this removes the need for all the
124         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
125         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
126
127 2012-07-04  Jim Meyering  <meyering@redhat.com>
128
129         parse-datetime: fix failure to diagnose invalid input
130         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
131         rather than diagnosing the invalid input.  Now it reports this:
132         date: invalid date '\260'
133         * lib/parse-datetime.y (to_uchar): Define.
134         (yylex): Don't sign-extend "other" bytes.
135         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
136         Thanks to Bruno Haible for the patch to this file.
137         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
138         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
139
140 2012-07-03  Jim Meyering  <meyering@redhat.com>
141
142         bootstrap: do not require now-removed build-aux/missing
143         Now that build-aux/missing is, er, missing, bootstrap would
144         silently fail.
145         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
146         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
147         no longer part of gnulib.
148         Diagnose the failure.
149
150 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
151
152         alloca: add support for HP NonStop TNS/E native
153         * lib/alloca.in.h (alloca): Support the new host.
154         From a suggestion by Joachim Schmitz in
155         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
156
157 2012-07-02  Pádraig Brady  <P@draigBrady.com>
158
159         fsusage: remove code not needed on non GNU/Linux systems.
160
161         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
162         Don't include headers no longer needed in this case.
163         * lib/fsusage.c [STAT_STATVFS &&
164         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
165         STAT_STATFS2_FRSIZE to exclude code not used in this case.
166
167 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
168
169         fsusage: include files needed for glibc 2.6 fallback
170         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
171         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
172         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
173         Problem reported by Ludovic Courtès in
174         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
175
176         fsusage: avoid needless check on GNU/Linux
177         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
178         on GNU/Linux systems, since it can't possibly work.
179
180 2012-07-01  Bruno Haible  <bruno@clisp.org>
181
182         log: Fix an autoconf >= 2.64 warning.
183         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
184         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
185
186 2012-06-28  Bruno Haible  <bruno@clisp.org>
187
188         log10f: Fix possible configuration problem.
189         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
190         $LOGF_LIBM.
191         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
192
193 2012-06-28  Bruno Haible  <bruno@clisp.org>
194
195         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
196         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
197         not gl_cv_func_unlink_works.
198         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
199
200 2012-06-27  Eric Blake  <eblake@redhat.com>
201
202         config: drop scripts that automake says are not independent
203         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
204         * build-aux/elisp-comp: Delete.
205         * build-aux/missing: Likewise.
206         * build-aux/ylwrap: Likewise.
207         * modules/elisp-comp: Likewise.
208         * MODULES.html.sh: Drop mention of elisp-comp.
209         * NEWS: Mention this.
210
211 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
212
213         root-uid: new module
214         This is for portability to Tandem's NonStop Kernel.
215         * lib/root-uid.h, modules/root-uid: New files.
216         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
217         * lib/write-any-file.c, tests/test-sethostname2.c:
218         Include "root-uid.h".
219         * lib/euidaccess.c (euidaccess):
220         * lib/pt_chown.c (main):
221         * lib/unlinkdir.c (cannot_unlink_dir):
222         * lib/write-any-file.c (can_write_any_file):
223         * m4/mknod.m4 (gl_FUNC_MKNOD):
224         * tests/test-sethostname2.c (geteuid, main):
225         Don't assume ROOT_UID == 0.
226         * modules/euidaccess (Depends-on):
227         * modules/pt_chown (Depends-on):
228         * modules/sethostname-tests (Depends-on):
229         * modules/unlinkdir (Depends-on):
230         * modules/write-any-file (Depends-on):
231         Add root-uid.
232
233         regex: use locale-independent comparison for codeset name
234         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
235         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
236         for codeset name.
237         * lib/regex_internal.h: Do not include <strings.h>, since we
238         no longer use strcasecmp.
239         * modules/regex (Depends-on): Remove strcase.
240
241 2012-06-23  Bruno Haible  <bruno@clisp.org>
242
243         getopt-posix: No longer guarantee that option processing is resettable.
244         * doc/posix-functions/getopt.texi: Drop description of problem with
245         internal state. Fix info about mingw and msvc9.
246         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
247         option processing by getopt(). Run three test programs instead of one.
248         Simplify cross-compilation guess.
249         * NEWS: Mention the change.
250         Reported by Rich Felker <dalias@aerifal.cx>.
251
252 2012-06-26  Bruno Haible  <bruno@clisp.org>
253
254         argp, regex: Ensure strcasecmp gets declared.
255         * lib/argp-help.c: Include <strings.h>.
256         * lib/regex_internal.h: Likewise.
257         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
258
259 2012-06-24  Bruno Haible  <bruno@clisp.org>
260
261         ptsname_r: Make it consistent with ptsname on AIX.
262         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
263         implementation as for OSF/1.
264         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
265         a pty master.
266
267         ptsname_r: Make it consistent with ptsname on OSF/1.
268         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
269         OSF/1.
270
271 2012-06-24  Bruno Haible  <bruno@clisp.org>
272
273         ttyname_r: Fix result on OSF/1, Solaris.
274         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
275
276 2012-06-24  Bruno Haible  <bruno@clisp.org>
277
278         ptsname_r: Add support for Solaris.
279         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
280         Solaris.
281
282         ptsname_r: Fix test failure on native Windows.
283         * modules/ptsname_r (Depends-on): Add isatty.
284
285         ptsname_r: Fix test failures on IRIX, Solaris.
286         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
287         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
288         accordingly.
289         * lib/ptsname_r.c: Include <fcntl.h>.
290         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
291         set errno if fd is invalid.
292         * tests/test-isatty.c (main): Update comments.
293
294 2012-06-24  Bruno Haible  <bruno@clisp.org>
295
296         ptsname test: Extend test.
297         * tests/test-ptsname.c: Include <errno.h>.
298         (main): Test behaviour with invalid file descriptor.
299
300 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
301
302         time: fix obsolete comment
303         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
304         reference to HAVE_STRUCT_TIMESPEC in comment.
305
306 2012-06-23  Bruno Haible  <bruno@clisp.org>
307
308         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
309         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
310         does not handle abbreviated long options with equivalent
311         disambiguations, set gl_replace_getopt to yes.
312         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
313
314 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
315
316         time_r: fix typo that always overrode localtime_r decl
317         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
318         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
319         not in a standard include.
320
321 2012-06-22  Bruno Haible  <bruno@clisp.org>
322
323         Write "Mac OS X" instead of "MacOS X".
324         * README: Write "Mac OS X" instead of "MacOS X".
325         * build-aux/bootstrap: Likewise.
326         * build-aux/install-reloc: Likewise.
327         * lib/acl-internal.h: Likewise.
328         * lib/acl_entries.c: Likewise.
329         * lib/argp-ba.c: Likewise.
330         * lib/argp-pv.c: Likewise.
331         * lib/config.charset: Likewise.
332         * lib/copy-acl.c: Likewise.
333         * lib/csharpexec.c: Likewise.
334         * lib/euidaccess.c: Likewise.
335         * lib/fbufmode.c: Likewise.
336         * lib/fflush.c: Likewise.
337         * lib/file-has-acl.c: Likewise.
338         * lib/filemode.h: Likewise.
339         * lib/fpurge.c: Likewise.
340         * lib/freadable.c: Likewise.
341         * lib/freadahead.c: Likewise.
342         * lib/freading.c: Likewise.
343         * lib/freadptr.c: Likewise.
344         * lib/freadseek.c: Likewise.
345         * lib/fseeko.c: Likewise.
346         * lib/fseterr.c: Likewise.
347         * lib/fsusage.c: Likewise.
348         * lib/fwritable.c: Likewise.
349         * lib/fwriting.c: Likewise.
350         * lib/get-rusage-as.c: Likewise.
351         * lib/get-rusage-data.c: Likewise.
352         * lib/getdomainname.c: Likewise.
353         * lib/idpriv-drop.c: Likewise.
354         * lib/idpriv-droptemp.c: Likewise.
355         * lib/localcharset.c: Likewise.
356         * lib/locale.in.h: Likewise.
357         * lib/localename.c: Likewise.
358         * lib/mbsrtowcs-state.c: Likewise.
359         * lib/nproc.c: Likewise.
360         * lib/passfd.c: Likewise.
361         * lib/posix_openpt.c: Likewise.
362         * lib/printf-parse.c: Likewise.
363         * lib/progreloc.c: Likewise.
364         * lib/safe-read.h: Likewise.
365         * lib/safe-write.h: Likewise.
366         * lib/sched.in.h: Likewise.
367         * lib/set-mode-acl.c: Likewise.
368         * lib/signal.in.h: Likewise.
369         * lib/stdint.in.h: Likewise.
370         * lib/stdio-impl.h: Likewise.
371         * lib/stdlib.in.h: Likewise.
372         * lib/strtod.c: Likewise.
373         * lib/sys_select.in.h: Likewise.
374         * lib/tcgetsid.c: Likewise.
375         * lib/unistd.in.h: Likewise.
376         * lib/unlockpt.c: Likewise.
377         * lib/vasnprintf.c: Likewise.
378         * lib/vma-iter.c: Likewise.
379         * lib/wcsrtombs-state.c: Likewise.
380         * m4/acl.m4: Likewise.
381         * m4/acosl.m4: Likewise.
382         * m4/asinl.m4: Likewise.
383         * m4/atanl.m4: Likewise.
384         * m4/c-stack.m4: Likewise.
385         * m4/cosl.m4: Likewise.
386         * m4/expl.m4: Likewise.
387         * m4/extensions.m4: Likewise.
388         * m4/fdatasync.m4: Likewise.
389         * m4/fmal.m4: Likewise.
390         * m4/frexp.m4: Likewise.
391         * m4/frexpf.m4: Likewise.
392         * m4/frexpl.m4: Likewise.
393         * m4/fsusage.m4: Likewise.
394         * m4/getdomainname.m4: Likewise.
395         * m4/getloadavg.m4: Likewise.
396         * m4/getopt.m4: Likewise.
397         * m4/gettext.m4: Likewise.
398         * m4/gnulib-common.m4: Likewise.
399         * m4/intdiv0.m4: Likewise.
400         * m4/intlmacosx.m4: Likewise.
401         * m4/largefile.m4: Likewise.
402         * m4/ldexpl.m4: Likewise.
403         * m4/link-follow.m4: Likewise.
404         * m4/locale-ar.m4: Likewise.
405         * m4/locale-fr.m4: Likewise.
406         * m4/locale-ja.m4: Likewise.
407         * m4/locale-tr.m4: Likewise.
408         * m4/locale-zh.m4: Likewise.
409         * m4/locale_h.m4: Likewise.
410         * m4/lock.m4: Likewise.
411         * m4/logl.m4: Likewise.
412         * m4/mathfunc.m4: Likewise.
413         * m4/minus-zero.m4: Likewise.
414         * m4/mktime.m4: Likewise.
415         * m4/mmap-anon.m4: Likewise.
416         * m4/multiarch.m4: Likewise.
417         * m4/nanosleep.m4: Likewise.
418         * m4/nocrash.m4: Likewise.
419         * m4/poll.m4: Likewise.
420         * m4/printf-frexpl.m4: Likewise.
421         * m4/printf.m4: Likewise.
422         * m4/signbit.m4: Likewise.
423         * m4/sinl.m4: Likewise.
424         * m4/sqrtl.m4: Likewise.
425         * m4/strerror_r.m4: Likewise.
426         * m4/tanl.m4: Likewise.
427         * m4/threadlib.m4: Likewise.
428         * m4/ttyname_r.m4: Likewise.
429         * m4/unlink.m4: Likewise.
430         * m4/visibility.m4: Likewise.
431         * m4/wcwidth.m4: Likewise.
432         * tests/minus-zero.h: Likewise.
433         * tests/test-alloca-opt.c: Likewise.
434         * tests/test-copy-acl.sh: Likewise.
435         * tests/test-copy-file.sh: Likewise.
436         * tests/test-fdatasync.c: Likewise.
437         * tests/test-file-has-acl.sh: Likewise.
438         * tests/test-flock.c: Likewise.
439         * tests/test-fsync.c: Likewise.
440         * tests/test-localename.c: Likewise.
441         * tests/test-malloca.c: Likewise.
442         * tests/test-nonblocking-pipe.h: Likewise.
443         * tests/test-nonblocking-socket.h: Likewise.
444         * tests/test-openpty.c: Likewise.
445         * tests/test-posix_openpt.c: Likewise.
446         * tests/test-ptsname.c: Likewise.
447         * tests/test-ptsname_r.c: Likewise.
448         * tests/test-sameacls.c: Likewise.
449         * tests/test-select.h: Likewise.
450         * tests/test-set-mode-acl.sh: Likewise.
451         * tests/test-snprintf-posix.h: Likewise.
452         * tests/test-sprintf-posix.h: Likewise.
453         * tests/test-strtod.c: Likewise.
454         * tests/test-time.c: Likewise.
455         * tests/test-vasnprintf-posix.c: Likewise.
456         * tests/test-vasprintf-posix.c: Likewise.
457         * doc/acl-resources.txt: Likewise.
458         * doc/**/*.texi: Likewise.
459         Reported by Max Horn <max@quendi.de>.
460
461 2012-06-22  Bruno Haible  <bruno@clisp.org>
462
463         grantpt: Relax requirement regarding invalid file descriptors.
464         * lib/grantpt.c: Don't include <fcntl.h>.
465         (grantpt): Don't verify the validity of the file descriptor.
466         * modules/grantpt (Depends-on): Remove fcntl-h.
467         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
468         file descriptors.
469         * doc/posix-functions/grantpt.texi: Document more platforms on which
470         grantpt succeeds for invalid file descriptors.
471         Reported by Rich Felker <dalias@aerifal.cx>.
472
473 2012-06-22  Bruno Haible  <bruno@clisp.org>
474
475         fbufmode test: Don't test unportable behaviour.
476         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
477         (main): Invoke it three times.
478         Reported by Szabolcs Nagy <nsz@port70.net>
479         and Rich Felker <dalias@aerifal.cx>.
480
481 2012-06-21  Bruno Haible  <bruno@clisp.org>
482
483         gnulib-tool: Refactor inctests variable.
484         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
485         (func_modules_transitive_closure,
486         func_modules_transitive_closure_separately,
487         func_import, func_create_testdir): Update.
488
489         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
490         * gnulib-tool: Accept option --without-tests.
491         (func_usage): Document --without-tests option. Rearrange.
492         (inctests): Normalize according to the mode.
493         * NEWS: Mention the change.
494         Suggested by Simon Josefsson.
495
496 2012-06-21  Bruce Korb  <bkorb@gnu.org>
497
498         parse-duration test: Avoid spurious output.
499         * tests/test-parse-duration.sh: Reindent with leading tabs.
500
501 2012-06-21  Jim Meyering  <meyering@redhat.com>
502
503         maint: disable the strncpy prohibition
504         * cfg.mk: Do not prohibit strncpy here.
505
506 2012-06-21  Bruno Haible  <bruno@clisp.org>
507
508         nonblocking: Avoid compilation error on mingw64.
509         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
510         fscanf.
511         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
512         * modules/vfscanf (configure.ac): Likewise.
513         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
514         definition only if stdio.h has prepared it.
515         Reported by Daniel P. Berrange <berrange@redhat.com>.
516
517 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
518
519         gnulib-tool: Use readlink if it is available.
520         * gnulib-tool (func_readlink): Choose function more appropriately.
521
522 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
523
524         posixtm-tests: port to buggy compiler
525         Problem reported by Simon Josefsson in
526         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
527         * modules/posixtm-tests (Depends-on): Add stdint.
528         * tests/test-posixtm.c (struct posixtm_test.t_expected):
529         Now of type int_least64_t, not int64_t, both because that's
530         what INT64_C returns and because int_least64_t works even
531         on 72-bit hosts.
532         (T): Use INT64_C on constants outside the traditional int range,
533         to work around compiler bug noted by Simon.
534
535         mktime: fix integer overflow in 'configure'-time test
536         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
537         after integer overflow.  Problem reported by Rich Felker in
538         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
539         Also, don't look for further instances of a bug if we've already
540         found one instance; this helps 'configure' run faster.
541
542 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
543
544         tmpfile, clean-temp: Fix invocation of GetVersionEx.
545         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
546         GetVersionEx correctly.
547         * lib/clean-temp.c (supports_delete_on_close): Likewise.
548
549 2012-06-20  Bruno Haible  <bruno@clisp.org>
550
551         fdopen: Allow implementations that don't reject invalid fd arguments.
552         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
553         succeeds.
554         Reported by Rich Felker <dalias@aerifal.cx>.
555
556 2012-06-20  Simon Josefsson  <simon@josefsson.org>
557
558         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
559         bring in LIBINTL.
560
561 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
562
563         init.sh: do not rely on autoupated PWD
564         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
565         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
566         Although Nelson's bug was not necessarily fixed by this patch,
567         it seems wise to make the change for safety.
568         * tests/init.sh (path_prepend_): Do not rely on PWD updating
569         automagically after 'cd'; this is not reliable on older shells.
570         (setup_): Fail if we cannot cd to temporary directory.
571
572 2012-06-19  Bruno Haible  <bruno@clisp.org>
573
574         stat, fstat: Avoid warnings on mingw64.
575         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
576         redefining.
577         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
578         Reported by Daniel P. Berrange <berrange@redhat.com>.
579
580 2012-06-19  Bruno Haible  <bruno@clisp.org>
581
582         stdioext: Add support for musl libc.
583
584         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
585         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
586
587         * m4/fseterr.m4: New file.
588         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
589         function exists.
590         * modules/fseterr (Files): Add m4/fseterr.m4.
591         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
592         __fseterr does not exist.
593         (Makefile.am): Remove fseterr.c from lib_SOURCES.
594
595         * lib/freadable.h: Update comment.
596
597         * lib/fwritable.h: Update comment.
598
599         * lib/freading.h: Update comment.
600
601         * lib/fwriting.h: Update comment.
602
603         * m4/freadahead.m4: New file.
604         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
605         that function exists.
606         * modules/freadahead (Files): Add m4/freadahead.m4.
607         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
608         __freadahead does not exist.
609         (Makefile.am): Remove freadahead.c from lib_SOURCES.
610
611         * m4/freadptr.m4: New file.
612         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
613         function exists.
614         * modules/freadptr (Files): Add m4/freadptr.m4.
615         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
616         __freadptr does not exist.
617         (Makefile.am): Remove freadptr.c from lib_SOURCES.
618
619         * m4/freadseek.m4: New file.
620         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
621         exists.
622         * modules/freadseek (Files): Add m4/freadseek.m4.
623         (configure.ac): Invoke gl_FUNC_FREADSEEK.
624
625         * lib/fpurge.c (fpurge): Update comment.
626
627         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
628
629 2012-06-19  Bruno Haible  <bruno@clisp.org>
630
631         *printf-posix: Put more info into config.log.
632         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
633         exit code into config.log.
634
635 2012-06-19  Bruno Haible  <bruno@clisp.org>
636
637         getopt-gnu: Fix exit code overflow in autoconf test.
638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
639         to keep them below < 128.
640
641 2012-06-17  Jim Meyering  <meyering@redhat.com>
642
643         maint.mk: fix typo in code to derive GPG key at release time
644         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
645
646 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
647
648         regex: avoid warning when pointers are not long
649         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
650         and uintptr_t, not long, for portability to hosts where pointers and
651         long have different sizes.  Issue noted by Daniel P. Berrange in
652         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
653         and fix suggested by Bruno Haible in
654         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
655
656 2012-06-17  Bruno Haible  <bruno@clisp.org>
657
658         dummy: Relicense into the public domain.
659         * modules/dummy (License): Set to "public domain".
660         Suggested by Reuben Thomas.
661
662 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
663
664         announce-gen: VPATH issues
665         * build-aux/announce-gen (--srcdir): New option, used to trim the
666         $srcdir part of the path from $builddir to NEWS.
667         * top/maint.mk (announcement): Adjust.
668
669 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
670
671         gnu-web-doc-update: VPATH builds
672         * build-aux/gnu-web-doc-update (--builddir): New option.
673         Revamp the handling of options.
674         Prefer $(...) to `...`.
675         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
676         the template, and it is GNU mktemp specific.
677         Prefer set -e to long series of &&.
678         Restore the initial git branch, not "master".
679         Properly initialize submodules (don't rely only on bootstrap).
680         Do not reconfigure blindly, use config.status.
681         * top/README-release: Update instructions for gnu-web-doc-update.
682
683 2012-06-11  Jim Meyering  <meyering@redhat.com>
684
685         maint.mk: revert most of the previous change re "all these"
686         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
687         For rationale, see the discussion at
688         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
689
690 2012-06-10  Karl Berry  <karl@gnu.org>
691
692         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
693
694         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
695
696 2012-06-10  Bruce Korb  <bkorb@gnu.org>
697
698         parse-duration: Relicense under LGPLv2+.
699         * modules/parse-duration (License): Change to LGPLv2+.
700
701 2012-06-10  Jim Meyering  <meyering@redhat.com>
702
703         maint.mk: prohibit common grammar error: "all these"
704         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
705         the list of prohibited word sequences.  It should be "all of these".
706         * lib/tempname.c (__gen_tempname): Fix one of them.
707
708 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
709
710         do-release-commit-and-tag: support VPATH builds
711         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
712         (noteworthy): Defined earlier to factor its value.
713         (noteworthy_stub): New.
714         Use it to factor.
715         (help_version): Split into...
716         (help, version): these.
717         Adjust the option processing part.
718         Support "--option=value" in addition to "--option value".
719         (builddir): New.
720         (--builddir): New option.
721         * top/README-release: Document this.
722         Reword slightly so that the reader cannot understand that he
723         has to do these steps before calling do-release-commit-and-tag.
724
725 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
726
727         readme-release: also require announce-gen and maintainer-makefile
728         * modules/readme-release (Depends-on): here.
729         * modules/announce-gen, modules/do-release-commit-and-tag,
730         modules/gnu-web-doc-update, modules/maintainer-makefile
731         (Description): Point to readme-release.
732
733 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
734
735         maint.mk: fix VPATH issues.
736         * top/maint.mk (news-check): GNU Make understand $< very well.
737         (release-prep): NEWS is in $(srcdir).
738
739 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
740
741         readme-release: require the promoted modules.
742         * modules/readme-release (Depends-on): Add
743         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
744         in this text.
745
746 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
747             Bruno Haible  <bruno@clisp.org>
748
749         error, strerror-override: Support mingw64 from Fedora 17.
750         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
751         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
752         EINPROGRESS.
753         * lib/strerror-override.h (strerror_override): Test it.
754         * lib/strerror-override.c (strerror_override): Likewise.
755         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
756
757 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
758             Bruno Haible  <bruno@clisp.org>
759
760         error, strerror-override: Support mingw64 from Fedora 17.
761         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
762         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
763         * lib/strerror-override.h (strerror_override): Test it.
764         * lib/strerror-override.c (strerror_override): Likewise.
765
766 2012-06-03  Bruno Haible  <bruno@clisp.org>
767
768         error, strerror-override: Support new errno values from POSIX:2008.
769         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
770         ENOTRECOVERABLE.
771         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
772         platforms.
773         * lib/strerror-override.c (strerror_override): Conditionalize the
774         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
775         * lib/strerror-override.h (strerror_override): Declare also if
776         GNULIB_defined_EOWNERDEAD is defined.
777         * tests/test-errno.c (e130, e131): New variables.
778         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
779         ENOTRECOVERABLE.
780         Reported by Paolo Bonzini.
781
782 2012-05-31  Jim Meyering  <meyering@redhat.com>
783
784         savewd: add missing dependency on sys_wait module
785         * modules/savewd (Depends-on): Add sys_wait, needed at least
786         for MSVC.  Report and suggested change by Michael Goffioul.
787
788 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
789
790         system-quote-tests: port to CentOS 5
791         Problem reported by Tom G. Christensen in
792         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
793         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
794
795 2012-05-29  Jim Meyering  <meyering@redhat.com>
796
797         maint: fix typos in comments and ChangeLog
798         Culprits identified and fixed mostly automatically using these commands:
799         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
800         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
801         using http://github.com/lyda/misspell-check
802         * ChangeLog: Fix typos.
803         * doc/solaris-versions: Likewise.
804         * lib/regexec.c (re_search_stub): Likewise.
805         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
806
807 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
808
809         manywarnings: remove duplicate -Wmultichar entry
810         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
811         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
812         so keep the entry marked as documented.
813
814 2012-05-27  Karl Berry  <karl@gnu.org>
815
816         * config/srclist.txt (mktime.c): remove last libc sync,
817         perhaps just temporarily.
818
819 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
820
821         regex: don't assume uint64_t or uint32_t
822         * lib/regcomp.c (init_word_char): Don't assume that the types
823         uint64_t and uint32_t exist.  The C standard doesn't guarantee
824         them, and on some 32-bit compilers there is no uint64_t.
825         Problem reported by Gianluigi Tiesi in
826         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
827
828 2012-05-25  Jim Meyering  <meyering@redhat.com>
829
830         maint.mk: add strncpy-prohibiting syntax-check rule
831         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
832
833 2012-05-24  Jim Meyering  <meyering@redhat.com>
834
835         maint.mk: compute $(gpg_key_ID) more portably
836         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
837         That use of sed is not portable to some fringe systems.
838         Reported by Paul Eggert in
839         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
840
841 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
842
843         mktime: sync from glibc
844         * config/srclist.txt: Uncomment mktime.c.
845         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
846         First, indent with tabs, since glibc uses tabs and doesn't want to
847         change and we'd rather be identical to glibc.  Also, two small
848         coding changes:
849         (isdst_differ): Use &&, not &, as && is the usual style.
850         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
851         for clarity.
852
853 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
854
855         announce-gen: du -h is more portable than du --human
856         * build-aux/announce-gen (sizes): Invoke du with -h instead
857         of --human.  Accept leading white space in its output.
858
859 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
860
861         announce-gen: Improve diagnostics.
862         * build-aux/announce-gen: When parsing command line options,
863         prefer "announce-gen: option --release-type requires an argument"
864         to "Option release-type requires an argument".
865
866 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
867
868         maint.mk: gpg_key_ID: use sed more portably
869         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
870         the closing brace.
871         (refresh-po): Fuse two sed invocations into one.
872
873 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
874
875         gitlog-to-changelog: support the log message format used in Bison.
876         * build-aux/gitlog-to-changelog: Support --strip-tab and
877         --strip-cherry-picked.
878
879 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
880
881         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
882         the rest of the current time slice to another thread in the current
883         process. So if the thread that feeds the file decscriptor we're
884         polling is not in the current process, we get busy-waiting.
885         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
886         Patch from Theodore Leblond.
887         * lib/select.c: Split polling out of the loop that sets the output
888         fd_sets.  Check for zero result and loop if the wait timeout is
889         infinite.
890
891 2012-05-21  Simon Josefsson  <simon@josefsson.org>
892
893         select: Fix build error on IRIX 6.5.
894         * lib/select.c: Include stddef.h for NULL.
895
896 2012-05-21  Simon Josefsson  <simon@josefsson.org>
897
898         gc: fix libgcrypt detection on older machines.
899         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
900         copyright years because the file has been distributed every year
901         since it was created.
902
903 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
904
905         crypto: fix bug in large buffer handling
906         Problem reported by Serge Belyshev for glibc in
907         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
908         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
909         * lib/md4.c (md4_process_block):
910         * lib/md5.c (md5_process_block):
911         * lib/sha1.c (sha1_process_block):
912         * lib/sha256.c (sha256_process_block):
913         Don't assume the buffer length is less than 2**32.
914         * lib/sha512.c (sha512_process_block): Likewise.
915         Here, the bug is present only in the rare case where the host does
916         not support uint64_t or where size_t is wider than 64 bits.
917         Use u64size to work around the problems.
918         * lib/u64.h (u64size): New macro.
919
920 2012-05-15  Pádraig Brady  <P@draigBrady.com>
921
922         fsusage: fix block size returned on older Linux 2.6
923
924         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
925         which is available since Linux 2.6.
926         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
927         when the member is available so it can be used as a fallback.
928         * doc/posix-functions/statvfs.texi: Mention the hang issue
929         on Linux < 2.6.36.
930
931 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
932
933         bootstrap: suppress stderr chatter
934         * build-aux/bootstrap (insert_sorted_if_absent, main program):
935         Omit unnecessary chatter to stderr.  The main program chatter
936         was there only inadvertantly.
937
938         bootstrap: .gitignore files created by autopoint, libtool
939         I ran into this problem when bootstrapping the latest diffutils.
940         After './bootstrap', 'git status' reported lots of untracked files
941         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
942         autopoint and do not need to be version-controlled.
943         * build-aux/bootstrap: Put into .gitignore the files that
944         autopoint and libtool create, by keeping track of files that exist
945         after but not before these programs are run.
946         (version_controlled_file): Move up.  2nd arg is now full file
947         name, not base name; this is more convenient.  Put CVS at the end,
948         as it's now somewhat deprecated.
949
950 2012-05-14  Jim Meyering  <meyering@redhat.com>
951
952         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
953         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
954         definition.  Reported by Bruno Haible.
955
956 2012-05-13  Bruno Haible  <bruno@clisp.org>
957             Paul Eggert  <eggert@cs.ucla.edu>
958
959         binary-io: Define set_binary_mode function.
960         * lib/binary-io.h (set_binary_mode): New function.
961         (SET_BINARY): Define in terms of set_binary_mode.
962         * modules/binary-io (configure.ac): Require AC_C_INLINE.
963         * tests/test-binary-io.c (main): Accept an argument, and test either
964         set_binary_mode or SET_BINARY depending on the argument.
965         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
966         argument. Clean up also t-bin-out0.tmp.
967
968 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
969
970         bootstrap: take advantage of POSIX shell features
971
972         The 'bootstrap' script offered by Gnulib script already uses POSIX
973         shell features (like $((...)) arithmetic expansions) that are not
974         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
975         means that bootstrap must already be run using a proper POSIX shell,
976         which will thus provide more features, like ${var#pattern} parameter
977         expansion or inversion of a command exit status with '!'.  We can
978         thus use these features to improve the clarity and the performances
979         of the bootstrap script.
980
981         Suggested by Eric Blake.
982
983         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
984         of sed/expr plus command substitutions, to save some forks.  While
985         we are at it, prefer the POSIX $(...) form of command substitution,
986         rather than the legacy form `...` (since the former is visually
987         clearer and interacts better with quoting), and prefer the idiom:
988           "if ! CMD; then ACTION ..."
989         over the idiom:
990           "if CMD; then :; else ACTION ..."
991         which was required by legacy Bourne shells not supporting '!'.
992
993 2012-05-12  Bruno Haible  <bruno@clisp.org>
994
995         system-quote: Add more comments.
996         * lib/system-quote.h: Add more comments about wilcards and limitations.
997         Suggested by Eli Zaretskii <eliz@gnu.org>.
998
999         sh-quote, system-quote: Add comments about wildcards.
1000         * lib/sh-quote.h: Clarify what happens with wildcard characters.
1001         * lib/system-quote.h: Likewise.
1002         Reported by Eli Zaretskii <eliz@gnu.org>.
1003
1004 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1005
1006         fsusage: check for GNU/Linux statvfs problem dynamically
1007         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
1008         Define STAT_STATFS2_BSIZE too, since in this case the code now
1009         checks dynamically whether statvfs is reliable, falling back on
1010         Linux-style statfs otherwise.
1011         (statvfs_works): New function, for dynamically testing statvfs.
1012         (get_fs_usage) [STAT_STATVFS]: Use it.
1013         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1014         statvfs on GNU/Linux hosts, since it's now done dynamically.
1015
1016 2012-05-10  Bruno Haible  <bruno@clisp.org>
1017
1018         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1019         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1020         '?' character.
1021         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1022         * tests/test-system-quote-main.c (check_all): Check also strings like
1023         "??????????".
1024         Reported by Eli Zaretskii <eliz@gnu.org>.
1025
1026 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1027
1028         _Noreturn: port config.h to gcc -Wundef
1029         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1030         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1031         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1032
1033 2012-05-10  Bruno Haible  <bruno@clisp.org>
1034
1035         system-quote: Refactor.
1036         * lib/system-quote.h (system_quote_copy): Fix comment.
1037         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1038         New functions, extracted from system_quote_copy.
1039         (system_quote_length, system_quote_copy): Use these functions.
1040         Reported by Paul Eggert.
1041
1042 2012-05-08  Bruno Haible  <bruno@clisp.org>
1043
1044         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1045         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1046
1047 2012-05-08  Bruno Haible  <bruno@clisp.org>
1048
1049         Tests for module 'system-quote'.
1050         * modules/system-quote-tests: New file.
1051         * tests/test-system-quote.sh: New file.
1052         * tests/test-system-quote-main.c: New file.
1053         * tests/test-system-quote-child.c: New file.
1054
1055         New module 'system-quote'.
1056         * lib/system-quote.h: New file.
1057         * lib/system-quote.c: New file.
1058         * modules/system-quote: New file.
1059
1060 2012-05-08  Bruno Haible  <bruno@clisp.org>
1061
1062         sh-quote: Make C++ safe and allow multiple inclusion.
1063         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1064         declarations in extern "C".
1065
1066 2012-05-08  Bruno Haible  <bruno@clisp.org>
1067
1068         sh-quote tests: Make tests stricter.
1069         * tests/test-sh-quote.c (check_one): Check the return value of
1070         shell_quote_copy.
1071         (main): Check a string with a CR character. Check a string that
1072         contains UCHAR_MAX.
1073
1074 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1075
1076         warnings.m4: provide a means to specify the program to compile.
1077         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1078         (gl_WARN_ADD): here.
1079         Use gl_AS_VAR_APPEND.
1080         Support an argument to specify the program to compile.
1081         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1082         AC_SUBST the WARN_CFLAGS when they are used.
1083         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1084         leave this to gl_WARN_ADD.
1085
1086 2012-05-08  Eric Blake  <eblake@redhat.com>
1087
1088         doc: recommendations on gettext version
1089         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1090         choice between versions.
1091         * DEPENDENCIES (gettext): Cover both approaches.
1092
1093 2012-05-08  Jim Meyering  <meyering@redhat.com>
1094
1095         init.sh: explain why EXEEXT support uses aliases rather than functions
1096         * tests/init.sh: Add a comment.
1097
1098         init.sh: don't let bash aliases interfere with tests
1099         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1100         is bash.  This avoids problems for those who alias standard commands to
1101         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1102         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1103
1104 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1105
1106         stdint: be more consistent with glibc, SunOS libc
1107         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1108         (gl_int_fast16_t, gl_uint_fast16_t)
1109         (gl_int_fast32_t, gl_uint_fast32_t)
1110         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1111         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1112         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1113         Be consistent with glibc by default, and with SunOS 5.10 and later
1114         if __sun is defined.  This lessens the likelihood of clashes if
1115         code compiled for older hosts is combined with code compiled for
1116         newer ones.  Problem reported by Niels Möller in
1117         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1118
1119 2012-05-07  Eric Blake  <eblake@redhat.com>
1120
1121         isatty: relax license to LGPLv2+
1122         * modules/isatty (License): Relax license.
1123
1124 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1125
1126         stat-size: comment fix
1127         * lib/stat-size.h: Remove obsolete comment about indenting.
1128
1129 2012-05-06  Bruno Haible  <bruno@clisp.org>
1130
1131         Tests for module 'sh-quote'.
1132         * modules/sh-quote-tests: New file.
1133         * tests/test-sh-quote.c: New file.
1134
1135 2012-05-06  Bruno Haible  <bruno@clisp.org>
1136
1137         sh-quote: Improve shell_quote_argv's signature.
1138         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1139         * lib/sh-quote.c (shell_quote_argv): Likewise.
1140
1141 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1142
1143         stdint: document issues with int_fast8_t etc.
1144         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1145         stdint.h substitutes may define these types differently.  See
1146         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1147
1148 2012-05-05  Bruno Haible  <bruno@clisp.org>
1149
1150         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1151         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1152         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1153         or 'guessing no (mishandles large arguments)'.
1154
1155 2012-05-05  Bruno Haible  <bruno@clisp.org>
1156
1157         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1158         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1159         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1160         set gl_cv_func_link_follows_symlink to "guessing no".
1161
1162 2012-05-05  Bruno Haible  <bruno@clisp.org>
1163
1164         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1165         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1166         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1167         "guessing no".
1168         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1169
1170 2012-05-05  Bruno Haible  <bruno@clisp.org>
1171
1172         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1173         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1174         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1175         set gl_cv_struct_dirent_d_ino to "guessing yes".
1176
1177 2012-05-05  Bruno Haible  <bruno@clisp.org>
1178
1179         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1180         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1181         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1182         "guessing yes".
1183
1184 2012-05-05  Bruno Haible  <bruno@clisp.org>
1185
1186         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1187         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1188         compiling to a glibc system, set gl_cv_func_signbit and
1189         gl_cv_func_signbit_gcc to "guessing yes".
1190
1191 2012-05-05  Bruno Haible  <bruno@clisp.org>
1192
1193         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1194         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1195         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1196         to "guessing yes".
1197         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1198         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1199
1200 2012-05-05  Bruno Haible  <bruno@clisp.org>
1201
1202         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1203         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1204         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1205         gl_cv_func_realpath_works to "guessing yes".
1206
1207 2012-05-05  Bruno Haible  <bruno@clisp.org>
1208
1209         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1210         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1211         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1212
1213 2012-05-04  Bruno Haible  <bruno@clisp.org>
1214
1215         Tweak last commit.
1216         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1217         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1218
1219 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1220
1221         unistd_h: make it easier to avoid sys_types_h
1222         This is useful for Emacs, which has its own method of porting to
1223         Windows, and which therefore does not need the sys_types_h module.
1224         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1225         code moved here from gl_SYS_TYPES_H.
1226         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1227         using the code directly.
1228         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1229         gl_SYS_TYPES_H.
1230         * modules/sys_types (Files):
1231         * modules/unistd (Files): Add m4/off_t.m4.
1232
1233 2012-05-03  Bruno Haible  <bruno@clisp.org>
1234
1235         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1236         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1237         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1238         "guessing yes" or "guessing no".
1239         (gl_FUNC_LSTAT): Update.
1240         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1241         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1242         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1243
1244 2012-05-03  Bruno Haible  <bruno@clisp.org>
1245
1246         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1247         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1248         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1249         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1250         cross-compiling, choose the first alternative on glibc systems.
1251         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1252
1253 2012-05-03  Bruno Haible  <bruno@clisp.org>
1254
1255         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1256         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1257         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1258
1259 2012-05-03  Bruno Haible  <bruno@clisp.org>
1260
1261         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1262         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1263
1264 2012-05-03  Bruno Haible  <bruno@clisp.org>
1265
1266         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1267         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1268         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1269         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1270         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1271         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1272         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1273         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1274         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1275         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1276         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1277         gl_cv_func_chown_ctime_works to "guessing yes".
1278         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1279         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1280         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1281         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1282         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1283         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1284         compiling to glibc systems, set gl_cv_func_open_directory_works to
1285         "guessing yes".
1286         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1287         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1288         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1289         "guessing yes".
1290         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1291         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1292         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1293         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1294         "guessing yes".
1295         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1296         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1297         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1298         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1299         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1300         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1301         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1302         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1303         "guessing yes".
1304         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1305         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1306         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1307         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1308         "guessing yes".
1309         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1310         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1311         "guessing yes".
1312         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1313         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1314         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1315         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1316         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1317         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1318         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1319         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1320         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1321         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1322         "guessing yes".
1323         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1324         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1325         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1326         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1327         "guessing yes".
1328         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1329         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1330         "guessing yes".
1331         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1332         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1333         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1334         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1335         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1336         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1337         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1338         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1339         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1340         "guessing yes".
1341         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1342         compiling to glibc systems, set gl_cv_func_mknod_works to
1343         "guessing yes".
1344         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1345         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1346         "guessing yes".
1347         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1348         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1349         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1350         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1351         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1352         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1353         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1354         compiling to glibc systems, set gl_cv_func_svid_putenv to
1355         "guessing yes".
1356         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1357         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1358         "guessing yes".
1359         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1360         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1361         "guessing yes".
1362         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1363         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1364         to "guessing yes".
1365         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1366         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1367         to "guessing yes".
1368         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1369         compiling to glibc systems, set gl_cv_func_rmdir_works to
1370         "guessing yes".
1371         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1372         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1373         gl_cv_func_unlink_parent_fails to "guessing yes".
1374         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1375         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1376         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1377         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1378         gl_cv_func_rename_dest_works to "guessing yes".
1379         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1380         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1381         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1382         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1383         "guessing yes".
1384         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1385         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1386         "guessing yes".
1387         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1388         compiling to glibc systems, set gl_cv_func_setenv_works to
1389         "guessing yes".
1390         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1391         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1392         "guessing yes".
1393         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1394         compiling to glibc systems, set gl_cv_func_sleep_works to
1395         "guessing yes".
1396         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1397         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1398         "guessing yes".
1399         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1400         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1401         "guessing yes".
1402         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1403         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1404         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1405         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1406         "guessing yes".
1407         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1408         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1409         "guessing yes".
1410         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1411         compiling to glibc systems, set gl_cv_func_usleep_works to
1412         "guessing yes".
1413         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1414         compiling to glibc systems, set gl_cv_func_futimesat_works to
1415         "guessing yes".
1416
1417 2012-05-03  Bruno Haible  <bruno@clisp.org>
1418
1419         Say "guessing yes" or "guessing no" when cross-compiling.
1420         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1421         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1422         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1423         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1424         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1425         am_cv_func_working_getline to "guessing yes" or "guessing no".
1426         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1427         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1428         (gl_FUNC_MEMMEM): When cross-compiling, set
1429         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1430         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1431         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1432         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1433         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1434         "guessing no".
1435         (gl_FUNC_STRCASESTR): When cross-compiling, set
1436         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1437         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1438         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1439         (gl_FUNC_STRSTR): When cross-compiling, set
1440         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1441         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1442         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1443         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1444         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1445
1446 2012-05-01  Bruno Haible  <bruno@clisp.org>
1447
1448         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1449         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1450         * build-aux/reloc-ldflags: Likewise.
1451         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1452
1453 2012-05-01  Bruno Haible  <bruno@clisp.org>
1454
1455         gnulib-tool: Remove transitional code.
1456         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1457         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1458
1459 2012-05-01  Bruno Haible  <bruno@clisp.org>
1460
1461         getcwd: Fix misindentation.
1462         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1463
1464 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1465
1466         exclude: process exclude and include directives in order
1467         This restores the pre-2009 behavior, and is part of a fix of a
1468         grep bug reported by Quentin Arce in
1469         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1470         * lib/exclude.c (struct exclude): Remove 'tail' member.
1471         (new_exclude_segment): Prepend the new segment instead of appending.
1472         Return void, since that's now more convenient.
1473         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1474         (file_name_matches): Renamed from excluded_file_name_p.
1475         (file_pattern_matches, file_name_matches):
1476         Return true if the pattern matches, not if it excludes.
1477         All callers changed.
1478         (excluded_file_name): Process the list in reverse order;
1479         since the list is now reversed this restores the pre-2009 behavior.
1480         (add_exclude): Adjust to new reversed-order list.  Use local var
1481         rather than macro, for clarity.
1482         * tests/test-exclude7.sh: Adjust to corrected behavior.
1483
1484         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1485         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1486         it's not possible here.  Handle the case of \ at end of pattern
1487         without dumping core.
1488         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1489
1490         _Noreturn: future-proof non-GNU and non-MSVC compilers
1491         * build-aux/snippet/_Noreturn.h (_Noreturn):
1492         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1493         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1494         C11 or later.  This is more likely to work with random future C
1495         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1496         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1497
1498         exclude: handle wildcards with FNM_EXTMATCH
1499         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1500         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1501         comment that "has wildcards" really means "has or may have
1502         wildcards".  Simplify by avoiding the need to call strcspn.
1503
1504 2012-04-29  Bruno Haible  <bruno@clisp.org>
1505
1506         gnulib-tool: Fix list of authors.
1507         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1508
1509 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1510
1511         bootstrap: support Automake-NG in $buildreq
1512         * bootstrap (check_versions): Handle automake and aclocal from
1513         Automake-NG specially.  They can be specified as respectively
1514         the "automake-ng" and "aclocal-ng" requirements.
1515
1516 2012-04-25  Eric Blake  <eblake@redhat.com>
1517
1518         bootstrap: only force latest Makefile.in.in for gettext module
1519         * build-aux/bootstrap (with_gettext): Only install latest
1520         Makefile.in.in for projects requesting bleeding edge gettext.
1521
1522 2012-04-22  Bruno Haible  <bruno@clisp.org>
1523
1524         doc: Mention reason for replacement on glibc/Linux systems.
1525         * doc/posix-functions/dprintf.texi: Mention the problem with special
1526         'long double' values.
1527         * doc/posix-functions/fprintf.texi: Likewise.
1528         * doc/posix-functions/printf.texi: Likewise.
1529         * doc/posix-functions/snprintf.texi: Likewise.
1530         * doc/posix-functions/sprintf.texi: Likewise.
1531         * doc/posix-functions/vdprintf.texi: Likewise.
1532         * doc/posix-functions/vfprintf.texi: Likewise.
1533         * doc/posix-functions/vprintf.texi: Likewise.
1534         * doc/posix-functions/vsnprintf.texi: Likewise.
1535         * doc/posix-functions/vsprintf.texi: Likewise.
1536         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1537         platforms with F_DUPFD_CLOEXEC problems.
1538         * doc/posix-functions/glob.texi: Mention which platforms are affected
1539         by the problem with symbolic links.
1540         * doc/posix-functions/linkat.texi: Mention the problem with
1541         AT_SYMLINK_FOLLOW on Linux.
1542
1543 2012-04-22  Bruno Haible  <bruno@clisp.org>
1544
1545         pwrite: Don't replace on all platforms.
1546         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1547
1548 2012-04-22  Bruno Haible  <bruno@clisp.org>
1549
1550         rint* tests: Avoid gcc warnings.
1551         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1552         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1553         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1554
1555 2012-04-21  Bruno Haible  <bruno@clisp.org>
1556
1557         users.txt: Update.
1558         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1559         switched from CVS to git, bzr, or svn.
1560
1561 2012-04-21  Bruno Haible  <bruno@clisp.org>
1562
1563         Large File Support for native Windows platforms.
1564
1565         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1566         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1567
1568         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1569         type.
1570         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1571         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1572         * doc/posix-headers/sys_types.texi: Mention the effect of the
1573         'largefile' module.
1574
1575         * lib/fcntl.in.h: Add comments about off_t.
1576         * modules/fcntl-h (Depends-on): Add sys_types.
1577
1578         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1579         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1580         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1581         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1582         * modules/unistd (Depends-on): Add sys_types.
1583         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1584
1585         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1586         instead of lseek.
1587         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1588         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1589         * modules/lseek (Depends-on): Add sys_types.
1590
1591         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1592         msvc-nothrow.h.
1593         (SetFileSize): New function.
1594         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1595         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1596         if Large File Support is requested.
1597         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1598         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1599
1600         * lib/stdio.in.h: Add comments about off_t.
1601         * modules/stdio (Depends-on): Add sys_types.
1602
1603         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1604         instead of ftello.
1605         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1606         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1607         (gl_PREREQ_FTELLO): New macro.
1608         * modules/ftello (Depends-on): Add sys_types.
1609         (configure.ac): Incoke gl_PREREQ_FTELLO.
1610
1611         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1612         instead of fseeko.
1613         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1614         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1615         (gl_PREREQ_FSEEKO): New macro.
1616         * modules/fseeko (Depends-on): Add sys_types.
1617         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1618
1619         * lib/sys_stat.in.h: Add comments about off_t.
1620         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1621         64-bit integer for st_size in 'struct stat'.
1622         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1623         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1624         * modules/sys_stat (Depends-on): Add sys_types.
1625         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1626
1627         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1628         instead of stat or _stat.
1629
1630         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1631         'struct _stati64' instead of fstat and 'struct stat'.
1632         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1633         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1634
1635         Reported by Ray Satiro <raysatiro@yahoo.com>.
1636
1637 2012-04-19  Eric Blake  <eblake@redhat.com>
1638
1639         bootstrap: accommodate older libtool
1640         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1641         Reported by Daniel P. Berrange.
1642
1643 2012-04-19  Jim Meyering  <meyering@redhat.com>
1644
1645         announce-gen: avoid failure due to lack of Digest::SHA1
1646         Even with the preferred Digest::SHA available, this script
1647         would fail when the backup module, Digest::SHA1, was not installed.
1648         * build-aux/announce-gen: Quote the conditional use of "use".
1649         Reported by Reuben Thomas in:
1650         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1651
1652         bootstrap: don't let a user's CDPATH setting affect this script
1653         When CDPATH is set, cd will sometimes generate output.
1654         When "cd" is run in a subshell whose output matters, that
1655         surprising-to-some output can cause malfunction.
1656         Unsetting CDPATH turns off this shell "feature."
1657         * build-aux/bootstrap (CDPATH): Unset.
1658         Reported by Reuben Thomas in:
1659         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1660         and inspired by his patch here:
1661         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1662
1663 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1664         and Jim Meyering  <meyering@redhat.com>
1665
1666         maint.mk: catch "see @xref{}" and similar
1667         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1668         prohibit "See also @xref{", "Also see @pxref{", and similar.
1669
1670 2012-04-16  Jim Meyering  <meyering@redhat.com>
1671
1672         bootstrap: really use gnulib's po/Makefile.in.in
1673         * build-aux/bootstrap: Correct the source file name in previous change.
1674         Reported by Akim Demaille.
1675
1676         configmake: correct minor inconsistency in Makefile rule
1677         * modules/configmake (Makefile.am): All other rules like this one
1678         run the final "mv -f ..." in the same backslash-continued command
1679         as the one that does everything else.  This one put the mv -f ...
1680         command on a separate, non-backslash-continued line.
1681         Make it like the others.
1682
1683         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1684         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1685         the one from gettext.  Reported by Akim Demaille.
1686
1687 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1688
1689         Fix recursion of install-* into po directories.
1690         Bison's install-pdf bug reported by Hans Aberg at
1691         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1692         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1693         (install-info, install-pdf, install-ps): New targets.
1694
1695 2012-04-16  Jim Meyering  <meyering@redhat.com>
1696
1697         maint: avoid spurious "make sc_maint" failure
1698         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1699         exempt all *.class file names, for lib/javaversion.class.
1700
1701 2012-04-15  Bruno Haible  <bruno@clisp.org>
1702
1703         lseek: Make configure test independent of environment.
1704         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1705         Windows, we know that lseek() on pipes is broken; skip the runtime
1706         test.
1707
1708 2012-04-14  Bruno Haible  <bruno@clisp.org>
1709
1710         stat: Bypass buggy override in mingw64.
1711         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1712         * lib/stat.c (stat) [mingw64]: Define to _stat.
1713         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1714
1715 2012-04-14  Bruno Haible  <bruno@clisp.org>
1716
1717         pathmax: Fix compilation error on MSVC 9.
1718         * modules/pathmax (Depends-on): Add unistd.
1719
1720 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1721
1722         README: document pointer comparison assumption
1723         * README (Portability guidelines): Document assumption about
1724         pointer comparisons, in response to a recent bug-gnulib comment by
1725         Jeffrey Kegler.
1726
1727 2012-04-12  Bruno Haible  <bruno@clisp.org>
1728
1729         Tests for module 'getrusage'.
1730         * modules/getrusage-tests: New file.
1731         * tests/test-getrusage.c: New file.
1732
1733         New module 'getrusage'.
1734         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1735         warn-on-use.h.
1736         (getrusage): New declaration.
1737         * lib/getrusage.c: New file.
1738         * m4/getrusage.m4: New file.
1739         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1740         is declared.
1741         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1742         HAVE_GETRUSAGE.
1743         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1744         snippet/c++defs, snippet/warn-on-use.
1745         (Makefile.am): Update generation of sys/resource.h. Substitute
1746         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1747         * modules/getrusage: New file.
1748         * doc/posix-functions/getrusage.texi: Mention the new module.
1749
1750 2012-04-12  Bruno Haible  <bruno@clisp.org>
1751
1752         Tests for module 'sys_resource'.
1753         * modules/sys_resource-tests: New file.
1754         * tests/test-sys_resource.c: New file.
1755
1756         New module 'sys_resource'.
1757         * lib/sys_resource.in.h: New file.
1758         * m4/sys_resource_h.m4: New file.
1759         * modules/sys_resource: New file.
1760         * doc/posix-headers/sys_resource.texi: Mention the new module.
1761
1762 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1763
1764         ioctl: Fix compilation error on mingw.
1765         * lib/ioctl.c: Include <windows.h>.
1766         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1767
1768 2012-04-04  Jim Meyering  <meyering@redhat.com>
1769
1770         regex: correct #pragma guard expression
1771         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1772         not 4.3.  Correct its cpp guard expression.
1773
1774 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1775
1776         regex: remove unnecessary type punning
1777         Problem reported by Vladimir Serbinenko in
1778         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1779         * lib/regex.h (struct re_pattern_buffer): Change the type of
1780         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1781         Fix comment to match code.
1782         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1783         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1784         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1785         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1786         (set_regs):
1787         Omit no-longer-necessary casts.
1788
1789 2012-04-03  Bruno Haible  <bruno@clisp.org>
1790
1791         Tests for module 'ilogbl'.
1792         * modules/ilogbl-tests: New file.
1793         * tests/test-ilogbl.c: New file.
1794
1795         New module 'ilogbl'.
1796         * lib/math.in.h (ilogbl): New declaration.
1797         * lib/ilogbl.c: New file.
1798         * m4/ilogbl.m4: New file.
1799         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1801         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1802         Split sed invocation, to avoid the limit of 100 substitutions of
1803         HP-UX 'sed'.
1804         * modules/ilogbl: New file.
1805         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1806         * doc/posix-functions/ilogbl.texi: Mention the new module.
1807
1808 2012-04-03  Bruno Haible  <bruno@clisp.org>
1809
1810         Tests for module 'ilogbf'.
1811         * modules/ilogbf-tests: New file.
1812         * tests/test-ilogbf.c: New file.
1813
1814         New module 'ilogbf'.
1815         * lib/math.in.h (ilogbf): New declaration.
1816         * lib/ilogbf.c: New file.
1817         * m4/ilogbf.m4: New file.
1818         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1820         REPLACE_ILOGBF.
1821         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1822         REPLACE_ILOGBF.
1823         * modules/ilogbf: New file.
1824         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1825         * doc/posix-functions/ilogbf.texi: Mention the new module.
1826
1827 2012-04-03  Bruno Haible  <bruno@clisp.org>
1828
1829         Tests for module 'ilogb'.
1830         * modules/ilogb-tests: New file.
1831         * tests/test-ilogb.c: New file.
1832         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1833         tests/test-logb-ieee.h.
1834
1835         New module 'ilogb'.
1836         * lib/math.in.h (ilogb): New declaration.
1837         * lib/ilogb.c: New file.
1838         * m4/ilogb.m4: New file.
1839         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1841         REPLACE_ILOGB.
1842         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1843         REPLACE_ILOGB.
1844         * modules/ilogb: New file.
1845         * tests/test-math-c++.cc: Check the declaration of ilogb.
1846         * doc/posix-functions/ilogb.texi: Mention the new module.
1847
1848 2012-04-03  Bruno Haible  <bruno@clisp.org>
1849
1850         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1851         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1852         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1853         (main): Check their values.
1854         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1855         problem.
1856
1857 2012-04-03  Bruno Haible  <bruno@clisp.org>
1858
1859         Tests for module 'logbl-ieee'.
1860         * modules/logbl-ieee-tests: New file.
1861         * tests/test-logbl-ieee.c: New file.
1862
1863         New module 'logbl-ieee'.
1864         * modules/logbl-ieee: New file.
1865
1866         Tests for module 'logb-ieee'.
1867         * modules/logb-ieee-tests: New file.
1868         * tests/test-logb-ieee.c: New file.
1869
1870         New module 'logb-ieee'.
1871         * modules/logb-ieee: New file.
1872
1873         Tests for module 'logbf-ieee'.
1874         * modules/logbf-ieee-tests: New file.
1875         * tests/test-logbf-ieee.c: New file.
1876         * tests/test-logb-ieee.h: New file.
1877
1878         New module 'logbf-ieee'.
1879         * modules/logbf-ieee: New file.
1880
1881 2012-04-03  Bruno Haible  <bruno@clisp.org>
1882
1883         Tests for module 'logbl'.
1884         * modules/logbl-tests: New file.
1885         * tests/test-logbl.c: New file.
1886
1887         New module 'logbl'.
1888         * lib/math.in.h (logbl): New declaration.
1889         * lib/logbl.c: New file.
1890         * m4/logbl.m4: New file.
1891         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1893         REPLACE_LOGBL.
1894         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1895         REPLACE_LOGBL.
1896         * modules/logbl: New file.
1897         * tests/test-math-c++.cc: Check the declaration of logbl.
1898         * doc/posix-functions/logbl.texi: Mention the new module.
1899
1900 2012-04-02  Bruno Haible  <bruno@clisp.org>
1901
1902         Tests for module 'logbf'.
1903         * modules/logbf-tests: New file.
1904         * tests/test-logbf.c: New file.
1905
1906         New module 'logbf'.
1907         * lib/math.in.h (logbf): New declaration.
1908         * lib/logbf.c: New file.
1909         * m4/logbf.m4: New file.
1910         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1912         REPLACE_LOGBF.
1913         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1914         REPLACE_LOGBF.
1915         * modules/logbf: New file.
1916         * tests/test-math-c++.cc: Check the declaration of logbf.
1917         * doc/posix-functions/logbf.texi: Mention the new module.
1918
1919 2012-04-02  Bruno Haible  <bruno@clisp.org>
1920
1921         logb tests: More tests.
1922         * tests/test-logb.h: New file, based on tests/test-logb.c and
1923         tests/test-frexp.h.
1924         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1925         (main): Just invoke test_function.
1926         * modules/logb-tests (Files): Add tests/test-logb.h,
1927         tests/minus-zero.h, tests/randomd.c.
1928         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1929
1930         logb: Provide replacement and workarounds.
1931         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1932         is 1.
1933         * lib/logb.c: New file.
1934         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1935         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1937         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1938         * modules/logb (Files): Add lib/logb.c.
1939         (Depends-on): Add isfinite, frexp, isnand.
1940         (configure.ac): Compile the replacement code logb.c if needed.
1941         * tests/test-math-c++.cc: Check the declaration of logb.
1942         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1943         with subnormal numbers.
1944
1945 2012-04-02  Bruno Haible  <bruno@clisp.org>
1946
1947         log10* tests: Speed up.
1948         * tests/test-log10.h (test_function): Reduce amount of random numbers
1949         to test.
1950
1951 2012-04-01  Bruno Haible  <bruno@clisp.org>
1952
1953         logf-ieee: Fix test whether logf works.
1954         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1955
1956 2012-04-01  Bruno Haible  <bruno@clisp.org>
1957
1958         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1959         * lib/log10l.c: Include <float.h>
1960         (log10l): On IRIX, normalize the +Infinity value.
1961         * modules/log10l (Depends-on): Add 'float'.
1962         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1963         +Infinity.
1964
1965         log10f-ieee: Work around test failure on NetBSD 5.1.
1966         * m4/log10f-ieee.m4: New file.
1967         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1968         test whether log10f works with a negative argument. Replace it if not.
1969         * lib/log10f.c (log10f): For negative arguments, return NaN.
1970         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1971         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1972         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1973
1974         log10f-ieee: Work around test failure on Solaris 9.
1975         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1976         (configure.ac): Require gl_FUNC_LOG10F.
1977
1978         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1979         * m4/log10-ieee.m4: New file.
1980         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1981         whether log10 works with a negative argument. Replace it if not.
1982         * lib/log10.c (log10): For negative arguments, return NaN.
1983         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1984         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1985         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1986
1987         Tests for module 'log10l-ieee'.
1988         * modules/log10l-ieee-tests: New file.
1989         * tests/test-log10l-ieee.c: New file.
1990
1991         New module 'log10l-ieee'.
1992         * modules/log10l-ieee: New file.
1993
1994         Tests for module 'log10-ieee'.
1995         * modules/log10-ieee-tests: New file.
1996         * tests/test-log10-ieee.c: New file.
1997
1998         New module 'log10-ieee'.
1999         * modules/log10-ieee: New file.
2000
2001         Tests for module 'log10f-ieee'.
2002         * modules/log10f-ieee-tests: New file.
2003         * tests/test-log10f-ieee.c: New file.
2004         * tests/test-log10-ieee.h: New file.
2005
2006         New module 'log10f-ieee'.
2007         * modules/log10f-ieee: New file.
2008
2009 2012-04-01  Bruno Haible  <bruno@clisp.org>
2010
2011         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2012         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2013         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2014         workaround.
2015         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2016         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2018         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2019         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2020         (Depends-on): Update conditions.
2021         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2022         IRIX 6.5, OSF/1 5.1 problems.
2023
2024 2012-04-01  Bruno Haible  <bruno@clisp.org>
2025
2026         log10f: Work around OSF/1 5.1 bug.
2027         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2028         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2029         workaround.
2030         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2031         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2033         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2034         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2035         (Depends-on): Update conditions.
2036         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2037
2038 2012-04-01  Bruno Haible  <bruno@clisp.org>
2039
2040         log10: Work around OSF/1 5.1 bug.
2041         * lib/math.in.h (log10): New declaration.
2042         * lib/log10.c: New file.
2043         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2044         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2045         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2047         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2048         * modules/log10 (Files): Add lib/log10.c.
2049         (Depends-on): Add math.
2050         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2051         * tests/test-math-c++.cc: Check the declaration of log10.
2052         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2053
2054 2012-03-31  Bruno Haible  <bruno@clisp.org>
2055
2056         log10l tests: More tests.
2057         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2058         tests/minus-zero.h, tests/randoml.c.
2059         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2060         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2061         (main): Invoke test_function.
2062
2063         log10f tests: More tests.
2064         * modules/log10f-tests (Files): Add tests/test-log10.h,
2065         tests/minus-zero.h, tests/randomf.c.
2066         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2067         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2068         (main): Invoke test_function.
2069
2070         log10 tests: More tests.
2071         * tests/test-log10.h: New file.
2072         * modules/log10-tests (Files): Add tests/test-log10.h,
2073         tests/minus-zero.h, tests/randomd.c.
2074         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2075         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2076         (main): Invoke test_function.
2077
2078 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2079
2080         fflush: Fix syntax error.
2081         * lib/fflush.c: Include unused-parameter.h, needed for
2082         _GL_UNUSED_PARAMETER.
2083         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2084
2085 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2086
2087         regex: pacify GCC when compiling GRUB
2088         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2089         a diagnostic.  Reported by Vladimir Serbinenko in
2090         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2091
2092 2012-03-29  Eric Blake  <eblake@redhat.com>
2093
2094         stdio: don't assume gets any more
2095         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2096         support.
2097         * modules/stdio (Makefile.am): Likewise.
2098         * lib/stdio-read.c (gets): Likewise.
2099         * tests/test-stdio-c++.cc: Likewise.
2100         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2101         * lib/stdio.in.h (gets): Make warning occur in more places.
2102         * doc/posix-functions/gets.texi (gets): Update documentation.
2103         Reported by Christer Solskogen.
2104
2105         maint.mk: fix syntax checks without exclusions
2106         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2107         Reported by Daniel P. Berrange.
2108
2109         strerror_r: avoid compiler warning
2110         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2111         level.
2112
2113         fflush: avoid compiler warning
2114         * lib/fflush.c (update_fpos_cache): Mark variables that are
2115         potentially unused.
2116
2117 2012-03-25  Bruno Haible  <bruno@clisp.org>
2118
2119         Tests for module 'localeconv'.
2120         * modules/localeconv-tests: New file.
2121         * tests/test-localeconv.c: New file.
2122
2123         New module 'localeconv'.
2124         * lib/locale.in.h (localeconv): New declaration.
2125         * lib/localeconv.c: New file.
2126         * m4/localeconv.m4: New file.
2127         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2128         REPLACE_LOCALECONV.
2129         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2130         REPLACE_LOCALECONV.
2131         * modules/localeconv: New file.
2132         * modules/nl_langinfo (Depends-on): Add localeconv.
2133         * modules/human (Depends-on): Likewise.
2134         * doc/posix-functions/localeconv.texi: Mention the new module.
2135
2136 2012-03-25  Bruno Haible  <bruno@clisp.org>
2137
2138         locale: Provide a complete 'struct lconv'.
2139         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2140         'struct lconv' does not contain int_p_cs_precedes.
2141         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2142         * doc/posix-headers/locale.texi: Update.
2143
2144         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2145         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2146         * doc/posix-headers/locale.texi: Update.
2147
2148         locale: Provide a working 'struct lconv'.
2149         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2150         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2151         'struct lconv' does not even contain decimal_point.
2152         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2153         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2154         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2155         * doc/posix-headers/locale.texi: Mention the problems with
2156         'struct lconv'.
2157         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2158
2159 2012-03-24  Bruno Haible  <bruno@clisp.org>
2160
2161         Enable common subexpression optimization in GCC.
2162         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2163         macros.
2164         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2165         GCC attribute 'const'.
2166         (uc_locale_language): Declare with GCC attribute 'pure'.
2167         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2168         with GCC attribute 'const'.
2169         * lib/unictype.in.h (uc_is_general_category_withtable,
2170         uc_combining_class, uc_combining_class_name,
2171         uc_combining_class_long_name, uc_bidi_class_name,
2172         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2173         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2174         uc_decimal_value, uc_digit_value, uc_numeric_value,
2175         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2176         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2177         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2178         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2179         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2180         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2181         Declare with GCC attribute 'const'.
2182         (uc_general_category_name, uc_general_category_long_name,
2183         uc_general_category_byname, uc_general_category,
2184         uc_is_general_category, uc_combining_class_byname,
2185         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2186         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2187         Declare with GCC attribute 'pure'.
2188         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2189         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2190         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2191         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2192         with GCC attribute 'pure'.
2193         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2194         'const'.
2195         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2196         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2197         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2198         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2199         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2200         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2201         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2202         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2203         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2204         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2205         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2206         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2207         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2208         GCC attribute 'pure'.
2209         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2210         'const'.
2211         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2212         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2213         u32_strwidth): Declare with GCC attribute 'pure'.
2214
2215         Enable common subexpression optimization in GCC.
2216         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2217         (alphasort): Declare with GCC attribute 'pure'.
2218         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2219         (atoll): Declare with GCC attribute 'pure'.
2220         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2221         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2222         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2223         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2224         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2225         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2226         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2227
2228 2012-03-24  Bruno Haible  <bruno@clisp.org>
2229
2230         gnulib-tool: Avoid unintended error output from 'cmp'.
2231         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2232         "cmp -s", not "cmp > /dev/null".
2233
2234 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2235
2236         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2237
2238         It's not just Automake versions < 1.9b that creates an empty
2239         pkgdatadir at installation time if pkgdata_DATA is specified
2240         to empty; modern automake versions do this as well, at least
2241         until automake 1.11.4 (not yet released at the moment of writing,
2242         but soon to appear).  That behaviour was generally considered a
2243         feature rather than a bug, at least until this discussion:
2244         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2245
2246         See also automake bugs #10997 and #11030.
2247
2248         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2249         reference to relevant automake bug numbers.
2250         (func_emit_tests_Makefile_am): Likewise.
2251
2252 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2253
2254         announce-gen: use Digest::SHA when possible
2255         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2256         back to Digest::SHA1 if necessary.
2257
2258 2012-03-20  Jim Meyering  <meyering@redhat.com>
2259
2260         tests: avoid gcc warnings about argv vs. const initializers
2261         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2262         warnings about discarding 'const' qualifier from pointer target type.
2263         * tests/test-posix_spawn2.c (main): Likewise.
2264
2265 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2266
2267         README-release: simplify slightly
2268         * top/README-release: Run "git checkout master" only once.
2269
2270 2012-03-15  Mark Wielaard  <mark@klomp.org>
2271
2272         git-merge-changelog: add specific example on how to use with hg.
2273         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2274
2275 2012-03-18  Mark Wielaard  <mark@klomp.org>
2276
2277         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2278
2279 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2280
2281         git-version-gen: don't let "prefix" envvar cause trouble
2282         * build-aux/git-version-gen (prefix): Initialize properly,
2283         so as not to use a value specified via the environment.
2284         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2285
2286 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2287
2288         regex: diagnose too-large repeat counts in EREs
2289         Previously, the code did not diagnose the too-large repeat count
2290         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2291         as if it were 'b\{1000000000}', which is unexpected.
2292         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2293         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2294         is a reasonable one for this problem.  Another option would be to
2295         create a new REG_OVERFLOW error for repeat counts that are too large.
2296         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2297         count is too large, so that the caller can distinguish the two cases.
2298         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2299         "Too large" return code, and that repeat counts are one example of this.
2300
2301 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2302
2303         doc: some glibc x32 integer width issues
2304         * doc/posix-headers/sys_types.texi (sys/types.h):
2305         * doc/posix-headers/time.texi (time.h):
2306         Mention that glibc x32 does not conform to POSIX in a couple of
2307         areas related to integer widths.
2308
2309 2012-03-15  Bruno Haible  <bruno@clisp.org>
2310
2311         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2312         * lib/fma.c (VOLATILE): New macro.
2313         (FUNC): Use it to work around a GCC compiler bug.
2314
2315 2012-03-13  Bruno Haible  <bruno@clisp.org>
2316
2317         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2318         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2319         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2320         REPLACE_HYPOTL to 1.
2321         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2322
2323 2012-03-13  Bruno Haible  <bruno@clisp.org>
2324
2325         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2326         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2327         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2328         REPLACE_REMAINDERL to 1.
2329         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2330         bug.
2331
2332 2012-03-13  Bruno Haible  <bruno@clisp.org>
2333
2334         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2335         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2336         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2337         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2338         too big rounding errors.
2339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2340         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2341         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2342         (Depends-on): Update conditions.
2343         * tests/test-sqrtl.c (my_ldexpl): New function.
2344         (main): Add test of a particular value.
2345         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2346
2347 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2348
2349         doc: Update timer_* platform portability notes.
2350         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2351         that always return ENOSYS.
2352         * doc/posix-functions/timer_delete.texi: Likewise.
2353         * doc/posix-functions/timer_gettime.texi: Likewise.
2354         * doc/posix-functions/timer_settime.texi: Likewise.
2355
2356 2012-03-13  Bruno Haible  <bruno@clisp.org>
2357
2358         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2359         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2360         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2361         REPLACE_CBRTL to 1.
2362         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2363
2364 2012-03-13  Bruno Haible  <bruno@clisp.org>
2365
2366         remainderl: Avoid compilation error on AIX >= 5.2.
2367         * lib/math.in.h (remainderl): Undefine macro from the system header.
2368
2369 2012-03-13  Bruno Haible  <bruno@clisp.org>
2370
2371         Avoid compilation errors with MSVC option -fp:strict.
2372         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2373         * lib/cbrtf.c: Likewise.
2374         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2375
2376 2012-03-12  Bruno Haible  <bruno@clisp.org>
2377
2378         uninorm: Don't crash in out-of-memory conditions.
2379         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2380         gracefully.
2381         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2382         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2383
2384 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2385
2386         quote: fix syntax-check
2387         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2388         also exports quote_quoting_options.
2389
2390 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2391
2392         Collapse list of copyright years to ranges.  See
2393         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2394         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2395         build-aux/csharpexec.sh.in, build-aux/gnupload,
2396         build-aux/install-reloc, build-aux/javacomp.sh.in,
2397         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2398         build-aux/move-if-change, build-aux/reloc-ldflags,
2399         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2400
2401 2012-03-11  Bruno Haible  <bruno@clisp.org>
2402
2403         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2404         * m4/log2f-ieee.m4: New file.
2405         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2406         whether log2f works with a minus zero argument. Replace it if not.
2407         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2408         (Depends-on): Add log2-ieee.
2409         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2410         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2411
2412         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2413         * m4/log2-ieee.m4: New file.
2414         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2415         whether log2 works with a minus zero argument. Replace it if not.
2416         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2417         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2418         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2419
2420         Tests for module 'log2l-ieee'.
2421         * modules/log2l-ieee-tests: New file.
2422         * tests/test-log2l-ieee.c: New file.
2423
2424         New module 'log2l-ieee'.
2425         * modules/log2l-ieee: New file.
2426
2427         Tests for module 'log2-ieee'.
2428         * modules/log2-ieee-tests: New file.
2429         * tests/test-log2-ieee.c: New file.
2430
2431         New module 'log2-ieee'.
2432         * modules/log2-ieee: New file.
2433
2434         Tests for module 'log2f-ieee'.
2435         * modules/log2f-ieee-tests: New file.
2436         * tests/test-log2f-ieee.c: New file.
2437         * tests/test-log2-ieee.h: New file.
2438
2439         New module 'log2f-ieee'.
2440         * modules/log2f-ieee: New file.
2441
2442 2012-03-11  Bruno Haible  <bruno@clisp.org>
2443
2444         Tests for module 'log2l'.
2445         * modules/log2l-tests: New file.
2446         * tests/test-log2l.c: New file.
2447
2448         New module 'log2l'.
2449         * lib/math.in.h (log2l): New declaration.
2450         * lib/log2l.c: New file.
2451         * m4/log2l.m4: New file.
2452         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2454         REPLACE_LOG2L.
2455         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2456         REPLACE_LOG2L.
2457         * modules/log2l: New file.
2458         * tests/test-math-c++.cc: Check the declaration of log2l.
2459         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2460         and OSF/1 problems.
2461
2462 2012-03-11  Bruno Haible  <bruno@clisp.org>
2463
2464         Tests for module 'log2f'.
2465         * modules/log2f-tests: New file.
2466         * tests/test-log2f.c: New file.
2467
2468         New module 'log2f'.
2469         * lib/math.in.h (log2f): New declaration.
2470         * lib/log2f.c: New file.
2471         * m4/log2f.m4: New file.
2472         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2474         REPLACE_LOG2F.
2475         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2476         REPLACE_LOG2F.
2477         * modules/log2f: New file.
2478         * tests/test-math-c++.cc: Check the declaration of log2f.
2479         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2480         and OSF/1 and Cygwin problems.
2481
2482 2012-03-11  Bruno Haible  <bruno@clisp.org>
2483
2484         Tests for module 'log2'.
2485         * modules/log2-tests: New file.
2486         * tests/test-log2.c: New file.
2487         * tests/test-log2.h: New file.
2488
2489         New module 'log2'.
2490         * lib/math.in.h (log2): New declaration.
2491         * lib/log2.c: New file.
2492         * m4/log2.m4: New file.
2493         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2494         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2495         REPLACE_LOG2.
2496         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2497         REPLACE_LOG2.
2498         * modules/log2: New file.
2499         * tests/test-math-c++.cc: Check the declaration of log2.
2500         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2501         and OSF/1 and Cygwin problems.
2502
2503 2012-03-11  Bruno Haible  <bruno@clisp.org>
2504
2505         exp2* tests: More tests.
2506         * tests/test-exp2.h (test_function): Test all integral arguments that
2507         don't need to overflow or denormalized numbers.
2508         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2509         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2510         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2511
2512 2012-03-10  Bruno Haible  <bruno@clisp.org>
2513
2514         log1pl-ieee: Work around test failure on AIX 7.1.
2515         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2516
2517         log1pl-ieee: Work around test failure on IRIX 6.5.
2518         * m4/log1pl-ieee.m4: New file.
2519         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2520         test whether log1pl works with a minus zero argument. Replace it if
2521         not.
2522         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2524         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2525         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2526         (Depends-on): Update conditions.
2527         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2528         m4/signbit.m4.
2529         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2530         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2531
2532         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2533         * m4/log1pf-ieee.m4: New file.
2534         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2535         test whether log1pf works with a minus zero argument. Replace it if
2536         not.
2537         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2538         m4/signbit.m4.
2539         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2540         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2541
2542         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2543         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2544         (configure.ac): Require gl_FUNC_LOG1PF.
2545
2546         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2547         * m4/log1p-ieee.m4: New file.
2548         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2549         whether log1p works with a minus zero argument. Replace it if not.
2550         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2552         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2553         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2554         (Depends-on): Update conditions.
2555         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2556         m4/signbit.m4.
2557         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2558         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2559
2560         Tests for module 'log1pl-ieee'.
2561         * modules/log1pl-ieee-tests: New file.
2562         * tests/test-log1pl-ieee.c: New file.
2563
2564         New module 'log1pl-ieee'.
2565         * modules/log1pl-ieee: New file.
2566
2567         Tests for module 'log1p-ieee'.
2568         * modules/log1p-ieee-tests: New file.
2569         * tests/test-log1p-ieee.c: New file.
2570
2571         New module 'log1p-ieee'.
2572         * modules/log1p-ieee: New file.
2573
2574         Tests for module 'log1pf-ieee'.
2575         * modules/log1pf-ieee-tests: New file.
2576         * tests/test-log1pf-ieee.c: New file.
2577         * tests/test-log1p-ieee.h: New file.
2578
2579         New module 'log1pf-ieee'.
2580         * modules/log1pf-ieee: New file.
2581
2582 2012-03-10  Bruno Haible  <bruno@clisp.org>
2583
2584         Tests for module 'log1pl'.
2585         * modules/log1pl-tests: New file.
2586         * tests/test-log1pl.c: New file.
2587
2588         New module 'log1pl'.
2589         * lib/math.in.h (log1pl): New declaration.
2590         * lib/log1pl.c: New file.
2591         * m4/log1pl.m4: New file.
2592         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2594         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2595         * modules/log1pl: New file.
2596         * tests/test-math-c++.cc: Check the declaration of log1pl.
2597         * doc/posix-functions/log1pl.texi: Mention the new module.
2598
2599 2012-03-10  Bruno Haible  <bruno@clisp.org>
2600
2601         Tests for module 'log1pf'.
2602         * modules/log1pf-tests: New file.
2603         * tests/test-log1pf.c: New file.
2604
2605         New module 'log1pf'.
2606         * lib/math.in.h (log1pf): New declaration.
2607         * lib/log1pf.c: New file.
2608         * m4/log1pf.m4: New file.
2609         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2611         REPLACE_LOG1PF.
2612         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2613         REPLACE_LOG1PF.
2614         * modules/log1pf: New file.
2615         * tests/test-math-c++.cc: Check the declaration of log1pf.
2616         * doc/posix-functions/log1pf.texi: Mention the new module.
2617
2618 2012-03-10  Bruno Haible  <bruno@clisp.org>
2619
2620         log1p tests: More tests.
2621         * tests/test-log1p.h: New file.
2622         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2623         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2624         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2625         (main): Invoke test_function.
2626
2627         log1p: Provide replacement for Minix and MSVC.
2628         * lib/math.in.h (log1p): New declaration.
2629         * lib/log1p.c: New file.
2630         * m4/log1p.m4: New file.
2631         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2633         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2634         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2635         (Depends-on): Add math, isnand, log, round.
2636         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2637         HAVE_LOG1P is 0.
2638         * tests/test-math-c++.cc: Check the declaration of log1p.
2639         * doc/posix-functions/log1p.texi: Mention the replacement.
2640
2641 2012-03-10  Bruno Haible  <bruno@clisp.org>
2642
2643         math tests: Small simplification.
2644         * tests/test-exp.h (test_function): Use the same err_bound for
2645         'double' on platforms with sizeof (long double) == sizeof (double)
2646         than on platforms with sizeof (long double) > sizeof (double).
2647         * tests/test-exp2.h (test_function): Likewise.
2648         * tests/test-expm1.h (test_function): Likewise.
2649         * tests/test-log.h (test_function): Likewise.
2650
2651 2012-03-10  Bruno Haible  <bruno@clisp.org>
2652
2653         Fix some comments.
2654         * lib/expl.c: Fix an ambiguous comment.
2655         * lib/expm1.c: Likewise.
2656         * lib/expm1l.c: Likewise.
2657         * lib/exp2.c: Likewise.
2658         * lib/exp2l.c: Likewise.
2659
2660 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2661
2662         regex: allow inclusion of <regex.h> before <limits.h>
2663         Without this patch, portable programs had to include <limits.h> before
2664         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2665         I ran into this problem with a test version of GNU grep on Solaris 8.
2666         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2667         This is done conditionally so that this change can be merged
2668         back to glibc.
2669         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2670         using the included regex.
2671
2672         fts: depend on fdopendir
2673         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2674         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2675         problem was introduced when fdopendir was split out.
2676
2677 2012-03-10  Bruno Haible  <bruno@clisp.org>
2678
2679         Remove unused variables.
2680         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2681         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2682
2683 2012-03-10  Bruno Haible  <bruno@clisp.org>
2684
2685         isnanf-nolibm: Fix last commit.
2686         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2687
2688         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2689         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2690
2691 2012-03-10  Bruno Haible  <bruno@clisp.org>
2692
2693         logf-ieee: Work around test failure on NetBSD 5.1.
2694         * m4/logf-ieee.m4: New file.
2695         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2696         whether logf works with a negative argument. Replace it if not.
2697         * lib/logf.c (logf): For negative arguments, return NaN.
2698         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2699         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2700         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2701
2702         logf-ieee: Work around test failure on Solaris 9.
2703         * modules/logf-ieee (Depends-on): Add log-ieee.
2704         (configure.ac): Require gl_FUNC_LOGF.
2705
2706         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2707         * m4/log-ieee.m4: New file.
2708         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2709         log works with a negative argument. Replace it if not.
2710         * lib/log.c (log): For negative arguments, return NaN.
2711         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2712         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2713         * doc/posix-functions/log.texi: Mention the log-ieee module.
2714
2715         Tests for module 'logl-ieee'.
2716         * modules/logl-ieee-tests: New file.
2717         * tests/test-logl-ieee.c: New file.
2718
2719         New module 'logl-ieee'.
2720         * modules/logl-ieee: New file.
2721
2722         Tests for module 'log-ieee'.
2723         * modules/log-ieee-tests: New file.
2724         * tests/test-log-ieee.c: New file.
2725
2726         New module 'log-ieee'.
2727         * modules/log-ieee: New file.
2728
2729         Tests for module 'logf-ieee'.
2730         * modules/logf-ieee-tests: New file.
2731         * tests/test-logf-ieee.c: New file.
2732         * tests/test-log-ieee.h: New file.
2733
2734         New module 'logf-ieee'.
2735         * modules/logf-ieee: New file.
2736
2737 2012-03-10  Bruno Haible  <bruno@clisp.org>
2738
2739         log: Fix bug introduced on 2012-03-09.
2740         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2741
2742 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2743
2744         timer-time: link explicitly with pthreads on glibc
2745         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2746         to support static linking, when newer glibc is
2747         detected, as that contains pthread emulation of
2748         POSIX timer functions where required.
2749         * modules/timer-time: Depend on threadlib to
2750         pull in the appropriate library to link.
2751
2752 2012-03-10  Bruno Haible  <bruno@clisp.org>
2753
2754         log* tests: More tests.
2755         * tests/test-log.h: New file.
2756         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2757         (main): Invoke test_function.
2758         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2759         (main): Invoke test_function.
2760         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2761         (main): Invoke test_function.
2762         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2763         tests/randomd.c.
2764         (Makefile.am): Add randomd.c to test_log_SOURCES.
2765         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2766         tests/randomf.c.
2767         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2768         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2769         tests/randoml.c.
2770         (Depends-on): Add 'float'.
2771         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2772
2773 2012-03-09  Bruno Haible  <bruno@clisp.org>
2774
2775         logl: Work around OSF/1 5.1 bug.
2776         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2777         * lib/logl.c (logl): If logl exists, use it and provide just the
2778         workaround.
2779         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2780         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2782         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2783         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2784         (Depends-on): Update conditions.
2785         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2786
2787 2012-03-09  Bruno Haible  <bruno@clisp.org>
2788
2789         logf: Work around OSF/1 5.1 bug.
2790         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2791         * lib/logf.c (logf): If logf exists, use it and provide just the
2792         workaround.
2793         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2794         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2796         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2797         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2798         (Depends-on): Update conditions.
2799         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2800
2801 2012-03-09  Bruno Haible  <bruno@clisp.org>
2802
2803         log: Work around OSF/1 5.1 bug.
2804         * lib/math.in.h (log): New declaration.
2805         * lib/log.c: New file.
2806         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2807         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2808         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2809         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2810         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2811         * modules/log (Files): Add lib/log.c.
2812         (Depends-on): Add math.
2813         (configure.ac): If REPLACE_LOG is 1, compile an override.
2814         * tests/test-math-c++.cc: Check the declaration of log.
2815         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2816
2817 2012-03-09  Jim Meyering  <meyering@redhat.com>
2818
2819         readtokens.c: adjust wording in a comment
2820         * lib/readtokens.c: Insert omitted "that" in a comment.
2821
2822 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2823
2824         modechange: add notations +40, 00440, etc.
2825         * lib/modechange.c (mode_compile): Support new notations
2826         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2827
2828 2012-03-08  Bruno Haible  <bruno@clisp.org>
2829
2830         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2831         * m4/exp2l-ieee.m4: New file.
2832         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2833         test whether exp2l works with a NaN argument and with a negative
2834         infinity argument. Replace it if not.
2835         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2837         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2838         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2839         (Depends-on): Update conditions.
2840         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2841         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2842         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2843
2844         Tests for module 'exp2l-ieee'.
2845         * modules/exp2l-ieee-tests: New file.
2846         * tests/test-exp2l-ieee.c: New file.
2847
2848         New module 'exp2l-ieee'.
2849         * modules/exp2l-ieee: New file.
2850
2851         Tests for module 'exp2-ieee'.
2852         * modules/exp2-ieee-tests: New file.
2853         * tests/test-exp2-ieee.c: New file.
2854
2855         New module 'exp2-ieee'.
2856         * modules/exp2-ieee: New file.
2857
2858         Tests for module 'exp2f-ieee'.
2859         * modules/exp2f-ieee-tests: New file.
2860         * tests/test-exp2f-ieee.c: New file.
2861         * tests/test-exp2-ieee.h: New file.
2862
2863         New module 'exp2f-ieee'.
2864         * modules/exp2f-ieee: New file.
2865
2866 2012-03-08  Bruno Haible  <bruno@clisp.org>
2867
2868         Tests for module 'exp2l'.
2869         * modules/exp2l-tests: New file.
2870         * tests/test-exp2l.c: New file.
2871
2872         New module 'exp2l'.
2873         * lib/math.in.h (exp2l): New declaration.
2874         * lib/exp2l.c: New file.
2875         * lib/expl-table.c: New file, extracted from lib/expl.c.
2876         * lib/expl.c (gl_expl_table): New declaration.
2877         (expl): Remove expl_table. Update reference.
2878         * m4/exp2l.m4: New file.
2879         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2881         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2882         * modules/exp2l: New file.
2883         * modules/expl (Files): Add lib/expl-table.c.
2884         (configure.ac): Compile also expl-table.c.
2885         * tests/test-math-c++.cc: Check the declaration of exp2l.
2886         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2887         problem.
2888
2889 2012-03-08  Bruno Haible  <bruno@clisp.org>
2890
2891         Tests for module 'exp2f'.
2892         * modules/exp2f-tests: New file.
2893         * tests/test-exp2f.c: New file.
2894
2895         New module 'exp2f'.
2896         * lib/math.in.h (exp2f): New declaration.
2897         * lib/exp2f.c: New file.
2898         * m4/exp2f.m4: New file.
2899         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2901         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2902         * modules/exp2f: New file.
2903         * tests/test-math-c++.cc: Check the declaration of exp2f.
2904         * doc/posix-functions/exp2f.texi: Mention the new module and the
2905         IRIX problem.
2906
2907 2012-03-08  Bruno Haible  <bruno@clisp.org>
2908
2909         Tests for module 'exp2'.
2910         * modules/exp2-tests: New file.
2911         * tests/test-exp2.c: New file.
2912         * tests/test-exp2.h: New file.
2913
2914         New module 'exp2'.
2915         * lib/math.in.h (exp2): New declaration.
2916         * lib/exp2.c: New file.
2917         * m4/exp2.m4: New file.
2918         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2920         REPLACE_EXP2.
2921         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2922         REPLACE_EXP2.
2923         * modules/exp2: New file.
2924         * tests/test-math-c++.cc: Check the declaration of exp2.
2925         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2926         and OpenBSD problems.
2927
2928 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2929
2930         savedir: fix comment typo
2931         * lib/savedir.c (savedirstream): Fix typo in comment.
2932
2933 2012-03-08  Bruno Haible  <bruno@clisp.org>
2934
2935         test-readtokens.c: use const; remove unwarranted cast
2936         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2937
2938 2012-03-08  Bruno Haible  <bruno@clisp.org>
2939
2940         fmal: Avoid compilation error on AIX.
2941         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2942         AIX 5.2..7.1.
2943
2944 2012-03-08  Bruno Haible  <bruno@clisp.org>
2945
2946         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2947         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2948         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2949         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2950         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2951         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2952         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2953
2954 2012-03-08  Bruno Haible  <bruno@clisp.org>
2955
2956         remainderf: Override buggy system function on IRIX 6.5.
2957         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2958         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2959         when it exists.
2960         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2961
2962 2012-03-08  Jim Meyering  <meyering@redhat.com>
2963
2964         test-readtokens.c: avoid const-related compilation warnings
2965         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2966
2967 2012-03-07  Jim Meyering  <meyering@redhat.com>
2968             Bruno Haible  <bruno@clisp.org>
2969
2970         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2971         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2972         tests/randomd.c.
2973         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2974         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2975         tests/randoml.c.
2976         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2977
2978 2012-03-07  Bruno Haible  <bruno@clisp.org>
2979
2980         expm1l: Avoid compilation error on AIX.
2981         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2982         AIX 5.2..7.1.
2983
2984 2012-03-07  Bruno Haible  <bruno@clisp.org>
2985
2986         expm1l: Don't override undeclared system function on IRIX 6.5.
2987         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2988         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2989         it exists. Set HAVE_DECL_EXPM1L.
2990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2991         HAVE_EXPM1L.
2992         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2993         HAVE_EXPM1L.
2994         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2995
2996 2012-03-07  Bruno Haible  <bruno@clisp.org>
2997
2998         remainderl: Don't override undeclared system function on IRIX 6.5.
2999         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
3000         HAVE_REMAINDERL.
3001         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
3002         declared when it exists. Set HAVE_DECL_REMAINDERL.
3003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
3004         not HAVE_REMAINDERL.
3005         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
3006         HAVE_REMAINDERL.
3007         * doc/posix-functions/remainderl.texi: Mention missing declaration
3008         problem.
3009
3010 2012-03-07  Bruno Haible  <bruno@clisp.org>
3011
3012         rintf: Don't override undeclared system function on IRIX 6.5.
3013         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3014         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3015         exists. Set HAVE_DECL_RINTF.
3016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3017         HAVE_RINTF.
3018         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3019         HAVE_RINTF.
3020         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3021
3022 2012-03-07  Bruno Haible  <bruno@clisp.org>
3023
3024         roundl: Avoid compilation error on AIX.
3025         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3026         AIX 5.2..7.1.
3027
3028 2012-03-07  Bruno Haible  <bruno@clisp.org>
3029
3030         roundl: Don't override undeclared system function on IRIX 6.5.
3031         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3032         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3033         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3034         * modules/roundl (configure.ac): For replacement code, test
3035         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3036         (Depends-on): Update conditions.
3037         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3038
3039 2012-03-07  Bruno Haible  <bruno@clisp.org>
3040
3041         roundf: Don't override undeclared system function on IRIX 6.5.
3042         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3043         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3044         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3045         * modules/roundf (configure.ac): For replacement code, test
3046         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3047         (Depends-on): Update conditions.
3048         * modules/roundf-ieee (Depends-on): Update conditions.
3049         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3050
3051 2012-03-07  Bruno Haible  <bruno@clisp.org>
3052
3053         round: Don't override undeclared system function on IRIX 6.5.
3054         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3055         argument.
3056         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3057         also when it is not declared. Set HAVE_ROUND. For replacement code,
3058         test HAVE_ROUND, not HAVE_DECL_ROUND.
3059         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3060         not HAVE_DECL_ROUND.
3061         (Depends-on): Update conditions.
3062         * modules/round-ieee (Depends-on): Update conditions.
3063         * doc/posix-functions/round.texi: Mention the IRIX problem.
3064
3065 2012-03-07  Bruno Haible  <bruno@clisp.org>
3066
3067         copysignf: Don't override undeclared system function on IRIX 6.5.
3068         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3069         HAVE_COPYSIGNF.
3070         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3071         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3073         not HAVE_COPYSIGNF.
3074         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3075         HAVE_COPYSIGNF.
3076         * doc/posix-functions/copysignf.texi: Mention missing declaration
3077         problem.
3078
3079 2012-03-07  Jim Meyering  <meyering@redhat.com>
3080
3081         readtokens: add tests
3082         * modules/readtokens-tests: New file.
3083         * tests/test-readtokens.c: New file.
3084
3085 2012-03-07  Jim Meyering  <meyering@redhat.com>
3086
3087         quotearg: the module must now include quote.h
3088         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3089         So must the module.
3090         * modules/quotearg (Files): Add quote.h.
3091
3092 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3093
3094         readtokens: avoid core dumps with unusual calling patterns
3095         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3096         * lib/readtokens.c: Include limits.h.
3097         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3098         (readtoken): Don't cache the delimiters; the cache code was buggy
3099         if !delim && saved_delim, or if the new n_delim differs from the old.
3100         Also, it wasn't thread-safe.
3101
3102 2012-03-07  Bruno Haible  <bruno@clisp.org>
3103
3104         quote: Adhere to common module description layout.
3105         * modules/quote (Makefile.am): Add back empty section.
3106
3107 2012-03-06  Akim Demaille  <demaille@gostai.com>
3108
3109         quote: fuse into quotearg
3110         This patch is made for the benefit of Bison.
3111         quote does not leave the choice of the quoting style to the user.
3112         quoting_style provides poor customizability, yet quoting_options,
3113         which is very rich, is hidden inside quotearg.c.  So in order to
3114         allow quote customization, move its implementation to quotearg.c.
3115         * lib/quote.c: Remove.
3116         * modules/quote: Adjust.
3117         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3118         warning: provide all the members of literal structs.
3119         (quote_quoting_options): New.
3120         (quote, quote_n): Import implementation from quote.c.
3121         * lib/quote.h: Import the comments from quote.c.
3122         (quote_quoting_options): New.
3123
3124 2012-03-06  Bruno Haible  <bruno@clisp.org>
3125
3126         Tests for module 'expm1l-ieee'.
3127         * modules/expm1l-ieee-tests: New file.
3128         * tests/test-expm1l-ieee.c: New file.
3129
3130         New module 'expm1l-ieee'.
3131         * modules/expm1l-ieee: New file.
3132
3133         Tests for module 'expm1f-ieee'.
3134         * modules/expm1f-ieee-tests: New file.
3135         * tests/test-expm1f-ieee.c: New file.
3136
3137         New module 'expm1f-ieee'.
3138         * modules/expm1f-ieee: New file.
3139
3140         Tests for module 'expm1-ieee'.
3141         * modules/expm1-ieee-tests: New file.
3142         * tests/test-expm1-ieee.c: New file.
3143         * tests/test-expm1-ieee.h: New file.
3144
3145         New module 'expm1-ieee'.
3146         * modules/expm1-ieee: New file.
3147         * m4/expm1-ieee.m4: New file.
3148         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3149         whether expm1 works with a minus zero argument. Replace it if not.
3150         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3152         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3153         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3154         (Depends-on): Update conditions.
3155         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3156         AIX problem.
3157
3158 2012-03-06  Bruno Haible  <bruno@clisp.org>
3159
3160         Work around expm1f bug on IRIX 6.5.
3161         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3162         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3163         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3164         not work.
3165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3166         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3167         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3168         (Depends-on): Update conditions.
3169         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3170
3171 2012-03-06  Bruno Haible  <bruno@clisp.org>
3172
3173         Tests for module 'expm1l'.
3174         * modules/expm1l-tests: New file.
3175         * tests/test-expm1l.c: New file.
3176
3177         New module 'expm1l'.
3178         * lib/math.in.h (expm1l): New declaration.
3179         * lib/expm1l.c: New file.
3180         * m4/expm1l.m4: New file.
3181         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3182         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3183         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3184         * modules/expm1l: New file.
3185         * tests/test-math-c++.cc: Check the declaration of expm1l.
3186         * doc/posix-functions/expm1l.texi: Mention the new module.
3187
3188 2012-03-06  Bruno Haible  <bruno@clisp.org>
3189
3190         Tests for module 'expm1f'.
3191         * modules/expm1f-tests: New file.
3192         * tests/test-expm1f.c: New file.
3193
3194         New module 'expm1f'.
3195         * lib/math.in.h (expm1f): New declaration.
3196         * lib/expm1f.c: New file.
3197         * m4/expm1f.m4: New file.
3198         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3200         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3201         * modules/expm1f: New file.
3202         * tests/test-math-c++.cc: Check the declaration of expm1f.
3203         * doc/posix-functions/expm1f.texi: Mention the new module.
3204
3205 2012-03-06  Bruno Haible  <bruno@clisp.org>
3206
3207         Tests for module 'expm1'.
3208         * modules/expm1-tests: New file.
3209         * tests/test-expm1.c: New file.
3210         * tests/test-expm1.h: New file.
3211
3212         New module 'expm1'.
3213         * lib/math.in.h (expm1): New declaration.
3214         * lib/expm1.c: New file.
3215         * m4/expm1.m4: New file.
3216         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3218         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3219         * modules/expm1: New file.
3220         * tests/test-math-c++.cc: Check the declaration of expm1.
3221         * doc/posix-functions/expm1.texi: Mention the new module.
3222
3223 2012-03-06  Bruno Haible  <bruno@clisp.org>
3224
3225         math: Ensure declarations of math functions.
3226         * modules/acosf (Depends-on): Add 'extensions'.
3227         * modules/asinf (Depends-on): Likewise.
3228         * modules/atan2f (Depends-on): Likewise.
3229         * modules/atanf (Depends-on): Likewise.
3230         * modules/cbrt (Depends-on): Likewise.
3231         * modules/cbrtf (Depends-on): Likewise.
3232         * modules/cbrtl (Depends-on): Likewise.
3233         * modules/copysignf (Depends-on): Likewise.
3234         * modules/copysignl (Depends-on): Likewise.
3235         * modules/cosf (Depends-on): Likewise.
3236         * modules/coshf (Depends-on): Likewise.
3237         * modules/expf (Depends-on): Likewise.
3238         * modules/fabsf (Depends-on): Likewise.
3239         * modules/fabsl (Depends-on): Likewise.
3240         * modules/fmaf (Depends-on): Likewise.
3241         * modules/fmal (Depends-on): Likewise.
3242         * modules/fmodf (Depends-on): Likewise.
3243         * modules/fmodl (Depends-on): Likewise.
3244         * modules/frexpf (Depends-on): Likewise.
3245         * modules/frexpl (Depends-on): Likewise.
3246         * modules/hypot (Depends-on): Likewise.
3247         * modules/hypotf (Depends-on): Likewise.
3248         * modules/hypotl (Depends-on): Likewise.
3249         * modules/ldexpf (Depends-on): Likewise.
3250         * modules/ldexpl (Depends-on): Likewise.
3251         * modules/log10f (Depends-on): Likewise.
3252         * modules/log10l (Depends-on): Likewise.
3253         * modules/log1p (Depends-on): Likewise.
3254         * modules/logb (Depends-on): Likewise.
3255         * modules/logf (Depends-on): Likewise.
3256         * modules/modff (Depends-on): Likewise.
3257         * modules/modfl (Depends-on): Likewise.
3258         * modules/powf (Depends-on): Likewise.
3259         * modules/remainderf (Depends-on): Likewise.
3260         * modules/remainderl (Depends-on): Likewise.
3261         * modules/rintf (Depends-on): Likewise.
3262         * modules/rintl (Depends-on): Likewise.
3263         * modules/sinf (Depends-on): Likewise.
3264         * modules/sinhf (Depends-on): Likewise.
3265         * modules/sqrtf (Depends-on): Likewise.
3266         * modules/tanf (Depends-on): Likewise.
3267         * modules/tanhf (Depends-on): Likewise.
3268         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3269         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3270         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3271         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3272         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3273         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3274         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3275         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3276         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3277         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3278         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3279         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3280         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3281         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3282         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3283         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3284         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3285         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3286         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3287         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3288         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3289         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3290         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3291         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3292         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3293         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3294         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3295         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3296         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3297         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3298         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3299         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3300         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3301         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3302         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3303         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3304         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3305         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3306         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3307         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3308         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3309
3310 2012-03-06  Bruno Haible  <bruno@clisp.org>
3311
3312         math: Update module names in warnings.
3313         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3314         tanl): Use specific module name in warn-on-use warning.
3315
3316 2012-03-06  Bruno Haible  <bruno@clisp.org>
3317
3318         expl: Simplify computation.
3319         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3320
3321 2012-03-05  Bruno Haible  <bruno@clisp.org>
3322
3323         exp* tests: More tests.
3324         * tests/test-exp.h: New file.
3325         * tests/test-exp.c: Include <float.h> and test-exp.h.
3326         (main): Invoke test_function.
3327         * tests/test-expf.c: Include <float.h> and test-exp.h.
3328         (main): Invoke test_function.
3329         * tests/test-expl.c: Include <float.h> and test-exp.h.
3330         (main): Invoke test_function.
3331         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3332         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3333         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3334         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3335         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3336         (Depends-on): Add 'float'.
3337         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3338
3339         expl: Fix precision of computed result.
3340         * lib/expl.c: Completely rewritten.
3341         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3342         (Maintainer): Add me.
3343         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3344
3345 2012-03-05  Bruno Haible  <bruno@clisp.org>
3346
3347         cbrt* tests: More tests.
3348         * tests/test-cbrt.h: New file.
3349         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3350         (main): Invoke test_function.
3351         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3352         (main): Invoke test_function.
3353         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3354         (main): Invoke test_function.
3355         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3356         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3357         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3358         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3359         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3360         (Depends-on): Add 'float'.
3361         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3362
3363 2012-03-05  Bruno Haible  <bruno@clisp.org>
3364
3365         hypot* tests: More tests.
3366         * tests/test-hypot.h: New file, partially extracted from
3367         tests/test-hypotl.c.
3368         * tests/test-hypot.c: Include test-hypot.h.
3369         (main): Invoke test_function.
3370         * tests/test-hypotf.c: Include test-hypot.h.
3371         (main): Invoke test_function.
3372         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3373         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3374         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3375         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3376         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3377         tests/randomf.c.
3378         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3379         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3380         tests/randoml.c.
3381         (Depends-on): Add 'fpucw', 'float'.
3382         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3383
3384 2012-03-05  Bruno Haible  <bruno@clisp.org>
3385
3386         fpucw: Doc about FreeBSD.
3387         * lib/fpucw.h: Mention FreeBSD in comments.
3388
3389 2012-03-04  Bruno Haible  <bruno@clisp.org>
3390
3391         sqrt* tests: More tests.
3392         * tests/test-sqrt.h: New file.
3393         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3394         (main): Invoke test_function.
3395         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3396         (main): Invoke test_function.
3397         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3398         (main): Invoke test_function.
3399         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3400         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3401         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3402         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3403         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3404         (Depends-on): Add 'float'.
3405         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3406
3407 2012-03-04  Bruno Haible  <bruno@clisp.org>
3408
3409         remainder* tests: More tests.
3410         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3411         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3412         (main): Invoke test_function.
3413         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3414         (main): Invoke test_function.
3415         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3416         (main): Invoke test_function.
3417         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3418         tests/randomd.c.
3419         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3420         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3421         tests/randomf.c.
3422         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3423         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3424         tests/randoml.c.
3425         (Depends-on): Add 'float'.
3426         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3427
3428 2012-03-04  Bruno Haible  <bruno@clisp.org>
3429
3430         remainder, remainderf, remainderl: Fix computation for large quotients.
3431         * lib/remainder.c: Completely rewritten.
3432         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3433         USE_FLOAT.
3434         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3435         USE_LONG_DOUBLE.
3436         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3437         isnand, isinf. Remove round, fma.
3438         * modules/remainderf (Files): Add lib/remainder.c.
3439         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3440         Remove roundf, fmaf.
3441         * modules/remainderl (Files): Add lib/remainder.c.
3442         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3443         isinf. Remove roundl, fmal.
3444         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3445         REMAINDER_LIBM.
3446         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3447         REMAINDERF_LIBM.
3448         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3449         REMAINDERL_LIBM.
3450
3451 2012-03-04  Bruno Haible  <bruno@clisp.org>
3452
3453         fmod* tests: More tests.
3454         * tests/test-fmod.h (my_ldexp): New function.
3455         (test_function): Reduce amount of random numbers to test. Add tests
3456         of very large quotients x / y.
3457         * tests/test-fmod.c (MAX_EXP): New macro.
3458         * tests/test-fmodf.c (MAX_EXP): Likewise.
3459         * tests/test-fmodl.c (MAX_EXP): Likewise.
3460
3461 2012-03-04  Bruno Haible  <bruno@clisp.org>
3462
3463         fmod, fmodl: Fix computation for large quotients x / y.
3464         * lib/fmod.c: Completely rewritten.
3465         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3466         USE_LONG_DOUBLE.
3467         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3468         isnand. Remove fma.
3469         * modules/fmodl (Files): Add lib/fmod.c.
3470         (Depends-on): Add float, isfinite, signbit, fabsl,
3471         frexpl, ldexpl, isnanl. Remove fma.
3472         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3473         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3474
3475 2012-03-03  Bruno Haible  <bruno@clisp.org>
3476
3477         fmod* tests: More tests.
3478         * tests/test-fmod.h: New file.
3479         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3480         (main): Invoke test_function.
3481         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3482         (main): Invoke test_function.
3483         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3484         (main): Invoke test_function.
3485         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3486         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3487         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3488         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3489         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3490         (Depends-on): Add 'float'.
3491         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3492
3493 2012-03-03  Bruno Haible  <bruno@clisp.org>
3494
3495         rint* tests: More tests.
3496         * tests/test-rint.h: New file, partially extracted from
3497         tests/test-rintl.c.
3498         * tests/test-rint.c: Include test-rint.h.
3499         (main): Invoke test_function.
3500         * tests/test-rintf.c: Include test-rint.h.
3501         (main): Invoke test_function.
3502         * tests/test-rintl.c: Include test-rint.h.
3503         (main): Invoke test_function.
3504         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3505         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3506         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3507         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3508         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3509         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3510
3511 2012-03-03  Bruno Haible  <bruno@clisp.org>
3512
3513         modf* tests: More tests.
3514         * tests/test-modf.h: New file.
3515         * tests/test-modf.c: Include <float.h> and test-modf.h.
3516         (main): Invoke test_function.
3517         * tests/test-modff.c: Include <float.h> and test-modf.h.
3518         (main): Invoke test_function.
3519         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3520         (main): Invoke test_function.
3521         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3522         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3523         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3524         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3525         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3526         (Depends-on): Add 'float'.
3527         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3528
3529 2012-03-03  Bruno Haible  <bruno@clisp.org>
3530
3531         fabs* tests: More tests.
3532         * tests/test-fabs.h: New file, partially extracted from
3533         tests/test-fabsl.c.
3534         * tests/test-fabs.c (RANDOM): New macro.
3535         * tests/test-fabsf.c (RANDOM): New macro.
3536         * tests/test-fabsl.c (RANDOM): New macro.
3537         * modules/fabs-tests (Files): Add tests/randomd.c.
3538         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3539         * modules/fabsf-tests (Files): Add tests/randomf.c.
3540         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3541         * modules/fabsl-tests (Files): Add tests/randoml.c.
3542         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3543
3544 2012-03-03  Bruno Haible  <bruno@clisp.org>
3545
3546         ldexp* tests: More tests.
3547         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3548         * tests/test-ldexp.c (RANDOM): New macro.
3549         * tests/test-ldexpf.c (RANDOM): New macro.
3550         * tests/test-ldexpl.c (RANDOM): New macro.
3551         * modules/ldexp-tests (Files): Add tests/randomd.c.
3552         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3553         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3554         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3555         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3556         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3557
3558 2012-03-03  Bruno Haible  <bruno@clisp.org>
3559
3560         frexp* tests: More tests.
3561         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3562         * tests/test-frexp.c (RANDOM): New macro.
3563         * tests/test-frexpf.c (RANDOM): New macro.
3564         * tests/test-frexpl.c (RANDOM): New macro.
3565         * modules/frexp-tests (Files): Add tests/randomd.c.
3566         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3567         * modules/frexpf-tests (Files): Add tests/randomf.c.
3568         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3569         * modules/frexpl-tests (Files): Add tests/randoml.c.
3570         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3571
3572 2012-03-03  Bruno Haible  <bruno@clisp.org>
3573
3574         Support for pseudo-random numbers in tests.
3575         * tests/randomf.c: New file.
3576         * tests/randomd.c: New file.
3577         * tests/randoml.c: New file.
3578         * tests/macros.h (randomf, randomd, randoml): New declarations.
3579
3580 2012-03-03  Bruno Haible  <bruno@clisp.org>
3581
3582         frexp* tests: Refactor.
3583         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3584         * tests/test-frexp.c: Include and use it.
3585         * tests/test-frexpf.c: Likewise.
3586         * tests/test-frexpl.c: Likewise.
3587         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3588         * modules/frexpf-tests (Files): Likewise.
3589         * modules/frexpl-tests (Files): Likewise.
3590
3591 2012-03-02  Jim Meyering  <meyering@redhat.com>
3592
3593         maint: don't specify XZ_OPT=-9ev in dist-related rule
3594         Using xz's -9 option is warranted only if you have a very large
3595         tarball (see xz's documentation for the sizes vs. presets), and
3596         requires 64MiB of memory at decompression time.
3597         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3598         Automake's default of just "-e" is fine.  Override on a
3599         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3600
3601 2012-03-01  Eric Blake  <eblake@redhat.com>
3602
3603         maint.mk: allow announcement for non-gnulib project
3604         * maint.mk (announcement): Skip gnulib version if not used.
3605
3606 2012-03-01  Jim Meyering  <meyering@redhat.com>
3607
3608         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3609         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3610         envvar settings cannot interfere.  Otherwise, setting envvars like
3611         prohibit=foo require=bar, etc. would cause spurious test failures.
3612
3613 2012-03-01  Eric Blake  <eblake@redhat.com>
3614
3615         maint.mk: add per-line exclusions to prohibitions
3616         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3617         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3618         (sc_const_long_option): Use it.
3619
3620 2012-03-01  Bruno Haible  <bruno@clisp.org>
3621
3622         Tests for module 'expl-ieee'.
3623         * modules/expl-ieee-tests: New file.
3624         * tests/test-expl-ieee.c: New file.
3625
3626         New module 'expl-ieee'.
3627         * modules/expl-ieee: New file.
3628
3629         Tests for module 'exp-ieee'.
3630         * modules/exp-ieee-tests: New file.
3631         * tests/test-exp-ieee.c: New file.
3632
3633         New module 'exp-ieee'.
3634         * modules/exp-ieee: New file.
3635
3636         Tests for module 'expf-ieee'.
3637         * modules/expf-ieee-tests: New file.
3638         * tests/test-expf-ieee.c: New file.
3639         * tests/test-exp-ieee.h: New file.
3640
3641         New module 'expf-ieee'.
3642         * modules/expf-ieee: New file.
3643
3644 2012-02-29  Bruno Haible  <bruno@clisp.org>
3645
3646         cbrtl-ieee: Work around test failure on IRIX 6.5.
3647         * m4/cbrtl-ieee.m4: New file.
3648         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3649         test whether cbrtl works with a minus zero argument. Replace it if not.
3650         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3652         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3653         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3654         (Depends-on): Update conditions.
3655         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3656         m4/signbit.m4.
3657         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3658         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3659         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3660
3661         Tests for module 'cbrtl-ieee'.
3662         * modules/cbrtl-ieee-tests: New file.
3663         * tests/test-cbrtl-ieee.c: New file.
3664
3665         New module 'cbrtl-ieee'.
3666         * modules/cbrtl-ieee: New file.
3667
3668         Tests for module 'cbrt-ieee'.
3669         * modules/cbrt-ieee-tests: New file.
3670         * tests/test-cbrt-ieee.c: New file.
3671
3672         New module 'cbrt-ieee'.
3673         * modules/cbrt-ieee: New file.
3674
3675         Tests for module 'cbrtf-ieee'.
3676         * modules/cbrtf-ieee-tests: New file.
3677         * tests/test-cbrtf-ieee.c: New file.
3678         * tests/test-cbrt-ieee.h: New file.
3679
3680         New module 'cbrtf-ieee'.
3681         * modules/cbrtf-ieee: New file.
3682
3683 2012-02-29  Bruno Haible  <bruno@clisp.org>
3684
3685         cbrtf: Work around bug in IRIX 6.5 system function.
3686         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3687         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3688         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3689         work.
3690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3691         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3692         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3693         (Depends-on): Update conditions.
3694         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3695
3696 2012-02-29  Bruno Haible  <bruno@clisp.org>
3697
3698         Tests for module 'cbrtl'.
3699         * modules/cbrtl-tests: New file.
3700         * tests/test-cbrtl.c: New file.
3701
3702         New module 'cbrtl'.
3703         * lib/math.in.h (cbrtl): New declaration.
3704         * lib/cbrtl.c: New file.
3705         * m4/cbrtl.m4: New file.
3706         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3708         HAVE_DECL_CBRTL.
3709         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3710         HAVE_DECL_CBRTL.
3711         * modules/cbrtl: New file.
3712         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3713         * doc/posix-functions/cbrtl.texi: Mention the new module.
3714
3715 2012-02-29  Bruno Haible  <bruno@clisp.org>
3716
3717         Tests for module 'cbrtf'.
3718         * modules/cbrtf-tests: New file.
3719         * tests/test-cbrtf.c: New file.
3720
3721         New module 'cbrtf'.
3722         * lib/math.in.h (cbrtf): New declaration.
3723         * lib/cbrtf.c: New file.
3724         * m4/cbrtf.m4: New file.
3725         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3726         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3727         HAVE_DECL_CBRTF.
3728         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3729         HAVE_DECL_CBRTF.
3730         * modules/cbrtf: New file.
3731         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3732         * doc/posix-functions/cbrtf.texi: Mention the new module.
3733
3734 2012-02-29  Bruno Haible  <bruno@clisp.org>
3735
3736         cbrt: Provide replacement on MSVC and Minix.
3737         * lib/math.in.h (cbrt): New declaration.
3738         * lib/cbrt.c: New file.
3739         * m4/cbrt.m4: New file.
3740         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3742         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3743         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3744         (Depends-on): Add dependencies.
3745         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3746         * tests/test-math-c++.cc: Check the declaration of cbrt.
3747         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3748         replacement.
3749
3750 2012-02-29  Bruno Haible  <bruno@clisp.org>
3751
3752         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3753         * m4/hypotl-ieee.m4: New file.
3754         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3755         test whether hypotl works with mixed NaN and Infinity arguments.
3756         Replace it if not.
3757         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3759         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3760         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3761         (Depends-on): Update conditions.
3762         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3763         (Depends-on): Add hypot-ieee.
3764         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3765         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3766
3767         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3768         * m4/hypotf-ieee.m4: New file.
3769         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3770         test whether hypotf works with mixed NaN and Infinity arguments.
3771         Replace it if not.
3772         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3773         (Depends-on): Add hypot-ieee.
3774         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3775         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3776
3777         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3778         * lib/math.in.h (hypot): New declaration.
3779         * lib/hypot.c: New file.
3780         * m4/hypot-ieee.m4: New file.
3781         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3782         whether hypot works with mixed NaN and Infinity arguments. Replace it
3783         if not.
3784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3785         REPLACE_HYPOT.
3786         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3787         * modules/hypot (Files): Add lib/hypot.c.
3788         (Depends-on): Add dependencies.
3789         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3790         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3791         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3792         * tests/test-math-c++.cc: Check the declaration of hypot.
3793         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3794
3795         Tests for module 'hypotl-ieee'.
3796         * modules/hypotl-ieee-tests: New file.
3797         * tests/test-hypotl-ieee.c: New file.
3798
3799         New module 'hypotl-ieee'.
3800         * modules/hypotl-ieee: New file.
3801
3802         Tests for module 'hypot-ieee'.
3803         * modules/hypot-ieee-tests: New file.
3804         * tests/test-hypot-ieee.c: New file.
3805
3806         New module 'hypot-ieee'.
3807         * modules/hypot-ieee: New file.
3808
3809         Tests for module 'hypotf-ieee'.
3810         * modules/hypotf-ieee-tests: New file.
3811         * tests/test-hypotf-ieee.c: New file.
3812         * tests/test-hypot-ieee.h: New file.
3813
3814         New module 'hypotf-ieee'.
3815         * modules/hypotf-ieee: New file.
3816
3817 2012-02-29  Bruno Haible  <bruno@clisp.org>
3818
3819         Remove unused variables.
3820         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3821         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3822         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3823         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3824
3825 2012-02-29  Eric Blake  <eblake@redhat.com>
3826
3827         termios: fix pid_t always, not just for tcgetsid
3828         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3829         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3830         just when building tcgetsid.
3831
3832 2012-02-29  Bruno Haible  <bruno@clisp.org>
3833
3834         Tests for module 'hypotl'.
3835         * modules/hypotl-tests: New file.
3836         * tests/test-hypotl.c: New file.
3837
3838         New module 'hypotl'.
3839         * lib/math.in.h (hypotl): New declaration.
3840         * lib/hypotl.c: New file.
3841         * m4/hypotl.m4: New file.
3842         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3844         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3845         * modules/hypotl: New file.
3846         * tests/test-math-c++.cc: Check the hypotl declaration.
3847         * doc/posix-functions/hypotl.texi: Mention the new module.
3848
3849 2012-02-29  Eric Blake  <eblake@redhat.com>
3850
3851         tcgetsid: fix cygwin header bug
3852         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3853
3854         docs: update cygwin progress
3855         * doc/posix-functions/llround.texi (llround): Added in cygwin
3856         1.7.8.
3857         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3858         * doc/glibc-functions/program_invocation_name.texi
3859         (program_invocation_name): Likewise.
3860         * doc/glibc-functions/program_invocation_short_name.texi
3861         (program_invocation_short_name): Likewise.
3862         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3863         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3864         Likewise.
3865         * doc/posix-functions/pthread_spin_destroy.texi
3866         (pthread_spin_destroy): Added in cygwin 1.7.10.
3867         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3868         Likewise.
3869         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3870         Likewise.
3871         * doc/posix-functions/pthread_spin_trylock.texi
3872         (pthread_spin_trylock): Likewise.
3873         * doc/posix-functions/pthread_spin_unlock.texi
3874         (pthread_spin_unlock): Likewise.
3875         * doc/posix-functions/pthread_setschedprio.texi
3876         (pthread_setschedprio): Likewise.
3877         * doc/posix-functions/pthread_attr_getstack.texi
3878         (pthread_attr_getstack): Likewise.
3879         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3880         (pthread_attr_getstackaddr): Likewise.
3881         * doc/glibc-functions/pthread_getattr_np.texi
3882         (pthread_getattr_np): Likewise.
3883         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3884         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3885         * doc/posix-functions/clock_settime.texi (clock_settime):
3886         Likewise.
3887         * doc/posix-functions/pthread_attr_getguardsize.texi
3888         (pthread_attr_getguardsize): Likewise.
3889         * doc/posix-functions/pthread_attr_setguardsize.texi
3890         (pthread_attr_setguardsize): Likewise.
3891         * doc/posix-functions/pthread_attr_setstack.texi
3892         (pthread_attr_setstack): Likewise.
3893         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3894         (pthread_attr_setstackaddr): Likewise.
3895         * doc/posix-functions/clock_getcpuclockid.texi
3896         (clock_getcpuclockid): Likewise.
3897         * doc/posix-functions/pthread_getcpuclockid.texi
3898         (pthread_getcpuclockid): Likewise.
3899         * doc/glibc-functions/error.texi (error): Likewise.
3900         * doc/glibc-functions/error_at_line.texi (error_at_line):
3901         Likewise.
3902         * doc/glibc-functions/error_message_count.texi
3903         (error_message_count): Likewise.
3904         * doc/glibc-functions/error_one_per_line.texi
3905         (error_one_per_line): Likewise.
3906         * doc/glibc-functions/error_print_progname.texi
3907         (error_print_progname): Likewise.
3908         * doc/posix-functions/pthread_condattr_getclock.texi
3909         (pthread_condattr_getclock): Likewise.
3910         * doc/posix-functions/pthread_condattr_setclock.texi
3911         (pthread_condattr_setclock): Likewise.
3912         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3913         Likewise.
3914         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3915         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3916         * doc/glibc-functions/get_current_dir_name.texi
3917         (get_current_dir_name): Likewise.
3918         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3919         Likewise.
3920         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3921         wrong return type.
3922         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3923         1.7.11.
3924
3925 2012-02-29  Bruno Haible  <bruno@clisp.org>
3926
3927         Tests for module 'hypotf'.
3928         * modules/hypotf-tests: New file.
3929         * tests/test-hypotf.c: New file.
3930
3931         New module 'hypotf'.
3932         * lib/math.in.h (hypotf): New declaration.
3933         * lib/hypotf.c: New file.
3934         * m4/hypotf.m4: New file.
3935         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3937         REPLACE_HYPOTF.
3938         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3939         REPLACE_HYPOTF.
3940         * modules/hypotf: New file.
3941         * tests/test-math-c++.cc: Check the hypotf declaration.
3942         * doc/posix-functions/hypotf.texi: Mention the new module.
3943
3944         hypot: Prepare for hypotf module.
3945         * m4/hypot.m4: New file.
3946         * modules/hypot (Files): Add m4/hypot.m4.
3947         (configure.ac): Invoke gl_FUNC_HYPOT.
3948
3949 2012-02-29  Bruno Haible  <bruno@clisp.org>
3950
3951         hypot tests: More tests.
3952         * tests/test-hypot.c: Include <float.h>.
3953         (main): Add tests about overflow and underflow.
3954
3955 2012-02-29  Bruno Haible  <bruno@clisp.org>
3956
3957         math code: Add comments.
3958         * lib/acosl.c: Add comment about related glibc source files.
3959         * lib/asinl.c: Likewise.
3960         * lib/atanl.c: Likewise.
3961         * lib/expl.c: Likewise.
3962         * lib/logl.c: Likewise.
3963         * lib/sincosl.c: Likewise.
3964         * lib/sinl.c: Likewise.
3965         * lib/tanl.c: Likewise.
3966         * lib/trigl.c: Likewise.
3967         * lib/cosl.c: Likewise. Fix comments.
3968
3969 2012-02-28  Bruno Haible  <bruno@clisp.org>
3970
3971         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3972         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3973         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3974         HUGE_VALL are defined.
3975         (numeric_equald): Renamed from numeric_equal.
3976         (numeric_equalf, numeric_equall): New functions.
3977         (main): Check also HUGE_VALF, HUGE_VALL.
3978         * modules/math-tests (Files): Add tests/macros.h.
3979         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3980         HUGE_VALL.
3981
3982 2012-02-28  Bruno Haible  <bruno@clisp.org>
3983
3984         doc: Move ISO C11 feature notes into POSIX chapters.
3985         * doc/posix-functions/aligned_alloc.texi: Renamed from
3986         doc/glibc-functions/aligned_alloc.texi.
3987         * doc/posix-functions/quick_exit.texi: Renamed from
3988         doc/glibc-functions/quick_exit.texi.
3989         * doc/posix-headers/uchar.texi: Renamed from
3990         doc/glibc-headers/uchar.texi.
3991         * doc/posix-functions/c16rtomb.texi: Renamed from
3992         doc/glibc-functions/c16rtomb.texi.
3993         * doc/posix-functions/c32rtomb.texi: Renamed from
3994         doc/glibc-functions/c32rtomb.texi.
3995         * doc/posix-functions/mbrtoc16.texi: Renamed from
3996         doc/glibc-functions/mbrtoc16.texi.
3997         * doc/posix-functions/mbrtoc32.texi: Renamed from
3998         doc/glibc-functions/mbrtoc32.texi.
3999         * doc/gnulib.texi: Update.
4000         (Glibc uchar.h): Remove section.
4001         Suggested by Eric Blake.
4002
4003 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
4004
4005         stdnoreturn: port to MSVC better
4006         MSVC standard headers use __declspec(noreturn), so #define noreturn
4007         to empty on that platform.  Reported by Bruno Haible in
4008         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4009         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4010         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4011
4012 2012-02-28  Bruno Haible  <bruno@clisp.org>
4013
4014         doc: Mention new glibc headers and functions.
4015         * doc/glibc-headers/uchar.texi: New file.
4016         * doc/glibc-functions/aligned_alloc.texi: New file.
4017         * doc/glibc-functions/c16rtomb.texi: New file.
4018         * doc/glibc-functions/c32rtomb.texi: New file.
4019         * doc/glibc-functions/clock_adjtime.texi: New file.
4020         * doc/glibc-functions/fanotify_init.texi: New file.
4021         * doc/glibc-functions/fanotify_mark.texi: New file.
4022         * doc/glibc-functions/inet6_opt_append.texi: New file.
4023         * doc/glibc-functions/inet6_opt_find.texi: New file.
4024         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4025         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4026         * doc/glibc-functions/inet6_opt_init.texi: New file.
4027         * doc/glibc-functions/inet6_opt_next.texi: New file.
4028         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4029         * doc/glibc-functions/inet6_rth_add.texi: New file.
4030         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4031         * doc/glibc-functions/inet6_rth_init.texi: New file.
4032         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4033         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4034         * doc/glibc-functions/inet6_rth_space.texi: New file.
4035         * doc/glibc-functions/login.texi: New file.
4036         * doc/glibc-functions/mbrtoc16.texi: New file.
4037         * doc/glibc-functions/mbrtoc32.texi: New file.
4038         * doc/glibc-functions/name_to_handle_at.texi: New file.
4039         * doc/glibc-functions/ntp_gettimex.texi: New file.
4040         * doc/glibc-functions/open_by_handle_at.texi: New file.
4041         * doc/glibc-functions/prlimit.texi: New file.
4042         * doc/glibc-functions/process_vm_readv.texi: New file.
4043         * doc/glibc-functions/process_vm_writev.texi: New file.
4044         * doc/glibc-functions/recvmmsg.texi: New file.
4045         * doc/glibc-functions/scandirat.texi: New file.
4046         * doc/glibc-functions/sendmmsg.texi: New file.
4047         * doc/glibc-functions/setns.texi: New file.
4048         * doc/glibc-functions/timespec_get.texi: New file.
4049         * doc/gnulib.texi: Include them.
4050         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4051         sections.
4052         Reported by Eric Blake.
4053
4054 2012-02-28  Bruno Haible  <bruno@clisp.org>
4055
4056         Avoid compilation errors with MSVC option -fp:strict.
4057         * lib/floor.c: Use MSVC specific pragma fenv_access.
4058         * lib/ceil.c: Likewise.
4059         * lib/trunc.c: Likewise.
4060         * lib/round.c: Likewise.
4061         * lib/rint.c: Likewise.
4062         * lib/fma.c: Likewise.
4063         * lib/integer_length.c: Likewise.
4064         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4065         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4066         * tests/test-floor2.c: Likewise.
4067         * tests/test-floorf2.c: Likewise.
4068         * tests/test-ceil2.c: Likewise.
4069         * tests/test-ceilf2.c: Likewise.
4070         * tests/test-trunc2.c: Likewise.
4071         * tests/test-truncf2.c: Likewise.
4072         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4073
4074 2012-02-27  Bruno Haible  <bruno@clisp.org>
4075
4076         Tests for module 'sqrtl-ieee'.
4077         * modules/sqrtl-ieee-tests: New file.
4078         * tests/test-sqrtl-ieee.c: New file.
4079
4080         New module 'sqrtl-ieee'.
4081         * modules/sqrtl-ieee: New file.
4082
4083         Tests for module 'sqrt-ieee'.
4084         * modules/sqrt-ieee-tests: New file.
4085         * tests/test-sqrt-ieee.c: New file.
4086
4087         New module 'sqrt-ieee'.
4088         * modules/sqrt-ieee: New file.
4089
4090         Tests for module 'sqrtf-ieee'.
4091         * modules/sqrtf-ieee-tests: New file.
4092         * tests/test-sqrtf-ieee.c: New file.
4093         * tests/test-sqrt-ieee.h: New file.
4094
4095         New module 'sqrtf-ieee'.
4096         * modules/sqrtf-ieee: New file.
4097
4098 2012-02-27  Bruno Haible  <bruno@clisp.org>
4099
4100         remainderl-ieee: Work around test failure on OSF/1.
4101         * m4/remainderl-ieee.m4: New file.
4102         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4103         present, test whether remainderl works with a zero second argument.
4104         Replace it if not.
4105         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4107         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4108         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4109         (Depends-on): Update conditions.
4110         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4111         (Depends-on): Add remainder-ieee.
4112         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4113         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4114         module.
4115
4116         remainderf-ieee: Work around test failure on OSF/1.
4117         * m4/remainderf-ieee.m4: New file.
4118         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4119         present, test whether remainderf works with a zero second argument.
4120         Replace it if not.
4121         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4123         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4124         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4125         (Depends-on): Update conditions.
4126         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4127         (Depends-on): Add remainder-ieee.
4128         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4129         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4130         module.
4131
4132         remainder-ieee: Work around test failure on OSF/1.
4133         * m4/remainder-ieee.m4: New file.
4134         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4135         present, test whether remainder works with a zero second argument.
4136         Replace it if not.
4137         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4139         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4140         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4141         (Depends-on): Update dependencies.
4142         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4143         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4144         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4145
4146         Tests for module 'remainderl-ieee'.
4147         * modules/remainderl-ieee-tests: New file.
4148         * tests/test-remainderl-ieee.c: New file.
4149
4150         New module 'remainderl-ieee'.
4151         * modules/remainderl-ieee: New file.
4152
4153         Tests for module 'remainder-ieee'.
4154         * modules/remainder-ieee-tests: New file.
4155         * tests/test-remainder-ieee.c: New file.
4156
4157         New module 'remainder-ieee'.
4158         * modules/remainder-ieee: New file.
4159
4160         Tests for module 'remainderf-ieee'.
4161         * modules/remainderf-ieee-tests: New file.
4162         * tests/test-remainderf-ieee.c: New file.
4163         * tests/test-remainder-ieee.h: New file.
4164
4165         New module 'remainderf-ieee'.
4166         * modules/remainderf-ieee: New file.
4167
4168 2012-02-27  Bruno Haible  <bruno@clisp.org>
4169
4170         modff, modfl: Fix configure syntax error.
4171         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4172         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4173
4174 2012-02-27  Bruno Haible  <bruno@clisp.org>
4175
4176         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4177         * m4/fmodl-ieee.m4: New file.
4178         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4179         whether fmodl works with zero arguments. Replace it if not.
4180         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4181         (Depends-on): Add fmod-ieee.
4182         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4183         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4184
4185         fmodf-ieee: Work around test failure on OSF/1.
4186         * m4/fmodf-ieee.m4: New file.
4187         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4188         whether fmodf works with zero arguments. Replace it if not.
4189         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4191         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4192         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4193         (Depends-on): Update dependencies.
4194         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4195         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4196         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4197
4198         fmodf-ieee: Work around test failure on MSVC 9.
4199         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4200         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4201
4202         fmod-ieee: Work around test failures on OSF/1, mingw.
4203         * m4/fmod-ieee.m4: New file.
4204         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4205         whether fmod works with zero arguments. Replace it if not.
4206         * lib/math.in.h (fmod): New declaration.
4207         * lib/fmod.c: New file.
4208         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4210         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4211         * modules/fmod (Files): Add lib/fmod.c.
4212         (Depends-on): Add math, isinf, trunc, fma.
4213         (configure.ac): Arrange to compile lib/fmod.c if needed.
4214         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4215         m4/signbit.m4.
4216         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4217         * tests/test-math-c++.cc: Check the declaration of fmod.
4218         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4219
4220         fmodl-ieee: Fix test failures.
4221         * lib/fmodl.c (fmodl): Treat Inf specially.
4222         * modules/fmodl (Depends-on): Add isinf.
4223
4224         Tests for module 'fmodl-ieee'.
4225         * modules/fmodl-ieee-tests: New file.
4226         * tests/test-fmodl-ieee.c: New file.
4227
4228         New module 'fmodl-ieee'.
4229         * modules/fmodl-ieee: New file.
4230
4231         Tests for module 'fmod-ieee'.
4232         * modules/fmod-ieee-tests: New file.
4233         * tests/test-fmod-ieee.c: New file.
4234
4235         New module 'fmod-ieee'.
4236         * modules/fmod-ieee: New file.
4237
4238         Tests for module 'fmodf-ieee'.
4239         * modules/fmodf-ieee-tests: New file.
4240         * tests/test-fmodf-ieee.c: New file.
4241         * tests/test-fmod-ieee.h: New file.
4242
4243         New module 'fmodf-ieee'.
4244         * modules/fmodf-ieee: New file.
4245
4246 2012-02-27  Bruno Haible  <bruno@clisp.org>
4247
4248         Tests for module 'rintl-ieee'.
4249         * modules/rintl-ieee-tests: New file.
4250         * tests/test-rintl-ieee.c: New file.
4251
4252         New module 'rintl-ieee'.
4253         * modules/rintl-ieee: New file.
4254
4255         Tests for module 'rint-ieee'.
4256         * modules/rint-ieee-tests: New file.
4257         * tests/test-rint-ieee.c: New file.
4258
4259         New module 'rint-ieee'.
4260         * modules/rint-ieee: New file.
4261
4262         Tests for module 'rintf-ieee'.
4263         * modules/rintf-ieee-tests: New file.
4264         * tests/test-rintf-ieee.c: New file.
4265         * tests/test-rint-ieee.h: New file.
4266
4267         New module 'rintf-ieee'.
4268         * modules/rintf-ieee: New file.
4269
4270 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4271
4272         regex: re_search etc. should return -2 when memory exhausted
4273         This bug was uncovered when testing 'grep'.  Without the fix,
4274         re_search and friends return -1 when memory is exhausted, but -1
4275         means no match, and this causes grep to falsely report no-match
4276         instead of memory-exhaustion.  See
4277         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4278         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4279         trouble; this can occur if re_search_internal ran out of memory.
4280
4281 2012-02-26  Bruno Haible  <bruno@clisp.org>
4282
4283         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4284         * m4/modfl-ieee.m4: New file.
4285         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4286         whether modfl works with Inf. Replace it if not.
4287         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4289         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4290         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4291         (Depends-on): Update dependencies.
4292         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4293         m4/signbit.m4.
4294         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4295         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4296
4297         modfl-ieee: Fix dependencies.
4298         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4299
4300         modfl-ieee: Fix test failures.
4301         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4302         * modules/modfl (Depends-on): Add isfinite, isinf.
4303
4304         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4305         * m4/modff-ieee.m4: New file.
4306         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4307         whether modff works with NaN and Inf. Replace it if not.
4308         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4310         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4311         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4312         (Depends-on): Update dependencies.
4313         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4314         m4/signbit.m4.
4315         (Depends-on): Add modf-ieee.
4316         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4317         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4318
4319         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4320         * m4/modf-ieee.m4: New file.
4321         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4322         whether modf works with NaN and Inf. Replace it if not.
4323         * lib/math.in.h (modf): New declaration.
4324         * lib/modf.c: New file.
4325         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4326         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4327         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4328         * modules/modf (Files): Add lib/modf.c.
4329         (Depends-on): Add math, isfinite, trunc, isinf.
4330         (configure.ac): Addrange to compile lib/modf.c if needed.
4331         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4332         m4/signbit.m4.
4333         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4334         * tests/test-math-c++.cc: Check the declaration of modf.
4335         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4336
4337         Tests for module 'modfl-ieee'.
4338         * modules/modfl-ieee-tests: New file.
4339         * tests/test-modfl-ieee.c: New file.
4340
4341         New module 'modfl-ieee'.
4342         * modules/modfl-ieee: New file.
4343
4344         Tests for module 'modf-ieee'.
4345         * modules/modf-ieee-tests: New file.
4346         * tests/test-modf-ieee.c: New file.
4347
4348         New module 'modf-ieee'.
4349         * modules/modf-ieee: New file.
4350
4351         Tests for module 'modff-ieee'.
4352         * modules/modff-ieee-tests: New file.
4353         * tests/test-modff-ieee.c: New file.
4354         * tests/test-modf-ieee.h: New file.
4355
4356         New module 'modff-ieee'.
4357         * modules/modff-ieee: New file.
4358
4359 2012-02-26  Bruno Haible  <bruno@clisp.org>
4360
4361         Tests for module 'fabsl-ieee'.
4362         * modules/fabsl-ieee-tests: New file.
4363         * tests/test-fabsl-ieee.c: New file.
4364
4365         New module 'fabsl-ieee'.
4366         * modules/fabsl-ieee: New file.
4367
4368         Tests for module 'fabs-ieee'.
4369         * modules/fabs-ieee-tests: New file.
4370         * tests/test-fabs-ieee.c: New file.
4371
4372         New module 'fabs-ieee'.
4373         * modules/fabs-ieee: New file.
4374
4375         Tests for module 'fabsf-ieee'.
4376         * modules/fabsf-ieee-tests: New file.
4377         * tests/test-fabsf-ieee.c: New file.
4378         * tests/test-fabs-ieee.h: New file.
4379
4380         New module 'fabsf-ieee'.
4381         * modules/fabsf-ieee: New file.
4382
4383 2012-02-26  Bruno Haible  <bruno@clisp.org>
4384
4385         Tests for module 'fmal-ieee'.
4386         * modules/fmal-ieee-tests: New file.
4387         * tests/test-fmal-ieee.c: New file.
4388
4389         New module 'fmal-ieee'.
4390         * modules/fmal-ieee: New file.
4391
4392         Tests for module 'fma-ieee'.
4393         * modules/fma-ieee-tests: New file.
4394         * tests/test-fma-ieee.c: New file.
4395
4396         New module 'fma-ieee'.
4397         * modules/fma-ieee: New file.
4398
4399         Tests for module 'fmaf-ieee'.
4400         * modules/fmaf-ieee-tests: New file.
4401         * tests/test-fmaf-ieee.c: New file.
4402         * tests/test-fma-ieee.h: New file.
4403
4404         New module 'fmaf-ieee'.
4405         * modules/fmaf-ieee: New file.
4406
4407 2012-02-26  Bruno Haible  <bruno@clisp.org>
4408
4409         Tests for module 'ldexpl-ieee'.
4410         * modules/ldexpl-ieee-tests: New file.
4411         * tests/test-ldexpl-ieee.c: New file.
4412
4413         New module 'ldexpl-ieee'.
4414         * modules/ldexpl-ieee: New file.
4415
4416         Tests for module 'ldexp-ieee'.
4417         * modules/ldexp-ieee-tests: New file.
4418         * tests/test-ldexp-ieee.c: New file.
4419
4420         New module 'ldexp-ieee'.
4421         * modules/ldexp-ieee: New file.
4422
4423         Tests for module 'ldexpf-ieee'.
4424         * modules/ldexpf-ieee-tests: New file.
4425         * tests/test-ldexpf-ieee.c: New file.
4426         * tests/test-ldexp-ieee.h: New file.
4427
4428         New module 'ldexpf-ieee'.
4429         * modules/ldexpf-ieee: New file.
4430
4431 2012-02-26  Bruno Haible  <bruno@clisp.org>
4432
4433         Refactor frexp*-ieee tests.
4434         * tests/test-frexp-ieee.h: New file.
4435         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4436         (main): Just call test_function.
4437         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4438         (main): Just call test_function.
4439         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4440         (main): Just call test_function.
4441         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4442         * modules/frexp-ieee-tests (Files): Likewise.
4443         * modules/frexpl-ieee-tests (Files): Likewise.
4444
4445         Tests for module 'frexpl-ieee'.
4446         * modules/frexpl-ieee-tests: New file.
4447         * tests/test-frexpl-ieee.c: New file.
4448
4449         New module 'frexpl-ieee'.
4450         * modules/frexpl-ieee: New file.
4451
4452         Tests for module 'frexp-ieee'.
4453         * modules/frexp-ieee-tests: New file.
4454         * tests/test-frexp-ieee.c: New file.
4455
4456         New module 'frexp-ieee'.
4457         * modules/frexp-ieee: New file.
4458
4459         Tests for module 'frexpf-ieee'.
4460         * modules/frexpf-ieee-tests: New file.
4461         * tests/test-frexpf-ieee.c: New file.
4462
4463         New module 'frexpf-ieee'.
4464         * modules/frexpf-ieee: New file.
4465
4466 2012-02-26  Bruno Haible  <bruno@clisp.org>
4467
4468         roundl-ieee tests: More tests.
4469         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4470         (main): Add tests for [MX] shaded specification in POSIX.
4471         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4472         (Depends-on): Add isnanl-nolibm.
4473
4474         round-ieee tests: More tests.
4475         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4476         (main): Add tests for [MX] shaded specification in POSIX.
4477         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4478         (Depends-on): Add isnand-nolibm.
4479
4480         roundf-ieee tests: More tests.
4481         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4482         (main): Add tests for [MX] shaded specification in POSIX.
4483         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4484         (Depends-on): Add isnanf-nolibm.
4485
4486         truncl-ieee tests: More tests.
4487         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4488         (main): Add tests for [MX] shaded specification in POSIX.
4489         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4490         (Depends-on): Add isnanl-nolibm.
4491
4492         trunc-ieee tests: More tests.
4493         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4494         (main): Add tests for [MX] shaded specification in POSIX.
4495         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4496         (Depends-on): Add isnand-nolibm.
4497
4498         truncf-ieee tests: More tests.
4499         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4500         (main): Add tests for [MX] shaded specification in POSIX.
4501         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4502         (Depends-on): Add isnanf-nolibm.
4503
4504         ceill-ieee tests: More tests.
4505         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4506         (main): Add tests for [MX] shaded specification in POSIX.
4507         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4508         (Depends-on): Add isnanl-nolibm.
4509
4510         ceil-ieee tests: More tests.
4511         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4512         (main): Add tests for [MX] shaded specification in POSIX.
4513         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4514         (Depends-on): Add isnand-nolibm.
4515
4516         ceilf-ieee tests: More tests.
4517         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4518         (main): Add tests for [MX] shaded specification in POSIX.
4519         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4520         (Depends-on): Add isnanf-nolibm.
4521
4522         floorl-ieee tests: More tests.
4523         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4524         (main): Add tests for [MX] shaded specification in POSIX.
4525         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4526         (Depends-on): Add isnanl-nolibm.
4527
4528         floor-ieee tests: More tests.
4529         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4530         (main): Add tests for [MX] shaded specification in POSIX.
4531         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4532         (Depends-on): Add isnand-nolibm.
4533
4534         floorf-ieee tests: More tests.
4535         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4536         (main): Add tests for [MX] shaded specification in POSIX.
4537         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4538         (Depends-on): Add isnanf-nolibm.
4539
4540 2012-02-26  Bruno Haible  <bruno@clisp.org>
4541
4542         fpieee: More comments.
4543         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4544
4545 2012-02-25  Bruno Haible  <bruno@clisp.org>
4546
4547         Tests for module 'log10l'.
4548         * modules/log10l-tests: New file.
4549         * tests/test-log10l.c: New file.
4550         * tests/test-math-c++.cc: Check the declaration of log10l.
4551
4552         New module 'log10l'.
4553         * lib/math.in.h (log10l): New declaration.
4554         * lib/log10l.c: New file.
4555         * m4/log10l.m4: New file.
4556         * modules/log10l: New file.
4557         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4559         HAVE_DECL_LOG10L.
4560         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4561         HAVE_DECL_LOG10L.
4562         * doc/posix-functions/log10l.texi: Mention the new module.
4563
4564 2012-02-25  Bruno Haible  <bruno@clisp.org>
4565
4566         fmodl, remainder*: Avoid wrong results due to rounding errors.
4567         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4568         expected bounds.
4569         * lib/remainderf.c (remainderf): Likewise.
4570         * lib/remainder.c (remainder): Likewise.
4571         * lib/remainderl.c (remainderl): Likewise.
4572
4573 2012-02-25  Bruno Haible  <bruno@clisp.org>
4574
4575         Tests for module 'remainderl'.
4576         * modules/remainderl-tests: New file.
4577         * tests/test-remainderl.c: New file.
4578         * tests/test-math-c++.cc: Check the declaration of remainderl.
4579
4580         New module 'remainderl'.
4581         * lib/math.in.h (remainderl): New declaration.
4582         * lib/remainderl.c: New file.
4583         * m4/remainderl.m4: New file.
4584         * modules/remainderl: New file.
4585         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4587         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4588         HAVE_REMAINDERL.
4589         * doc/posix-functions/remainderl.texi: Mention the new module.
4590
4591 2012-02-25  Bruno Haible  <bruno@clisp.org>
4592
4593         Tests for module 'remainderf'.
4594         * modules/remainderf-tests: New file.
4595         * tests/test-remainderf.c: New file.
4596         * tests/test-math-c++.cc: Check the declaration of remainderf.
4597
4598         New module 'remainderf'.
4599         * lib/math.in.h (remainderf): New declaration.
4600         * lib/remainderf.c: New file.
4601         * m4/remainderf.m4: New file.
4602         * modules/remainderf: New file.
4603         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4604         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4605         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4606         HAVE_REMAINDERF.
4607         * doc/posix-functions/remainderf.texi: Mention the new module.
4608
4609 2012-02-25  Bruno Haible  <bruno@clisp.org>
4610
4611         remainder: Support for MSVC.
4612         * lib/math.in.h (remainder): New declaration.
4613         * lib/remainder.c: New file.
4614         * m4/remainder.m4: New file.
4615         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4616         (Depends-on): Add math, round, fma.
4617         (configure.ac): Use results of gl_FUNC_REMAINDER.
4618         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4620         HAVE_DECL_REMAINDER.
4621         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4622         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4623         * tests/test-math-c++.cc: Check the declaration of remainder.
4624         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4625         problems are fixed.
4626
4627 2012-02-25  Bruno Haible  <bruno@clisp.org>
4628
4629         Tests for module 'fmodl'.
4630         * modules/fmodl-tests: New file.
4631         * tests/test-fmodl.c: New file.
4632         * tests/test-math-c++.cc: Check the declaration of fmodl.
4633
4634         New module 'fmodl'.
4635         * lib/math.in.h (fmodl): New declaration.
4636         * lib/fmodl.c: New file.
4637         * m4/fmodl.m4: New file.
4638         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4640         REPLACE_FMODL.
4641         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4642         REPLACE_FMODL.
4643         * modules/fmodl: New file.
4644         * doc/posix-functions/fmodl.texi: Mention the new module.
4645
4646 2012-02-25  Bruno Haible  <bruno@clisp.org>
4647
4648         Tests for module 'modfl'.
4649         * modules/modfl-tests: New file.
4650         * tests/test-modfl.c: New file.
4651         * tests/test-math-c++.cc: Check the declaration of modfl.
4652
4653         New module 'modfl'.
4654         * lib/math.in.h (modfl): New declaration.
4655         * lib/modfl.c: New file.
4656         * m4/modfl.m4: New file.
4657         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4659         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4660         * modules/modfl: New file.
4661         * doc/posix-functions/modfl.texi: Mention the new module.
4662
4663 2012-02-25  Bruno Haible  <bruno@clisp.org>
4664
4665         Tests for module 'fabsl'.
4666         * modules/fabsl-tests: New file.
4667         * tests/test-fabsl.c: New file.
4668         * tests/test-math-c++.cc: Check the declaration of fabsl.
4669
4670         New module 'fabsl'.
4671         * lib/math.in.h (fabsl): New declaration.
4672         * lib/fabsl.c: New file.
4673         * m4/fabsl.m4: New file.
4674         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4675         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4676         REPLACE_FABSL.
4677         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4678         REPLACE_FABSL.
4679         * modules/fabsl: New file.
4680         * doc/posix-functions/fabsl.texi: Mention the new module.
4681
4682 2012-02-25  Bruno Haible  <bruno@clisp.org>
4683
4684         fabs tests: More tests.
4685         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4686         (zero): New variable.
4687         (main): Add tests for signed zero.
4688         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4689
4690         fabsf tests: More tests.
4691         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4692         (zero): New variable.
4693         (main): Add tests for signed zero.
4694         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4695
4696 2012-02-24  Bruno Haible  <bruno@clisp.org>
4697
4698         atanl: Provide function definition on MSVC.
4699         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4700         function pointer.
4701         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4702
4703 2012-02-24  Bruno Haible  <bruno@clisp.org>
4704
4705         acosl: Provide function definition on MSVC.
4706         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4707         function pointer.
4708         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4709
4710 2012-02-24  Bruno Haible  <bruno@clisp.org>
4711
4712         asinl: Provide function definition on MSVC.
4713         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4714         function pointer.
4715         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4716
4717 2012-02-24  Bruno Haible  <bruno@clisp.org>
4718
4719         tanl: Provide function definition on MSVC.
4720         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4721         function pointer.
4722         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4723
4724 2012-02-24  Bruno Haible  <bruno@clisp.org>
4725
4726         cosl: Provide function definition on MSVC.
4727         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4728         function pointer.
4729         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4730
4731 2012-02-24  Bruno Haible  <bruno@clisp.org>
4732
4733         sinl: Provide function definition on MSVC.
4734         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4735         function pointer.
4736         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4737
4738 2012-02-24  Bruno Haible  <bruno@clisp.org>
4739
4740         logl: Provide function definition on MSVC.
4741         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4742         function pointer.
4743         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4744
4745 2012-02-24  Bruno Haible  <bruno@clisp.org>
4746
4747         expl: Provide function definition on MSVC.
4748         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4749         function pointer.
4750         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4751
4752 2012-02-24  Bruno Haible  <bruno@clisp.org>
4753
4754         sqrtl: Provide function definition on MSVC.
4755         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4756         a function pointer.
4757         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4758
4759 2012-02-24  Bruno Haible  <bruno@clisp.org>
4760
4761         ceill: Provide function definition on MSVC.
4762         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4763         used as a function pointer.
4764         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4765
4766 2012-02-24  Bruno Haible  <bruno@clisp.org>
4767
4768         floorl: Provide function definition on MSVC.
4769         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4770         used as a function pointer.
4771         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4772
4773 2012-02-24  Bruno Haible  <bruno@clisp.org>
4774
4775         ceilf: Provide function definition on MSVC.
4776         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4777         used as a function pointer.
4778         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4779
4780 2012-02-24  Bruno Haible  <bruno@clisp.org>
4781
4782         floorf: Provide function definition on MSVC.
4783         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4784         used as a function pointer.
4785         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4786
4787 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4788
4789         stdnoreturn: new module
4790         This implements a replacement for C11's <stdnoreturn.h>.
4791         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4792         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4793         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4794         * tests/test-stdnoreturn.c: New files.
4795
4796 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4797
4798         regex: fix false multibyte matches in some regular expressions
4799         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4800         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4801         * lib/regex_internal.c (re_string_skip_chars):
4802         Fix miscomputation of remain_len that may cause incomplete
4803         multi-byte character and false match.
4804
4805 2012-02-24  Jim Meyering  <meyering@redhat.com>
4806
4807         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4808         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4809         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4810         Remove now-unnecessary str''cmp obfuscation.
4811         Suggested by Akim Demaille.
4812
4813 2012-02-24  Bruno Haible  <bruno@clisp.org>
4814
4815         streq: Rename macro.
4816         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4817         * NEWS: Mention the change.
4818         * lib/mbrtowc.c (mbrtowc): Update.
4819         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4820         * lib/wcwidth.c (wcwidth): Update.
4821         Suggested by Akim Demaille and Jim Meyering.
4822
4823 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4824
4825         regex: fix typo in definition of MIN
4826         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4827         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4828
4829 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4830             Bruno Haible  <bruno@clisp.org>
4831
4832         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4833         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4834         entries into a stack-allocated buffer directly.
4835         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4836
4837 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4838             Bruno Haible  <bruno@clisp.org>
4839
4840         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4841
4842          - There were several instances of this pattern:
4843
4844              for (;;) {
4845                n = acl (f, GETACLCNT, 0, NULL);
4846                [ allocate an array A of size N ]
4847                if (acl (f, GETACL, n, a) == n)
4848                  break;
4849              }
4850
4851            This loop might never terminate if some other process is constantly
4852            manipulating the file's ACL.  The loop should be rewritten to
4853            terminate.
4854
4855          - The acl (... GETACLNT ...) call is merely an optimization; its value
4856            is merely a hint as to how big to make the array.  A better
4857            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4858            and just guess a reasonably-big size, growing the size and trying
4859            again if it's not large enough.  This guarantees termination, and
4860            saves a system call.
4861
4862         * lib/acl-internal.h: Include <limits.h>.
4863         (MIN, SIZE_MAX): New macros.
4864         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4865         a stack-allocated buffer, and use malloc if it does not fit. Don't
4866         use GETACLCNT.
4867         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4868
4869 2012-02-19  Bruno Haible  <bruno@clisp.org>
4870
4871         acl: Fix endless loop on Solaris with vxfs.
4872         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4873         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4874         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4875         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4876         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4877         Reported by Bill Jones in
4878         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4879
4880 2012-02-19  Bruno Haible  <bruno@clisp.org>
4881
4882         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4883         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4884         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4885         that this function returns 0 in some more cases.
4886
4887 2012-02-19  Bruno Haible  <bruno@clisp.org>
4888
4889         acl: Update doc references.
4890         * doc/acl-resources.txt: Update links to Solaris documentation.
4891
4892 2012-02-19  Bruno Haible  <bruno@clisp.org>
4893
4894         Fix test failure in many locales on Solaris 11.
4895         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4896         'tr' arguments.
4897         * tests/test-pipe-filter-ii1.c (main): Likewise.
4898         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4899         expressions in the C locale.
4900         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4901         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4902
4903 2012-02-19  Bruno Haible  <bruno@clisp.org>
4904
4905         gnulib-tool: Improve usage message.
4906         * gnulib-tool (func_usage): Move doc of --help and --version to the
4907         section "Operation modes".
4908
4909 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4910
4911         README-release: make it easier to execute commands
4912         * top/README-release: break commands out on to separate lines.
4913
4914 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4915
4916         GNUmakefile: simplify detection of unconfigured trees
4917         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4918         whether the tree make is being run from is already configured or
4919         not.  Related simplifications.
4920
4921 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4922
4923         * gnulib-tool (func_usage): Document --help and --version.
4924
4925 2012-02-11  Jim Meyering  <meyering@redhat.com>
4926
4927         bootstrap: don't exit 0 upon gnulib-tool failure
4928         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4929         its exit status, not 0.
4930
4931 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4932
4933         README-release: various improvements
4934         * top/README-release: Give a command to push changes for the
4935         release.  Add "distcheck" to list of other pre-release checks.
4936         Fix instance of "make stable" which should be "make TYPE".
4937
4938 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4939
4940         maint: replace FSF snail-mail addresses with URLs
4941         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4942         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4943         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4944         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4945         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4946         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4947         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4948         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4949         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4950         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4951         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4952         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4953         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4954         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4955         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4956         * lib/glthread/thread.c, lib/glthread/thread.h:
4957         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4958         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4959         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4960         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4961         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4962         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4963         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4964         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4965         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4966         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4967         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4968         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4969         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4970         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4971         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4972         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4973         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4974         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4975         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4976         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4977         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4978         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4979         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4980         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4981         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4982         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4983         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4984         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4985         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4986         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4987         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4988         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4989         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4990         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4991         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4992         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4993         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4994         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4995         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4996         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4997         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4998         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4999         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
5000         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
5001         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
5002         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
5003         * tests/test-poll.c, tests/test-quotearg-simple.c:
5004         * tests/test-quotearg.c, tests/test-quotearg.h:
5005         * tests/test-round-ieee.c, tests/test-round1.c:
5006         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
5007         * tests/test-roundl-ieee.c, tests/test-roundl.c:
5008         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5009         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5010         * tests/test-strerror.c, tests/test-strerror_r.c:
5011         * tests/test-strsignal.c, tests/test-strverscmp.c:
5012         * tests/test-xmemdup0.c:
5013         Replace FSF snail mail addresses with URLs, as per GNU coding
5014         standards.  See glibc bug
5015         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5016
5017 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5018
5019         README-release: capitalize a word and split a line
5020         * top/README-release: Fix punctuation and spacing.
5021
5022 2012-02-08  Akim Demaille  <demaille@gostai.com>
5023
5024         fatal-signal: use C prototypes (with explicit void).
5025         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5026         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5027
5028 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5029
5030         regex: spelling fix
5031         * lib/regexec.c: spelling fix
5032
5033         regex: rely on stdint.h for SIZE_MAX
5034         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5035
5036 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5037
5038         regex: merge glibc changes
5039
5040         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5041         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5042         (init_word_char): Work even if bitset words are not exactly 32 or
5043         64 bits wide.  Don't assume there are no padding bits.
5044         * lib/regex.c [_LIBC]: Do not include <config.h>.
5045         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5046         and -Wtype-limits.
5047         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5048         needless disagreement with glibc.  All uses changed.  Define it to
5049         1 only if _GNU_SOURCE, to match glibc.
5050         (_REG_RM_NAME): Remove; no longer needed, since the names in
5051         question are now all protected by __USE_GNU.
5052         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5053         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5054         * lib/regex_internal.h (MIN): New macro.
5055
5056         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5057         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5058
5059         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5060         * lib/regex_internal.c (re_string_fetch_byte_case):
5061         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5062         is miscompiled, and it turns out it is because of an incorrect
5063         attribute on re_string_fetch_byte_case.  Unlike
5064         re_string_peek_byte_case, this one is really not pure, it modifies
5065         memory (increments pstr->cur_idx), and with the pure attribute GCC
5066         assumed it doesn't and it cached the presumed value of
5067         regexp->cur_idx in a variable across the
5068          for (;; ++i)
5069            {
5070              if (i >= BRACKET_NAME_BUF_SIZE)
5071                return REG_EBRACK;
5072              if (token->type == OP_OPEN_CHAR_CLASS)
5073                ch = re_string_fetch_byte_case (regexp);
5074              else
5075                ch = re_string_fetch_byte (regexp);
5076              if (re_string_eoi(regexp))
5077                return REG_EBRACK;
5078              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5079                break;
5080              elem->opr.name[i] = ch;
5081            }
5082
5083         2011-11-29 Andreas Schwab <schwab@redhat.com>
5084         * lib/regcomp.c (build_equiv_class):
5085         Fix access after end of search string in regex matcher.
5086
5087         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5088         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5089
5090         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5091         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5092
5093         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5094         * lib/regcomp.c (parse_branch, parse_sub_exp):
5095         More regex memory leak fixes and tests.
5096         (parse_sub_exp, parse_bracket_exp):
5097         Fix memory leak for some invalid regular expressions.
5098
5099         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5100         * lib/regex_internal.c, lib/regexec.c:
5101         Fix unnecessary overallocation due to incomplete character.  When
5102         incomplete characters are found at the end of a string the code
5103         ran amok and allocated lots of memory.  Stricter limits are now in
5104         place.
5105
5106         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5107         * lib/regex.h: Update documentation.
5108
5109         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5110         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5111
5112         2010-05-05 Andreas Schwab <schwab@redhat.com>
5113         * lib/regexec.c (find_collation_sequence_value):
5114         Fix lookup of collation sequence value during regexp matching.
5115
5116         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5117         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5118
5119         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5120         * lib/regex.h: Cleanup namespace.
5121
5122         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5123         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5124
5125         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5126         * lib/regex_internal.h: Prevent some declarations and definitions
5127         to be seen when used in tests.
5128
5129         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5130         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5131         __libc_lock_* macros if not _LIBC.
5132         (struct re_dfa_t): Add lock.
5133
5134 2012-02-07  Eric Blake  <eblake@redhat.com>
5135
5136         maint.mk: also prohibit lower-case @var@
5137         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5138         lower case, like @top_srcdir@.
5139
5140 2012-02-04  Eric Blake  <eblake@redhat.com>
5141
5142         canonicalize: avoid uninitialized memory use
5143         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5144         random '/' left in dest.
5145         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5146
5147 2012-02-04  Bruno Haible  <bruno@clisp.org>
5148
5149         isatty: Fix test failure of ptsname_r on native Windows.
5150         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5151         and don't set errno.
5152         (isatty): Test first whether fd is valid. Set errno when returning 0.
5153
5154 2012-02-04  Bruno Haible  <bruno@clisp.org>
5155
5156         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5157         * tests/test-spawn-pipe-main.c: Include progname.h.
5158         (main): Invoke set_program_name.
5159         * modules/spawn-pipe-tests (Depends-on): Add progname.
5160
5161         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5162         * tests/test-nonblocking-socket-main.c: Include progname.h.
5163         (main): Invoke set_program_name.
5164         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5165
5166         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5167         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5168         (main): Invoke set_program_name.
5169         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5170
5171 2012-02-04  Eric Blake  <eblake@redhat.com>
5172
5173         canonicalize-lgpl: fix // handling
5174         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5175
5176         canonicalize: fix // handling
5177         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5178         /// to //, since only // is special.
5179
5180 2012-02-04  Bruno Haible  <bruno@clisp.org>
5181
5182         ioctl: Fix test failure on native Windows.
5183         * lib/ioctl.c: Include msvc-nothrow.h.
5184         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5185
5186 2012-02-04  Bruno Haible  <bruno@clisp.org>
5187
5188         fsync: Avoid test failure on native Windows.
5189         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5190         read-only.
5191
5192 2012-02-04  Bruno Haible  <bruno@clisp.org>
5193
5194         sys_select: Avoid syntax error on OpenBSD 5.0.
5195         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5196         currently being included, just include the system's <sys/select.h>.
5197
5198 2012-02-04  Bruno Haible  <bruno@clisp.org>
5199
5200         sys_select: Avoid syntax error on OpenBSD 5.0.
5201         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5202         <sys/select.h>, not before.
5203         Reported by Jiri B <jirib@devio.us>.
5204
5205 2012-02-04  Bruno Haible  <bruno@clisp.org>
5206
5207         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5208         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5209         global variables.
5210         * tests/test-get-rusage-data.c (main): Likewise.
5211         Reported by Jim Meyering.
5212
5213 2012-02-04  Bruno Haible  <bruno@clisp.org>
5214
5215         stdioext: Fix last commit.
5216         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5217
5218 2012-02-03  Bruno Haible  <bruno@clisp.org>
5219
5220         stdioext: Add tentative support for Plan9.
5221         * lib/stdio-impl.h: Include <errno.h>.
5222         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5223         * lib/freadable.c (freadable): Likewise.
5224         * lib/fwritable.c (fwritable): Likewise.
5225         * lib/fbufmode.c (fbufmode): Likewise.
5226         * lib/freading.c (freading): Likewise.
5227         * lib/fwriting.c (fwriting): Likewise.
5228         * lib/freadptr.c (freadptr): Likewise.
5229         * lib/freadseek.c (freadptrinc): Likewise.
5230         * lib/freadahead.c (freadahead): Likewise.
5231         * lib/fpurge.c (fpurge): Likewise.
5232         * lib/fseeko.c (rpl_fseeko): Likewise.
5233         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5234         Reported by Jens Staal <staal1978@gmail.com>.
5235
5236 2012-02-02  Jim Meyering  <meyering@redhat.com>
5237
5238         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5239         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5240         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5241         not even to try to add the attribute.  Instead, add a pragma to suppress
5242         the suggestion/warning.
5243
5244 2012-01-31  Karl Berry  <karl@gnu.org>
5245
5246         setstate doc: typo.
5247         * doc/posix-functions/setstate.texi (setstate): { not (.
5248
5249 2012-01-31  Bruno Haible  <bruno@clisp.org>
5250
5251         popen: Make more robust on Windows.
5252         * lib/popen.c: On native Windows, use the _popen based code even if
5253         HAVE_POPEN is set.
5254         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5255         environment variable on native Windows.
5256
5257 2012-01-30  Bruno Haible  <bruno@clisp.org>
5258
5259         pclose: Fix typo.
5260         * lib/stdio.in.h (pclose): Fix typo in warning message.
5261
5262 2012-01-30  Bruno Haible  <bruno@clisp.org>
5263
5264         doc about getlogin_r, setstate.
5265         * doc/posix-functions/getlogin_r.texi: List the incompatible
5266         declaration problem under "not fixed by gnulib".
5267         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5268         problem on Solaris 11 and other platforms.
5269
5270 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5271             Bruno Haible  <bruno@clisp.org>
5272
5273         poll tests: Make test more robust.
5274         * tests/test-poll.c: Include macros.h.
5275         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5276         return value of various I/O operations.
5277         * modules/poll-tests (Files): Add tests/macros.h.
5278
5279 2012-01-30  Bruno Haible  <bruno@clisp.org>
5280
5281         sys_stat: Fix support for mingw64 and MSVC.
5282         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5283         header files already do it.
5284         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5285         stat itself.
5286         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5287
5288 2012-01-30  Bruno Haible  <bruno@clisp.org>
5289
5290         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5292         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5293
5294 2012-01-29  Bruno Haible  <bruno@clisp.org>
5295
5296         quotearg: Fix test failure on MacOS X 10.5.
5297         * tests/test-quotearg-simple.c: Include localcharset.h.
5298         (main): If the locale encoding is not ASCII, bypass the tests of
5299         locale_quoting_style and clocale_quoting_style.
5300         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5301
5302 2012-01-29  Jim Meyering  <meyering@redhat.com>
5303
5304         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5305         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5306         detect uses of canonicalize_file_name.
5307
5308 2012-01-28  Bruno Haible  <bruno@clisp.org>
5309
5310         test-framework-sh: Fix test failure with AIX 7.1 diff.
5311         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5312         in column 1, like 'diff -c' does.
5313         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5314         whether 'diff -u' is used. Instead, test whether the output contains
5315         some '@' character.
5316
5317 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5318
5319         strtoimax: eliminate need for stdint.h, inttypes.h checks
5320         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5321         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5322         the prerequisites for a recently-introduced strtoimax test.
5323         I guess this might cause strtoimax to be replaced when not
5324         strictly necessary on older hosts, but this shouldn't introduce
5325         any bugs and it should make Emacs 'configure' faster on typical
5326         modern hosts.  Problem discovered when importing the latest gnulib
5327         to an Emacs test version.
5328         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5329
5330 2012-01-28  Bruno Haible  <bruno@clisp.org>
5331
5332         sys_time: Override 'struct timeval' on some native Windows platforms.
5333         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5334         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5335         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5336         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5337         needs to be overridden.
5338         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5339         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5340         * tests/test-sys_select.c: Check that the tv_sec member has the same
5341         size as a 'time_t'.
5342         * tests/test-sys_time.c: Likewise.
5343         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5344         is set, set also REPLACE_GETTIMEOFDAY.
5345         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5346         convert the resulting 'struct timeval' before returning.
5347         * lib/select.c: Include <sys/time.h>.
5348         (select, timeval): Undefine at the right place.
5349         * modules/select (Depends-on): Add sys_time.
5350         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5351         some Windows platforms.
5352         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5353
5354 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5355
5356         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5357         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5358         an integer.
5359         * lib/fcntl.c (dupfd): Likewise.
5360         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5361
5362 2012-01-28  Bruno Haible  <bruno@clisp.org>
5363
5364         fcntl: Avoid compilation error on native Windows.
5365         * modules/fcntl (Depends-on): Add 'close'.
5366
5367 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5368
5369         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5370         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5371         pointer to an integer.
5372         * lib/poll.c (IsConsoleHandle): Likewise.
5373         * lib/isatty.c (IsConsoleHandle): Likewise.
5374
5375 2012-01-28  Jim Meyering  <meyering@redhat.com>
5376
5377         doc: clarify README-release
5378         * top/README-release: Clarify: you should make a point to have
5379         the latest stable versions of build tools in your PATH, and the
5380         reference to buildreq is solely for its list of tool names, not
5381         for its minimal-functional version numbers.
5382         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5383
5384         maint.mk: use more readable (yet functionally equivalent) quoting
5385         It is common to quote a single quote in a single quoted string like
5386         this:  '...'\''...'.  Unless you know the idiom, that looks like
5387         gibberish, so prefer to double-quote the string when possible.
5388         Then you can use a more readable, lone single quote: "...'..."
5389         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5390         "don't" is more readable than the equivalent 'don'\''t'.
5391         (sc_cast_of_x_alloc_return_value): Likewise.
5392         (sc_cast_of_alloca_return_value): Likewise.
5393         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5394         rather than '\'':'\''.
5395
5396 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5397
5398         stdalign: relax _Alignof and tighten _Alignas test
5399         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5400         as it was too strict: alignof must divide offsetof, but it need
5401         not equal offsetof.  Inspired by Joseph S. Myers's comment
5402         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5403         Conversely, tighten the _Alignas test a bit, as the resulting
5404         alignment must be exactly 8.
5405
5406 2012-01-27  Bruno Haible  <bruno@clisp.org>
5407
5408         stdalign: Document the last change.
5409         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5410
5411 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5412
5413         stdalign: check that alignof and offsetof are consistent
5414         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5415         Problem reported for gnulib by Richard W.M. Jones in
5416         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5417
5418 2012-01-27  Jim Meyering  <meyering@redhat.com>
5419
5420         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5421         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5422         convert a sequence with gaps to the minimal containing range.
5423         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5424         * tests/test-update-copyright.sh: Test for this.
5425         The FSF confirmed it is ok to do this, assuming there is at
5426         least one significant change per year in the affected range:
5427         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5428
5429 2012-01-26  Bruno Haible  <bruno@clisp.org>
5430
5431         pipe2: refine doc about thread-safety
5432         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5433         multithread-safety problem.
5434         * doc/glibc-functions/accept4.texi: Likewise.
5435
5436 2012-01-26  Bruno Haible  <bruno@clisp.org>
5437
5438         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5439         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5440         In the test program, include <fcntl.h>, for O_RDONLY.
5441
5442 2012-01-26  Eric Blake  <eblake@redhat.com>
5443
5444         pipe2: document lack of thread-safety in replacement
5445         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5446         issue in replacement.
5447         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5448         Based on a report by Eric Wong.
5449
5450 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5451             Bruno Haible  <bruno@clisp.org>
5452
5453         malloca: Avoid warnings on x86_64 mingw64.
5454         * lib/malloca.c: Include <stdint.h>.
5455         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5456         * modules/malloca (Depends-on): Add stdint.
5457         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5458
5459 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5460
5461         obstack: remove __STDC__ conditionals
5462         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5463         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5464         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5465         m4/include_next.m4 as the only gnulib-maintained places that still
5466         refer to __STDC__.
5467
5468 2012-01-24  Bruno Haible  <bruno@clisp.org>
5469
5470         havelib: Modern quoting.
5471         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5472         the recent change to the GNU coding standards.
5473
5474 2012-01-24  Bruno Haible  <bruno@clisp.org>
5475
5476         stdint: Improve support for Android.
5477         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5478         Reported by Simon Josefsson <simon@josefsson.org>.
5479
5480 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5481
5482         doc: omit trailing empty lines from INSTALL etc.
5483         * doc/Makefile (INSTALL): Omit trailing empty lines.
5484         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5485         omit trailing empty lines.  This simplifies the build procedure.
5486
5487 2012-01-23  Jim Meyering  <meyering@redhat.com>
5488
5489         tests: avoid spurious warnings about gl_sockets_startup
5490         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5491         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5492         reporting a "statement with no effect".
5493         * tests/test-accept.c (main): Mark as "(void)".
5494         * tests/test-accept4.c (main): Likewise.
5495         * tests/test-bind.c (main): Likewise.
5496         * tests/test-connect.c (main): Likewise.
5497         * tests/test-getpeername.c (main): Likewise.
5498         * tests/test-getsockname.c (main): Likewise.
5499         * tests/test-getsockopt.c (main): Likewise.
5500         * tests/test-listen.c (main): Likewise.
5501         * tests/test-recv.c (main): Likewise.
5502         * tests/test-recvfrom.c (main): Likewise.
5503         * tests/test-send.c (main): Likewise.
5504         * tests/test-sendto.c (main): Likewise.
5505         * tests/test-setsockopt.c (main): Likewise.
5506         * tests/test-shutdown.c (main): Likewise.
5507
5508 2012-01-21  Bruno Haible  <bruno@clisp.org>
5509
5510         locale-fr.m4: Fix for Android.
5511         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5512         failure of the test program on Bionic libc.
5513
5514 2012-01-21  Jim Meyering  <meyering@redhat.com>
5515
5516         bootstrap: fail when bootstrap_post_import_hook fails
5517         Otherwise, it's far too easy to miss diagnostics emitted
5518         between gnulib-tool's output and that of running configure.
5519         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5520
5521 2012-01-17  Jim Meyering  <meyering@redhat.com>
5522
5523         maint: enable sc_trailing_blank
5524         * build-aux/pmccabe.css: Remove trailing blanks.
5525         * doc/acl-cygwin.txt: Likewise.
5526         * doc/gnu-oids.texi: Likewise
5527         * cfg.mk: Enable sc_trailing_blank.
5528         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5529
5530 2012-01-17  Jim Meyering  <meyering@redhat.com>
5531
5532         maint: enable sc_prohibit_openat_without_use
5533         * cfg.mk: Enable sc_prohibit_openat_without_use.
5534         Exempt lib/selinux-at.c.
5535
5536 2012-01-17  Jim Meyering  <meyering@redhat.com>
5537
5538         maint: enable sc_prohibit_cloexec_without_use
5539         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5540         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5541
5542 2012-01-17  Jim Meyering  <meyering@redhat.com>
5543
5544         maint: enable sc_prohibit_intprops_without_use
5545         * cfg.mk: Enable sc_prohibit_intprops_without_use
5546         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5547
5548 2012-01-17  Jim Meyering  <meyering@redhat.com>
5549
5550         maint: enable sc_prohibit_hash_pjw_without_use
5551         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5552         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5553         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5554         following " (".
5555
5556 2012-01-17  Jim Meyering  <meyering@redhat.com>
5557
5558         maint: enable double-word-prohibiting rule
5559         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5560         Exempt three files.
5561
5562 2012-01-17  Jim Meyering  <meyering@redhat.com>
5563
5564         maint: remove empty lines at EOF, but excluding modules/*
5565         Apply syntax rules at home as well as abroad.  Most changes
5566         were induced by running this:
5567           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5568             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5569             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5570         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5571         Exempt modules/* and two binary files.
5572         Also exempt doc/INSTALL*, per request from Bruno Haible.
5573         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5574         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5575         * doc/Copyright/request-assign.future: Likewise.
5576         * doc/Copyright/request-disclaim.changes: Likewise.
5577         * doc/INSTALL: Likewise.
5578         * doc/INSTALL.ISO: Likewise.
5579         * doc/INSTALL.UTF-8: Likewise.
5580         * doc/acl-cygwin.txt: Likewise.
5581         * doc/acl-resources.txt: Likewise.
5582         * doc/fdl-1.2.texi: Likewise.
5583         * doc/fdl-1.3.texi: Likewise.
5584         * doc/fdl.texi: Likewise.
5585         * lib/argp-pin.c: Likewise.
5586         * lib/round.c: Likewise.
5587         * lib/unicase/u16-totitle.c: Likewise.
5588         * lib/unictype/block_test.c: Likewise.
5589         * lib/uninorm/canonical-decomposition.c: Likewise.
5590         * m4/README: Likewise.
5591         * m4/relocatable-lib.m4: Likewise.
5592         * tests/test-isnand-nolibm.c: Likewise.
5593         * tests/test-isnand.c: Likewise.
5594         * tests/uninorm/NormalizationTest.txt: Likewise.
5595
5596 2012-01-17  Jim Meyering  <meyering@redhat.com>
5597
5598         maint: add framework to run syntax-check rules against gnulib sources
5599         * cfg.mk: New file, to disable all currently-failing tests.
5600         We'll enable them one by one, as they are made to pass.
5601         * Makefile (sc_maint): New rule.
5602
5603 2012-01-21  Bruno Haible  <bruno@clisp.org>
5604
5605         stdint: Add support for Android.
5606         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5607         include the system's <stdint.h>.
5608         Reported by Simon Josefsson <simon@josefsson.org>.
5609
5610 2012-01-19  Jim Meyering  <meyering@redhat.com>
5611
5612         bootstrap: add bootstrap_post_import_hook
5613         Bison does still need something like the gnulib_mk_hook whose
5614         invocation I had to remove along with slurp in commit 767ccd40.
5615         Technically, we could get along without it, but doing so would
5616         have required living with a warning and a mandatory post-bootstrap
5617         automake rerun.
5618         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5619         (bootstrap_post_import_hook): New function.
5620         Invoke it after gnulib-tool --import and before autoreconf.
5621
5622 2012-01-18  Jim Meyering  <meyering@redhat.com>
5623
5624         gitlog-to-changelog: don't use "no_"-prefixed variable name
5625         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5626         to enable both --cluster and --no-cluster.  Change variable name,
5627         s/\$no_cluster/$cluster/, and reverse usage to match.
5628
5629         gitlog-to-changelog: use "||", not "or" in expressions
5630         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5631         expressions.
5632
5633 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5634
5635         gitlog-to-changelog: new option --no-cluster
5636         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5637         clustering of adjacent commit messages.
5638
5639 2012-01-17  Jim Meyering  <meyering@redhat.com>
5640
5641         maint: spell file systems with two words, not one
5642         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5643         two words, not one.
5644
5645 2012-01-16  Jim Meyering  <meyering@redhat.com>
5646
5647         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5648         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5649
5650 2012-01-16  Eric Blake  <eblake@redhat.com>
5651
5652         bootstrap: cater to autoconf 2.59
5653         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5654         is not available.
5655
5656         bootstrap: properly check for libtool
5657         * build-aux/bootstrap (libtoolize): Also run libtool when older
5658         usage is detected.
5659
5660 2012-01-15  Bruno Haible  <bruno@clisp.org>
5661
5662         Improve support for MSVC 9.
5663         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5664         clashes on MSVC.
5665         * lib/fcntl.in.h: Likewise.
5666         * lib/stdlib.in.h: Likewise.
5667         * lib/sys_stat.in.h: Likewise.
5668
5669 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5670
5671         gnupload: we hold the master copy of this script now
5672         For motivation and more information, see:
5673         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5674         * build-aux/gnupload: Make it clear in the heading comments that the
5675         master copy of this file is maintained by gnulib.  Since we are at
5676         it, bump its copyright year and ...
5677         ($scriptversion): ... the date in its version.
5678         ($usage): Patches and bug reports should be sent to the gnulib list,
5679         not the automake one.
5680         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5681         anymore.
5682
5683 2012-01-15  Bruno Haible  <bruno@clisp.org>
5684
5685         Fix module 'random'.
5686         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5687         initstate, setstate are declared.
5688
5689 2012-01-14  Bruno Haible  <bruno@clisp.org>
5690
5691         Tests for module 'random'.
5692         * modules/random-tests: New file.
5693         * tests/test-random.c: New file, based on tests/test-random_r.c.
5694
5695         New module 'random'.
5696         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5697         declarations.
5698         * lib/random.c: New file, based on glibc/stdlib/random.c.
5699         * m4/random.m4: New file.
5700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5701         HAVE_RANDOM.
5702         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5703         * modules/random: New file.
5704         * config/srclist.txt: Add an entry for random.c.
5705         * doc/posix-functions/random.texi: Mention the 'random' module.
5706         * doc/posix-functions/initstate.texi: Likewise.
5707         * doc/posix-functions/setstate.texi: Likewise.
5708         * doc/posix-functions/srandom.texi: Likewise.
5709
5710 2012-01-12  Bruno Haible  <bruno@clisp.org>
5711
5712         random_r: Use common idioms.
5713         * lib/random_r.c: Include <stdlib.h> first.
5714
5715         random_r: Override incompatible API on AIX, OSF/1.
5716         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5717         Override the system function if REPLACE_RANDOM_R is 1.
5718         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5719         and OSF/1, set REPLACE_RANDOM_R.
5720         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5721         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5722         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5723         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5724         * doc/glibc-functions/random_r.texi: Likewise.
5725         * doc/glibc-functions/setstate_r.texi: Likewise.
5726
5727         random_r: Support for MSVC 9.
5728         * lib/random_r.c: Include stdint.h, not inttypes.h.
5729
5730 2012-01-12  Eric Blake  <eblake@redhat.com>
5731
5732         inet_ntop: guard extra work by IF_LINT
5733         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5734         better code generation when not checking for warnings.
5735         Suggested by Paul Eggert and Jim Meyering.
5736
5737         strptime: fix regression on mingw
5738         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5739         Fix regression.  Reported by Bruno Haible.
5740
5741 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5742             Bruno Haible  <bruno@clisp.org>
5743
5744         copy-file: add error-code-returning variant.
5745         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5746         (qcopy_file_preserving): New declaration.
5747         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5748         copy_file_preserving. Change return type to 'int'. Don't emit an error
5749         message here.
5750         (copy_file_preserving): New function.
5751         * tests/test-copy-file.c: Include <stdlib.h>.
5752         (main): Test qcopy_file_preserving if the environment variable
5753         NO_STDERR_OUTPUT is set.
5754         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5755         with NO_STDERR_OUTPUT
5756         * tests/test-copy-file-2.sh: Likewise.
5757
5758 2012-01-10  Bruno Haible  <bruno@clisp.org>
5759
5760         copy-file: Use 'quote' module consistently.
5761         * lib/copy-file.c (copy_file_preserving): Use quote().
5762
5763         copy-file: Refactor.
5764         * lib/copy-file.c: Include quote.h.
5765         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5766         message here.
5767         * modules/copy-file (Depends-on): Add quote.
5768
5769         acl: Export qcopy_acl.
5770         * lib/acl.h (qcopy_acl): New declaration.
5771         * lib/copy-acl.c (qcopy_acl): Make non-static.
5772
5773         acl: Rename a local variable.
5774         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5775
5776         acl: Align return values of copy_acl and qcopy_acl.
5777         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5778         maybe < -1.
5779
5780 2012-01-11  Eric Blake  <eblake@redhat.com>
5781
5782         strptime: silence gcc warnings
5783         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5784         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5785         Reported by Daniel P. Berrange.
5786
5787         inet_ntop: silence gcc warning
5788         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5789         Reported by Daniel P. Berrange.
5790
5791 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5792
5793         getloadavg test: skip the test on GNU/Linux without /proc mounted
5794         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5795         file.  When /proc is not mounted, it always fails with ENOENT.
5796         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5797         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5798
5799 2012-01-10  Bruno Haible  <bruno@clisp.org>
5800
5801         regex: Avoid link error on MSVC 9.
5802         * modules/regex (Depends-on): Add wctype.
5803
5804 2012-01-10  Bruno Haible  <bruno@clisp.org>
5805
5806         doc: Mention --with-tests option.
5807         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5808         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5809         --with-tests.
5810         Reported by Reuben Thomas.
5811
5812 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5813
5814         users.txt: order package names lexicographically.
5815         * users.txt: Order package names lexicographically.
5816
5817 2012-01-10  Jim Meyering  <meyering@redhat.com>
5818
5819         maint.mk: fix description in comment
5820         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5821
5822         ignore-value: remove deprecated ignore_ptr function
5823         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5824         * NEWS: Note this.
5825
5826 2012-01-09  Jim Meyering  <meyering@redhat.com>
5827
5828         test-init.sh: avoid a subshell
5829         * tests/test-init.sh: Remove protective subshell.
5830         Suggested by Bernhard Voelker.  While a subshell is normally
5831         required to protect against older shells (Solaris, FreeBSD) that
5832         warn about a missing program before performing redirection, the
5833         shell-selection tests performed by init.sh probably exclude any
5834         offending shell.
5835
5836 2012-01-08  Bruno Haible  <bruno@clisp.org>
5837
5838         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5839         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5840         variable.
5841
5842 2012-01-08  Bruno Haible  <bruno@clisp.org>
5843
5844         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5845         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5846         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5847         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5848         macro.
5849         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5850         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5851         * lib/spawn_faction_addopen.c: Add workaround implementation if
5852         HAVE_WORKING_POSIX_SPAWN.
5853         * modules/spawn (Makefile): Substitute
5854         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5855         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5856         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5857         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5858         (Depends-on): Update conditions.
5859         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5860         the Solaris 11 bug.
5861
5862 2012-01-08  Bruno Haible  <bruno@clisp.org>
5863
5864         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5865         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5866         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5867         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5868         macro.
5869         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5870         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5871         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5872         HAVE_WORKING_POSIX_SPAWN.
5873         * modules/spawn (Makefile): Substitute
5874         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5875         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5876         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5877         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5878         (Depends-on): Update conditions.
5879         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5880         the Solaris 11 bug.
5881
5882 2012-01-08  Bruno Haible  <bruno@clisp.org>
5883
5884         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5885         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5886         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5887         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5888         HAVE_WORKING_POSIX_SPAWN.
5889         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5890         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5891         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5892         * lib/spawn_faction_addclose.c: Add workaround implementation if
5893         HAVE_WORKING_POSIX_SPAWN.
5894         * modules/spawn (Makefile): Substitute
5895         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5896         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5897         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5898         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5899         (Depends-on): Update conditions.
5900         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5901         the Solaris 11 bug.
5902
5903 2012-01-08  Bruno Haible  <bruno@clisp.org>
5904
5905         doc: Update for Solaris 11 2011-11.
5906         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5907         * m4/printf.m4: Update comments.
5908
5909 2012-01-08  Bruno Haible  <bruno@clisp.org>
5910
5911         mktime: Avoid compilation error on Solaris 11.
5912         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5913
5914 2012-01-08  Bruno Haible  <bruno@clisp.org>
5915
5916         doc: Small fix.
5917         * doc/posix-headers/nl_types.texi: Correct platforms list.
5918
5919 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5920
5921         Add lgpl-3.0 module.
5922         * MODULES.html.sh (Support for building documentation): Add
5923         lgpl-3.0.
5924         * modules/lgpl-3.0: New file.
5925
5926 2012-01-08  Jim Meyering  <meyering@redhat.com>
5927
5928         select.c: indent with spaces, not TABs
5929         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5930
5931 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5932
5933         quotearg: do not use grave accent for left quote
5934         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5935         locale_quoting_style.
5936         (quotearg_buffer_restyled): Fix example.
5937         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5938
5939 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5940
5941         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5942         Most programs do not have translation catalogs for English and much
5943         less separate catalogs for British and American English.  Drop the
5944         suggestion to translators about these two, and provide it
5945         automatically for Unicode locales.  Like most programs, even those
5946         using American English, we use single quotation marks.  This conflicts
5947         with the American typographic convention, but works better when you
5948         cite the entire error message within double quotes.  It also tries not
5949         to clash with established practice and with what non-gnulib programs
5950         will usually do.
5951         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5952         using an UTF-8 or GB-18030 locale.  The list of other locales with
5953         quotes was provided by Bruno Haible.
5954         (quotearg_buffer_restyled): Adjust instructions to translators.
5955         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5956         text, since this would be wrong when using Unicode.
5957         * modules/quotearg: Depend on c-strcaseeq.
5958
5959 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5960
5961         quotearg: fix Wikipedia link
5962         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5963
5964 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5965
5966         Fix for mingw with MSVC9.
5967         * m4/ld-version-script.m4: Check that compiler rejects version
5968         scripts with syntax errors.  Reported by Bruno Haible
5969         <bruno@clisp.org>.
5970
5971 2012-01-06  Bruno Haible  <bruno@clisp.org>
5972
5973         Talk about "native Windows API", not "Woe32".
5974         * lib/accept4.c: Update comments to mention native Windows.
5975         * lib/execute.c: Likewise.
5976         * lib/fatal-signal.c: Likewise.
5977         * lib/localcharset.c: Likewise.
5978         * lib/nanosleep.c: Likewise.
5979         * lib/nl_langinfo.c: Likewise.
5980         * lib/pclose.c: Likewise.
5981         * lib/pipe-filter-gi.c: Likewise.
5982         * lib/pipe-filter-ii.c: Likewise.
5983         * lib/pipe.c: Likewise.
5984         * lib/pipe2.c: Likewise.
5985         * lib/popen.c: Likewise.
5986         * lib/progreloc.c: Likewise.
5987         * lib/relocatable.c: Likewise.
5988         * lib/sigaction.c: Likewise.
5989         * lib/sigprocmask.c: Likewise.
5990         * lib/spawn-pipe.h: Likewise.
5991         * lib/spawn-pipe.c: Likewise.
5992         * lib/spawni.c: Likewise.
5993         * lib/stat-time.h: Likewise.
5994         * lib/w32spawn.h: Likewise.
5995         * tests/test-isatty.c: Likewise.
5996         * lib/config.charset: More comments.
5997         * doc/gnulib-intro.texi: Mention native Windows.
5998         * doc/posix-functions/_Exit_C99.texi: Likewise.
5999         * doc/posix-headers/fcntl.texi: Likewise.
6000
6001 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
6002
6003         argp: Avoid crash if translator uses % characters in a translation.
6004         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
6005         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6006
6007 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6008
6009         doc: C11 and C++11 are now official
6010         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6011         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6012         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6013         * modules/stdalign:
6014         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6015
6016 2012-01-06  Bruno Haible  <bruno@clisp.org>
6017
6018         uc-is-grapheme-break tests: Tweak.
6019         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6020         message.
6021
6022 2012-01-06  Bruno Haible  <bruno@clisp.org>
6023
6024         test-init.sh: correct the test for diff -u
6025         * tests/test-init.sh: Also redirect stdout to /dev/null.
6026
6027 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6028
6029         Use ', not `, for quoting output.
6030         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6031         (print_changelog_deltas, get_tool_versions, main program):
6032         * build-aux/git-version-gen:
6033         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6034         * build-aux/move-if-change (help):
6035         * build-aux/useless-if-before-free (usage, main program):
6036         * check-module (parse_module_file, usage)
6037         (find_included_lib_files, check_module):
6038         * lib/argmatch.c (main) [TEST]:
6039         * lib/argp-help.c (_help):
6040         * lib/getopt1.c (main) [TEST]:
6041         * lib/git-merge-changelog.c (usage):
6042         * lib/xstrtol-error.c (xstrtol_error):
6043         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6044         * m4/argz.m4 (gl_FUNC_ARGZ):
6045         * m4/bison.m4 (gl_BISON):
6046         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6047         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6048         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6049         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6050         * m4/gc-random.m4 (gl_GC_RANDOM):
6051         * m4/intl.m4 (gt_CHECK_DECL):
6052         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6053         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6054         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6055         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6056         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6057         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6058         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6059         * tests/test-dirname.c (main):
6060         * tests/test-getpass.c (main):
6061         * tests/test-iconvme.c (main):
6062         * tests/test-parse-datetime.c (LOG):
6063         * tests/test-xstrtoimax.sh:
6064         * tests/test-xstrtol.sh:
6065         * tests/test-xstrtoll.sh:
6066         * tests/test-xstrtoumax.sh:
6067         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6068         * top/GNUmakefile (abort-due-to-no-makefile):
6069         Quote 'like this', not `like this', as per the recent change to
6070         the GNU coding standards.
6071
6072 2012-01-05  Bruno Haible  <bruno@clisp.org>
6073
6074         strtoimax: Don't force a replacement on systems where intmax_t is int.
6075         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6076         'intmax_t' is not larger than 'int'.
6077         Reported by Pádraig Brady <P@draigBrady.com>.
6078
6079 2012-01-05  Bruno Haible  <bruno@clisp.org>
6080
6081         doc: Mention NetBSD bugs.
6082         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6083         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6084
6085 2012-01-05  Bruno Haible  <bruno@clisp.org>
6086
6087         strtoumax tests: Enhance tests.
6088         * tests/test-strtoumax.c (main): Add tests for large values.
6089
6090 2012-01-05  Bruno Haible  <bruno@clisp.org>
6091
6092         strtoimax: Work around AIX 5.1 bug.
6093         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6094         definition.
6095         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6096         Set HAVE_STRTOIMAX.
6097         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6098         REPLACE_STRTOIMAX.
6099         * modules/inttypes-incomplete (Makefile.am): Substitute
6100         REPLACE_STRTOIMAX.
6101         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6102         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6103         (Depends-on): Update conditions.
6104         * tests/test-strtoimax.c (main): Add tests for large values.
6105         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6106
6107 2012-01-05  Bruno Haible  <bruno@clisp.org>
6108
6109         inttypes: Modernize.
6110         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6111         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6112         (Makefile.am): Update inttypes.h rule.
6113
6114 2012-01-05  Jim Meyering  <meyering@redhat.com>
6115
6116         init.sh: don't waste a subshell just to redirect stderr
6117         * tests/init.sh: In testing for diff -u and diff -c, use a
6118         stderr-redirecting exec inside `...` rather than a subshell.
6119
6120         test-init.sh: avoid failure on HP-UX 11.00
6121         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6122         resolves to diff -c or cmp.  Reported by Bruno Haible.
6123
6124 2012-01-05  Bruno Haible  <bruno@clisp.org>
6125
6126         Tests for module 'strtoull'.
6127         * modules/strtoull-tests: New file.
6128         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6129
6130 2012-01-05  Bruno Haible  <bruno@clisp.org>
6131
6132         Tests for module 'strtoll'.
6133         * modules/strtoll-tests: New file.
6134         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6135
6136 2012-01-05  Bruno Haible  <bruno@clisp.org>
6137
6138         Tests for module 'strtoul'.
6139         * modules/strtoul-tests: New file.
6140         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6141
6142 2012-01-05  Bruno Haible  <bruno@clisp.org>
6143
6144         Tests for module 'strtol'.
6145         * modules/strtol-tests: New file.
6146         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6147
6148 2012-01-04  Jim Meyering  <meyering@redhat.com>
6149
6150         test-init.sh: accommodate Solaris 5.10's different diff -u output
6151         * tests/test-init.sh: Also exempt @@ lines from the comparison
6152         of diff output, since Solaris 5.10 and GNU diff formats differ.
6153         Reported by Stefano Lattarini.
6154
6155 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6156
6157         test-posixtm: don't assume signed integer wraparound
6158         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6159         after signed integer overflow.  Inspired by (though it may not
6160         fix) Bruno Haible's bug report in
6161         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6162
6163         Spell out "Windows 9x" and "Windows XP".
6164         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6165         "Windows 9x" and "WinXP" with "Windows XP".
6166
6167 2012-01-04  Jim Meyering  <meyering@redhat.com>
6168
6169         test-vc-list-files-cvs.sh: remove obsolete comment
6170         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6171         double exit.  Now that's all encapsulated via skip_ and Exit.
6172
6173 2012-01-04  Bruno Haible  <bruno@clisp.org>
6174
6175         Talk about "native Windows API", not "Win32".
6176         * lib/classpath.c: Update comments to mention native Windows.
6177         * lib/csharpexec.c: Likewise.
6178         * lib/dup2.c: Likewise.
6179         * lib/error.c: Likewise.
6180         * lib/fcntl.c: Likewise.
6181         * lib/filename.h: Likewise.
6182         * lib/findprog.c: Likewise.
6183         * lib/get-rusage-as.c: Likewise.
6184         * lib/get-rusage-data.c: Likewise.
6185         * lib/getpagesize.c: Likewise.
6186         * lib/javaexec.c: Likewise.
6187         * lib/msvc-inval.c: Likewise.
6188         * lib/msvc-nothrow.c: Likewise.
6189         * lib/nanosleep.c: Likewise.
6190         * lib/nonblocking.c: Likewise.
6191         * lib/printf-parse.c: Likewise.
6192         * lib/setlocale.c: Likewise.
6193         * lib/sigaction.c: Likewise.
6194         * lib/strerror_r.c: Likewise.
6195         * lib/tmpdir.c: Likewise.
6196         * lib/vasnprintf.c: Likewise.
6197         * lib/w32spawn.h: Likewise.
6198         * lib/waitpid.c: Likewise.
6199         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6200         * m4/locale-ar.m4: Likewise.
6201         * m4/locale-fr.m4: Likewise.
6202         * m4/locale-ja.m4: Likewise.
6203         * m4/locale-tr.m4: Likewise.
6204         * m4/locale-zh.m4: Likewise.
6205         * m4/printf.m4: Likewise.
6206         * tests/test-cloexec.c: Likewise.
6207         * tests/test-copy-acl.sh: Likewise.
6208         * tests/test-copy-file.sh: Likewise.
6209         * tests/test-file-has-acl.sh: Likewise.
6210         * tests/test-set-mode-acl.sh: Likewise.
6211         * tests/test-dup-safer.c: Likewise.
6212         * tests/test-dup2.c: Likewise.
6213         * tests/test-dup3.c: Likewise.
6214         * tests/test-fcntl.c: Likewise.
6215         * tests/test-nonblocking-pipe.h: Likewise.
6216         * tests/test-nonblocking-socket.h: Likewise.
6217         * tests/test-pipe.c: Likewise.
6218         * tests/test-pipe2.c: Likewise.
6219         * tests/test-spawn-pipe-child.c: Likewise.
6220         * doc/acl-resources.txt: Likewise.
6221         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6222         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6223         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6224         * lib/localcharset.c: Update comments to mention native Windows.
6225         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6226         * lib/localename.c: Likewise.
6227         * lib/progreloc.c: Likewise.
6228         * lib/relocatable.c: Likewise.
6229         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6230         (windows_compute_revents): Renamed from win32_compute_revents.
6231         (windows_compute_revents_socket): Renamed from
6232         win32_compute_revents_socket.
6233         * lib/select.c: Update comments to mention native Windows.
6234         (windows_poll_handle): Renamed from win32_poll_handle.
6235         * m4/threadlib.m4: Update comments to mention native Windows.
6236         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6237         --enable-threads=windows instead of --enable-threads=win32. Set
6238         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6239         * lib/glthread/lock.h: Update comments to mention native Windows.
6240         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6241         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6242         USE_WIN32_THREADS.
6243         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6244         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6245         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6246         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6247         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6248         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6249         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6250         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6251         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6252         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6253         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6254         * tests/test-tls.c: Likewise.
6255         Rationale:
6256         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6257         on both 32-bit and 64-bit Windows systems.
6258         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6259         line of distinction is between "native Windows" on one side and Unix/
6260         POSIX systems on the other side. More details in
6261         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6262         Suggested by Paul Eggert.
6263
6264 2012-01-03  Bruno Haible  <bruno@clisp.org>
6265
6266         isatty: Support for MSVC 9.
6267         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6268         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6269         (_isatty_nothrow): New function.
6270         (isatty): Use it instead of _isatty.
6271         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6272         * lib/poll.c (IsConsoleHandle): Likewise.
6273         * lib/select.c (IsConsoleHandle): Likewise.
6274         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6275         (gl_PREREQ_ISATTY): New macro.
6276         * modules/isatty (Depends-on): Add msvc-inval.
6277         (configure.ac): Invoke gl_PREREQ_ISATTY.
6278
6279 2012-01-03  Jim Meyering  <meyering@redhat.com>
6280
6281         maint.mk: remove temporary transition aid from over 1.5 years ago
6282         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6283         purpose was to aid in the transition (avoiding silent malfunction)
6284         from that old name to the new _sc_search_regexp.  This shim was
6285         added by commit 219c504b.
6286
6287         init.sh: do not try to accommodate compare arguments starting with "-"
6288         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6289         compare arguments that start with "-".  Besides, we do not worry
6290         about this when invoking diff or cmp; why start now with sed?
6291         Using "--" to separate options from argument would trigger sed
6292         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6293         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6294
6295 2012-01-02  Bruno Haible  <bruno@clisp.org>
6296
6297         Enhance tests for module 'isatty'.
6298         * modules/isatty-tests (Depends-on): Add pipe-posix.
6299         * tests/test-isatty.c: Include <fcntl.h>.
6300         (DEV_NULL): New macro.
6301         (main): Test the resut of isatty() also on regular files, pipes, and
6302         /dev/null.
6303
6304         New module 'isatty'.
6305         * lib/unistd.in.h (isatty): New declaration.
6306         * lib/isatty.c: New file, based on an idea of
6307         Bastien Roucariès <roucaries.bastien@gmail.com>.
6308         * m4/isatty.m4: New file.
6309         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6310         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6311         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6312         REPLACE_ISATTY.
6313         * modules/isatty: New file.
6314         * doc/posix-functions/isatty.texi: Mention the new module.
6315         Suggested by Paolo Bonzini.
6316
6317 2012-01-02  Bruno Haible  <bruno@clisp.org>
6318
6319         canonicalize: Tweak 2011-12-29 commit.
6320         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6321         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6322
6323 2012-01-02  Jim Meyering  <meyering@redhat.com>
6324
6325         gitlog-to-changelog: describe input syntax in --help output
6326         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6327
6328         gitlog-to-changelog: fix typo in --help: show backslash before email @
6329         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6330         in sources, but not in actual output.
6331
6332 2011-12-30  Jim Meyering  <meyering@redhat.com>
6333
6334         gitlog-to-changelog: don't malfunction when name contains %-directive
6335         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6336         in a name string cause trouble.  E.g., with a user name of "%s",
6337         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6338
6339 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6340
6341         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6342         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6343         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6344         the "  (tiny change)" notation that is appended to the standard
6345         ChangeLog "date  name  email" header line.
6346
6347 2012-01-01  Jim Meyering  <meyering@redhat.com>
6348
6349         test-framework-sh: init.sh: fix "make dist" failure
6350         When using gnulib-tool's --with-tests option and any module that
6351         depends on test-framework-sh, "make dist" would fail due to the
6352         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6353         in the gltests directory, and not in the gllib/ directory.
6354         One way to work around that is to move the EXTRA_DIST += init.sh
6355         from the primary module to the -tests one:
6356         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6357         * modules/test-framework-sh (Makefile.am): ...not here.
6358         Reported by Tom G. Christensen in
6359         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6360
6361         version-etc: update copyright year reported by --version
6362         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6363
6364 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6365
6366         canonicalize: only stat() if required
6367         * lib/canonicalize.c (canonicalize_filename_mode):
6368         Avoid calling l?stat() when both CAN_MISSING,
6369         and CAN_NOLINKS are set, as we neither need
6370         to resolve symlinks or test component existence.
6371
6372 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6373
6374         doc: cover st_ino issues once; add OpenVMS etc.
6375         * doc/posix-functions/stat.texi (stat):
6376         * doc/posix-functions/lstat.texi (lstat):
6377         * doc/posix-functions/fstatat.texi (fstatat):
6378         * doc/posix-functions/fstat.texi (fstat):
6379         Move general 'struct stat' stuff to sys_stat.texi,
6380         leaving behind a pointer.
6381         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6382         Merge duplicate info about 'struct stat' problems into here.
6383         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6384         and suggest partial workarounds.
6385
6386         same-inode: port to OpenVMS
6387         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6388         three st_ino values.
6389
6390 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6391
6392         canonicalize: fix references to stat() and lstat()
6393         * lib/canonicalize.c (canonicalize_filename_mode):
6394         Ensure references always resolve to a replacement
6395         function if required (even via a macro).
6396
6397 2011-12-30  Jim Meyering  <meyering@redhat.com>
6398
6399         gitlog-to-changelog: remove a little duplication
6400         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6401         rather than twice.
6402
6403 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6404
6405         canonicalize: add support for not resolving symlinks
6406         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6407         indicate we don't want to follow symlinks.  Also
6408         provide CAN_MODE_MASK to aid setting these existing
6409         mutually exclusive values.
6410         * lib/canonicalize.c (canonicalize_filename_mode):
6411         Extract the flags from can_mode parameter, which
6412         are currently just used to select between stat()
6413         and lstat().  Also ensure that mutually exclusive
6414         values are flagged immediately as invalid.
6415         * tests/test-canonicalize.c: Verify symlinks are
6416         not followed, and that invalid flag combinations
6417         are diagnosed.
6418
6419 2011-12-25  Jim Meyering  <meyering@redhat.com>
6420
6421         gitlog-to-changelog: do not clump multi-paragraph entries
6422         Identical header lines (date,name,email+coauthors) are suppressed,
6423         thus putting all entries with those same characteristics under
6424         a single header.  However, when a log entry consists of two or
6425         more paragraphs, it may not be clear where it starts and ends.
6426         This change makes it so that such an entry is always separated
6427         from others by a header line, even when that header would
6428         otherwise be suppressed.
6429         * build-aux/gitlog-to-changelog: Implement the above.
6430         Inspired by a related request from Stefano Lattarini in
6431         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6432
6433 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6434
6435         announce-gen: fix `cmd' typo in diagnostic
6436         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6437         diagnostic: a missing '$' meant that the command was not output.
6438
6439 2011-12-23  Jim Meyering  <meyering@redhat.com>
6440
6441         test-framework-sh: distribute init.sh
6442         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6443         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6444         fail due to the lack of init.sh.
6445
6446         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6447         * modules/atexit-tests: Rather than listing tests/init.sh,
6448         now that there's a module for it, simply depend on that new module.
6449         * modules/closein-tests: Likewise.
6450         * modules/exclude-tests: Likewise.
6451         * modules/getcwd-tests: Likewise.
6452         * modules/perror-tests: Likewise.
6453         * modules/pread-tests: Likewise.
6454         * modules/pwrite-tests: Likewise.
6455         * modules/vc-list-files-tests: Likewise.
6456         * modules/verify-tests: Likewise.
6457         * modules/xalloc-die-tests: Likewise.
6458         * modules/xstrtoimax-tests: Likewise.
6459         * modules/xstrtol-tests: Likewise.
6460         * modules/xstrtoll-tests: Likewise.
6461         * modules/xstrtoumax-tests: Likewise.
6462         * modules/yesno-tests: Likewise.
6463
6464 2011-12-22  Jim Meyering  <meyering@redhat.com>
6465
6466         test-framework-sh: add minimal tests of init.sh's compare function
6467         * modules/test-framework-sh-tests: New file.
6468         * tests/test-init.sh: New file.
6469
6470         test-framework-sh: new module
6471         * modules/test-framework-sh: New file.
6472         * MODULES.html.sh (Support for maintaining and releasing projects):
6473         List it.
6474
6475         init.sh: do not emit simulated diff output to stderr
6476         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6477
6478 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6479
6480         .gitignore: ignore gnulib.dvi and regex.info
6481         * doc/.gitignore:add gnulib.dvi and regex.info
6482
6483 2011-12-22  Jim Meyering  <meyering@redhat.com>
6484
6485         init.sh: correct previous change
6486         * tests/init.sh (compare): My previous change was wrong.
6487         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6488
6489         init.sh: avoid unwarranted test failure when using "set -e"
6490         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6491         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6492         a use like "compare exp out" would get evoke an unconditional failure.
6493
6494 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6495
6496         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6497         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6498         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6499         autoreconf that did not.
6500         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6501         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6502
6503 2011-12-17  Jim Meyering  <meyering@redhat.com>
6504
6505         bootstrap: remove some now-unneeded code
6506         This script arose back when gnulib-tool was young.
6507         Since then, it has seen improvements that render much of this
6508         script unnecessary.  In particular, it can now make symlinks
6509         to the files it uses.  Also, I no longer see as much value in
6510         marking files as read-only via comments.
6511         If you relied on the symlink-creation feature of the preceding
6512         version of this script, you can get most of that functionality
6513         by adding the --symlink option to the definition of
6514         gnulib_tool_option_extras in your bootstrap.conf file.
6515         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6516         Run autopoint and libtoolize *before* gnulib-tool.
6517         After it, run an abbreviated autoreconf, rather than a loop around
6518         all tools.
6519         (slirp, bt_mark_as_generated): Remove functions.
6520
6521 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6522
6523         ftoastr: fix typo
6524         * lib/ftoastr.h: Fix misspelling in comment.
6525
6526 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6527
6528         * top/README-release: fix punctuation.
6529
6530 2011-12-17  Jim Meyering  <meyering@redhat.com>
6531
6532         bootstrap: correct the recent buildreq change
6533         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6534         had no effect.
6535         * build-aux/bootstrap (buildreq): Bracket each search term with
6536         "*...*", so that the shell "case" statement works as intended.
6537         Add comments.
6538
6539 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6540
6541         build: let bootstrap resort to wget when downloading .po files
6542         * build-aux/bootstrap (download_po_files): Fallback to wget when
6543         downloading the .po files via rsync fails.  This is necessary to
6544         bootstrap from behind a strict firewall.
6545
6546 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6547
6548         stdint: don't assume C++11 when compiling with g++
6549         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6551         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6552         work also in C++ before C++11, as that improperly inhibits
6553         generating a substitute stdint.h for that case.
6554
6555 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6556
6557         alloca: protect comment from gnulib-tool
6558         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6559         that gnulib-tool doesn't think it's a license, and munge it to
6560         say "GCC version 3".
6561
6562 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6563
6564         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6565         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6566         $(abs_top_builddir) instead of $(top_builddir).
6567
6568 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6569
6570         strftime-tests: also test nanoseconds
6571         * tests/test-strftime.c (T): Add a test of %N.
6572
6573 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6574
6575         inttypes, stdint: add C++11 support
6576         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6577         when including inttypes.h and stdint.h.  Support this change to
6578         the standard.
6579         * doc/posix-headers/inttypes.texi (inttypes.h):
6580         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6581         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6582         Define if not defined already, for the benefit of pre-C++11 hosts.
6583         Define the standard format macros (e.g., PRId8) always.
6584         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6585         Likewise, if __cpluspus.  Define the standard constant and limit
6586         macros (e.g., INT8_C, INT8_MAX) always.
6587         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6588         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6589         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6590         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6591         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6592         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6593         Likewise.
6594
6595 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6596
6597         nonblocking tests: Fix test failure on Linux/PPC.
6598         Suggested by Prerna Saxena in
6599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6600         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6601         Set to 1100000.
6602
6603 2011-12-12  Jim Meyering  <meyering@redhat.com>
6604
6605         argmatch: don't hard-code `' when listing valid option arguments
6606         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6607         use the quote function to add quotes.  Use fputs rather than
6608         fprintf for the format string with no format directive.
6609
6610 2011-12-07  Eric Blake  <eblake@redhat.com>
6611
6612         bootstrap: detect tools required by gnulib-tool
6613         * build-aux/bootstrap (buildreq): Provide minimum implicit
6614         dependencies.
6615         * DEPENDENCIES: Mention patch as a prereq.
6616
6617 2011-12-04  Bruno Haible  <bruno@clisp.org>
6618
6619         sethostname: Port to Windows platforms.
6620         * lib/sethostname.c: Provide an alternate implementation for Windows
6621         platforms.
6622         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6623         (main): Skip the test if sethostname() fails with EPERM. On Windows
6624         platforms, don't check the result of gethostname().
6625
6626 2011-12-04  Bruno Haible  <bruno@clisp.org>
6627             Jim Meyering  <meyering@redhat.com>
6628
6629         tests: Avoid spurious error message on platforms without mktemp program.
6630         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6631
6632 2011-12-04  Bruno Haible  <bruno@clisp.org>
6633
6634         sethostname: Fix documentation.
6635         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6636         "not fixed" section.
6637
6638 2011-12-03  Bruno Haible  <bruno@clisp.org>
6639
6640         gnulib-tool: Verify that the License field is present and non-empty.
6641         * gnulib-tool (func_get_license_raw): New function, extracted from
6642         func_get_license.
6643         (func_get_license): Use it. Warn if the module is not a test module and
6644         has no license.
6645         Suggested by Jim Meyering.
6646
6647 2011-12-03  Bruno Haible  <bruno@clisp.org>
6648
6649         sethostname tests: Fix link error on mingw.
6650         * tests/test-sethostname1.c: New file, extracted from
6651         tests/test-sethostname.c.
6652         * tests/test-sethostname2.c: New file, extracted from
6653         tests/test-sethostname.c.
6654         * tests/test-sethostname.c: Remove file.
6655         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6656         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6657         (Depends-on): Add gethostname.
6658         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6659         Link the latter with $(GETHOSTNAME_LIB).
6660
6661         sethostname tests: Fix compilation error on mingw.
6662         * tests/test-sethostname.c: Don't include <sys/types.h>.
6663         (geteuid): Use a dummy value without uid_t.
6664         * modules/sethostname-tests (Depends-on): Remove sys_types.
6665
6666         sethostname tests: Avoid a gcc warning.
6667         * tests/test-sethostname.c (main): Remove an unused variable.
6668
6669         Tweak last commit.
6670         * modules/sethostname-tests (Files): Sort by decreasing importance.
6671         (configure.ac): Check for geteuid.
6672         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6673         the test when there's nothing to test. Drop an unnecessary cast.
6674         Improve an error message. Verify that the final sethostname() call
6675         succeeds.
6676
6677 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6678
6679         Add a test suite for the sethostname module.
6680         * modules/sethostname-tests: New file.  A test program
6681         for the sethostname module.
6682         * tests/test-sethostname.c: Likewise.
6683
6684 2011-12-03  Bruno Haible  <bruno@clisp.org>
6685
6686         Tweak last commit.
6687         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6688         Fix preprocessor directives indentation. Fix typos.
6689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6690         * modules/unistd (Makefile): Likewise.
6691
6692 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6693
6694         Integrate the sethostname module into unistd.
6695         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6696         into the unistd.h header.
6697         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6698         preprocessor directives.
6699         * modules/unistd: Setup the Makefile substitutions of the
6700         SETHOSTNAME preprocessor directives.
6701
6702 2011-12-03  Bruno Haible  <bruno@clisp.org>
6703
6704         Tweak last commit.
6705         * lib/sethostname.c: Don't include <string.h>.
6706         (sethostname): No need to copy the argument string to the stack. Don't
6707         call clearerr. Preserve errno when fprintf failed.
6708         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6709         Don't invoke AC_REPLACE_FUNCS.
6710         * modules/sethostname (Link): Remove empty section.
6711         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6712         failure problem.
6713
6714 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6715
6716         New module 'sethostname'.
6717         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6718         for systems that lack it.
6719         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6720         sethostname declaration and function.
6721         * modules/sethostname: New file.  Define the sethostname module.
6722
6723 2011-12-03  Bruno Haible  <bruno@clisp.org>
6724
6725         Tweak last commit.
6726         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6727
6728 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6729
6730         Split the HOST_NAME_MAX detection into a separate m4 macro.
6731         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6732         macro so it can be used by the pending sethostname module.
6733
6734 2011-12-03  Bruno Haible  <bruno@clisp.org>
6735
6736         Fix module descriptions syntax.
6737         * modules/argv-iter (License): Fix syntax.
6738         * modules/di-set (License): Likewise.
6739         * modules/ino-map (License): Likewise.
6740         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6741
6742 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6743
6744         stdalign: port to Clang 3.0
6745         Problem reported by Simon Josefsson in
6746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6747         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6748         which has <stdalign.h> but which does not define alignof.
6749         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6750
6751 2011-12-01  Eric Blake  <eblake@redhat.com>
6752
6753         mktempd: silence dd usage
6754         * build-aux/mktempd (rand_bytes): Silence dd.
6755
6756 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6757
6758         manywarnings: Don't mention gcc version in docstring.
6759         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6760         Jim Meyering <meyering@redhat.com>.
6761
6762 2011-11-30  Jim Meyering  <meyering@redhat.com>
6763
6764         hash: mark a few floating point constants with "f" suffix
6765         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6766         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6767         floating point constants with "f", since they're destined to be
6768         saved/used as "float"s.
6769
6770 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6771
6772         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6773         * tests/test-float.c (test_long_double): Correct and re-enable the
6774         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6775
6776 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6777
6778         Avoid subtracting two pointers that don't point into the same block.
6779         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6780         only pointers into the same memory block are subtracted. We cannot
6781         assume that sizeof (ptrdiff_t) == sizeof (void *).
6782
6783 2011-11-29  Eric Blake  <eblake@redhat.com>
6784
6785         maint.mk: add syntax check for use of compare from init.sh
6786         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6787         moved here from coreutils.
6788
6789         manywarnings: drop -Wunsuffixed-float-constants
6790         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6791         '1.0D', which is the only way to silence this warning for 'double'.
6792
6793 2011-11-29  Jim Meyering  <meyering@redhat.com>
6794
6795         hash: mark compute_bucket_size with the pure attribute
6796         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6797
6798         quotearg, propername: correct pragma guard expression
6799         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6800         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6801
6802 2011-11-28  Jim Meyering  <meyering@redhat.com>
6803
6804         propername: do not mark proper_name with the const attribute
6805         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6806         since it examines data pointed to by its parameter.
6807         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6808         the suggestion from -Wsuggest-attribute=const.
6809
6810         propername: mark one more function as const
6811         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6812
6813 2011-11-27  Jim Meyering  <meyering@redhat.com>
6814
6815         mark functions with const and pure attributes
6816
6817         Mark functions per suggestions from gcc-4.6 when using these options:
6818         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6819         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6820         Follow these guidelines: when possible, apply the attribute to
6821         an extern declaration, not to its definition.  Apply it to the
6822         definition only when the definition is static.
6823         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6824         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6825         * lib/base64.h (isbase64): Likewise.
6826         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6827         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6828         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6829         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6830         (c_tolower, c_toupper): Likewise.
6831         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6832         * lib/chdir-long.c (find_non_slash): Likewise.
6833         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6834         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6835         * lib/file-type.h (file_type): Likewise.
6836         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6837         * lib/filevercmp.c (verrevcmp): Likewise.
6838         * lib/freadahead.h (freadahead): Likewise.
6839         * lib/fts.c (fts_maxarglen): Likewise.
6840         * lib/hash-pjw.h (hash_pjw): Likewise.
6841         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6842         * lib/hash.c (is_prime, next_prime): Likewise.
6843         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6844         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6845         (hash_table_ok, hash_get_first, hash_string): Likewise.
6846         (compute_bucket_size): Likewise.
6847         * lib/i-ring.h (i_ring_empty): Likewise.
6848         * lib/isnan.c (isnanl): Likewise.
6849         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6850         * lib/memcasecmp.h (memcasecmp): Likewise.
6851         * lib/memchr2.h (memchr2): Likewise.
6852         * lib/memcmp2.h (memcmp2): Likewise.
6853         * lib/parse-datetime.y (lookup_zone): Likewise.
6854         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6855         [!WINDOWS_SOCKETS]: Likewise.
6856         * lib/strnlen1.h (strnlen1): Likewise.
6857         * lib/uniwidth.in.h (uc_width): Likewise.
6858         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6859         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6860         (quoting_options_from_style): Add a comment.
6861         * lib/propername.h (proper_name): Add a comment.
6862
6863 2011-11-27  Bruno Haible  <bruno@clisp.org>
6864
6865         Remove unused macros from !_LIBC code in glibc-borrowed files.
6866         * lib/fnmatch.c (STRCOLL): Remove macro.
6867         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6868         * lib/glob.c (__stat, __readdir64): Remove macros.
6869         * lib/tempname.c (__open64, __xstat64): Remove macros.
6870         Suggested by Paul Eggert.
6871
6872 2011-11-27  Bruno Haible  <bruno@clisp.org>
6873
6874         getcwd: Fix link error on MSVC 9.
6875         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6876
6877 2011-11-27  Bruno Haible  <bruno@clisp.org>
6878
6879         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6880         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6881         HAVE_OPENDIR is 0.
6882         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6883         HAVE_CLOSEDIR is 0.
6884         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6885         is 0.
6886         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6887
6888 2011-11-27  Bruno Haible  <bruno@clisp.org>
6889
6890         getcwd: Fix bug from 2011-08-17.
6891         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6892         platforms that need it.
6893         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6894         code of 4 to be a failure, not a success. This ensures that
6895         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6896
6897 2011-11-27  Bruno Haible  <bruno@clisp.org>
6898
6899         binary-io tests: Avoid test failure on mingw when libtool is used.
6900         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6901         Don't verify the size of t-bin-out1.tmp here.
6902         * tests/test-binary-io.sh: Verify it here.
6903         Reported by Simon Josefsson.
6904
6905 2011-11-26  Bruno Haible  <bruno@clisp.org>
6906
6907         Fix conflict between two instantiations of module 'unistd'.
6908         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6909         ${include_guard_prefix} also in the autoconf snippet.
6910         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6912         GNULIB_UNISTD_H_GETOPT.
6913         * modules/getopt-posix (configure.ac): Set the
6914         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6915         * modules/getopt-gnu (configure.ac): Likewise.
6916         * modules/unistd (Makefile.am): Change the substitution value of
6917         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6918         Reported by Simon Josefsson.
6919
6920 2011-11-25  Bruno Haible  <bruno@clisp.org>
6921
6922         pagealign_alloc: Doc and comments.
6923         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6924         module.
6925         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6926
6927 2011-11-25  Jim Meyering  <meyering@redhat.com>
6928
6929         test-update-copyright.sh: avoid false-positive failure
6930         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6931         around false positive failure on Cygwin/Windows.  The latter was
6932         matching erroneously-created files with names like
6933         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6934
6935 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6936
6937         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6938         * m4/valgrind-tests.m4: Check that the parameters that will be
6939         used works, not just a subset of them.  Reported by Bruno Haible
6940         <bruno@clisp.org>.
6941
6942 2011-11-24  Jim Meyering  <meyering@redhat.com>
6943
6944         test-stdalign.c: comment out long double tests
6945         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6946         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6947         error: '_Alignas' specifiers cannot reduce alignment of \
6948         'static_longdouble_alignas'.
6949
6950 2011-11-22  Jim Meyering  <meyering@redhat.com>
6951
6952         init.sh: make "compare /dev/null FILE" output more readable
6953         * tests/init.sh (compare_): Document the preferred order of arguments.
6954         (emit_diff_u_header_): New function.
6955         (compare_dev_null_): Emit a simulated diff, rather than just the
6956         contents of the unexpected file.  Suggestion from Bruno Haible.
6957
6958 2011-11-21  Jim Meyering  <meyering@redhat.com>
6959             Eric Blake  <eblake@redhat.com>
6960
6961         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6962         * tests/init.sh: Make our compare function slightly more portable.
6963         Reported by Bruno Haible in
6964         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6965
6966 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6967
6968         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6969         before using it, in code that ends up in config.h.
6970
6971 2011-11-20  Bruno Haible  <bruno@clisp.org>
6972
6973         getcwd: Work around getcwd bug on AIX 5..7.
6974         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6975         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6976         Use a different value for gl_cv_func_getcwd_path_max. Move the
6977         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6978         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6979         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6980         Define HAVE_MINIMALLY_WORKING_GETCWD.
6981         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6982         where it is not even minimally working, that is, on AIX.
6983         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6984         m4/getcwd-path-max.m4.
6985         (main): Update exit code computation.
6986         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6987         getcwd does not handle long file names.
6988
6989 2011-11-20  Bruno Haible  <bruno@clisp.org>
6990
6991         getcwd: Fix bug from 2009-09-10.
6992         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6993         like "no".
6994
6995 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6996
6997         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6998
6999 2011-11-20  Bruno Haible  <bruno@clisp.org>
7000
7001         fma tests: Avoid shadowing local variables.
7002         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
7003         expected.
7004
7005 2011-11-20  Bruno Haible  <bruno@clisp.org>
7006
7007         copysignf tests: Fix.
7008         * tests/test-copysignf.c: Fix signature check.
7009
7010 2011-11-20  Bruno Haible  <bruno@clisp.org>
7011
7012         fma: Remove unused code.
7013         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7014         unused macros.
7015
7016 2011-11-20  Bruno Haible  <bruno@clisp.org>
7017
7018         sethostname: Fix doc about AIX.
7019         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7020         sethostname; it has it.
7021
7022         sethostname: Mention more portability problems.
7023         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7024         problem.
7025         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7026
7027 2011-11-19  Bruno Haible  <bruno@clisp.org>
7028
7029         Depend on module fcntl-h when AT_FDCWD is used.
7030         * modules/utimens (Depends-on): Add fcntl-h.
7031         * modules/areadlinkat (Depends-on): Likewise.
7032         * modules/areadlinkat-with-size (Depends-on): Likewise.
7033         * modules/faccessat (Depends-on): Likewise.
7034         * modules/fchmodat (Depends-on): Likewise.
7035         * modules/fchownat (Depends-on): Likewise.
7036         * modules/getcwd (Depends-on): Likewise.
7037         * modules/mkdirat (Depends-on): Likewise.
7038         * modules/mkfifoat (Depends-on): Likewise.
7039         * modules/readlinkat (Depends-on): Likewise.
7040         * modules/symlinkat (Depends-on): Likewise.
7041         * modules/dup2-tests (Depends-on): Likewise.
7042         * modules/fdutimensat-tests (Depends-on): Likewise.
7043         * modules/futimens-tests (Depends-on): Likewise.
7044
7045 2011-11-19  Bruno Haible  <bruno@clisp.org>
7046
7047         euidaccess: Update a comment.
7048         * lib/euidaccess.c: Update comment about platforms with faccessat.
7049
7050 2011-11-19  Bruno Haible  <bruno@clisp.org>
7051
7052         openat: Fix file list.
7053         * modules/openat (Files): Remove lib/at-func.c.
7054
7055 2011-11-19  Bruno Haible  <bruno@clisp.org>
7056
7057         fstatat: Simplify.
7058         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7059         gnulib should define rpl_fstatat, there is a
7060         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7061
7062 2011-11-19  Bruno Haible  <bruno@clisp.org>
7063
7064         Ensure 'inline' can be used in tests/test-utimens-common.h.
7065         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7066         * modules/futimens-tests (configure.ac): Likewise.
7067         * modules/utimens-tests (configure.ac): Likewise.
7068         * modules/utimensat-tests (configure.ac): Likewise.
7069
7070 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7071
7072         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7073         not hash_insert0.
7074         (hash_insert_if_absent): Doc fix.
7075
7076 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7077
7078         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7079
7080 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7081
7082         test-getcwd: disambiguate exit status
7083         * tests/test-getcwd.c (test_long_name): Return 0..7.
7084         (main): Exit with an unambiguous exit status.  The old
7085         code yielded a mysterious mixture of two failure codes.
7086
7087         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7088         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7089         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7090         rpl_fstatat or fstatat.  This should fix the other problem
7091         reported by Kai Habel in
7092         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7093         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7095         and I reproduced it on a Solaris 8 host we still have in production.
7096
7097 2011-11-18  Jim Meyering  <meyering@redhat.com>
7098
7099         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7100         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7101         Add a sentence to the comment.
7102         (hash_insert0): New function that simply calls hash_insert_if_absent.
7103         * lib/hash.h (hash_insert_if_absent): Declare it.
7104         (hash_insert0): Add deprecation attribute.
7105         (_GL_ATTRIBUTE_DEPRECATED): Define.
7106         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7107         not hash_insert0.
7108         * NEWS: Mention it, even though it's not really an incompatible change.
7109
7110 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7111
7112         openat: avoid compilation failure due to lack of <errno.h> inclusion
7113         * lib/openat.c: Include <errno.h>.
7114
7115 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7116
7117         * modules/getcwd (Depends-on): Add fdopendir.
7118         This fixes one of the two problems reported by Kai Habel in
7119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7120
7121         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7122         stdalign problem reported by Ian Beckwith in
7123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7124         * modules/crypto/gc-arcfour (Depends-on):
7125         Depend conditionally on crypto/arcfour.
7126         * modules/crypto/gc-arctwo (Depends-on):
7127         Depend conditionally on crypto/arctwo.
7128         * modules/crypto/gc-des (Depends-on):
7129         Depend conditionally on crypto/des.
7130         * modules/crypto/gc-hmac-md5 (Depends-on):
7131         Depend conditionally on crypto/hmac-md5.
7132         * modules/crypto/gc-hmac-sha1 (Depends-on):
7133         Depend conditionally on crypto/hmac-sha1.
7134         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7135         * modules/crypto/gc-md4 (Depends-on):
7136         Depend conditionally on crypto/md4.
7137         * modules/crypto/gc-md5 (Depends-on):
7138         Depend conditionally on crypto/md5.
7139         * modules/crypto/gc-rijndael (Depends-on):
7140         Depend conditionally on crypto/rijndael.
7141         * modules/crypto/gc-sha1 (Depends-on):
7142         Depend conditionally on crypto/sha1.
7143         * modules/crypto/gc-arcfour:
7144         * modules/crypto/gc-arctwo:
7145         * modules/crypto/gc-des:
7146         * modules/crypto/gc-hmac-md5:
7147         * modules/crypto/gc-hmac-sha1:
7148         * modules/crypto/gc-md2:
7149         * modules/crypto/gc-md4:
7150         * modules/crypto/gc-md5:
7151         * modules/crypto/gc-rijndael:
7152         * modules/crypto/gc-sha1:
7153         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7154         now that the conditional dependencies do the work for us.
7155
7156 2011-11-17  Jim Meyering  <meyering@redhat.com>
7157
7158         tests: factor st_ctime-comparison out of two headers
7159         * tests/test-utimens-common.h (ctime_compare): Define.
7160         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7161         * tests/test-lutimens.h (test_lutimens): Likewise.
7162         * tests/test-utimens.h (test_utimens): Likewise.
7163
7164         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7165         Invoke the test program via an init.sh-using wrapper.
7166         * tests/test-getcwd.sh: New file.
7167         * modules/getcwd-tests (Files): Add it.
7168         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7169
7170 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7171
7172         gitlog-to-changelog: support multi-author commits.
7173         The FSF cares about keeping track of all authors of patches to its
7174         projects, but Git doesn't provide obvious support for multi-author
7175         changesets. Consensus seems to be forming around the use of extra
7176         Signed-off-by inspired lines in the log message formatted as
7177         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7178         multi-author commits between version control systems.
7179         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7180         log message and output in standard ChangeLog multi-author format.
7181         Reported by Peter Rosin <peda@lysator.liu.se>
7182
7183 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7184             Bruno Haible  <bruno@clisp.org>
7185
7186         Fix some modules' file list.
7187         * modules/fstatat (Files): Add m4/lstat.m4.
7188         * modules/openat (Files): Likewise.
7189         * modules/unlinkat (Files): Likewise.
7190
7191 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7192
7193         maint.mk: fix tight-scope.mk generation in VPATH builds.
7194         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7195         reference with $(srcdir) so that the file is found correctly even
7196         when running `make syntax-check' in a VPATH build.
7197
7198 2011-11-13  Bruno Haible  <bruno@clisp.org>
7199             Jim Meyering  <meyering@redhat.com>
7200
7201         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7202         * tests/init.sh (compare): Remove "No differences encountered" or
7203         synonymous output from the 'diff' program.
7204
7205 2011-11-13  Bruno Haible  <bruno@clisp.org>
7206
7207         Makefile: Tweak indentation.
7208         * Makefile: Use tab as first character in every line that contains rule
7209         commands.
7210
7211 2011-11-13  Bruno Haible  <bruno@clisp.org>
7212
7213         Syntax check for copyright statements.
7214         * check-copyright: New file.
7215         * Makefile (sc_check_copyright): New rule.
7216
7217 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7218
7219         * build-aux/git-version-gen: Add --prefix to configure the tag
7220         match string.
7221
7222 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7223
7224         * build-aux/git-version-gen: Add --help and --version.
7225
7226 2011-11-12  Jim Meyering  <meyering@redhat.com>
7227
7228         revamp the other test-exclude?.sh scripts to use init.sh, too
7229         * tests/test-exclude1.sh: Use init.sh.
7230         * tests/test-exclude2.sh: Likewise.
7231         * tests/test-exclude3.sh: Likewise.
7232         * tests/test-exclude4.sh: Likewise.
7233         * tests/test-exclude5.sh: Likewise.
7234         * tests/test-exclude6.sh: Likewise.
7235         * tests/test-exclude7.sh: Likewise.
7236         * tests/test-exclude8.sh: Likewise.
7237         * modules/exclude-tests (Files): List init.sh.
7238
7239         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7240         These shell scripts ignored failure of the binary test-exclude,
7241         so making the latter return 77 didn't cause them to be skipped.
7242         * tests/test-exclude5.sh: Exit with test-exclude's error status
7243         when that program fails.  Revamp to use init.sh.
7244         * tests/test-exclude2.sh: Likewise.
7245
7246         test-exclude: fix a typo
7247         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7248
7249 2011-11-11  Bruno Haible  <bruno@clisp.org>
7250
7251         obstack: Fix compilation error on MSVC 9.
7252         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7253
7254 2011-11-11  Jim Meyering  <meyering@redhat.com>
7255
7256         test-exclude: skip tests rather than failing on deficient systems
7257         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7258         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7259         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7260         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7261
7262 2011-11-10  Bruno Haible  <bruno@clisp.org>
7263
7264         ptsname_r test: Avoid gcc warning on glibc systems.
7265         * tests/test-ptsname_r.c (null_ptr): New function.
7266         (test_errors): Use it.
7267
7268 2011-11-10  Bruno Haible  <bruno@clisp.org>
7269
7270         ptsname_r: Avoid compilation error on OSF/1 5.1.
7271         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7273         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7274         function is not declared or incompatibly declared.
7275         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7276         * modules/ptsname_r (Depends-on, configure.ac): Update.
7277         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7278
7279 2011-11-10  Bruno Haible  <bruno@clisp.org>
7280
7281         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7282         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7283         When cross-compiling, guess yes on all platforms except AIX.
7284         Reported by Ludovic Courtès <ludo@gnu.org>.
7285
7286 2011-11-09  Bruno Haible  <bruno@clisp.org>
7287
7288         ptsname_r tests: Fix bugs.
7289         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7290         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7291
7292 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7293
7294         fstatat: work with cross-compilation
7295         Problem reported by Ludovic Courtès in
7296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7297         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7298         "cross-compiling" and assume the bug is present.  Replace
7299         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7300         an inverted sense, to be more conservative about our assumptions.
7301         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7302
7303 2011-11-09  Bruno Haible  <bruno@clisp.org>
7304
7305         Improve MODULES.html output.
7306         * modules/mkfifoat (Description): Use the word "function".
7307         * modules/readlinkat (Description): Likewise.
7308         * modules/symlinkat (Description): Likewise.
7309
7310 2011-11-09  Eric Blake  <eblake@redhat.com>
7311
7312         ptsname_r-tests: new test module
7313         * modules/ptsname_r-tests: New module.
7314         * tests/test-ptsname_r.c: New file.
7315
7316         ptsname_r: new module
7317         * modules/ptsname_r: New module.
7318         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7319         * lib/ptsname.c (__ptsname_r): Split...
7320         * lib/ptsname_r.c: ...into new file.
7321         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7322         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7323         * modules/stdlib (Makefile.am): Substitute witnesses.
7324         * lib/stdlib.in.h (ptsname_r): Declare it.
7325         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7326         * MODULES.html.sh (Misc): Likewise.
7327         * modules/ptsname (Depends-on): Alter dependency.
7328         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7329
7330 2011-11-09  Jim Meyering  <meyering@redhat.com>
7331
7332         announce-gen: be more concise when there's only one URL+tarball
7333         * build-aux/announce-gen (get_tool_versions): When you distribute
7334         only one type of tarball, combine the first two "Here are..."
7335         sections and make the key-checking grammar independent of
7336         how many tarballs there are.
7337
7338 2011-11-09  Eric Blake  <eblake@redhat.com>
7339
7340         openpty: provide a stub on mingw
7341         * lib/pty.in.h (includes): Provide forward declarations.
7342         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7343
7344         raise: fix mingw handling of SIGPIPE
7345         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7346
7347 2011-11-08  Bruno Haible  <bruno@clisp.org>
7348
7349         More conditional dependencies.
7350         * modules/faccessat (Depends-on): Add conditions.
7351         * modules/fchmodat (Depends-on): Likewise.
7352         * modules/fchownat (Depends-on): Likewise.
7353         * modules/fstatat (Depends-on): Likewise.
7354         * modules/mkfifoat (Depends-on): Likewise.
7355         * modules/readlinkat (Depends-on): Likewise.
7356         * modules/symlinkat (Depends-on): Likewise.
7357         * modules/unlinkat (Depends-on): Likewise.
7358         * modules/utimensat (Depends-on): Likewise.
7359         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7360         * modules/linkat (Depends-on): Refine the conditions.
7361         * modules/renameat (Depends-on): Likewise.
7362
7363 2011-11-08  Bruno Haible  <bruno@clisp.org>
7364
7365         faccessat: Move AC_LIBOBJ invocation to module description.
7366         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7367         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7368         invocation from here...
7369         * modules/faccessat (configure.ac): ... to here. Invoke
7370         gl_PREREQ_FACCESSAT.
7371
7372 2011-11-08  Bruno Haible  <bruno@clisp.org>
7373
7374         faccessat: Simplify autoconf macro.
7375         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7376         gl_FUNC_EUIDACCESS.
7377
7378 2011-11-08  Bruno Haible  <bruno@clisp.org>
7379
7380         renameat: Fix dependencies.
7381         * modules/renameat (Depends-on): Add stdbool.
7382
7383 2011-11-08  Bruno Haible  <bruno@clisp.org>
7384
7385         mkfifoat: Fix module description.
7386         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7387         not gl_UNISTD_MODULE_INDICATOR.
7388
7389 2011-11-08  Bruno Haible  <bruno@clisp.org>
7390
7391         fstatat: Remove unused dependency.
7392         * modules/fstatat (Depends-on): Remove fstat.
7393
7394 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7395
7396         GNUmakefile: behave when Makefile is missing.
7397         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7398
7399 2011-11-08  Bruno Haible  <bruno@clisp.org>
7400
7401         openat: Conditionalize dependencies.
7402         * lib/openat.c: Reduce the scope of some #includes.
7403         * modules/openat (Depends-on): Add conditions.
7404
7405 2011-11-07  Jim Meyering  <meyering@redhat.com>
7406
7407         maint.mk: extract GPG key ID without using a temporary file
7408         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7409         without using a temporary file.  Based on a suggestion from Werner Koch
7410         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7411
7412 2011-11-07  Eric Blake  <eblake@redhat.com>
7413
7414         grantpt: fix typo
7415         * lib/stdlib.in.h (grantpt): Check correct function.
7416
7417         maint.mk: silence new syntax check
7418         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7419
7420 2011-11-06  Bruno Haible  <bruno@clisp.org>
7421
7422         Doc about floating-point and math API.
7423         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7424         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7425
7426 2011-11-06  Bruno Haible  <bruno@clisp.org>
7427
7428         stdalign tests: Skip the test when compiled by Sun C.
7429         * tests/test-stdalign.c (main): Skip the test on Sun C.
7430
7431 2011-11-06  Bruno Haible  <bruno@clisp.org>
7432
7433         ansi-c++-opt: Complete the 2011-06-05 change.
7434         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7435         does not support namespaces, set the variable to "no", not to ":".
7436
7437 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7438
7439         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7440
7441 2011-11-06  Bruno Haible  <bruno@clisp.org>
7442
7443         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7444         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7445         (minus_zerol) [HP-UX]: New macro.
7446         (unary_minus) [HP-UX]: New function.
7447         (copysignl) [HP-UX]: Use unary_minus function.
7448
7449 2011-11-06  Bruno Haible  <bruno@clisp.org>
7450
7451         ldexp, ldexpf, ldexpl: Enhance tests.
7452         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7453         and tests/test-ldexpl.c.
7454         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7455         LDEXP, MIN_EXP, MAX_EXP): New macros.
7456         Include test-ldexp.h.
7457         (main): Just call test_function.
7458         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7459         infinity.h, nan.h.
7460         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7461         MAX_EXP): New macros.
7462         Include test-ldexp.h.
7463         (x, y): Remove variables.
7464         (main): Just call test_function.
7465         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7466         infinity.h, nan.h.
7467         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7468         MAX_EXP): New macros.
7469         Include test-ldexp.h.
7470         (x, y): Remove variables.
7471         (main): Just call test_function.
7472         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7473         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7474         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7475         (Depends-on): Add isnand-nolibm, signbit, float.
7476         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7477         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7478         (Depends-on): Add isnanf-nolibm, signbit, float.
7479
7480 2011-11-06  Bruno Haible  <bruno@clisp.org>
7481
7482         math tests: Cosmetics.
7483         * tests/test-math-c++.cc: Reorder declarations.
7484
7485 2011-11-05  Bruno Haible  <bruno@clisp.org>
7486
7487         fma*: Simplify test.
7488         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7489         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7490
7491         Tests for module 'fmal'.
7492         * modules/fmal-tests: New file.
7493         * tests/test-fmal1.c: New file.
7494         * tests/test-fmal2.c: New file.
7495
7496         New module 'fmal'.
7497         * lib/math.in.h (fmal): New declaration.
7498         * lib/fmal.c: New file.
7499         * m4/fmal.m4: New file.
7500         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7502         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7503         REPLACE_FMAL.
7504         * modules/fmal: New file.
7505         * doc/posix-functions/fmal.texi: Mention the new module and the various
7506         bugs.
7507
7508         Tests for module 'fmaf'.
7509         * modules/fmaf-tests: New file.
7510         * tests/test-fmaf1.c: New file.
7511         * tests/test-fmaf2.c: New file.
7512
7513         New module 'fmaf'.
7514         * lib/math.in.h (fmaf): New declaration.
7515         * lib/fmaf.c: New file.
7516         * m4/fmaf.m4: New file.
7517         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7519         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7520         REPLACE_FMAF.
7521         * modules/fmaf: New file.
7522         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7523         bugs.
7524
7525         Tests for module 'fma'.
7526         * modules/fma-tests: New file.
7527         * tests/test-fma1.c: New file.
7528         * tests/test-fma1.h: New file.
7529         * tests/test-fma2.c: New file.
7530         * tests/test-fma2.h: New file.
7531
7532         New module 'fma'.
7533         * lib/math.in.h (fma): New declaration.
7534         * lib/fma.c: New file.
7535         * m4/fma.m4: New file.
7536         * m4/fegetround.m4: New file.
7537         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7539         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7540         REPLACE_FMA.
7541         * modules/fma: New file.
7542         * doc/posix-functions/fma.texi: Mention the new module and the various
7543         bugs.
7544
7545         Extend gl_MATHFUNC.
7546         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7547         Support 'void' as argument type.
7548         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7549
7550 2011-11-05  Jim Meyering  <meyering@redhat.com>
7551
7552         maint.mk: also prohibit inclusion of dirent.h without use
7553         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7554
7555 2011-11-05  Bruno Haible  <bruno@clisp.org>
7556
7557         ldexpl tests: Avoid test failure on MSVC 9.
7558         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7559         value. Needed in order to enforce the conversion from a value greater
7560         than LDBL_MAX to Infinity.
7561
7562 2011-11-05  Bruno Haible  <bruno@clisp.org>
7563
7564         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7565         * modules/at-internal: New file, extracted from modules/openat.
7566         * modules/openat-h: New file.
7567         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7568         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7569         * modules/openat (Description): Add reference to POSIX function.
7570         (Files): Remove lib/openat.h, lib/openat-proc.c.
7571         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7572         intprops, unistd.
7573         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7574         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7575         gl_FCNTL_MODULE_INDICATOR.
7576         (Include): Remove unistd.h, openat.h.
7577         * modules/areadlinkat (Files): Add lib/at-func.c.
7578         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7579         openat-die, openat-h, save-cwd.
7580         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7581         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7582         openat-die, openat-h, save-cwd, unistd.
7583         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7584         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7585         openat-h, save-cwd. Remove fcntl-h, openat.
7586         * modules/fchmodat (Files): Remove lib/openat.h.
7587         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7588         openat, stdbool, unistd.
7589         * modules/fchownat (Files): Remove lib/openat.h.
7590         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7591         openat, stdbool, sys_stat.
7592         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7593         lib/openat-proc.c.
7594         (Depends-on): Add at-internal.
7595         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7596         * modules/fstatat (Files): Remove lib/openat.h.
7597         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7598         stdbool, unistd.
7599         * modules/fts (Depends-on): Add openat-h.
7600         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7601         openat.
7602         * modules/mkdirat (Files): Remove lib/openat.h.
7603         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7604         openat, stdbool, sys_stat.
7605         * modules/mkfifoat (Files): Add lib/at-func.c.
7606         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7607         openat-h, save-cwd. Remove fcntl-h, openat.
7608         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7609         * modules/readlinkat (Files): Add lib/at-func.c.
7610         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7611         openat-h, save-cwd. Remove fcntl-h, openat.
7612         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7613         openat.
7614         * modules/selinux-at (Files): Add lib/at-func.c.
7615         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7616         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7617         * modules/symlinkat (Files): Add lib/at-func.c.
7618         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7619         openat-h, save-cwd. Remove fcntl-h, openat.
7620         * modules/unlinkat (Files): Remove lib/openat.h.
7621         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7622         stdbool.
7623         * modules/utimensat (Files): Add lib/at-func.c.
7624         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7625         openat-die, openat-h, save-cwd.
7626         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7627         * modules/fdutimensat-tests (Depends-on): Add openat.
7628         * modules/fstatat-tests (Depends-on): Add openat-h.
7629         * modules/readlinkat-tests (Depends-on): Add openat.
7630         * modules/symlinkat-tests (Depends-on): Add openat.
7631
7632 2011-11-05  Bruno Haible  <bruno@clisp.org>
7633
7634         openat: Include <stdbool.h>.
7635         * lib/openat.c: Include <stdbool.h>.
7636
7637 2011-11-04  Bruno Haible  <bruno@clisp.org>
7638
7639         fchownat, renameat, unlinkat: Fix dependencies.
7640         * modules/fchownat (Depends-on): Add fstatat.
7641         * modules/renameat (Depends-on): Likewise.
7642         * modules/unlinkat (Depends-on): Likewise.
7643
7644 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7645
7646         openat: remove direct dependency on dirent
7647         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7648         and hasn't been needed ever since fdopendir was split into its own
7649         module on 2009-08-31.
7650         * modules/openat (Depends-on): Remove dirent.
7651
7652 2011-11-04  Bruno Haible  <bruno@clisp.org>
7653
7654         renameat: Optimize code size.
7655         * modules/renameat (configure.ac): Don't compile at-func2.c if
7656         REPLACE_RENAMEAT is 1.
7657
7658 2011-11-04  Bruno Haible  <bruno@clisp.org>
7659
7660         openat tests: Fix file list.
7661         * modules/openat-tests (Files): Add tests/test-open.h.
7662
7663 2011-11-04  Bruno Haible  <bruno@clisp.org>
7664
7665         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7666         * modules/fchmodat (Depends-on): Add openat-die.
7667         * modules/fchownat (Depends-on): Likewise.
7668         * modules/linkat (Depends-on): Likewise.
7669         * modules/renameat (Depends-on): Likewise.
7670         * modules/openat (Depends-on): Add dirent.
7671
7672 2011-11-04  Jim Meyering  <meyering@redhat.com>
7673
7674         at-func*.c: fix comments
7675         * lib/at-func2.c: Correct/improve first-line comment.
7676         * lib/at-func.c: Correct grammar in first-line comment.
7677
7678 2011-11-04  Bruno Haible  <bruno@clisp.org>
7679
7680         New module 'mkdirat', split off from module 'openat'.
7681         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7682         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7683         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7684         * modules/mkdirat: New file, extracted from modules/openat.
7685         * modules/openat (Files): Remove lib/mkdirat.c.
7686         (Depends-on): Remove mkdir.
7687         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7688         (Include): Remove <sys/stat.h>.
7689         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7690         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7691         tests/test-mkdir.h.
7692         (Depends-on): Remove ignore-value.
7693         (Makefile.am): Remove rules for test-mkdirat.
7694         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7695         of module 'openat'.
7696         * NEWS: Mention the change.
7697
7698 2011-11-04  Bruno Haible  <bruno@clisp.org>
7699
7700         closedir: Avoid warning on mingw.
7701         * lib/closedir.c: Include <unistd.h>.
7702
7703 2011-11-04  Bruno Haible  <bruno@clisp.org>
7704
7705         New module 'fstatat', split off from module 'openat'.
7706         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7707         defined.
7708         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7709         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7710         gl_FUNC_FSTATAT.
7711         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7712         * modules/fstatat: New file, extracted from modules/openat.
7713         * modules/openat (Files): Remove lib/fstatat.c.
7714         (Depends-on): Remove lstat.
7715         (configure.ac): Remove AC_LIBOBJ of fstatat.
7716         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7717         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7718         tests/test-lstat.h, tests/test-stat.h.
7719         (Depends-on): Remove getcwd-lgpl.
7720         (Makefile.am): Remove rules for test-fstatat.
7721         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7722         of module 'openat'.
7723         * NEWS: Mention the change.
7724         * modules/getcwd (Depends-on): Add fstatat.
7725         * modules/linkat (Depends-on): Likewise.
7726         * modules/mkfifoat-tests (Depends-on): Likewise.
7727         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7728
7729 2011-11-03  Bruno Haible  <bruno@clisp.org>
7730
7731         New module 'unlinkat', split off from module 'openat'.
7732         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7733         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7734         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7735         * modules/unlinkat: New file, extracted from modules/openat. Correct
7736         the dependency conditions.
7737         * modules/openat (Files): Remove lib/unlinkat.c.
7738         (Depends-on): Remove rmdir, unlink.
7739         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7740         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7741         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7742         tests/test-rmdir.h, tests/test-unlink.h.
7743         (Depends-on): Remove unlinkdir.
7744         (Makefile.am): Remove rules for test-unlinkat.
7745         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7746         of module 'openat'.
7747         * NEWS: Mention the change.
7748         * modules/linkat-tests (Depends-on): Add unlinkat.
7749         * modules/mkfifoat-tests (Depends-on): Likewise.
7750         * modules/readlinkat-tests (Depends-on): Likewise.
7751
7752 2011-11-02  Bruno Haible  <bruno@clisp.org>
7753
7754         New module 'fchmodat', split off from module 'openat'.
7755         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7756         defined.
7757         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7758         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7759         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7760         * modules/fchmodat: New file, extracted from modules/openat.
7761         * modules/openat (Files): Remove lib/fchmodat.c.
7762         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7763         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7764         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7765         (Makefile.am): Remove rules for test-fchmodat.
7766         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7767         of module 'openat'.
7768         * NEWS: Mention the change.
7769
7770 2011-11-02  Jim Meyering  <meyering@redhat.com>
7771
7772         putenv: indent #definition of "environ" to placate cppi
7773         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7774
7775         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7776         Git logs are often treated as immutable, because editing them
7777         changes the SHA1 checksums of all descendants.  Thus, errors in
7778         git logs tend to stay there forever.  However, when we generate
7779         a ChangeLog file -- typically for distribution -- from that git log,
7780         we can actually make corrections in the generated file.  The key
7781         lies in recording in machine-readable/applicable form the desired
7782         corrections.  See --help for description and an example.
7783         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7784         (usage): Describe it; alphabetize option descriptions.
7785         (main): Honor the new option, carefully.
7786
7787 2011-11-01  Jim Meyering  <meyering@redhat.com>
7788
7789         gitlog-to-changelog: avoid an infloop
7790         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7791         that ends up being empty.
7792
7793 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7794
7795         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7796         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7797         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7798         contains (possibly-quoted) backslashes.  This should avoid
7799         all-too-common shell bugs if COMPLICATED contains backslashes in
7800         the "wrong" places.  Reported by David Evans in
7801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7802         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7803         because we want ASCII ranges.  Is there some reason we don't use
7804         the C locale everywhere in this script?
7805         (func_module, top level): Avoid unwanted pathname expansion when
7806         $repo_url_prefix or $repo_url_suffix_repl contain shell
7807         metacharacters like '?' and '*'.
7808
7809 2011-11-01  Bruno Haible  <bruno@clisp.org>
7810
7811         fchownat: Improve description.
7812         * modules/fchownat (Description): Add link to function.
7813
7814 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7815
7816         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7817         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7819         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7820
7821 2011-11-01  Bruno Haible  <bruno@clisp.org>
7822
7823         alignof: Avoid collision with stdalign module.
7824         * lib/alignof.h (alignof): Remove macro.
7825         * NEWS: Mention the change.
7826         Reported by Paul Eggert.
7827
7828 2011-11-01  Bruno Haible  <bruno@clisp.org>
7829
7830         New module 'fchownat', split off from module 'openat'.
7831         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7832         defined.
7833         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7834         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7835         invoke gl_FUNC_FCHOWNAT.
7836         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7837         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7838         * modules/fchownat: New file, extracted from modules/openat.
7839         * modules/openat (Files): Remove lib/fchownat.c.
7840         (Depends-on): Remove lchown.
7841         (configure.ac): Remove AC_LIBOBJ of fchownat.
7842         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7843         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7844         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7845         (Depends-on): Remove mgetgroups, usleep, stat-time.
7846         (configure.ac): Remove test for getegid.
7847         (Makefile.am): Remove rules for test-fchownat.
7848         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7849         of module 'openat'.
7850         * NEWS: Mention the change.
7851
7852 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7853
7854         stdalign: port better to MSVC and to Sun C 5.11
7855         This fixes some of the problems reported by Bruno Haible in
7856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7857         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7858         shortcomings of MSVC and of Sun C 5.11.
7859         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7860         around __declspec arg.
7861         * modules/stdalign-tests (Files): Add tests/macros.h.
7862         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7863         Include macros.h, for ASSERT.
7864         (DECLARE_ALIGNED): Remove.
7865         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7866         to catch bug), and to 1 if not (simplifies the rest of the code).
7867         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7868         (CHECK_AUTO): Remove.
7869         (CHECK_ALIGNED): Check only the alignment of the static vars,
7870         since auto var alignment isn't supported by Sun C 5.11.
7871         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7872         ASSERT failures are easier to diagnose.
7873
7874 2011-10-31  Bruno Haible  <bruno@clisp.org>
7875
7876         doc about some IRIX 5.3 problems.
7877         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7878         on IRIX 5.3.
7879         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7880         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7881         5.3.
7882         * doc/posix-functions/grantpt.texi: Likewise.
7883         * doc/posix-functions/unlockpt.texi: Likewise.
7884         * doc/posix-functions/lgamma.texi: Likewise.
7885         * doc/posix-functions/nextafter.texi: Likewise.
7886         * doc/posix-functions/remainder.texi: Likewise.
7887         * doc/posix-functions/select.texi: Mention misplaced declaration on
7888         IRIX 5.3.
7889         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7890
7891 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7892
7893         gitlog-to-changelog: fix git-log invocation.
7894         git-log mishandles date strings before 1970-01-01 UTC, and there is
7895         no use to specify --since=1970-01-01 by default anyway.
7896         * build-aux/gitlog-to-changelog: By default, when no --since option
7897         was given, do not specify explicit --since option to git-log.
7898
7899 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7900
7901         gitlog-to-changelog: new option --append-dot.
7902         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7903         first non-blank line of each commit message terminated with a dot.
7904
7905 2011-10-30  Bruno Haible  <bruno@clisp.org>
7906
7907         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7908         * lib/ffsl.h: Include <config.h>.
7909         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7910
7911 2011-10-30  Jim Meyering  <meyering@redhat.com>
7912
7913         GNUmakefile: reenable "make syntax-check" for most projects
7914         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7915         build-aux variable", "syntax-check" would do nothing but succeed with
7916         the "No version control files detected..." diagnostic (unless you
7917         happened to override _build-aux via cfg.mk).
7918         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7919         to precede inclusion of maint.mk.  Otherwise, these variables would
7920         be used undefined in any project that does not override the default.
7921
7922 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7923
7924         gitlog-to-changelog: treat a message with only blank lines as empty.
7925         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7926         trailing blank lines before the code that issues a warning about an
7927         empty commit message.
7928
7929 2011-10-30  Jim Meyering  <meyering@redhat.com>
7930
7931         test-parse-datetime.c: avoid new DST-related false positive test failure
7932         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7933         based on the time/date we'll convert, not the current time.
7934         Otherwise, the moment we cross a DST boundary like today's in
7935         Europe, (CEST to CET), that offset ends up being one hour off.
7936
7937 2011-10-27  Bruno Haible  <bruno@clisp.org>
7938
7939         fstat: Tweak documentation.
7940         * modules/fstat (Description): More precise description.
7941
7942 2011-10-27  Bruno Haible  <bruno@clisp.org>
7943
7944         Update documentation regarding 'largefile' module.
7945         * doc/posix-functions/fstat.texi: Tweak wording.
7946         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7947         problems with huge directories and/or small ino_t types.
7948         * doc/posix-functions/readdir.texi: Likewise.
7949         * doc/posix-functions/rewinddir.texi: Likewise.
7950
7951 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7952
7953         maint.mk: don't maintain a second build-aux variable.
7954         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7955         depends on GNUmakefile, which already maintains a cfg.mk
7956         overridable $(_build-aux) for projects with a non-standard
7957         build-aux directory location, although without the $(srcdir)
7958         prefix.  Use that variable consistently instead of introducing a
7959         second one.  Adjust all call sites.
7960
7961 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7962
7963         Add stdalign module and use it in other modules.
7964         This is based on a previous proposal by Bruno Haible
7965         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7966
7967         stdalign: new module
7968         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7969         * modules/stdalign: New files.
7970         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7971         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7972
7973         stdalign-tests: new module
7974         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7975
7976         argp: use stdalign
7977         * lib/argp-parse.c: Include <stdalign.h>.
7978         (alignof): Remove.
7979         * modules/argp (Depends-on): Add stdalign.
7980
7981         crypto libraries: use stdalign
7982         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7983         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7984         Do not include <stdlib.h> twice, in md4.c.
7985         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7986         because we are accessing a pointer's bit-pattern, not a size.
7987         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7988         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7989         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7990         * modules/crypto/sha512: Likewise.
7991
7992         sys_socket: use stdalign, not alignof
7993         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7994         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7995
7996 2011-10-27  Bruno Haible  <bruno@clisp.org>
7997
7998         raise test: Avoid a test failure on Linux/MIPS.
7999         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
8000         because 99 is a valid signal on Linux/MIPS.
8001
8002 2011-10-27  Bruno Haible  <bruno@clisp.org>
8003
8004         nonblocking tests: Fix test failure on Linux/MIPS.
8005         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
8006         Set to 270000.
8007
8008 2011-10-27  Bruno Haible  <bruno@clisp.org>
8009
8010         utimensat: Work around problem on Linux/hppa.
8011         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8012         values.
8013         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8014
8015 2011-10-25  Jim Meyering  <meyering@redhat.com>
8016
8017         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8018         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8019         after symbols like NULL, size_t, etc.
8020         Reported by Alfred M. Szmidt.
8021
8022         maint.mk: exempt ENODATA from a syntax-check rule
8023         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8024         from the sc_prohibit_always-defined_macros syntax-check rule.
8025         Add a comment.  See this for more details:
8026         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8027
8028 2011-10-23  Jim Meyering  <meyering@redhat.com>
8029
8030         fts: close parent dir FD before returning from post-traversal fts_read
8031         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8032         unlink A, even though an FD open on A remained.  This is suboptimal
8033         (holding a file descriptor open longer than needed), but otherwise not
8034         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8035         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8036         that represents a real problem: it causes the removal of A to fail
8037         with e.g., "rm: cannot remove `A': Device or resource busy"
8038
8039         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8040         directory file descriptors.  After completing the final, FTS_DP,
8041         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8042         cache, but then proceeded to add a new FD to it via the subsequent
8043         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8044         final file descriptor would be closed only via fts_close's call to
8045         fd_ring_clear.  Now, it is usually closed earlier, via the final
8046         FTS_DP-returning fts_read call.
8047         * lib/fts.c (restore_initial_cwd): New function, converted from
8048         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8049         Update callers.
8050         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8051         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8052
8053 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8054             Bruno Haible  <bruno@clisp.org>
8055             Jim Meyering  <jim@meyering.net>
8056
8057         readme-release: improve safety of release prep instructions.
8058         * README-release: Don't git pull all branches when only master
8059         is needed for the release process.
8060         Run make maintainer-clean before changing trees and merging.
8061         Don't try to run ./configure right after git pull in case files
8062         that influence the bootstrap process have changed, move the
8063         ./configure step to after running ./bootstrap.
8064         Don't bootstrap "one last time"... it's the first time!
8065
8066 2011-10-22  Bruno Haible  <bruno@clisp.org>
8067
8068         errno, strerror-override: Support for MSVC 10.
8069         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8070         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8071         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8072         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8073         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8074         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8075         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8076         Assign values compatible with MSVC 10.
8077         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8078         New macros.
8079         (GNULIB_defined_EWINSOCK): New macro.
8080         * lib/strerror-override.c (strerror_override): Update accordingly.
8081         * lib/strerror-override.h: Likewise.
8082         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8083         longer equal to the corresponding errno value.
8084         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8085
8086 2011-10-22  Bruno Haible  <bruno@clisp.org>
8087
8088         perror: Recognize when test program crashes.
8089         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8090         strerror, set gl_cv_func_perror_works to no.
8091         Reported by Daniel Richard G. <skunk@iskunk.org>.
8092
8093         perror: Fix indentation.
8094         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8095
8096 2011-10-22  Bruno Haible  <bruno@clisp.org>
8097
8098         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8099         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8100         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8101         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8102         functions, not as a macro.
8103         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8104         macros.
8105         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8106         absence of macro.
8107         Suggested by Eric Blake.
8108         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8109
8110 2011-10-21  Bruno Haible  <bruno@clisp.org>
8111
8112         relocatable-prog-wrapper: Don't leave object files behind.
8113         * build-aux/install-reloc: Re-synchronize list of .o files to be
8114         removed with list of compilation units.
8115
8116 2011-10-20  Bruno Haible  <bruno@clisp.org>
8117
8118         openpty, posix_openpt: Remove code duplication.
8119         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8120         * lib/openpty.c: Include <stdlib.h>.
8121         (openpty): Use posix_openpt on all platforms except IRIX.
8122         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8123
8124 2011-10-20  Bruno Haible  <bruno@clisp.org>
8125
8126         unlockpt: Detect invalid argument.
8127         * lib/unlockpt.c: Include <fcntl.h>.
8128         (unlockpt): Check whether fd is valid, using fcntl().
8129         * modules/unlockpt (Depends-on): Add fcntl-h.
8130
8131 2011-10-20  Bruno Haible  <bruno@clisp.org>
8132
8133         openpty: Avoid compilation error on AIX 6.1.
8134         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8135
8136 2011-10-20  Bruno Haible  <bruno@clisp.org>
8137
8138         posix_openpt: Support for OpenBSD.
8139         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8140         (posix_openpt) [OpenBSD]: New code.
8141         * lib/grantpt.c: Include <fcntl.h>.
8142         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8143         * modules/grantpt (Depends-on): Add fcntl-h.
8144
8145 2011-10-20  Bruno Haible  <bruno@clisp.org>
8146
8147         posix_openpt test: Coding style.
8148         * tests/test-posix_openpt.c: Use GNU coding style.
8149
8150 2011-10-20  Bruno Haible  <bruno@clisp.org>
8151
8152         grantpt: Support --avoid=pt_chown.
8153         * modules/grantpt (Files): Add lib/pty-private.h.
8154
8155 2011-10-20  Bruno Haible  <bruno@clisp.org>
8156
8157         posix_openpt: Fix autoconf macro.
8158         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8159         unneeded check for _getpty.
8160
8161 2011-10-20  Bruno Haible  <bruno@clisp.org>
8162
8163         openpty: Update comments.
8164         * lib/openpty.c: Add comments about Minix.
8165
8166 2011-10-19  Eric Blake  <eblake@redhat.com>
8167
8168         openpty: relax license
8169         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8170
8171         pt_chown: use configmake to simplify build
8172         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8173
8174         ptsname and others: relax license
8175         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8176         * modules/unlockpt (License): Likewise.
8177         * modules/pt_chown (License): Likewise.
8178         * modules/ptsname (License): Likewise.
8179         * modules/ttyname_r (License): Likewise.
8180
8181 2011-10-19  Jim Meyering  <meyering@redhat.com>
8182
8183         posix_openpt: remove spurious #endif
8184         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8185
8186 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8187
8188         maint.mk: Respect $(build_aux) in web-manual rule.
8189         * top/maint.mk (web-manual): Find gen-announce script in user's
8190         $(build_aux) directory instead of hard-coding 'build-aux'.
8191
8192 2011-10-19  Bruno Haible  <bruno@clisp.org>
8193
8194         posix_openpt: Fix compilation error.
8195         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8196         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8197         Mention the openpty module as an alternative.
8198
8199 2011-10-19  Bruno Haible  <bruno@clisp.org>
8200
8201         Support for old NeXTstep 3.3 frexp().
8202         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8203         execution time of the test to 5 seconds.
8204         Reported by Daniel Richard G. <skunk@iskunk.org>.
8205
8206 2011-10-19  Bruno Haible  <bruno@clisp.org>
8207
8208         Support for old NeXTstep 3.3 sed.
8209         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8210         part, use /.../, not \|...|. Escape periods in the header file name.
8211         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8212         Reported by Daniel Richard G. <skunk@iskunk.org>.
8213
8214 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8215
8216         Support for old NeXTstep 3.3 gcc.
8217         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8218         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8219         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8220         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8221         * lib/regex.h (_Restrict_arr_): Likewise.
8222         * lib/regex_internal.h (re_token_t): Likewise.
8223         * lib/regexec.c (check_node_accept_bytes): Likewise.
8224         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8225
8226 2011-10-18  Eric Blake  <eblake@redhat.com>
8227
8228         posix_openpt: new module
8229         * modules/posix_openpt: New module.
8230         * m4/posix_openpt.m4: New file.
8231         * lib/posix_openpt.c: Likewise.
8232         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8233         (gl_STDLIB_H_DEFAULTS): Set defaults.
8234         * modules/stdlib (Makefile.am): Substitute macros.
8235         * lib/stdlib.in.h (posix_openpt): Declare.
8236         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8237         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8238         * modules/posix_openpt-tests: New test module.
8239         * tests/test-posix_openpt.c: New test.
8240
8241 2011-10-15  Bruno Haible  <bruno@clisp.org>
8242
8243         xstrtoll: Fix compilation failure.
8244         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8245         from lib/strtol.c.
8246         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8247         some platforms.
8248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8249
8250 2011-10-15  Bruno Haible  <bruno@clisp.org>
8251
8252         vasnprintf: Optimize bit search operation.
8253         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8255         gl_DOUBLE_EXPONENT_LOCATION.
8256         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8257         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8258         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8259         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8260         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8261         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8262         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8263         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8264         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8265
8266 2011-10-15  Bruno Haible  <bruno@clisp.org>
8267
8268         vasnprintf: Fix comments.
8269         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8270
8271 2011-10-14  Bruno Haible  <bruno@clisp.org>
8272
8273         Tests for module 'integer_length_ll'.
8274         * modules/integer_length_ll-tests: New file.
8275         * tests/test-integer_length_ll.c: New file.
8276
8277         New module 'integer_length_ll'.
8278         * lib/integer_length_ll.c: New file.
8279         * modules/integer_length_ll: New file.
8280
8281 2011-10-14  Bruno Haible  <bruno@clisp.org>
8282
8283         Tests for module 'integer_length_l'.
8284         * modules/integer_length_l-tests: New file.
8285         * tests/test-integer_length_l.c: New file.
8286
8287         New module 'integer_length_l'.
8288         * lib/integer_length_l.c: New file.
8289         * modules/integer_length_l: New file.
8290
8291 2011-10-14  Bruno Haible  <bruno@clisp.org>
8292
8293         Tests for module 'integer_length'.
8294         * modules/integer_length-tests: New file.
8295         * tests/test-integer_length.c: New file.
8296
8297         New module 'integer_length'.
8298         * lib/integer_length.h: New file.
8299         * lib/integer_length.c: New file.
8300         * modules/integer_length: New file.
8301
8302 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8303
8304         popen: Fix dependency conditions.
8305         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8306
8307 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8308
8309         perror: Fix autoconf test.
8310         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8311         <stdlib.h> and <string.h>.
8312
8313 2011-10-14  Bruno Haible  <bruno@clisp.org>
8314
8315         ffsl: Optimize on 64-bit platforms.
8316         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8317         unrolling.
8318
8319 2011-10-13  Bruno Haible  <bruno@clisp.org>
8320
8321         ffsl: Optimize on 32-bit platforms.
8322         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8323         use ffs() without a loop.
8324
8325         ffsl, ffsll: Optimize for GCC.
8326         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8327         * lib/ffsl.c (GCC_BUILTIN): New macro.
8328         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8329
8330 2011-10-13  Bruno Haible  <bruno@clisp.org>
8331
8332         ffs, bcopy, memset: Support symbol renaming via config.h.
8333         * lib/ffs.c: Include <config.h>.
8334         * lib/bcopy.c: Likewise.
8335         * lib/memset.c: Likewise.
8336
8337 2011-10-10  Bruno Haible  <bruno@clisp.org>
8338
8339         atanl: Simplify for platforms where 'long double' == 'double'.
8340         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8341         alternative implementation.
8342         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8343         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8344         * modules/atanl (Depends-on): Add atan. Update conditions.
8345
8346 2011-10-10  Bruno Haible  <bruno@clisp.org>
8347
8348         acosl: Simplify for platforms where 'long double' == 'double'.
8349         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8350         alternative implementation.
8351         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8352         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8353         * modules/acosl (Depends-on): Add acos. Update conditions.
8354
8355 2011-10-10  Bruno Haible  <bruno@clisp.org>
8356
8357         asinl: Simplify for platforms where 'long double' == 'double'.
8358         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8359         alternative implementation.
8360         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8361         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8362         * modules/asinl (Depends-on): Add asin. Update conditions.
8363
8364 2011-10-10  Bruno Haible  <bruno@clisp.org>
8365
8366         tanl: Simplify for platforms where 'long double' == 'double'.
8367         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8368         implementation.
8369         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8370         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8371         * modules/tanl (Depends-on): Add tan. Update conditions.
8372         (configure.ac): Don't compile trigl.c if
8373         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8374
8375 2011-10-10  Bruno Haible  <bruno@clisp.org>
8376
8377         cosl: Simplify for platforms where 'long double' == 'double'.
8378         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8379         implementation.
8380         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8381         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8382         * modules/cosl (Depends-on): Add cos. Update conditions.
8383         (configure.ac): Don't compile sincosl.c and trigl.c if
8384         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8385
8386 2011-10-10  Bruno Haible  <bruno@clisp.org>
8387
8388         sinl: Simplify for platforms where 'long double' == 'double'.
8389         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8390         implementation.
8391         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8392         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8393         * modules/sinl (Depends-on): Add sin. Update conditions.
8394         (configure.ac): Don't compile sincosl.c and trigl.c if
8395         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8396
8397 2011-10-10  Bruno Haible  <bruno@clisp.org>
8398
8399         logl: Simplify for platforms where 'long double' == 'double'.
8400         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8401         implementation.
8402         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8403         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8404         * modules/logl (Depends-on): Add log. Update conditions.
8405
8406 2011-10-10  Bruno Haible  <bruno@clisp.org>
8407
8408         expl: Simplify for platforms where 'long double' == 'double'.
8409         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8410         implementation.
8411         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8412         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8413         * modules/expl (Depends-on): Add exp. Update conditions.
8414
8415 2011-10-10  Bruno Haible  <bruno@clisp.org>
8416
8417         sqrtl: Simplify for platforms where 'long double' == 'double'.
8418         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8419         alternative implementation.
8420         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8421         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8422         * modules/sqrtl (Depends-on): Update conditions.
8423
8424 2011-10-10  Bruno Haible  <bruno@clisp.org>
8425
8426         ldexpl: Simplify for platforms where 'long double' == 'double'.
8427         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8428         alternative implementation.
8429         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8430         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8431         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8432
8433 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8434
8435         ffsll: set correct witness
8436         * modules/ffsll (configure.ac): Fix typo.
8437
8438 2011-10-10  Bruno Haible  <bruno@clisp.org>
8439
8440         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8441         * lib/printf-frexpl.c: Include <config.h>.
8442         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8443         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8444         second time.
8445         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8446         gl_LONG_DOUBLE_VS_DOUBLE.
8447         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8448         conditions.
8449
8450 2011-10-10  Bruno Haible  <bruno@clisp.org>
8451
8452         frexpl: Simplify for platforms where 'long double' == 'double'.
8453         * lib/frexpl.c: Include <config.h>.
8454         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8455         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8456         time.
8457         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8458         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8459         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8460         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8461         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8462         conditions.
8463
8464 2011-10-10  Jim Meyering  <meyering@redhat.com>
8465
8466         test-renameat: don't leave behind a temporary file
8467         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8468           ERROR: files left in build directory after distclean:
8469           ./gltests/test-renameat.too
8470           make[1]: *** [distcleancheck] Error 1
8471         Reported by Tom G. Christensen.
8472
8473 2011-10-09  Bruno Haible  <bruno@clisp.org>
8474
8475         rint: Determine RINT_LIBM correctly on AIX 7.
8476         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8477         directly, not only through a function pointer. Also accept an optional
8478         4th argument with extra code.
8479         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8480         rintf() call by gcc when optimizing.
8481
8482         mathfunc.m4: Refactor.
8483         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8484         m4 variable.
8485
8486 2011-10-09  Bruno Haible  <bruno@clisp.org>
8487
8488         rintl: Simplify for platforms where 'long double' == 'double'.
8489         * lib/rintl.c: Include <config.h>.
8490         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8491         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8492         time.
8493         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8494         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8495         * modules/rintl (Depends-on): Add rint. Update conditions.
8496
8497 2011-10-09  Bruno Haible  <bruno@clisp.org>
8498
8499         roundl: Simplify for platforms where 'long double' == 'double'.
8500         * lib/roundl.c: Include <config.h>.
8501         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8502         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8503         time.
8504         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8505         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8506         * modules/roundl (Depends-on): Add round. Update conditions.
8507
8508 2011-10-09  Bruno Haible  <bruno@clisp.org>
8509
8510         truncl: Simplify for platforms where 'long double' == 'double'.
8511         * lib/truncl.c: Include <config.h>.
8512         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8513         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8514         time.
8515         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8516         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8517         * modules/truncl (Depends-on): Add trunc. Update conditions.
8518
8519 2011-10-09  Bruno Haible  <bruno@clisp.org>
8520
8521         ceill: Simplify for platforms where 'long double' == 'double'.
8522         * lib/ceill.c: Include <config.h>.
8523         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8524         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8525         time.
8526         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8527         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8528         * modules/ceill (Depends-on): Add ceil. Update conditions.
8529
8530 2011-10-09  Bruno Haible  <bruno@clisp.org>
8531
8532         floorl: Simplify for platforms where 'long double' == 'double'.
8533         * lib/floorl.c: Include <config.h>.
8534         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8535         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8536         time.
8537         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8538         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8539         * modules/floorl (Depends-on): Add floor. Update conditions.
8540
8541 2011-10-09  Bruno Haible  <bruno@clisp.org>
8542
8543         rint: Fix ordering constraints.
8544         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8545         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8546         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8547
8548 2011-10-09  Bruno Haible  <bruno@clisp.org>
8549
8550         copysignl: Simplify for platforms where 'long double' == 'double'.
8551         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8552         alternative.
8553         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8554         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8555         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8556
8557 2011-10-09  Bruno Haible  <bruno@clisp.org>
8558
8559         Tests for module 'rintl'.
8560         * modules/rintl-tests: New file.
8561         * tests/test-rintl.c: New file.
8562
8563         New module 'rintl'.
8564         * lib/math.in.h (rintl): New declaration.
8565         * lib/rintl.c: New file.
8566         * m4/rintl.m4: New file.
8567         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8569         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8570         * modules/rintl: New file.
8571         * tests/test-math-c++.cc: Check the declaration of rintl.
8572         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8573         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8574         * doc/posix-functions/rintl.texi: Mention the new module.
8575
8576 2011-10-09  Bruno Haible  <bruno@clisp.org>
8577
8578         Tests for module 'rintf'.
8579         * modules/rintf-tests: New file.
8580         * tests/test-rintf.c: New file.
8581
8582         New module 'rintf'.
8583         * lib/math.in.h (rintf): New declaration.
8584         * lib/rintf.c: New file.
8585         * m4/rintf.m4: New file.
8586         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8588         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8589         * modules/rintf: New file.
8590         * tests/test-math-c++.cc: Check the declaration of rintf.
8591         * doc/posix-functions/rintf.texi: Mention the new module.
8592
8593 2011-10-09  Bruno Haible  <bruno@clisp.org>
8594
8595         rint: Support for MSVC.
8596         * lib/math.in.h (rint): New declaration.
8597         * lib/rint.c: New file.
8598         * m4/rint.m4: New file.
8599         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8601         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8602         * modules/rint (Description): Fix.
8603         (Files): Add lib/rint.c, m4/rint.m4.
8604         (Depends-on): Add math.
8605         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8606         gl_MATH_MODULE_INDICATOR.
8607         * tests/test-math-c++.cc: Check the declaration of rint.
8608         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8609         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8610         * doc/posix-functions/rint.texi: Mention the replacement provided by
8611         the module.
8612
8613         rint tests: More tests.
8614         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8615         minus-zero.h, infinity.h, nan.h.
8616         (main): Skip the test if the current rounding mode is not standard. Add
8617         tests for negative numbers, minus zero, infinity, NaN.
8618         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8619         tests/nan.h.
8620         (Depends-on): Add isnand-nolibm.
8621
8622 2011-10-09  Bruno Haible  <bruno@clisp.org>
8623
8624         Tests for module 'copysignl'.
8625         * modules/copysignl-tests: New file.
8626         * tests/test-copysignl.c: New file.
8627
8628         New module 'copysignl'.
8629         * lib/math.in.h (copysignl): New declaration.
8630         * lib/copysignl.c: New file.
8631         * m4/copysignl.m4: New file.
8632         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8634         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8635         HAVE_COPYSIGNL.
8636         * modules/copysignl: New file.
8637         * tests/test-math-c++.cc: Check the declaration of copysignl.
8638         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8639         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8640         * doc/posix-functions/copysignl.texi: Mention the new module.
8641
8642 2011-10-09  Bruno Haible  <bruno@clisp.org>
8643
8644         Tests for module 'copysignf'.
8645         * modules/copysignf-tests: New file.
8646         * tests/test-copysignf.c: New file.
8647
8648         New module 'copysignf'.
8649         * lib/math.in.h (copysignf): New declaration.
8650         * lib/copysignf.c: New file.
8651         * m4/copysignf.m4: New file.
8652         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8653         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8654         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8655         HAVE_COPYSIGNF.
8656         * modules/copysignf: New file.
8657         * tests/test-math-c++.cc: Check the declaration of copysignf.
8658         * doc/posix-functions/copysignf.texi: Mention the new module.
8659
8660 2011-10-09  Bruno Haible  <bruno@clisp.org>
8661
8662         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8663         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8664         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8665         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8666         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8667         gl_SIGNAL_H_DEFAULTS.
8668
8669 2011-10-09  Bruno Haible  <bruno@clisp.org>
8670
8671         poll: Make macro safer.
8672         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8673         ac_cv_header_poll_h is not set.
8674
8675 2011-10-09  Bruno Haible  <bruno@clisp.org>
8676
8677         copysign: Provide replacement.
8678         * lib/math.in.h (copysign): New declaration.
8679         * lib/copysign.c: New file.
8680         * m4/copysign.m4: New file.
8681         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8682         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8683         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8684         HAVE_COPYSIGN.
8685         * modules/copysign (Description): Clarify.
8686         (Files): Add lib/copysign.c, m4/copysign.m4.
8687         (Depends-on): Add math, signbit.
8688         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8689         gl_MATH_MODULE_INDICATOR.
8690         * tests/test-math-c++.cc: Check the declaration of copysign.
8691         * doc/posix-functions/copysign.texi: Mention the effects of the module
8692         on Minix and MSVC.
8693
8694 2011-10-09  Bruno Haible  <bruno@clisp.org>
8695
8696         isinf: Ensure macro on AIX 5.1.
8697         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8698         macro.
8699         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8700
8701 2011-10-09  Bruno Haible  <bruno@clisp.org>
8702
8703         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8704         * modules/snprintf-posix-tests (configure.ac): Require
8705         gl_LONG_DOUBLE_VS_DOUBLE.
8706         * modules/sprintf-posix-tests (configure.ac): Likewise.
8707         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8708         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8709         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8710         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8711         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8712         tests on platforms where 'long double' is the same as 'double'.
8713         * tests/test-sprintf-posix.h (test_function): Likewise.
8714         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8715         * tests/test-vasprintf-posix.c (test_function): Likewise.
8716
8717         *printf: Fix for platforms where 'long double' == 'double'.
8718         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8719         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8720         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8721         * modules/fprintf-posix (Files): Likewise.
8722         * modules/obstack-printf-posix (Files): Likewise.
8723         * modules/snprintf-posix (Files): Likewise.
8724         * modules/sprintf-posix (Files): Likewise.
8725         * modules/vasnprintf (Files): Likewise.
8726         * modules/vasnprintf-posix (Files): Likewise.
8727         * modules/vasprintf-posix (Files): Likewise.
8728         * modules/vdprintf-posix (Files): Likewise.
8729         * modules/vfprintf-posix (Files): Likewise.
8730         * modules/vsnprintf-posix (Files): Likewise.
8731         * modules/vsprintf-posix (Files): Likewise.
8732         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8733         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8734         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8735         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8736         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8737         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8738         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8739
8740         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8741         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8742         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8743         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8744         'long double'.
8745         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8746
8747         isinf: Fix for platforms where 'long double' == 'double'.
8748         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8749         Don't blindly assume 80-bit 'long double'.
8750
8751         isfinite: Fix for platforms where 'long double' == 'double'.
8752         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8753         Don't blindly assume 80-bit 'long double'.
8754
8755         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8756         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8757         * modules/isfinite-tests (configure.ac): Require
8758         gl_LONG_DOUBLE_VS_DOUBLE.
8759         * modules/isinf-tests (configure.ac): Likewise.
8760         * modules/isnan-tests (configure.ac): Likewise.
8761         * modules/isnanl-tests (configure.ac): Likewise.
8762         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8763         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8764         tests on platforms where 'long double' is the same as 'double'.
8765         * tests/test-isinf.c (test_isinfl): Likewise.
8766         * tests/test-isnan.c (test_long_double): Likewise.
8767         * tests/test-isnanl.h (main): Likewise.
8768
8769 2011-10-08  Bruno Haible  <bruno@clisp.org>
8770
8771         Tests for module 'tanhf'.
8772         * modules/tanhf-tests: New file.
8773         * tests/test-tanhf.c: New file.
8774
8775         New module 'tanhf'.
8776         * lib/math.in.h (tanhf): New declaration.
8777         * lib/tanhf.c: New file.
8778         * m4/tanhf.m4: New file.
8779         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8780         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8781         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8782         * modules/tanhf: New file.
8783         * tests/test-math-c++.cc: Check the declaration of tanhf.
8784         * doc/posix-functions/tanhf.texi: Mention the new module.
8785
8786         tanh: Use a .m4 file.
8787         * m4/tanh.m4: New file.
8788         * modules/tanh (Files): Add it.
8789         (configure.ac): Just invoke gl_FUNC_TANH.
8790
8791 2011-10-08  Bruno Haible  <bruno@clisp.org>
8792
8793         Tests for module 'coshf'.
8794         * modules/coshf-tests: New file.
8795         * tests/test-coshf.c: New file.
8796
8797         New module 'coshf'.
8798         * lib/math.in.h (coshf): New declaration.
8799         * lib/coshf.c: New file.
8800         * m4/coshf.m4: New file.
8801         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8802         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8803         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8804         * modules/coshf: New file.
8805         * tests/test-math-c++.cc: Check the declaration of coshf.
8806         * doc/posix-functions/coshf.texi: Mention the new module.
8807
8808         cosh: Use a .m4 file.
8809         * m4/cosh.m4: New file.
8810         * modules/cosh (Files): Add it.
8811         (configure.ac): Just invoke gl_FUNC_COSH.
8812
8813 2011-10-08  Bruno Haible  <bruno@clisp.org>
8814
8815         Tests for module 'sinhf'.
8816         * modules/sinhf-tests: New file.
8817         * tests/test-sinhf.c: New file.
8818
8819         New module 'sinhf'.
8820         * lib/math.in.h (sinhf): New declaration.
8821         * lib/sinhf.c: New file.
8822         * m4/sinhf.m4: New file.
8823         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8825         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8826         * modules/sinhf: New file.
8827         * tests/test-math-c++.cc: Check the declaration of sinhf.
8828         * doc/posix-functions/sinhf.texi: Mention the new module.
8829
8830         sinh: Use a .m4 file.
8831         * m4/sinh.m4: New file.
8832         * modules/sinh (Files): Add it.
8833         (configure.ac): Just invoke gl_FUNC_SINH.
8834
8835 2011-10-08  Bruno Haible  <bruno@clisp.org>
8836
8837         Tests for module 'atan2f'.
8838         * modules/atan2f-tests: New file.
8839         * tests/test-atan2f.c: New file.
8840
8841         New module 'atan2f'.
8842         * lib/math.in.h (atan2f): New declaration.
8843         * lib/atan2f.c: New file.
8844         * m4/atan2f.m4: New file.
8845         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8847         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8848         * modules/atan2f: New file.
8849         * tests/test-math-c++.cc: Check the declaration of atan2f.
8850         * doc/posix-functions/atan2f.texi: Mention the new module.
8851
8852         atan2: Use a .m4 file.
8853         * m4/atan2.m4: New file.
8854         * modules/atan2 (Files): Add it.
8855         (configure.ac): Just invoke gl_FUNC_ATAN2.
8856
8857 2011-10-08  Bruno Haible  <bruno@clisp.org>
8858
8859         Tests for module 'atanf'.
8860         * modules/atanf-tests: New file.
8861         * tests/test-atanf.c: New file.
8862
8863         New module 'atanf'.
8864         * lib/math.in.h (atanf): New declaration.
8865         * lib/atanf.c: New file.
8866         * m4/atanf.m4: New file.
8867         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8869         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8870         * modules/atanf: New file.
8871         * tests/test-math-c++.cc: Check the declaration of atanf.
8872         * doc/posix-functions/atanf.texi: Mention the new module.
8873
8874         atan: Use a .m4 file.
8875         * m4/atan.m4: New file.
8876         * modules/atan (Files): Add it.
8877         (configure.ac): Just invoke gl_FUNC_ATAN.
8878
8879 2011-10-08  Bruno Haible  <bruno@clisp.org>
8880
8881         Tests for module 'acosf'.
8882         * modules/acosf-tests: New file.
8883         * tests/test-acosf.c: New file.
8884
8885         New module 'acosf'.
8886         * lib/math.in.h (acosf): New declaration.
8887         * lib/acosf.c: New file.
8888         * m4/acosf.m4: New file.
8889         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8891         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8892         * modules/acosf: New file.
8893         * tests/test-math-c++.cc: Check the declaration of acosf.
8894         * doc/posix-functions/acosf.texi: Mention the new module.
8895
8896         acos: Use a .m4 file.
8897         * m4/acos.m4: New file.
8898         * modules/acos (Files): Add it.
8899         (configure.ac): Just invoke gl_FUNC_ACOS.
8900
8901 2011-10-08  Bruno Haible  <bruno@clisp.org>
8902
8903         Tests for module 'asinf'.
8904         * modules/asinf-tests: New file.
8905         * tests/test-asinf.c: New file.
8906
8907         New module 'asinf'.
8908         * lib/math.in.h (asinf): New declaration.
8909         * lib/asinf.c: New file.
8910         * m4/asinf.m4: New file.
8911         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8913         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8914         * modules/asinf: New file.
8915         * tests/test-math-c++.cc: Check the declaration of asinf.
8916         * doc/posix-functions/asinf.texi: Mention the new module.
8917
8918         asin: Use a .m4 file.
8919         * m4/asin.m4: New file.
8920         * modules/asin (Files): Add it.
8921         (configure.ac): Just invoke gl_FUNC_ASIN.
8922
8923 2011-10-08  Bruno Haible  <bruno@clisp.org>
8924
8925         Tests for module 'tanf'.
8926         * modules/tanf-tests: New file.
8927         * tests/test-tanf.c: New file.
8928
8929         New module 'tanf'.
8930         * lib/math.in.h (tanf): New declaration.
8931         * lib/tanf.c: New file.
8932         * m4/tanf.m4: New file.
8933         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8935         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8936         * modules/tanf: New file.
8937         * tests/test-math-c++.cc: Check the declaration of tanf.
8938         * doc/posix-functions/tanf.texi: Mention the new module.
8939
8940         tan: Use a .m4 file.
8941         * m4/tan.m4: New file.
8942         * modules/tan (Files): Add it.
8943         (configure.ac): Just invoke gl_FUNC_TAN.
8944
8945 2011-10-08  Bruno Haible  <bruno@clisp.org>
8946
8947         Tests for module 'cosf'.
8948         * modules/cosf-tests: New file.
8949         * tests/test-cosf.c: New file.
8950
8951         New module 'cosf'.
8952         * lib/math.in.h (cosf): New declaration.
8953         * lib/cosf.c: New file.
8954         * m4/cosf.m4: New file.
8955         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8956         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8957         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8958         * modules/cosf: New file.
8959         * tests/test-math-c++.cc: Check the declaration of cosf.
8960         * doc/posix-functions/cosf.texi: Mention the new module.
8961
8962         cos: Use a .m4 file.
8963         * m4/cos.m4: New file.
8964         * modules/cos (Files): Add it.
8965         (configure.ac): Just invoke gl_FUNC_COS.
8966
8967 2011-10-08  Bruno Haible  <bruno@clisp.org>
8968
8969         Tests for module 'sinf'.
8970         * modules/sinf-tests: New file.
8971         * tests/test-sinf.c: New file.
8972
8973         New module 'sinf'.
8974         * lib/math.in.h (sinf): New declaration.
8975         * lib/sinf.c: New file.
8976         * m4/sinf.m4: New file.
8977         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8979         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8980         * modules/sinf: New file.
8981         * tests/test-math-c++.cc: Check the declaration of sinf.
8982         * doc/posix-functions/sinf.texi: Mention the new module.
8983
8984         sin: Use a .m4 file.
8985         * m4/sin.m4: New file.
8986         * modules/sin (Files): Add it.
8987         (configure.ac): Just invoke gl_FUNC_SIN.
8988
8989 2011-10-08  Bruno Haible  <bruno@clisp.org>
8990
8991         Tests for module 'powf'.
8992         * modules/powf-tests: New file.
8993         * tests/test-powf.c: New file.
8994
8995         New module 'powf'.
8996         * lib/math.in.h (powf): New declaration.
8997         * lib/powf.c: New file.
8998         * m4/powf.m4: New file.
8999         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
9000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
9001         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
9002         * modules/powf: New file.
9003         * tests/test-math-c++.cc: Check the declaration of powf.
9004         * doc/posix-functions/powf.texi: Mention the new module.
9005
9006         pow: Use a .m4 file.
9007         * m4/pow.m4: New file.
9008         * modules/pow (Files): Add it.
9009         (configure.ac): Just invoke gl_FUNC_POW.
9010
9011 2011-10-08  Bruno Haible  <bruno@clisp.org>
9012
9013         Tests for module 'log10f'.
9014         * modules/log10f-tests: New file.
9015         * tests/test-log10f.c: New file.
9016
9017         New module 'log10f'.
9018         * lib/math.in.h (log10f): New declaration.
9019         * lib/log10f.c: New file.
9020         * m4/log10f.m4: New file.
9021         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9023         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9024         * modules/log10f: New file.
9025         * tests/test-math-c++.cc: Check the declaration of log10f.
9026         * doc/posix-functions/log10f.texi: Mention the new module.
9027
9028         log10: Use a .m4 file.
9029         * m4/log10.m4: New file.
9030         * modules/log10 (Files): Add it.
9031         (configure.ac): Just invoke gl_FUNC_LOG10.
9032
9033 2011-10-08  Bruno Haible  <bruno@clisp.org>
9034
9035         Tests for module 'logf'.
9036         * modules/logf-tests: New file.
9037         * tests/test-logf.c: New file.
9038
9039         New module 'logf'.
9040         * lib/math.in.h (logf): New declaration.
9041         * lib/logf.c: New file.
9042         * m4/logf.m4: New file.
9043         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9045         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9046         * modules/logf: New file.
9047         * tests/test-math-c++.cc: Check the declaration of logf.
9048         * doc/posix-functions/logf.texi: Mention the new module.
9049
9050         log: Use a .m4 file.
9051         * m4/log.m4: New file.
9052         * modules/log (Files): Add it.
9053         (configure.ac): Just invoke gl_FUNC_LOG.
9054
9055 2011-10-08  Bruno Haible  <bruno@clisp.org>
9056
9057         Tests for module 'expf'.
9058         * modules/expf-tests: New file.
9059         * tests/test-expf.c: New file.
9060
9061         New module 'expf'.
9062         * lib/math.in.h (expf): New declaration.
9063         * lib/expf.c: New file.
9064         * m4/expf.m4: New file.
9065         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9067         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9068         * modules/expf: New file.
9069         * tests/test-math-c++.cc: Check the declaration of expf.
9070         * doc/posix-functions/expf.texi: Mention the new module.
9071
9072         exp: Use a .m4 file.
9073         * m4/exp.m4: New file.
9074         * modules/exp (Files): Add it.
9075         (configure.ac): Just invoke gl_FUNC_EXP.
9076
9077 2011-10-08  Bruno Haible  <bruno@clisp.org>
9078
9079         Tests for module 'sqrtf'.
9080         * modules/sqrtf-tests: New file.
9081         * tests/test-sqrtf.c: New file.
9082
9083         New module 'sqrtf'.
9084         * lib/math.in.h (sqrtf): New declaration.
9085         * lib/sqrtf.c: New file.
9086         * m4/sqrtf.m4: New file.
9087         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9088         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9089         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9090         * modules/sqrtf: New file.
9091         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9092         * doc/posix-functions/sqrtf.texi: Mention the new module.
9093
9094 2011-10-08  Bruno Haible  <bruno@clisp.org>
9095
9096         Tests: Avoid link failures w.r.t. libintl.
9097         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9098         $(LIBINTL).
9099         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9100         $(LIBINTL).
9101         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9102         against $(LIBINTL).
9103         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9104         $(LIBINTL).
9105         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9106         $(LIBINTL).
9107         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9108
9109 2011-10-08  Bruno Haible  <bruno@clisp.org>
9110
9111         pow tests: Defeat compiler optimizations.
9112         * tests/test-pow.c (main): Assign arguments to x and y before use.
9113
9114 2011-10-08  Bruno Haible  <bruno@clisp.org>
9115
9116         gnulib-tool: Improve last commit.
9117         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9118         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9119         ignore dependencies that are not among the modules list.
9120
9121 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9122
9123         gnulib-tool: don't follow dependencies to avoided modules
9124         This fixes a bug that is related to the previous one.
9125         * gnulib-tool (func_modules_transitive_closure)
9126         (func_emit_autoconf_snippets):
9127         Check whether a dependency is acceptable before using it.
9128         (--extract-dependencies): Report an error if --avoid is also used,
9129         since this combination of options is not yet supported.
9130
9131         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9132         Problem reported by Peter Dyballa in
9133         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9134         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9135         when echoing "$condition".
9136
9137 2011-10-07  Bruno Haible  <bruno@clisp.org>
9138
9139         Fix documentation about math functions on MacOS X.
9140         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9141         MacOS X 10.5.
9142         * doc/posix-functions/fdim.texi: Likewise.
9143         * doc/posix-functions/feclearexcept.texi: Likewise.
9144         * doc/posix-functions/fegetenv.texi: Likewise.
9145         * doc/posix-functions/fegetround.texi: Likewise.
9146         * doc/posix-functions/feholdexcept.texi: Likewise.
9147         * doc/posix-functions/feraiseexcept.texi: Likewise.
9148         * doc/posix-functions/fesetenv.texi: Likewise.
9149         * doc/posix-functions/fesetround.texi: Likewise.
9150         * doc/posix-functions/fetestexcept.texi: Likewise.
9151         * doc/posix-functions/feupdateenv.texi: Likewise.
9152         * doc/posix-functions/fmax.texi: Likewise.
9153         * doc/posix-functions/fmin.texi: Likewise.
9154         * doc/posix-functions/log2.texi: Likewise.
9155         * doc/posix-functions/modff.texi: Likewise.
9156         * doc/posix-functions/nan.texi: Likewise.
9157         * doc/posix-functions/nanf.texi: Likewise.
9158         * doc/posix-functions/nextafterf.texi: Likewise.
9159         * doc/posix-functions/remquo.texi: Likewise.
9160
9161 2011-10-07  Bruno Haible  <bruno@clisp.org>
9162
9163         modff: Drop assumption about library that defines modff.
9164         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9165         AC_CHECK_FUNCS.
9166         * modules/modff (Files): Add m4/mathfunc.m4.
9167
9168 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9169
9170         raise tests: Avoid a GCC warning.
9171         * tests/test-raise.c (handler): Use _Noreturn.
9172
9173 2011-10-07  Bruno Haible  <bruno@clisp.org>
9174
9175         Tests for module 'ldexpf'.
9176         * modules/ldexpf-tests: New file.
9177         * tests/test-ldexpf.c: New file.
9178
9179         New module 'ldexpf'.
9180         * lib/math.in.h (ldexpf): New declaration.
9181         * lib/ldexpf.c: New file.
9182         * m4/ldexpf.m4: New file.
9183         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9185         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9186         * modules/ldexpf: New file.
9187         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9188         * doc/posix-functions/ldexpf.texi: Mention the new module.
9189
9190 2011-10-06  Bruno Haible  <bruno@clisp.org>
9191
9192         frexpf: Work around problems on IRIX and mingw.
9193         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9195         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9196         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9197         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9198         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9199         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9200
9201 2011-10-06  Bruno Haible  <bruno@clisp.org>
9202
9203         fabsf: Drop assumption about library that defines fabsf.
9204         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9205         AC_CHECK_FUNCS.
9206         * modules/fabsf (Files): Add m4/mathfunc.m4.
9207
9208 2011-10-06  Bruno Haible  <bruno@clisp.org>
9209
9210         frexpf: Drop assumption about library that defines frexpf.
9211         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9212         'int *', 'float *', 'long double *', 'float', 'long double'.
9213         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9214         AC_CHECK_FUNCS.
9215         * modules/frexpf (Files): Add m4/mathfunc.m4.
9216
9217         Tests for module 'frexpf'.
9218         * modules/frexpf-tests: New file.
9219         * tests/test-frexpf.c: New file.
9220
9221         New module 'frexpf'.
9222         * lib/math.in.h (frexpf): New declaration.
9223         * lib/frexpf.c: New file.
9224         * m4/frexpf.m4: New file.
9225         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9227         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9228         * modules/frexpf: New file.
9229         * tests/test-math-c++.cc: Check the declaration of frexpf.
9230         * doc/posix-functions/frexpf.texi: Mention the new module.
9231
9232 2011-10-06  Bruno Haible  <bruno@clisp.org>
9233
9234         math: Sort function declarations of math.in.h.
9235         * lib/math.in.h (frexp, logb): Move declarations.
9236
9237 2011-10-05  Bruno Haible  <bruno@clisp.org>
9238
9239         Tests for module 'modff'.
9240         * modules/modff-tests: New file.
9241         * tests/test-modff.c: New file.
9242
9243         New module 'modff'.
9244         * lib/math.in.h (modff): New declaration.
9245         * lib/modff.c: New file.
9246         * m4/modff.m4: New file.
9247         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9249         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9250         * modules/modff: New file.
9251         * tests/test-math-c++.cc: Check the declaration of modff.
9252         * doc/posix-functions/modff.texi: Mention the new module.
9253
9254         modf tests: Make test sharper.
9255         * tests/test-modf.c (main): Strengthen upper bound.
9256
9257         modf: Use a .m4 file.
9258         * m4/modf.m4: New file.
9259         * modules/modf (Files): Add it.
9260         (configure.ac): Just invoke gl_FUNC_MODF.
9261
9262 2011-10-05  Bruno Haible  <bruno@clisp.org>
9263
9264         Tests for module 'fmodf'.
9265         * modules/fmodf-tests: New file.
9266         * tests/test-fmodf.c: New file.
9267
9268         New module 'fmodf'.
9269         * lib/math.in.h (fmodf): New declaration.
9270         * lib/fmodf.c: New file.
9271         * m4/fmodf.m4: New file.
9272         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9274         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9275         * modules/fmodf: New file.
9276         * tests/test-math-c++.cc: Check the declaration of fmodf.
9277         * doc/posix-functions/fmodf.texi: Mention the new module.
9278
9279         fmod: Use a .m4 file.
9280         * m4/fmod.m4: New file.
9281         * modules/fmod (Files): Add it.
9282         (configure.ac): Just invoke gl_FUNC_FMOD.
9283
9284 2011-10-05  Bruno Haible  <bruno@clisp.org>
9285
9286         Tests for module 'fabsf'.
9287         * modules/fabsf-tests: New file.
9288         * tests/test-fabsf.c: New file.
9289
9290         New module 'fabsf'.
9291         * lib/math.in.h (fabsf): New declaration.
9292         * lib/fabsf.c: New file.
9293         * m4/fabsf.m4: New file.
9294         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9296         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9297         * modules/fabsf: New file.
9298         * tests/test-math-c++.cc: Check the declaration of fabsf.
9299         * doc/posix-functions/fabsf.texi: Mention the new module.
9300
9301         fabs: Use a .m4 file.
9302         * m4/fabs.m4: New file.
9303         * modules/fabs (Files): Add it.
9304         (configure.ac): Just invoke gl_FUNC_FABS.
9305
9306 2011-10-05  Jim Meyering  <meyering@redhat.com>
9307
9308         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9309         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9310         ls -lL regression introduced in coreutils-8.12, it does so at the
9311         cost of an additional stat call in the common case.  Besides, now
9312         that the kernel change that prompted commit 95f7c57f has been reverted
9313         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9314         we have no use for commit 95f7c57f, "file-has-acl: use
9315         acl_extended_file_nofollow if available".
9316
9317 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9318
9319         file-has-acl: revert unintended change in behavior of ls -L
9320         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9321         derived from...
9322         (file_has_acl): ...code here.  Call it.
9323         This problem was introduced with 2011-07-22 commit 95f7c57f,
9324         "file-has-acl: use acl_extended_file_nofollow if available".
9325         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9326
9327 2011-10-03  Bruno Haible  <bruno@clisp.org>
9328
9329         poll: Avoid link errors on MSVC.
9330         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9331         * modules/poll (Depends-on): Add sockets.
9332         (Link): New section.
9333         * NEWS: Mention the change.
9334         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9335         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9336         $(LIB_POLL) instead of $(LIBSOCKET).
9337
9338 2011-10-03  Bruno Haible  <bruno@clisp.org>
9339
9340         sys_select tests: Fix link error on MSVC 9.
9341         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9342         with $(LIB_SELECT) instead of $(LIBSOCKET).
9343
9344 2011-10-03  Bruno Haible  <bruno@clisp.org>
9345
9346         sys_select: Fix compilation error on mingw.
9347         * lib/sys_select.in.h: On native Windows, include <io.h>.
9348
9349 2011-10-03  Bruno Haible  <bruno@clisp.org>
9350
9351         wmemset: Support for MSVC.
9352         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9353         whether wmemset() exists.
9354
9355 2011-10-03  Bruno Haible  <bruno@clisp.org>
9356
9357         wmemmove: Support for MSVC.
9358         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9359         whether wmemmove() exists.
9360
9361 2011-10-03  Bruno Haible  <bruno@clisp.org>
9362
9363         wmemcpy: Support for MSVC.
9364         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9365         whether wmemcpy() exists.
9366
9367 2011-10-03  Bruno Haible  <bruno@clisp.org>
9368
9369         wmemcmp: Support for MSVC.
9370         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9371         whether wmemcmp() exists.
9372
9373 2011-10-03  Bruno Haible  <bruno@clisp.org>
9374
9375         wmemchr: Support for MSVC.
9376         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9377         whether wmemchr() exists.
9378
9379 2011-10-03  Bruno Haible  <bruno@clisp.org>
9380
9381         glthread/*, strsignal: Support for MSVC.
9382         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9383         including <winsock.h> on MSVC 9.
9384         * lib/glthread/lock.h: Likewise.
9385         * lib/glthread/thread.h: Likewise.
9386         * lib/glthread/tls.h: Likewise.
9387         * lib/glthread/yield.h: Likewise.
9388         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9389         if HAVE_UNISTD_H is false.
9390         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9391
9392 2011-10-03  Bruno Haible  <bruno@clisp.org>
9393
9394         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9395         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9396         Set to 100000.
9397
9398 2011-10-03  Bruno Haible  <bruno@clisp.org>
9399
9400         acl: Fix specification.
9401         * lib/file-has-acl.c (file_has_acl): Fix specification.
9402
9403 2011-10-03  Bruno Haible  <bruno@clisp.org>
9404
9405         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9406         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9407         (compute_curr_prefix, shared_library_fullname,
9408         find_shared_library_fullname, get_shared_library_fullname, relocate):
9409         Use it together with PIC && INSTALLDIR.
9410         Reported by <jojelino@gmail.com>
9411         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9412
9413 2011-10-01  Jim Meyering  <meyering@redhat.com>
9414
9415         maint.mk: adjust a release-related rule not to require use of gzip
9416         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9417         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9418         projects that build only .tar.xz files.  Also fix an erroneous test.
9419
9420         test-linkat: don't leave behind a temporary file
9421         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9422         Otherwise, coreutils' "make distcheck" would fail with this:
9423           Only in /c/cu/tests/torture/coreutils/test/\
9424             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9425           make[2]: *** [my-distcheck] Error 1
9426
9427         float, math: add omitted file
9428         * lib/itold.c: Add file, required for yesterday's float change.
9429
9430 2011-10-01  Bruno Haible  <bruno@clisp.org>
9431
9432         isinf: Fix for OpenBSD/x86.
9433         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9434         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9435         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9436
9437 2011-10-01  Bruno Haible  <bruno@clisp.org>
9438
9439         isfinite: Fix syntax error in configure test.
9440         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9441
9442         isfinite: Fix typo.
9443         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9444         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9445
9446 2011-10-01  Bruno Haible  <bruno@clisp.org>
9447
9448         nonblocking tests: Fix test failure on Linux/IA-64.
9449         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9450         Set to 270000.
9451
9452 2011-10-01  Bruno Haible  <bruno@clisp.org>
9453
9454         mkfifoat tests: Fix a test failure on mingw.
9455         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9456         with error ENOSYS.
9457
9458 2011-09-30  Bruno Haible  <bruno@clisp.org>
9459
9460         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9461         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9462         'long double'. Set REPLACE_ITOLD.
9463         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9464         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9465         * lib/itold.c: New file.
9466         * modules/float (Files): Add lib/itold.c.
9467         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9468         (Makefile.am): Substitute REPLACE_ITOLD.
9469         * modules/math (Depends-on): Add float.
9470         (Makefile.am): Substitute REPLACE_ITOLD.
9471         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9472         * doc/posix-headers/math.texi: Likewise.
9473         * doc/posix-functions/logl.texi: Likewise.
9474
9475 2011-09-30  Bruno Haible  <bruno@clisp.org>
9476
9477         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9478         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9479         Set to 140000.
9480
9481 2011-09-30  Bruno Haible  <bruno@clisp.org>
9482
9483         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9484         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9485         invocation, say "right after AC_PROG_CC_STDC", not "right after
9486         AC_PROG_CC".
9487         Reported by Gary V. Vaughan <gary@gnu.org>.
9488
9489 2011-09-30  Bruno Haible  <bruno@clisp.org>
9490
9491         Centralize C99 requirement.
9492         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9493         * modules/stdarg (configure.ac-early): Invoke it instead of
9494         AC_PROG_CC_STDC.
9495         Reported by Gary V. Vaughan and Paul Eggert.
9496
9497 2011-09-29  Bruno Haible  <bruno@clisp.org>
9498
9499         float: Fix LDBL_MAX value on Linux/PowerPC.
9500         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9501         on Linux/PowerPC.
9502         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9503         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9504         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9505         platform.
9506         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9507
9508 2011-09-29  Bruno Haible  <bruno@clisp.org>
9509
9510         doc: Improve doc about gl_EARLY.
9511         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9512         AC_PROG_CC_STDC invocation.
9513         Reported by Gary V. Vaughan <gary@gnu.org>.
9514
9515 2011-09-28  Bruno Haible  <bruno@clisp.org>
9516
9517         fgetc, fputc, fread, fwrite tests: Fix link error.
9518         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9519         on non-MSVC platforms.
9520         * tests/test-fputc.c (main): Likewise.
9521         * tests/test-fread.c (main): Likewise.
9522         * tests/test-fwrite.c (main): Likewise.
9523         Reported by Jim Meyering.
9524
9525 2011-09-27  Bruno Haible  <bruno@clisp.org>
9526
9527         fputc, fwrite tests: Avoid test failure on MSVC.
9528         * tests/test-fgetc.c: Include msvc-inval.h.
9529         (main): Invoke gl_msvc_inval_ensure_handler.
9530         * tests/test-fputc.c: Include msvc-inval.h.
9531         (main): Invoke gl_msvc_inval_ensure_handler.
9532         * tests/test-fread.c: Include msvc-inval.h.
9533         (main): Invoke gl_msvc_inval_ensure_handler.
9534         * tests/test-fwrite.c: Include msvc-inval.h.
9535         (main): Invoke gl_msvc_inval_ensure_handler.
9536         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9537         * modules/fputc-tests (Depends-on): Likewise.
9538         * modules/fread-tests (Depends-on): Likewise.
9539         * modules/fwrite-tests (Depends-on): Likewise.
9540
9541 2011-09-27  Bruno Haible  <bruno@clisp.org>
9542
9543         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9544         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9545         (raise): Remove older, duplicated declaration.
9546         (_gl_raise_SIGPIPE): New declaration.
9547         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9548         (rpl_raise): Remove function.
9549         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9550         a gnulib-defined SIGPIPE here.
9551         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9552         'sigprocmask' has detected missing signal-blocking and the module
9553         'sigpipe' is enabled.
9554         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9555
9556 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9557
9558         base64-tests: avoid memory leak
9559         * tests/test-base64.c (main): Plug memory leak.
9560
9561         base32: new module
9562         * modules/base32: New module.
9563         * lib/base32.c: New file.
9564         * lib/base32.h: Likewise.
9565         * m4/base32.m4: Likewise.
9566         * modules/base32-tests: New test.
9567         * tests/test-base32.c: Likewise.
9568         * MODULES.html.sh (Misc): Mention it.
9569
9570 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9571
9572         gnulib: use more-standard license notice wording
9573         * gnulib-tool (func_emit_copyright_notice): When emitting a
9574         license notice into a file, use the standard wording as suggested
9575         by the current information for GNU maintainers, except say "file"
9576         rather than "program".  The new wording gives a license version
9577         number, which addresses an issue raised by Glenn Morris in
9578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9579         * m4/onceonly.m4: Use that same wording here, too.
9580
9581         dup2: minor simplification
9582         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9583         as lib/dup2.c no longer uses 'inline'.
9584
9585 2011-09-25  Bruno Haible  <bruno@clisp.org>
9586
9587         strings: Fix compilation error on MSVC.
9588         * lib/strings.in.h: Include <stddef.h> for size_t.
9589
9590 2011-09-25  Bruno Haible  <bruno@clisp.org>
9591
9592         fflush et al.: Document limitation on MSVC.
9593         * doc/posix-functions/fflush.texi: Document possible crash in handling
9594         mode other than DEFAULT_HANDLING.
9595         * doc/posix-functions/fgetc.texi: Likewise.
9596         * doc/posix-functions/fputc.texi: Likewise.
9597         * doc/posix-functions/fread.texi: Likewise.
9598         * doc/posix-functions/fwrite.texi: Likewise.
9599
9600 2011-09-25  Bruno Haible  <bruno@clisp.org>
9601
9602         msvc-inval: Allow three invalid parameter handling modes.
9603         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9604         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9605         macros.
9606         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9607         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9608         SANE_LIBRARY_HANDLING as a no-op.
9609         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9610         <stdlib.h>.
9611         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9612
9613 2011-09-25  Bruno Haible  <bruno@clisp.org>
9614
9615         msvc-inval: Make handler multithread-safe.
9616         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9617         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9618         declarations.
9619         (gl_msvc_inval_current): New declaration.
9620         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9621         Operate on the structure returned by gl_msvc_inval_current().
9622         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9623         Remove varaiables.
9624         (tls_index, tls_initialized): New variables.
9625         (not_per_thread): New variable.
9626         (gl_msvc_inval_current): New function.
9627         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9628         returned by gl_msvc_inval_current().
9629
9630 2011-09-25  Bruno Haible  <bruno@clisp.org>
9631
9632         msvc-inval: Install handler globally.
9633         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9634         !_MSC_VER.
9635         (gl_msvc_invalid_parameter_handler): Remove declaration.
9636         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9637         declarations.
9638         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9639         Install the handler globally, don't uninstall it.
9640         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9641         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9642         currently valid, call RaiseException instead.
9643         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9644         for !_MSC_VER.
9645
9646 2011-09-25  Bruno Haible  <bruno@clisp.org>
9647
9648         strerror_r-posix: Fix for MSVC 9.
9649         * lib/strerror_r.c (local_snprintf): New function.
9650         (snprintf): Define to local_snprintf, not to _snprintf.
9651
9652 2011-09-25  Bruno Haible  <bruno@clisp.org>
9653
9654         ftruncate: Support for MSVC 9.
9655         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9656         (chsize_nothrow): New function.
9657         (chsize): Redefine as a macro.
9658         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9659         * modules/ftruncate (Depends-on): Add msvc-inval.
9660
9661 2011-09-25  Bruno Haible  <bruno@clisp.org>
9662
9663         New module 'fstat'.
9664         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9665         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9666         * lib/fchdir.c (rpl_fstat): Remove function.
9667         * m4/fstat.m4: New file.
9668         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9669         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9670         declared.
9671         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9672         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9673         * modules/fstat: New file.
9674         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9675         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9676         is set.
9677         * doc/posix-functions/fstat.texi: Mention the new module and the
9678         problem on MSVC.
9679         * NEWS: Mention the change.
9680         * modules/acl (Depends-on): Add fstat.
9681         * modules/chdir-safer (Depends-on): Likewise.
9682         * modules/chown (Depends-on): Likewise.
9683         * modules/copy-file (Depends-on): Likewise.
9684         * modules/fchdir (Depends-on): Likewise.
9685         * modules/fdopendir (Depends-on): Likewise.
9686         * modules/fopen (Depends-on): Likewise.
9687         * modules/fts (Depends-on): Likewise.
9688         * modules/getcwd (Depends-on): Likewise.
9689         * modules/isapipe (Depends-on): Likewise.
9690         * modules/linkat (Depends-on): Likewise.
9691         * modules/lseek (Depends-on): Likewise.
9692         * modules/mkdir-p (Depends-on): Likewise.
9693         * modules/open (Depends-on): Likewise.
9694         * modules/openat (Depends-on): Likewise.
9695         * modules/read-file (Depends-on): Likewise.
9696         * modules/renameat (Depends-on): Likewise.
9697         * modules/utimens (Depends-on): Likewise.
9698
9699 2011-09-25  Bruno Haible  <bruno@clisp.org>
9700
9701         linkat: Fix compilation on MSVC 9.
9702         * lib/linkat.c: Don't include <stdint.h>.
9703
9704 2011-09-25  Bruno Haible  <bruno@clisp.org>
9705
9706         fclose: Support for MSVC 9.
9707         * lib/fclose.c: Include msvc-inval.h.
9708         (fclose_nothrow): New function.
9709         (rpl_fclose): Use it.
9710         * modules/fclose (Depends-on): Add msvc-inval.
9711         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9712
9713 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9714
9715         dup2: minor simplifications
9716         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9717         that it's a performance win.
9718         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9719         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9720
9721 2011-09-24  Jim Meyering  <meyering@redhat.com>
9722
9723         test-futimens: avoid a warning from gcc -Wshadow
9724         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9725         to avoid a shadowing warning.
9726
9727 2011-09-24  Bruno Haible  <bruno@clisp.org>
9728
9729         fdopen: Support for MSVC 9.
9730         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9731         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9732         * lib/fdopen.c: Include msvc-inval.h.
9733         (fdopen_nothrow): New function.
9734         (rpl_fdopen): Use it.
9735         * modules/fdopen (Depends-on): Add msvc-inval.
9736         * modules/fclose-tests (Depends-on): Add fdopen.
9737         * modules/fflush-tests (Depends-on): Likewise.
9738         * modules/fgetc-tests (Depends-on): Likewise.
9739         * modules/fputc-tests (Depends-on): Likewise.
9740         * modules/fread-tests (Depends-on): Likewise.
9741         * modules/freopen-tests (Depends-on): Likewise.
9742         * modules/fseeko-tests (Depends-on): Likewise.
9743         * modules/ftello-tests (Depends-on): Likewise.
9744         * modules/fwrite-tests  (Depends-on): Likewise.
9745         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9746
9747 2011-09-24  Bruno Haible  <bruno@clisp.org>
9748
9749         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9750         * modules/fgetc-tests (Depends-on): Add unistd.
9751         * modules/fputc-tests (Depends-on): Likewise.
9752         * modules/fread-tests (Depends-on): Likewise.
9753         * modules/fwrite-tests (Depends-on): Likewise.
9754
9755 2011-09-24  Bruno Haible  <bruno@clisp.org>
9756
9757         dup: Simplify autoconf test.
9758         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9759         on gl_MSVC_INVAL's result.
9760
9761 2011-09-24  Bruno Haible  <bruno@clisp.org>
9762
9763         Tests for function fwrite().
9764         * modules/fwrite-tests: New file.
9765         * tests/test-fwrite.c: New file.
9766         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9767
9768         Tests for function fread().
9769         * modules/fread-tests: New file.
9770         * tests/test-fread.c: New file.
9771         * modules/stdio-tests (Depends-on): Add fread-tests.
9772
9773         Activate fputc tests.
9774         * modules/stdio-tests (Depends-on): Add fputc-tests.
9775
9776         Enhance fgetc, fputc tests.
9777         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9778         * tests/test-fputc.c (main): Likewise.
9779
9780 2011-09-24  Bruno Haible  <bruno@clisp.org>
9781
9782         write: Support for MSVC 9.
9783         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9784         is not 1.
9785         * lib/write.c (write_nothrow): New function.
9786         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9787         not 1. Use write_nothrow.
9788         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9789         invalid parameter handler.
9790         (gl_PREREQ_WRITE): New macro.
9791         * modules/write (Depends-on): Add msvc-inval.
9792         (configure.ac): Invoke gl_PREREQ_WRITE.
9793         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9794
9795 2011-09-24  Bruno Haible  <bruno@clisp.org>
9796
9797         read: Fix last commit.
9798         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9799
9800 2011-09-24  Bruno Haible  <bruno@clisp.org>
9801
9802         dup2: Fix last commit.
9803         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9804         (rpl_dup2): Disable fcntl workaround on native Windows.
9805
9806         sigprocmask: Make code safer.
9807         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9808         section that changes macro definitions for this compilation unit.
9809
9810 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9811
9812         dup2: clarify by coalescing Windows-specific material
9813         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9814         "msvc-nothrow.h"' to the Windows-specific section, so that the
9815         Emacs source need not contain these include files.
9816         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9817         Windows-specific fixes into this function rather than just the
9818         nothrow fix, as this shortens and clarifies the code.  Always
9819         define as a function, as that's a bit cleaner than having it be
9820         sometimes a function and sometimes a macro.
9821         (rpl_dup2): Move the Windows-specific stuff out of here and into
9822         ms_windows_dup2.  Don't protect the Haiku-related fix with
9823         "#if !defined __linux__", as the same code also works around
9824         a Linux kernel bug, and it doesn't add any system calls on any
9825         platform.  Add comment about FreeBSD 6.1.
9826
9827         sigprocmask: move #include directive
9828         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9829         Windows-specific section, so that the Emacs source need not
9830         contain msvc-inval.h.
9831
9832 2011-09-23  Bruno Haible  <bruno@clisp.org>
9833
9834         read: Support for MSVC 9.
9835         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9836         is not 1.
9837         * lib/read.c (read_nothrow): New function.
9838         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9839         read_nothrow.
9840         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9841         invalid parameter handler.
9842         (gl_PREREQ_READ): New macro.
9843         * modules/read (Depends-on): Add msvc-inval.
9844         (configure.ac): Invoke gl_PREREQ_READ.
9845         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9846
9847 2011-09-23  Bruno Haible  <bruno@clisp.org>
9848
9849         close: Support for MSVC 9.
9850         * lib/close.c: Include <errno.h>, msvc-inval.h.
9851         (close_nothrow): New function.
9852         (rpl_close): Use it.
9853         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9854         invalid parameter handler.
9855         * modules/close (Depends-on): Add msvc-inval.
9856         * modules/dup2-tests (Depends-on): Add close.
9857         * modules/dup3-tests (Depends-on): Likewise.
9858         * modules/fcntl-tests (Depends-on): Likewise.
9859         * modules/spawn-pipe-tests (Depends-on): Likewise.
9860         * modules/unistd-safer-tests (Depends-on): Likewise.
9861         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9862
9863 2011-09-23  Bruno Haible  <bruno@clisp.org>
9864
9865         New module 'dup'.
9866         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9867         Allow replacement.
9868         * lib/dup.c: New file.
9869         * lib/fchdir.c (rpl_dup): Remove function.
9870         * m4/dup.m4: New file.
9871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9872         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9873         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9874         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9875         * modules/dup: New file.
9876         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9877         'dup' module is in use.
9878         * modules/fdopendir (Depends-on): Add dup.
9879         * modules/fdutimensat-tests (Depends-on): Likewise.
9880         * modules/fts (Depends-on): Likewise.
9881         * modules/futimens-tests (Depends-on): Likewise.
9882         * modules/posix_spawnp-tests (Depends-on): Likewise.
9883         * modules/unistd-safer-tests (Depends-on): Likewise.
9884         * modules/utimens-tests (Depends-on): Likewise.
9885         * doc/posix-functions/dup.texi: Mention the new module and the problem
9886         on MSVC.
9887
9888 2011-09-23  Bruno Haible  <bruno@clisp.org>
9889
9890         getdtablesize: Support for MSVC 9.
9891         * lib/getdtablesize.c: Include msvc-inval.h.
9892         (_setmaxstdio_nothrow): New function.
9893         (_setmaxstdio): Redefine it.
9894         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9895         * modules/getdtablesize (Depends-on): Add msvc-inval.
9896         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9897
9898 2011-09-23  Bruno Haible  <bruno@clisp.org>
9899
9900         signal-h: Rename from signal.
9901         * modules/signal-h: Renamed from modules/signal.
9902         * modules/pthread_sigmask (Depends-on): Update.
9903         * modules/raise (Depends-on): Likewise.
9904         * modules/sigaction (Depends-on): Likewise.
9905         * modules/sigpipe (Depends-on): Likewise.
9906         * modules/sigprocmask (Depends-on): Likewise.
9907         * modules/sys_select (Depends-on): Likewise.
9908         * modules/signal-h-tests: Renamed from modules/signal-tests.
9909         (Files, Depends-on, Makefile.am): Update.
9910         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9911         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9912         (Files, Makefile.am): Update.
9913         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9914         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9915         * modules/signal: New placeholder file.
9916         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9917         * doc/posix-headers/signal.texi: Update.
9918         * NEWS: Mention the change.
9919
9920 2011-09-23  Bruno Haible  <bruno@clisp.org>
9921
9922         sigprocmask: Avoid crashes through signal() on MSVC 9.
9923         * lib/sigprocmask.c: Include msvc-inval.h.
9924         (signal_nothrow): New function.
9925         (signal): Redefine it.
9926         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9927         * modules/sigprocmask (Depends-on): Add msvc-inval.
9928         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9929
9930 2011-09-23  Bruno Haible  <bruno@clisp.org>
9931
9932         Tests for module 'raise'.
9933         * modules/raise-tests: New file.
9934         * tests/test-raise.c: New file.
9935
9936         raise: Support for MSVC.
9937         * lib/signal.in.h (raise): New declaration.
9938         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9939         for native Windows platforms.
9940         * m4/raise.m4: New file.
9941         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9942         HAVE_RAISE, REPLACE_RAISE.
9943         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9944         REPLACE_RAISE.
9945         * modules/raise (Status, Notice): Remove fields.
9946         (Files): Add m4/raise.m4.
9947         (Depends-on): Add signal, msvc-inval.
9948         (configure.ac): Use the common idioms.
9949         (Maintainer): Add me.
9950         * tests/test-signal-c++.cc: Check the signature of raise.
9951         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9952
9953 2011-09-23  Bruno Haible  <bruno@clisp.org>
9954
9955         pipe2: Fix compilation on pre-C99 compilers.
9956         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9957
9958 2011-09-23  Bruno Haible  <bruno@clisp.org>
9959
9960         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9961         * lib/msvc-nothrow.h: New file.
9962         * lib/msvc-nothrow.c: New file.
9963         * m4/msvc-nothrow.m4: New file.
9964         * modules/msvc-nothrow: New file.
9965         * lib/dup2.c: Include msvc-nothrow.h.
9966         (rpl_dup2): No need to protect _get_osfhandle call here.
9967         * lib/accept4.c: Include msvc-nothrow.h.
9968         * lib/error.c: Likewise.
9969         * lib/fcntl.c: Likewise.
9970         * lib/lseek.c: Likewise.
9971         * lib/nonblocking.c: Likewise.
9972         * lib/poll.c: Likewise.
9973         * lib/read.c: Likewise.
9974         * lib/select.c: Likewise.
9975         * lib/sockets.h: Likewise.
9976         * lib/sockets.c: Likewise.
9977         * lib/stdio-read.c: Likewise.
9978         * lib/stdio-write.c: Likewise.
9979         * lib/write.c: Likewise.
9980         * lib/w32sock.h: Likewise.
9981         * lib/w32spawn.h: Likewise.
9982         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9983         * lib/fsync.c: Likewise.
9984         * lib/isapipe.c: Likewise.
9985         * modules/dup2 (Depends-on): Add msvc-nothrow.
9986         * modules/accept4 (Depends-on): Likewise.
9987         * modules/error (Depends-on): Likewise.
9988         * modules/fcntl (Depends-on): Likewise.
9989         * modules/lseek (Depends-on): Likewise.
9990         * modules/nonblocking (Depends-on): Likewise.
9991         * modules/poll (Depends-on): Likewise.
9992         * modules/read (Depends-on): Likewise.
9993         * modules/select (Depends-on): Likewise.
9994         * modules/sockets (Depends-on): Likewise.
9995         * modules/sigpipe (Depends-on): Likewise.
9996         * modules/write (Depends-on): Likewise.
9997         * modules/accept (Depends-on): Likewise.
9998         * modules/bind (Depends-on): Likewise.
9999         * modules/connect (Depends-on): Likewise.
10000         * modules/gethostname (Depends-on): Likewise.
10001         * modules/getpeername (Depends-on): Likewise.
10002         * modules/getsockname (Depends-on): Likewise.
10003         * modules/getsockopt (Depends-on): Likewise.
10004         * modules/ioctl (Depends-on): Likewise.
10005         * modules/listen (Depends-on): Likewise.
10006         * modules/recv (Depends-on): Likewise.
10007         * modules/recvfrom (Depends-on): Likewise.
10008         * modules/send (Depends-on): Likewise.
10009         * modules/sendto (Depends-on): Likewise.
10010         * modules/setsockopt (Depends-on): Likewise.
10011         * modules/shutdown (Depends-on): Likewise.
10012         * modules/socket (Depends-on): Likewise.
10013         * modules/execute (Depends-on): Likewise.
10014         * modules/spawn-pipe (Depends-on): Likewise.
10015         * modules/flock (Depends-on): Likewise.
10016         * modules/fsync (Depends-on): Likewise.
10017         * modules/isapipe (Depends-on): Likewise.
10018         * tests/test-cloexec.c: Include msvc-nothrow.h.
10019         * tests/test-dup-safer.c: Likewise.
10020         * tests/test-dup2.c: Likewise.
10021         * tests/test-dup3.c: Likewise.
10022         * tests/test-fcntl.c: Likewise.
10023         * tests/test-pipe.c: Likewise.
10024         * tests/test-pipe2.c: Likewise.
10025         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10026         * modules/unistd-safer-tests (Depends-on): Likewise.
10027         * modules/dup2-tests (Depends-on): Likewise.
10028         * modules/dup3-tests (Depends-on): Likewise.
10029         * modules/fcntl-tests (Depends-on): Likewise.
10030         * modules/pipe-posix-tests (Depends-on): Likewise.
10031         * modules/pipe2-tests (Depends-on): Likewise.
10032
10033 2011-09-23  Bruno Haible  <bruno@clisp.org>
10034
10035         dup2: Make code more maintainable.
10036         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10037         (rpl_dup2): Use it.
10038         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10039         * modules/dup2 (configure.ac): Invoke it.
10040         Reported by Paul Eggert.
10041
10042 2011-09-23  Bruno Haible  <bruno@clisp.org>
10043
10044         msvc-inval: Fix compilation error.
10045         * lib/msvc-inval.h: Include <excpt.h>.
10046
10047 2011-09-23  Bruno Haible  <bruno@clisp.org>
10048
10049         mkdir: Tweak for MSVC 9.
10050         * lib/sys_stat.in.h: Update comments.
10051         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10052
10053         Tests for module 'chdir'.
10054         * modules/chdir-tests: New file.
10055         * tests/test-chdir.c: New file.
10056
10057         New module 'chdir'.
10058         * modules/chdir: New file.
10059         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10060         (chdir): New declaration.
10061         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10062         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10063         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10064         * tests/test-unistd-c++.cc: Check signature of chdir.
10065         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10066         * modules/chdir-long (Depends-on): Add chdir.
10067         * modules/fchdir (Depends-on): Likewise.
10068         * modules/rename (Depends-on): Likewise.
10069         * modules/savewd (Depends-on): Likewise.
10070
10071         rmdir: Support for mingw, MSVC 9.
10072         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10073         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10074
10075         getcwd: Tweak for MSVC 9.
10076         * lib/unistd.in.h: Update comments.
10077         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10078
10079 2011-09-22  Bruno Haible  <bruno@clisp.org>
10080
10081         strerror_r-posix: Avoid a link error on MSVC.
10082         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10083         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10084
10085 2011-09-22  Bruno Haible  <bruno@clisp.org>
10086
10087         select: Avoid link errors on MSVC.
10088         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10089         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10090         * modules/pselect (Link): Likewise.
10091         * NEWS: Mention the change.
10092         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10093         test-select-stdin against $(LIB_SELECT).
10094         * modules/pselect-tests (Makefile.am): Link test-pselect against
10095         $(LIB_SELECT).
10096
10097 2011-09-22  Bruno Haible  <bruno@clisp.org>
10098
10099         select: Avoid compilation error on MSVC.
10100         * lib/select.c: Don't include <stdbool.h>.
10101
10102 2011-09-21  Bruno Haible  <bruno@clisp.org>
10103
10104         Consolidate all uses of PATH_MAX in *.m4 files.
10105         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10106         macros.
10107         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10108         and gl_PATHMAX_SNIPPET.
10109         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10110         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10111         * modules/chdir-long (Files): Add m4/pathmax.m4.
10112         * modules/getcwd (Files): Likewise.
10113
10114 2011-09-21  Bruno Haible  <bruno@clisp.org>
10115
10116         ftruncate: Un-deprecate, concentrate on Win32 support.
10117         * modules/ftruncate (Status, Notice): Remove sections.
10118         (Depends-on): Add largefile.
10119         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10120         non-mingw platforms.
10121         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10122         include <io.h>.
10123         * modules/perror-tests (Depends-on): Add ftruncate.
10124         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10125         'ftruncate' module.
10126
10127 2011-09-21  Bruno Haible  <bruno@clisp.org>
10128
10129         Add dependencies to new dirent related modules.
10130         * modules/opendir (Depends-on): Add closedir.
10131         * modules/getcwd (Depends-on): Add opendir, closedir.
10132         * modules/dirent-safer-tests (Depends-on): Likewise.
10133         * modules/fdopendir-tests (Depends-on): Likewise.
10134         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10135         * modules/renameat-tests (Depends-on): Likewise.
10136
10137 2011-09-21  Bruno Haible  <bruno@clisp.org>
10138
10139         opendir: Avoid compilation error on mingw.
10140         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10141         * modules/opendir (Depends-on): Add unistd.
10142
10143 2011-09-21  Bruno Haible  <bruno@clisp.org>
10144
10145         ftruncate tests: Avoid a test failure on mingw.
10146         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10147
10148 2011-09-21  Bruno Haible  <bruno@clisp.org>
10149
10150         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10151         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10152         native Windows.
10153
10154 2011-09-21  Bruno Haible  <bruno@clisp.org>
10155
10156         New module 'fdopen'.
10157         * lib/stdio.in.h (fdopen): New declaration.
10158         * lib/fdopen.c: New file.
10159         * m4/fdopen.m4: New file.
10160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10161         REPLACE_FDOPEN.
10162         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10163         REPLACE_FDOPEN.
10164         * modules/fdopen: New file.
10165         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10166         * tests/test-stdio-c++.cc: Check signature of fdopen.
10167         * doc/posix-functions/fdopen.texi: Mention the new module.
10168
10169 2011-09-21  Bruno Haible  <bruno@clisp.org>
10170
10171         unlockpt tests: Avoid test failure on NetBSD 5.1.
10172         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10173         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10174
10175 2011-09-21  Bruno Haible  <bruno@clisp.org>
10176
10177         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10178         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10179         * tests/test-getlogin_r.c (main): Likewise.
10180
10181 2011-09-20  Bruno Haible  <bruno@clisp.org>
10182
10183         time tests: Don't require pid_t.
10184         * doc/posix-headers/time.texi: Revert last change.
10185         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10186         * tests/test-time.c: Comment out the check for pid_t.
10187
10188 2011-09-20  Bruno Haible  <bruno@clisp.org>
10189
10190         fsync tests: Avoid a test failure on mingw.
10191         * tests/test-fsync.c (main): Allow a failure with EIO.
10192
10193 2011-09-20  Bruno Haible  <bruno@clisp.org>
10194
10195         euidaccess: Update comments.
10196         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10197
10198 2011-09-20  Bruno Haible  <bruno@clisp.org>
10199
10200         Ensure EBADF returns for socket functions on mingw.
10201         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10202         descriptor is invalid.
10203         * lib/bind.c (rpl_bind): Likewise.
10204         * lib/connect.c (rpl_connect): Likewise.
10205         * lib/getpeername.c (rpl_getpeername): Likewise.
10206         * lib/getsockname.c (rpl_getsockname): Likewise.
10207         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10208         * lib/listen.c (rpl_listen): Likewise.
10209         * lib/recv.c (rpl_recv): Likewise.
10210         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10211         * lib/send.c (rpl_send): Likewise.
10212         * lib/sendto.c (rpl_sendto): Likewise.
10213         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10214         * lib/shutdown.c (rpl_shutdown): Likewise.
10215
10216 2011-09-20  Bruno Haible  <bruno@clisp.org>
10217
10218         select tests: EBADF tests.
10219         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10220         test_bad_fd): New functions.
10221         (test_function): Invoke also test_bad_fd.
10222
10223 2011-09-20  Bruno Haible  <bruno@clisp.org>
10224
10225         Tests for module 'posix_spawn_file_actions_addopen.
10226         * modules/posix_spawn_file_actions_addopen-tests: New file.
10227         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10228
10229         Tests for module 'posix_spawn_file_actions_adddup2'.
10230         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10231         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10232
10233         Tests for module 'posix_spawn_file_actions_addclose'.
10234         * modules/posix_spawn_file_actions_addclose-tests: New file.
10235         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10236
10237 2011-09-20  Bruno Haible  <bruno@clisp.org>
10238
10239         Tests for module 'unlockpt'.
10240         * modules/unlockpt-tests: New file.
10241         * tests/test-unlockpt.c: New file.
10242         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10243
10244         Tests for module 'grantpt'.
10245         * modules/grantpt-tests: New file.
10246         * tests/test-grantpt.c: New file.
10247         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10248
10249 2011-09-20  Bruno Haible  <bruno@clisp.org>
10250
10251         freopen tests: EBADF tests.
10252         * tests/test-freopen.c: Include errno.h, unistd.h.
10253         (main): Add tests for EBADF, commented out for the moment.
10254
10255         fclose tests: EBADF tests.
10256         * tests/test-fclose.c (main): Add tests for EBADF.
10257
10258         fflush tests: EBADF tests.
10259         * tests/test-fflush.c: Include errno.h, macros.h.
10260         (main): Add tests for EBADF.
10261
10262         ftello tests: EBADF tests.
10263         * tests/test-ftello4.sh: New file.
10264         * tests/test-ftello4.c: New file.
10265         * modules/ftello-tests (Files): Add them.
10266         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10267
10268         fseeko tests: EBADF tests.
10269         * tests/test-fseeko4.sh: New file.
10270         * tests/test-fseeko4.c: New file.
10271         * modules/fseeko-tests (Files): Add them.
10272         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10273
10274         Tests for function fputc().
10275         * modules/fputc-tests: New file.
10276         * tests/test-fputc.c: New file.
10277         * modules/stdio-tests (Depends-on): Add fputc-tests.
10278
10279         Tests for function fgetc().
10280         * modules/fgetc-tests: New file.
10281         * tests/test-fgetc.c: New file.
10282         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10283
10284         Tests for function fdopen().
10285         * modules/fdopen-tests: New file.
10286         * tests/test-fdopen.c: New file.
10287         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10288
10289         Tests for module 'vdprintf'.
10290         * modules/vdprintf-tests: New file.
10291         * tests/test-vdprintf.c: New file.
10292
10293         Tests for module 'dprintf'.
10294         * modules/dprintf-tests: New file.
10295         * tests/test-dprintf.c: New file.
10296
10297 2011-09-20  Bruno Haible  <bruno@clisp.org>
10298
10299         Tests for module 'ioctl'.
10300         * modules/ioctl-tests: New file.
10301         * tests/test-ioctl.c: New file.
10302
10303 2011-09-20  Bruno Haible  <bruno@clisp.org>
10304
10305         fcntl tests: EBADF tests.
10306         * tests/test-fcntl.c (main): Add more tests for EBADF.
10307
10308 2011-09-20  Bruno Haible  <bruno@clisp.org>
10309
10310         utimensat tests: EBADF tests.
10311         * tests/test-utimensat.c (main): Add tests for EBADF.
10312
10313         renameat tests: EBADF tests.
10314         * tests/test-renameat.c (main): Add tests for EBADF.
10315
10316         mkfifoat tests: EBADF tests.
10317         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10318
10319         readlinkat tests: EBADF tests.
10320         * tests/test-readlinkat.c (main): Add tests for EBADF.
10321
10322         symlinkat tests: EBADF tests.
10323         * tests/test-symlinkat.c (main): Add tests for EBADF.
10324
10325         linkat tests: EBADF tests.
10326         * tests/test-linkat.c (main): Add tests for EBADF.
10327
10328         Tests for module 'faccessat'.
10329         * modules/faccessat-tests: New file.
10330         * tests/test-faccessat.c: New file.
10331
10332         fdopendir tests: EBADF tests.
10333         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10334
10335         openat tests: EBADF tests.
10336         * tests/test-fchownat.c (main): Add tests for EBADF.
10337         * tests/test-fstatat.c (main): Likewise.
10338         * tests/test-mkdirat.c (main): Likewise.
10339         * tests/test-openat.c (main): Likewise.
10340         * tests/test-unlinkat.c (main): Likewise.
10341         * tests/test-fchmodat.c: New file.
10342         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10343         (Makefile.am): Also run 'test-fchmodat'.
10344
10345 2011-09-20  Bruno Haible  <bruno@clisp.org>
10346
10347         utimens, futimens, fdutimensat tests: EBADF tests.
10348         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10349
10350         Tests for function fstat().
10351         * modules/fstat-tests: New file.
10352         * tests/test-fstat.c: New file.
10353         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10354
10355 2011-09-20  Bruno Haible  <bruno@clisp.org>
10356
10357         test-ttyname_r tests: EBADF tests.
10358         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10359
10360         Tests for module 'isatty'.
10361         * modules/isatty-tests: New file.
10362         * tests/test-isatty.c: New file.
10363
10364         Tests for module 'write'.
10365         * modules/write-tests: New file.
10366         * tests/test-write.c: New file.
10367
10368         Tests for module 'read'.
10369         * modules/read-tests: New file.
10370         * tests/test-read.c: New file.
10371
10372         pwrite tests: EBADF tests.
10373         * tests/test-pwrite.c (main): Add tests for EBADF.
10374
10375         pread tests: EBADF tests.
10376         * tests/test-pread.c (main): Add tests for EBADF.
10377
10378         lseek tests: EBADF tests.
10379         * tests/test-lseek.c (main): Add more tests for EBADF.
10380
10381         Tests for module 'ftruncate'.
10382         * modules/ftruncate-tests: New file.
10383         * tests/test-ftruncate.sh: New file.
10384         * tests/test-ftruncate.c: New file.
10385
10386         fsync tests: EBADF tests.
10387         * tests/test-fsync.c (main): Add more tests for EBADF.
10388
10389         fdatasync tests: EBADF tests.
10390         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10391
10392         Tests for module 'fchown'.
10393         * modules/fchown-tests: New file.
10394         * tests/test-fchown.c: New file.
10395
10396         Tests for module 'fchmod'.
10397         * modules/fchmod-tests: New file.
10398         * tests/test-fchmod.c: New file.
10399
10400         fchdir tests: EBADF tests.
10401         * tests/test-fchdir.c (main): Add more tests for EBADF.
10402
10403         dup2 tests: EBADF tests.
10404         * tests/test-dup2.c (main): Add more tests for EBADF.
10405
10406         Tests for module 'dup'.
10407         * modules/dup-tests: New file.
10408         * tests/test-dup.c: New file.
10409
10410         Tests for module 'close'.
10411         * modules/close-tests: New file.
10412         * tests/test-close.c: New file.
10413
10414 2011-09-20  Bruno Haible  <bruno@clisp.org>
10415
10416         Tests for module 'shutdown'.
10417         * modules/shutdown-tests: New file.
10418         * tests/test-shutdown.c: New file.
10419
10420         Tests for module 'setsockopt'.
10421         * modules/setsockopt-tests: New file.
10422         * tests/test-setsockopt.c: New file.
10423
10424         Tests for module 'sendto'.
10425         * modules/sendto-tests: New file.
10426         * tests/test-sendto.c: New file.
10427
10428         Tests for module 'send'.
10429         * modules/send-tests: New file.
10430         * tests/test-send.c: New file.
10431
10432         Tests for module 'recvfrom'.
10433         * modules/recvfrom-tests: New file.
10434         * tests/test-recvfrom.c: New file.
10435
10436         Tests for module 'recv'.
10437         * modules/recv-tests: New file.
10438         * tests/test-recv.c: New file.
10439
10440         Tests for module 'listen'.
10441         * modules/listen-tests: New file.
10442         * tests/test-listen.c: New file.
10443
10444         Tests for module 'getsockopt'.
10445         * modules/getsockopt-tests: New file.
10446         * tests/test-getsockopt.c: New file.
10447
10448         Tests for module 'getsockname'.
10449         * modules/getsockname-tests: New file.
10450         * tests/test-getsockname.c: New file.
10451
10452         Tests for module 'getpeername'.
10453         * modules/getpeername-tests: New file.
10454         * tests/test-getpeername.c: New file.
10455
10456         Tests for module 'connect'.
10457         * modules/connect-tests: New file.
10458         * tests/test-connect.c: New file.
10459
10460         Tests for module 'bind'.
10461         * modules/bind-tests: New file.
10462         * tests/test-bind.c: New file.
10463
10464         accept4 tests: Fix for native Windows.
10465         * tests/test-accept4.c: Include sockets.h.
10466         (main): Invoke gl_sockets_startup.
10467         * modules/accept4-tests (Depends-on): Add sockets.
10468
10469         accept tests: Fix for native Windows.
10470         * tests/test-accept.c: Include sockets.h.
10471         (main): Invoke gl_sockets_startup.
10472         * modules/accept-tests (Depends-on): Add sockets.
10473
10474 2011-09-19  Bruno Haible  <bruno@clisp.org>
10475
10476         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10477         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10478         do...while(0).
10479         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10480         Suggested by Paul Eggert.
10481
10482 2011-09-19  Bruno Haible  <bruno@clisp.org>
10483
10484         sched: Ensure pid_t is defined.
10485         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10486         not define pid_t.
10487         * lib/sched.in.h: Include <sys/types.h>.
10488         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10489         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10490
10491 2011-09-19  Bruno Haible  <bruno@clisp.org>
10492
10493         msvc-inval: Ensure the entire expansion is a single statement.
10494         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10495         of braces.
10496
10497 2011-09-19  Jim Meyering  <meyering@redhat.com>
10498
10499         tests: use printf, not echo in init.sh's warn_ function
10500         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10501         misbehave when given strings containing a backslash or starting
10502         with e.g., -n.  James Youngman suggested setting IFS.
10503
10504 2011-09-19  Eric Blake  <eblake@redhat.com>
10505
10506         futimens: enhance test
10507         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10508         closed non-negative fd.
10509
10510         date: accept 'hence' as opposite of 'ago'
10511         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10512         * tests/test-parse-datetime.c (main): Enhance test.
10513         Suggested by Jesse Wilson.
10514
10515 2011-09-19  Jim Meyering  <meyering@redhat.com>
10516
10517         getcwd: don't fail in a deep directory on a system without openat
10518         Before this change, getcwd would fail when called from a directory
10519         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10520         the non-openat implementation used "..", "../..", "../../..", etc.
10521         to access ancestor directories.  With too many, that string would
10522         be longer than PATH_MAX.
10523         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10524         using gnulib's openat replacement.
10525         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10526         we're using the replacement function.
10527
10528 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10529
10530         maint.mk: avoid warnings from perl about missing files
10531         * top/maint.mk (def_sym_regex): Ignore files listed in
10532         $(gl_other_headers_) that do not exist, say because a project
10533         does not use a corresponding module.
10534
10535 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10536
10537         stat: use pathmax.h only if needed
10538         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10539         This is better for Emacs, which does not have a mingw port and
10540         therefore can avoid the pathmax module.
10541
10542         utimens: remove dependency on dup2
10543         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10544         to work around the Linux kernel bug.
10545         * modules/utimens (Depends-on): Remove dup2.
10546
10547 2011-09-18  Bruno Haible  <bruno@clisp.org>
10548
10549         inet_ntop, inet_pton: Look for it also in libresolv.
10550         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10551         libnsl, search for it in libresolv.
10552         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10553         Needed on Solaris 7.
10554
10555 2011-09-18  Bruno Haible  <bruno@clisp.org>
10556
10557         accept, accept4 tests: Avoid link error on Solaris.
10558         * modules/accept-tests (Makefile.am): Link test-accept against
10559         $(LIBSOCKET).
10560         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10561         $(LIBSOCKET).
10562
10563         accept4: Avoid link error on Solaris.
10564         * modules/accept4 (Link): New section.
10565
10566         socket functions: Avoid link errors on Solaris.
10567         * modules/accept (Depends-on): Add socketlib.
10568         (Link): New section.
10569         * modules/bind (Depends-on): Add socketlib.
10570         (Link): New section.
10571         * modules/connect (Depends-on): Add socketlib.
10572         (Link): New section.
10573         * modules/getpeername (Depends-on): Add socketlib.
10574         (Link): New section.
10575         * modules/getsockname (Depends-on): Add socketlib.
10576         (Link): New section.
10577         * modules/getsockopt (Depends-on): Add socketlib.
10578         (Link): New section.
10579         * modules/listen (Depends-on): Add socketlib.
10580         (Link): New section.
10581         * modules/recv (Depends-on): Add socketlib.
10582         (Link): New section.
10583         * modules/recvfrom (Depends-on): Add socketlib.
10584         (Link): New section.
10585         * modules/send (Depends-on): Add socketlib.
10586         (Link): New section.
10587         * modules/sendto (Depends-on): Add socketlib.
10588         (Link): New section.
10589         * modules/setsockopt (Depends-on): Add socketlib.
10590         (Link): New section.
10591         * modules/shutdown (Depends-on): Add socketlib.
10592         (Link): New section.
10593         * modules/socket (Depends-on): Add socketlib.
10594         (Link): New section.
10595
10596 2011-09-18  Bruno Haible  <bruno@clisp.org>
10597
10598         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10599         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10600         than 5 seconds.
10601         * modules/ptsname-tests (configure.ac): Test for alarm.
10602
10603 2011-09-18  Bruno Haible  <bruno@clisp.org>
10604
10605         posix_spawn_file_actions_add*: Fix module dependencies.
10606         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10607         posix_spawn_file_actions_init.
10608         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10609         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10610
10611 2011-09-18  Bruno Haible  <bruno@clisp.org>
10612
10613         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10614         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10615         * tests/test-renameat.c (main): Likewise.
10616
10617 2011-09-18  Bruno Haible  <bruno@clisp.org>
10618
10619         Tests for module 'accept4'.
10620         * modules/accept4-tests: New file.
10621         * tests/test-accept4.c: New file.
10622
10623 2011-09-18  Bruno Haible  <bruno@clisp.org>
10624
10625         Tests for module 'accept'.
10626         * modules/accept-tests: New file.
10627         * tests/test-accept.c: New file.
10628
10629 2011-09-18  Bruno Haible  <bruno@clisp.org>
10630
10631         dup2: Support for MSVC.
10632         * lib/dup2.c: Include msvc-inval.h.
10633         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10634         _get_osfhandle calls.
10635         * modules/dup2 (Depends-on): Add msvc-inval.
10636         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10637
10638         New module 'msvc-inval'.
10639         * lib/msvc-inval.h: New file.
10640         * lib/msvc-inval.c: New file.
10641         * m4/msvc-inval.m4: New file.
10642         * modules/msvc-inval: New file.
10643
10644 2011-09-17  Bruno Haible  <bruno@clisp.org>
10645
10646         Tests for module 'pclose'.
10647         * modules/pclose-tests: New file.
10648
10649         New module 'pclose'.
10650         * lib/stdio.in.h (pclose): New declaration.
10651         * lib/pclose.c: New file.
10652         * m4/pclose.m4: New file.
10653         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10654         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10655         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10656         * modules/pclose: New file.
10657         * modules/popen-tests (Depends-on): Add pclose.
10658         * modules/popen-safer-tests (Depends-on): Likewise.
10659         * doc/posix-functions/pclose.texi: Mention the new module.
10660
10661 2011-09-17  Bruno Haible  <bruno@clisp.org>
10662
10663         popen: Support for MSVC.
10664         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10665         * lib/popen.c (popen): Provide alternate definition for native Windows.
10666         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10668         * modules/popen (Depends-on, configure.ac): Update condition.
10669         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10670         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10671         fixed.
10672
10673 2011-09-17  Bruno Haible  <bruno@clisp.org>
10674
10675         isnanl, isnand, isnanf: Work around MSVC bug.
10676         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10677
10678 2011-09-17  Bruno Haible  <bruno@clisp.org>
10679
10680         sys_socket tests: Fix recent mistake.
10681         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10682
10683 2011-09-17  Bruno Haible  <bruno@clisp.org>
10684
10685         putenv: Support for MSVC.
10686         * modules/putenv (Depends-on): Add environ.
10687         * lib/putenv.c (environ): Disable declaration.
10688         * lib/unistd.in.h: Update comment.
10689
10690 2011-09-17  Bruno Haible  <bruno@clisp.org>
10691
10692         math: Avoid macro redefinition warnings on MSVC.
10693         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10694         Undefine before redefining.
10695
10696 2011-09-17  Bruno Haible  <bruno@clisp.org>
10697
10698         doc: Mention functions which are declared as macros.
10699         * doc/posix-functions/*[fl].texi: Mention that some functions are
10700         defined as macros with arguments only.
10701
10702 2011-09-17  Bruno Haible  <bruno@clisp.org>
10703
10704         Add dependencies to new dirent related modules.
10705         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10706         * modules/fts (Depends-on): Likewise.
10707         * modules/glob (Depends-on): Likewise.
10708         * modules/savedir (Depends-on): Likewise.
10709         * modules/scandir (Depends-on): Likewise.
10710         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10711         * modules/fdopendir (Depends-on): Add opendir.
10712
10713 2011-09-17  Bruno Haible  <bruno@clisp.org>
10714
10715         inet_pton: Support for MSVC on Windows Vista or newer.
10716         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10717         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10718         HAVE_DECL_INET_PTON is defined.
10719         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10720         On platforms with <winsock2.h>, test whether inet_pton is declared in
10721         <ws2tcpip.h>. If so, arrange to replace it.
10722         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10723         REPLACE_INET_PTON.
10724         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10725         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10726         (Depends-on, configure.ac): Update condition.
10727         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10728
10729 2011-09-17  Bruno Haible  <bruno@clisp.org>
10730
10731         inet_ntop: Support for MSVC on Windows Vista or newer.
10732         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10733         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10734         HAVE_DECL_INET_NTOP is defined.
10735         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10736         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10737         <ws2tcpip.h>. If so, arrange to replace it.
10738         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10739         REPLACE_INET_NTOP.
10740         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10741         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10742         (Depends-on, configure.ac): Update condition.
10743         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10744
10745 2011-09-16  Eric Blake  <eblake@redhat.com>
10746
10747         test-fsync: yet another enhancement
10748         * tests/test-fsync.c (main): Also test behavior on read-only text
10749         file.
10750
10751 2011-09-16  Bruno Haible  <bruno@clisp.org>
10752
10753         Enhance fsync, fdatasync tests.
10754         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10755         * tests/test-fdatasync.c (main): Likewise.
10756
10757 2011-09-16  Bruno Haible  <bruno@clisp.org>
10758
10759         Support for MSVC compiler: Ensure mode_t gets defined.
10760         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10761         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10762         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10763         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10764         * tests/test-fcntl-h.c: Check that mode_t is defined.
10765         * tests/test-sys_stat.c: Likewise.
10766         * tests/test-sys_types.c: Likewise.
10767         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10768         * doc/posix-headers/sys_stat.texi: Likewise.
10769         * doc/posix-headers/sys_types.texi: Likewise.
10770
10771 2011-09-16  Bruno Haible  <bruno@clisp.org>
10772
10773         sys_stat: Support for MSVC.
10774         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10775         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10776         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10777         MSVC.
10778
10779 2011-09-16  Bruno Haible  <bruno@clisp.org>
10780
10781         Support for MSVC compiler: Ensure off_t gets defined.
10782         * lib/unistd.in.h: Include <sys/types.h>.
10783         * tests/test-fcntl-h.c: Check that off_t is defined.
10784         * tests/test-sys_stat.c: Likewise.
10785         * tests/test-sys_types.c: Likewise.
10786
10787 2011-09-16  Eric Blake  <eblake@redhat.com>
10788
10789         fdatasync: port to Solaris
10790         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10791         * modules/fdatasync (Link): Document it.
10792         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10793
10794         fdatasync: port to MacOS X 10.7
10795         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10796         declared.
10797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10798         * modules/unistd (Makefile.am): Substitute it.
10799         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10800         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10801
10802         fdatasync: minor improvements
10803         * modules/fdatasync (Depends-on): Add condition for fsync.
10804         * lib/fdatasync.c (fdatasync): Add comment.
10805         * tests/test-unistd-c++.cc: Test fdatasync.
10806
10807         unistd: update refs to newer POSIX
10808         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10809         Suggested by Bruno Haible.
10810
10811         fdatasync: new module
10812         * modules/fsync (Description): Document difference to fdatasync.
10813         * modules/fdatasync: New module.
10814         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10815         * lib/fdatasync.c (fdatasync): Likewise.
10816         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10817         defaults.
10818         * modules/unistd (Makefile.am): Set witnesses.
10819         * lib/unistd.in.h (fdatasync): Declare.
10820         * MODULES.html.sh: Document it.
10821         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10822         * modules/fdatasync-tests: New test.
10823         * tests/test-fdatasync.c: Likewise.
10824
10825 2011-09-16  Eric Blake  <eblake@redhat.com>
10826
10827         test-fsync: enhance tests
10828         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10829         * tests/test-fsync.c (main): Enhance test.
10830
10831 2011-09-15  Bruno Haible  <bruno@clisp.org>
10832
10833         Support for MSVC compiler: Ensure ssize_t gets defined.
10834         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10835         * doc/posix-headers/stdio.texi: Likewise.
10836         * modules/stdio (Depends-on): Add ssize_t.
10837         * modules/sys_socket (Depends-on): Likewise.
10838         * modules/sys_types (Depends-on): Likewise.
10839         * modules/sys_uio (Depends-on): Likewise.
10840         * modules/unistd (Depends-on): Likewise.
10841         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10842         * tests/test-sys_types.c: Check that ssize_t is defined.
10843
10844 2011-09-14  Bruno Haible  <bruno@clisp.org>
10845
10846         Avoid using #, the m4 comment starter character, near brackets.
10847         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10848         delimiter character in sed expressions.
10849         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10850         Suggested by Eric Blake.
10851
10852         Properly quote AC_CHECK_DECLS' 4th argument.
10853         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10854         argument.
10855         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10856         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10857         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10858         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10859         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10860         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10861         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10862         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10863         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10864         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10865         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10866         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10867         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10868         * m4/isinf.m4 (gl_ISINF): Likewise.
10869         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10870         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10871         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10872         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10873         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10874         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10875         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10876         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10877         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10878         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10879         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10880         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10882         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10883         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10884         Reported by Eric Blake.
10885
10886         Properly quote AC_CHECK_DECL's 4th argument.
10887         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10888         argument.
10889         * m4/argp.m4 (gl_ARGP): Likewise.
10890         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10891         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10892         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10893         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10894         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10895         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10896         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10897         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10898         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10899         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10900         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10901         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10902         Reported by Eric Blake.
10903
10904 2011-09-14  Eric Blake  <eblake@redhat.com>
10905
10906         opendir: avoid compile warning
10907         * lib/opendir.c (includes): Always include errno.h.
10908         Reported by Tatsuro MATSUOKA.
10909
10910 2011-09-14  Jim Meyering  <meyering@redhat.com>
10911
10912         maint.mk: sc_tight_scope: propagate failure from sub-make
10913         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10914         Reported by Martin von Gagern.
10915
10916 2011-09-13  Bruno Haible  <bruno@clisp.org>
10917
10918         tempname: Support for MSVC.
10919         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10920         MSVC.
10921         * modules/tempname (Depends-on): Add fcntl-h.
10922
10923 2011-09-13  Bruno Haible  <bruno@clisp.org>
10924
10925         sys_time: Support for MSVC.
10926         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10927         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10928         include <winsock2.h>.
10929         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10930         function declarations that collide with POSIX.
10931         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10932         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10933
10934 2011-09-13  Bruno Haible  <bruno@clisp.org>
10935
10936         stat: Support for MSVC.
10937         * lib/stat.c: Include pathmax.h.
10938         * modules/stat (Depends-on): Add pathmax.
10939
10940         pathmax: Support for native Windows.
10941         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10942
10943 2011-09-12  Bruno Haible  <bruno@clisp.org>
10944
10945         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10946         * lib/dirent.in.h (struct dirent): New type.
10947         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10948         DT_WHT): New macros.
10949         (DIR): New type.
10950         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10951         (readdir, rewinddir): New declarations.
10952         * lib/dirent-private.h: New file.
10953         * lib/opendir.c: New file.
10954         * lib/readdir.c: New file.
10955         * lib/rewinddir.c: New file.
10956         * lib/closedir.c: New file.
10957         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10958         * m4/opendir.m4: New file.
10959         * m4/readdir.m4: New file.
10960         * m4/rewinddir.m4: New file.
10961         * m4/closedir.m4: New file.
10962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10963         REPLACE_CLOSEDIR here.
10964         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10965         readdir, rewinddir are declared.
10966         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10967         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10968         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10969         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10970         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10971         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10972         * modules/opendir: New file.
10973         * modules/readdir: New file.
10974         * modules/rewinddir: New file.
10975         * modules/closedir: New file.
10976         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10977         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10978         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10979         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10980         * NEWS: Mention the 'fchdir' change.
10981
10982 2011-09-11  Bruno Haible  <bruno@clisp.org>
10983
10984         asm-underscore.m4: Support for MSVC.
10985         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10986         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10987
10988 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10989
10990         Doc about crypt functions.
10991         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10992         needing for _GNU_SOURCE to get crypt.
10993         * doc/posix-functions/encrypt.texi: Likewise.
10994         * doc/posix-functions/setkey.texi: Likewise.
10995
10996 2011-09-11  Bruno Haible  <bruno@clisp.org>
10997
10998         doc: Update regarding MSVC 9.
10999         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
11000         tested".
11001         * doc/posix-functions/*.texi: Update with info about MSVC 9.
11002         * doc/posix-headers/*.texi: Likewise.
11003         * doc/pastposix-functions/*.texi: Likewise.
11004         * doc/glibc-functions/*.texi: Likewise.
11005         * doc/glibc-headers/*.texi: Likewise.
11006
11007 2011-09-11  Bruno Haible  <bruno@clisp.org>
11008
11009         unistd et al.: Don't assume <unistd.h> exists.
11010         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11011         does not exist.
11012         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11013         exist. But include <stdlib.h>.
11014         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11015         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11016         symlink() does not exist.
11017         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11018         include <io.h> instead.
11019         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11020         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11021         include <direct.h> instead.
11022         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11023         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11024         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11025         <io.h> instead.
11026         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11027         correctly if the system does not have hard links.
11028         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11029         <direct.h> instead.
11030         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11031         it when looking for function declarations.
11032         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11033         <direct.h> and <io.h> instead.
11034         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11035
11036 2011-09-11  Bruno Haible  <bruno@clisp.org>
11037
11038         strcase: Support for MSVC.
11039         * modules/strcase (Status, Notice): Remove obsoletion mark.
11040         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11041         * doc/posix-functions/strncasecmp.texi: Likewise.
11042
11043         strings: Don't assume <strings.h> exists.
11044         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11045         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11046         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11047         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11048
11049 2011-09-11  Bruno Haible  <bruno@clisp.org>
11050
11051         dirent: Don't assume <dirent.h> exists.
11052         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11053         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11054         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11055         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11056
11057 2011-09-11  Bruno Haible  <bruno@clisp.org>
11058
11059         Fix wint_t on MSVC.
11060         * lib/wchar.in.h (wint_t): On MSVC, override it.
11061         * lib/wctype.in.h (wint_t): Likewise.
11062         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11063         MSVC.
11064         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11065         * doc/posix-headers/wctype.texi: Likewise.
11066
11067 2011-09-11  Bruno Haible  <bruno@clisp.org>
11068
11069         sys_types: Fix typo.
11070         * lib/sys_types.in.h: Fix typo in comment.
11071         Reported by Paul Eggert.
11072
11073         Support for MSVC compiler: Ensure size_t gets defined.
11074         * modules/strings (Depends-on): Add 'sys_types'.
11075         * modules/sys_uio (Depends-on): Likewise.
11076         * lib/sys_uio.in.h: Update comment.
11077
11078         C++ tests for module 'sys_types'.
11079         * modules/sys_types-c++-tests: New file.
11080         * tests/test-sys_types-c++.cc: New file.
11081
11082         Tests for module 'sys_types'.
11083         * modules/sys_types-tests: New file.
11084         * tests/test-sys_types.c: New file.
11085
11086         New module 'sys_types'.
11087         * lib/sys_types.in.h: New file.
11088         * m4/sys_types_h.m4: New file.
11089         * modules/sys_types: New file.
11090         * doc/posix-headers/sys_types.texi: Mention the new module and the
11091         size_t problem on MSVC 9.
11092
11093 2011-09-11  Bruno Haible  <bruno@clisp.org>
11094
11095         Support for MSVC compiler: Avoid division by a literal 0.
11096         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11097         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11098         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11099         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11100         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11101         * tests/infinity.h: New file.
11102         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11103         on MSVC.
11104         * tests/test-ceilf1.c: Include infinity.h.
11105         (main): Use Infinityf.
11106         * tests/test-ceil1.c: Include infinity.h.
11107         (main): Use Infinityd.
11108         * tests/test-ceill.c: Include infinity.h.
11109         (main): Use Infinityl.
11110         * tests/test-dprintf-posix.c: Include infinity.h.
11111         (test_function): Use Infinityd.
11112         * tests/test-floorf1.c: Include infinity.h.
11113         (main): Use Infinityf.
11114         * tests/test-floor1.c: Include infinity.h.
11115         (main): Use Infinityd.
11116         * tests/test-floorl.c: Include infinity.h.
11117         (main): Use Infinityl.
11118         * tests/test-fprintf-posix.c: Include infinity.h.
11119         (test_function): Use Infinityd.
11120         * tests/test-frexp.c: Include infinity.h.
11121         (main): Use Infinityd.
11122         * tests/test-frexpl.c: Include infinity.h.
11123         (main): Use Infinityl.
11124         * tests/test-isfinite.c: Include infinity.h.
11125         (test_isfinitef): Use Infinityf.
11126         (test_isfinited): Use Infinityd.
11127         (test_isfinitel): Use Infinityl.
11128         * tests/test-isinf.c: Include infinity.h.
11129         (test_isinff): Use Infinityf.
11130         (test_isinfd): Use Infinityd.
11131         (test_isinfl): Use Infinityl.
11132         * tests/test-isnan.c: Include infinity.h.
11133         (test_float): Use Infinityf.
11134         (test_double): Use Infinityd.
11135         (test_long_double): Use Infinityl.
11136         * tests/test-isnanf.h: Include infinity.h.
11137         (main): Use Infinityf.
11138         * tests/test-isnand.h: Include infinity.h.
11139         (main): Use Infinityd.
11140         * tests/test-isnanl.h: Include infinity.h.
11141         (main): Use Infinityl.
11142         * tests/test-ldexpl.c: Include infinity.h.
11143         (main): Use Infinityl.
11144         * tests/test-printf-posix.h: Include infinity.h.
11145         (test_function): Use Infinityd.
11146         * tests/test-roundf1.c: Include infinity.h.
11147         (main): Use Infinityf.
11148         * tests/test-round1.c: Include infinity.h.
11149         (main): Use Infinityd.
11150         * tests/test-roundl.c: Include infinity.h.
11151         (main): Use Infinityl.
11152         * tests/test-signbit.c: Include infinity.h.
11153         (test_signbitf): Use Infinityf.
11154         (test_signbitd): Use Infinityd.
11155         (test_signbitl): Use Infinityl.
11156         * tests/test-snprintf-posix.h: Include infinity.h.
11157         (test_function): Use Infinityd, Infinityl.
11158         * tests/test-sprintf-posix.h: Include infinity.h.
11159         (test_function): Use Infinityd, Infinityl.
11160         * tests/test-truncf1.c: Include infinity.h.
11161         (main): Use Infinityf.
11162         * tests/test-trunc1.c: Include infinity.h.
11163         (main): Use Infinityd.
11164         * tests/test-truncl.c: Include infinity.h.
11165         (main): Use Infinityl.
11166         * tests/test-vasnprintf-posix.c: Include infinity.h.
11167         (test_function): Use Infinityd, Infinityl.
11168         * tests/test-vasprintf-posix.c: Include infinity.h.
11169         (test_function): Use Infinityd, Infinityl.
11170         * modules/ceilf-tests (Files): Add tests/infinity.h.
11171         * modules/ceil-tests (Files): Likewise.
11172         * modules/ceill-tests (Files): Likewise.
11173         * modules/dprintf-posix-tests (Files): Likewise.
11174         * modules/floorf-tests (Files): Likewise.
11175         * modules/floor-tests (Files): Likewise.
11176         * modules/floorl-tests (Files): Likewise.
11177         * modules/fprintf-posix-tests (Files): Likewise.
11178         * modules/frexp-tests (Files): Likewise.
11179         * modules/frexp-nolibm-tests (Files): Likewise.
11180         * modules/frexpl-tests (Files): Likewise.
11181         * modules/frexpl-nolibm-tests (Files): Likewise.
11182         * modules/isfinite-tests (Files): Likewise.
11183         * modules/isinf-tests (Files): Likewise.
11184         * modules/isnan-tests (Files): Likewise.
11185         * modules/isnanf-tests (Files): Likewise.
11186         * modules/isnanf-nolibm-tests (Files): Likewise.
11187         * modules/isnand-tests (Files): Likewise.
11188         * modules/isnand-nolibm-tests (Files): Likewise.
11189         * modules/isnanl-tests (Files): Likewise.
11190         * modules/isnanl-nolibm-tests (Files): Likewise.
11191         * modules/ldexpl-tests (Files): Likewise.
11192         * modules/printf-posix-tests (Files): Likewise.
11193         * modules/roundf-tests (Files): Likewise.
11194         * modules/round-tests (Files): Likewise.
11195         * modules/roundl-tests (Files): Likewise.
11196         * modules/signbit-tests (Files): Likewise.
11197         * modules/snprintf-posix-tests (Files): Likewise.
11198         * modules/sprintf-posix-tests (Files): Likewise.
11199         * modules/truncf-tests (Files): Likewise.
11200         * modules/trunc-tests (Files): Likewise.
11201         * modules/truncl-tests (Files): Likewise.
11202         * modules/vasnprintf-posix-tests (Files): Likewise.
11203         * modules/vasprintf-posix-tests (Files): Likewise.
11204         * modules/vdprintf-posix-tests (Files): Likewise.
11205         * modules/vfprintf-posix-tests (Files): Likewise.
11206         * modules/vprintf-posix-tests (Files): Likewise.
11207         * modules/vsnprintf-posix-tests (Files): Likewise.
11208         * modules/vsprintf-posix-tests (Files): Likewise.
11209         * modules/xprintf-posix-tests (Files): Likewise.
11210
11211 2011-09-11  Bruno Haible  <bruno@clisp.org>
11212
11213         Ensure pid_t gets defined.
11214         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11215         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11216         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11217         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11218         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11219         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11220         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11221         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11222         * tests/test-fcntl-h.c: Check that pid_t is defined.
11223         * tests/test-sched.c: Likewise.
11224         * tests/test-termios.c: Likewise.
11225         * tests/test-time.c: Likewise.
11226         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11227         * doc/posix-headers/signal.texi: Likewise.
11228         * doc/posix-headers/sys_types.texi: Likewise.
11229         * doc/posix-headers/time.texi: Likewise.
11230
11231 2011-09-11  Bruno Haible  <bruno@clisp.org>
11232
11233         acl: Fix compilation on Solaris 10 (older version).
11234         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11235         of ACE_EVERYONE.
11236         * lib/set-mode-acl.c (qset_acl): Likewise.
11237         Reported by Christian Jullien <eligis@orange.fr>.
11238
11239 2011-09-10  Bruno Haible  <bruno@clisp.org>
11240
11241         iconv, unsetenv: Add support for MSVC compiler.
11242         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11243         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11244
11245 2011-09-10  Bruno Haible  <bruno@clisp.org>
11246
11247         *printf: Add support for MSVC compiler.
11248         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11249         handles the exception caused by the %n directive. When cross-compiling,
11250         guess no on native Windows.
11251         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11252         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11253         emulate it through vsnprintf.
11254         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11255         * doc/posix-functions/dprintf.texi: Update documentation regarding
11256         MSVC 9.
11257         * doc/posix-functions/fprintf.texi: Likewise.
11258         * doc/posix-functions/printf.texi: Likewise.
11259         * doc/posix-functions/snprintf.texi: Likewise.
11260         * doc/posix-functions/sprintf.texi: Likewise.
11261         * doc/posix-functions/swprintf.texi: Likewise.
11262         * doc/posix-functions/vdprintf.texi: Likewise.
11263         * doc/posix-functions/vfprintf.texi: Likewise.
11264         * doc/posix-functions/vprintf.texi: Likewise.
11265         * doc/posix-functions/vsnprintf.texi: Likewise.
11266         * doc/posix-functions/vsprintf.texi: Likewise.
11267         * doc/glibc-functions/asprintf.texi: Likewise.
11268         * doc/glibc-functions/obstack_printf.texi: Likewise.
11269         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11270         * doc/glibc-functions/vasprintf.texi: Likewise.
11271
11272 2011-09-10  Bruno Haible  <bruno@clisp.org>
11273
11274         nocrash: Add support for native Windows.
11275         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11276
11277 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11278             Bruno Haible  <bruno@clisp.org>
11279
11280         absolute-header, include-next: Add support for MSVC compiler.
11281         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11282         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11283         directory separator in #line directives.
11284         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11285         recognize also backslash as directory separator in #line directives.
11286
11287 2011-09-08  Jim Meyering  <meyering@redhat.com>
11288
11289         maint.mk: mark the post-release commit log with "maint: " prefix
11290         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11291         one-line commit-log summary.
11292
11293 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11294             Bruno Haible  <bruno@clisp.org>
11295
11296         Doc about crypt functions.
11297         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11298         systems.
11299         * doc/posix-functions/encrypt.texi: Likewise.
11300         * doc/posix-functions/setkey.texi: Likewise.
11301
11302 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11303
11304         * lib/gc.h: Fix copyright header.
11305
11306 2011-09-07  Bruno Haible  <bruno@clisp.org>
11307
11308         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11309         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11310         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11311
11312 2011-09-07  Bruno Haible  <bruno@clisp.org>
11313
11314         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11315         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11316         * lib/freopen.c: Likewise.
11317         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11318         * lib/lstat.c: Likewise.
11319         * lib/stat.c: Likewise.
11320         * lib/open.c: Use different syntax for include of <fcntl.h>.
11321         * lib/openat.c: Include fcntl.h again, explicitly.
11322
11323 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11324
11325         parse-datetime: document the newly accepted format
11326         * doc/parse-datetime.texi (Combined date and time of day items):
11327         New section.
11328
11329 2011-09-06  Bruno Haible  <bruno@clisp.org>
11330
11331         acl: Fix a test failure on newer Solaris 10 with ZFS.
11332         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11333         ENOSYS as no ACL.
11334         Reported by Jim Meyering.
11335
11336 2011-09-06  Bruno Haible  <bruno@clisp.org>
11337
11338         acl: Update for AIX >= 5.3 with NFS.
11339         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11340         ENOSYS as no ACL.
11341
11342         acl: Fix a test failure on AIX >= 5.3 with NFS.
11343         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11344         as no ACL.
11345
11346 2011-09-06  Bruno Haible  <bruno@clisp.org>
11347
11348         acl: Fix a test failure on IRIX 6.5 with NFS.
11349         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11350         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11351         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11352         * lib/copy-acl.c (qcopy_acl): Likewise.
11353
11354 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11355
11356         openat: port to AIX 7.1 with large files
11357         AIX 7.1 does a "#define openat open64at" if large files are in use,
11358         so we can't simply #undef openat.  Use the orig_openat trick (similar
11359         to orig_open in lib/open.c) to work around the problem.  Problem
11360         reported by Kevin Brott for GNU tar, in the thread containing
11361         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11362         * lib/openat.c (__need_system_fcntl_h): Define first.
11363         Include <fcntl.h> and <sys/types.h> before undefining.
11364         (orig_openat) [HAVE_OPENAT]: New inline function.
11365         (openat) [HAVE_OPENAT]: Do not undef.
11366         (rpl_openat): Use orig_openat, not openat.
11367
11368 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11369             Bruno Haible  <bruno@clisp.org>
11370
11371         acl: Avoid errors on NonStop Kernel.
11372         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11373         ENOTSUP errors.
11374
11375 2011-09-05  Bruno Haible  <bruno@clisp.org>
11376
11377         acl: Clean up Solaris code.
11378         * lib/acl-internal.h: Remove no-op #if.
11379         * lib/file-has-acl.c: Likewise.
11380         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11381         * lib/copy-acl.c (qcopy_acl): Likewise.
11382
11383 2011-09-05  Bruno Haible  <bruno@clisp.org>
11384
11385         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11386         binaries built on the original Solaris 10.
11387         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11388         trivial.
11389
11390 2011-09-05  Bruno Haible  <bruno@clisp.org>
11391
11392         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11393         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11394         10.
11395         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11396         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11397         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11398         instead of acl_get, facl_get, acl_set, facl_set.
11399
11400 2011-09-05  Bruno Haible  <bruno@clisp.org>
11401
11402         copy-file: Try unit tests on more file systems.
11403         * tests/test-copy-file-1.sh: New file.
11404         * tests/test-copy-file-2.sh: New file.
11405         * modules/copy-file-tests (Files): Add them.
11406         (Makefile.am): Add them to TESTS.
11407
11408         acl: Try unit tests on more file systems.
11409         * tests/test-file-has-acl-1.sh: New file.
11410         * tests/test-file-has-acl-2.sh: New file.
11411         * tests/test-set-mode-acl-1.sh: New file.
11412         * tests/test-set-mode-acl-2.sh: New file.
11413         * tests/test-copy-acl-1.sh: New file.
11414         * tests/test-copy-acl-2.sh: New file.
11415         * modules/acl-tests (Files): Add them.
11416         (Makefile.am): Add them to TESTS.
11417
11418 2011-09-04  Bruno Haible  <bruno@clisp.org>
11419
11420         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11421         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11422         10.
11423         (OLD_ALLOW, OLD_DENY): New macros.
11424         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11425         ACE_ACCESS_ALLOWED_ACE_TYPE.
11426         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11427         ACE_ACCESS_DENIED_ACE_TYPE.
11428         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11429         (NEW_ACE_EXECUTE): Fix value.
11430         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11431         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11432         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11433         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11434         NEW_ACE_SYNCHRONIZE): New macros.
11435         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11436         instead of acl_fromtext, acl_set, facl_set.
11437         Fixes a coreutils/tests/cp/perm failure.
11438
11439 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11440
11441         openat: test for fstatat (..., 0) bug
11442         Further testing with tar suggests that fstatat (..., 0)
11443         does not work in general, on AIX 7.1; see
11444         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11445         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11446         replacement fstatat (which is what older AIX releases were using
11447         anyway).
11448         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11449         use is now changed to orig_fstatat.  This was probably the right
11450         thing to do anyway.
11451         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11452         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11453         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11454         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11455         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11456         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11457         if the bug is found.
11458
11459         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11460         This tests for another fstatat bug on AIX 7.1:
11461         fstatat (AT_FDCWD, ..., 0) does not work.  See
11462         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11463         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11464         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11465         (rpl_fstatat): Adjust so that it works around either (or both)
11466         bugs if present.
11467         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11468
11469 2011-09-03  Karl Berry  <karl@gnu.org>
11470
11471         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11472         in index entries.
11473
11474 2011-09-02  Bruno Haible  <bruno@clisp.org>
11475
11476         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11477         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11478         values of AR, ARFLAGS, RANLIB.
11479         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11480
11481 2011-09-02  Bruno Haible  <bruno@clisp.org>
11482
11483         Find 'ar' program that fits with --host argument.
11484         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11485
11486 2011-09-02  Bruno Haible  <bruno@clisp.org>
11487
11488         tests: init.sh: Support any non-GNU diff.
11489         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11490         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11491         Solaris 8.
11492
11493 2011-09-02  Bruno Haible  <bruno@clisp.org>
11494
11495         tests: init.sh: work also with any non-GNU diff that supports -u
11496         * tests/init.sh: Relax check for diff -u support.
11497         Rather than checking for GNU diff via --version, simply check
11498         for support for -u itself.  Useful at least on OpenBSD 4.9,
11499         AIX 7.1, IRIX 6.5, and Solaris 10.
11500
11501 2011-09-01  Bruno Haible  <bruno@clisp.org>
11502
11503         strtoimax, strtoumax: Document problem on HP-UX 11.
11504         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11505         * doc/posix-functions/strtoumax.texi: Likewise.
11506
11507 2011-09-01  Bruno Haible  <bruno@clisp.org>
11508
11509         strtoumax: Avoid link error on OSF/1 with DTK cc.
11510         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11511         defined as a function.
11512         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11513         strtoumax is defined, not whether it is declared.
11514
11515 2011-09-01  Bruno Haible  <bruno@clisp.org>
11516
11517         strtoimax: Avoid link error on OSF/1 with DTK cc.
11518         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11519         defined as a function.
11520         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11521         strtoimax is defined, not whether it is declared.
11522
11523 2011-09-01  Bruno Haible  <bruno@clisp.org>
11524
11525         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11526         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11527         as a function.
11528         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11529         whether it is declared.
11530
11531 2011-09-01  Bruno Haible  <bruno@clisp.org>
11532
11533         imaxabs: Avoid link error on OSF/1 with DTK cc.
11534         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11535         as a function.
11536         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11537         whether it is declared.
11538
11539 2011-09-01  Bruno Haible  <bruno@clisp.org>
11540
11541         Tests for module 'strtoumax'.
11542         * modules/strtoumax-tests: New file.
11543         * tests/test-strtoumax.c: New file.
11544
11545         Tests for module 'strtoimax'.
11546         * modules/strtoimax-tests: New file.
11547         * tests/test-strtoimax.c: New file.
11548
11549         Tests for module 'imaxdiv'.
11550         * modules/imaxdiv-tests: New file.
11551         * tests/test-imaxdiv.c: New file.
11552
11553         Tests for module 'imaxabs'.
11554         * modules/imaxabs-tests: New file.
11555         * tests/test-imaxabs.c: New file.
11556
11557 2011-09-01  Bruno Haible  <bruno@clisp.org>
11558
11559         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11560         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11561         pthread_create.
11562
11563 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11564
11565         openat: work around AIX 7.1 fstatat issue
11566         This should fix the problem that was not properly fixed
11567         in the previous change, dated 2011-08-30.
11568         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11569         __need_system_stat_h defined.
11570         (orig_fstatat) [HAVE_FSTATAT]: New function.
11571         (rpl_fstatat): Go back to the old way of doing things,
11572         except call orig_fstatat instead of fstatat.
11573         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11574         Remove unnecessary check whether fstatat fills in st_size etc.
11575
11576 2011-09-01  Bruno Haible  <bruno@clisp.org>
11577
11578         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11579         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11580         just include the system's header.
11581
11582 2011-08-31  Jim Meyering  <meyering@redhat.com>
11583
11584         tests: avoid spurious assertion failure in test-float.c on ppc64
11585         * tests/test-float.c (test_long_double): Comment out an assertion,
11586         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11587         with gcc-4.4.4.
11588
11589         maint: indent with spaces, not TABs
11590         I need to get in the habit of running gnulib's "make check".
11591         Both of these would have been caught.
11592         * m4/largefile.m4: Indent with spaces, not TABs.
11593         * lib/parse-datetime.y (iso_8601_time): Likewise.
11594         Spotted by Pádraig Brady.
11595
11596         test-parse-datetime.c: accommodate a relatively strict gcc warning
11597         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11598         to avoid a warning from gcc's -Werror=missing-declarations.
11599         Insert a few spaces-before-funcall-parenthesis.
11600
11601 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11602
11603         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11604         The parser now accepts ISO 8601 date-time strings with "T" as the
11605         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11606         with a space between the date and time strings.  Now it also parses
11607         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11608         variants like "2004-02-29T16:21:42.333-07:00"
11609         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11610         of day representation using the 'T' separator character.
11611         * doc/parse-datetime.texi (General date syntax): replace use of
11612         deprecated --iso-8601 option with --rfc-3339 in example of date
11613         command output formats that can be parsed.
11614         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11615         lib/parse-datetime.y.
11616         (gmt_offset): New function.
11617         (main): Add additional test cases to validate ISO8601 extended
11618         date and time of day parsing.
11619
11620 2011-08-31  Bruno Haible  <bruno@clisp.org>
11621
11622         freopen: Documentation.
11623         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11624         name.
11625         Reported by Claudio Bley <claudio.bley@gmail.com>.
11626
11627 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11628
11629         freopen: Don't crash if the filename argument is NULL.
11630         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11631         NULL.
11632
11633 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11634
11635         openat: work around AIX 7.1 fstatat bug
11636         Problem reported by Kevin Brott for GNU tar, in the thread containing
11637         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11638         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11639         FSTATAT_ST_SIZE_ETC_BROKEN.
11640         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11641         rpl_fstatat.
11642         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11643         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11644         AC_CHECK_FUNCS_ONCE for fstatat.
11645         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11646         fchmodat, mkdirat, openat and unlinkat.
11647
11648 2011-08-30  Bruno Haible  <bruno@clisp.org>
11649
11650         Avoid endless recursions if config.h includes some header files.
11651         * lib/fopen.c (__need_FILE): Define already before including config.h.
11652         * lib/freopen.c (__need_FILE): Likewise.
11653         * lib/open.c (__need_system_fcntl_h): Likewise.
11654         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11655         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11656         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11657
11658 2011-08-25  Karl Berry  <karl@gnu.org>
11659
11660         * config/srclist.txt (ylwrap): new try.
11661         * build-aux/ylwrap: new file.
11662
11663 2011-08-23  Bruno Haible  <bruno@clisp.org>
11664
11665         tmpdir: Use a good default directory on native Windows.
11666         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11667         (P_tmpdir): Default to _P_tmpdir on native Windows.
11668         (path_search): On native Windows, try the value returned by GetTempPath
11669         before trying P_tmpdir.
11670         * modules/tmpdir (Depends-on): Add pathmax.
11671         Suggested by John Darrington <john@darrington.wattle.id.au>.
11672
11673 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11674
11675         doc: fix typo in README-release
11676         * top/README-release: Capitalize first word of a sentence.
11677
11678 2011-08-19  Jim Meyering  <meyering@redhat.com>
11679
11680         fts: do not exhaust memory when processing million-entry directories
11681         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11682         directory would require about 256*N bytes of memory.  Thus, it was
11683         easy to construct a directory too large to be processed by any of
11684         those tools.  With this change, fts' maximum memory utilization is
11685         now limited to around 30MB.
11686         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11687         (fts_read): When we've processed the final entry (i.e., when
11688         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11689         using the parent entry to read any remaining entries.  Dispatch
11690         depending on what fts_build returns:
11691         - NULL+stop, aka failure: stop
11692         - NULL otherwise: move up in the dir hierarchy
11693         - non-NULL: handle this new entry
11694         (fts_build): Declare and use new local, continue_readdir.
11695         Prepare to be called from fts_read, when the entries
11696         from a partially-read directory have just been exhausted.
11697         In that case, we'll skip the opendir and instead use the parent's
11698         fts_dirp and derive dir_fd from that.
11699         Finally, in the readdir loop, if we read max_entries entries,
11700         exit the loop ensuring *not* to call closedir.  This is required
11701         so that fts_dirp can be reused on a subsequent call.
11702         Prompted by Ben England's report of memory exhaustion in find
11703         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11704
11705         maint: fts: move decl of `dp' down into while loop; split a long line
11706         * lib/fts.c (fts_build): No semantic change.
11707
11708         fts: add/use new struct member, fts_dirp
11709         We are about to use this to manage any directory with
11710         too many entries to read all of them into memory at once.
11711         To do that, we'll need to save the DIR* pointer in each
11712         affected FTSENT struct.
11713         * lib/fts_.h: Include <dirent.h>.
11714         (struct FTSENT) [fts_dirp]: New member.
11715         * lib/fts.c (closedir_and_clear): Define.
11716         Use it in place of closedir so that we are sure to
11717         clear the new fts_dirp member when done with it.
11718         (fts_alloc): Initialize the new member.
11719         (fts_lfree): Free, if needed.
11720
11721         maint: fts: give __opendir2 a new parameter and rename
11722         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11723         than surreptitiously using sole caller's "dir_fd".
11724         (fts_opendir): Rename from __opendir2.
11725
11726         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11727         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11728
11729         maint: fts.c: correct off-by-one indentation
11730         * lib/fts.c (fts_build): Correct indentation, change style
11731         of a couple of block comments, and bracing style.
11732
11733         maint: fts.c: move __opendir2 #define "up" out of function body
11734         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11735
11736         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11737         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11738         out for a long time and besides was useful only on BSD systems.
11739
11740 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11741
11742         regex: port to Stratus OpenVOS
11743         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11744         define to empty, rather than attempting nonportable optimizations.
11745         Problem reported by Paul Green in:
11746         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11747         and fix suggested by Eric Blake in:
11748         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11749
11750 2011-08-17  Eric Blake  <eblake@redhat.com>
11751
11752         getcwd: fix test failures on mingw
11753         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11754         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11755         test if long directory cannot be created, and allow mingw errno.
11756
11757         getcwd-lgpl: fix m4 to match relaxed test for BSD
11758         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11759         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11760         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11761         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11762         signature problem.
11763
11764         getcwd: fix compilation on mingw64
11765         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11766         getcwd.
11767         Reported by Marc-André Lureau.
11768
11769         pipe2: silence compiler warning
11770         * lib/pipe2.c (pipe2): Hide label if it is not used.
11771
11772 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11773
11774         relocatable-prog: fix link error
11775         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11776         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11777         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11778         into modules/relocatable-lib without noticing that
11779         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11780         also needs to build relocatable.c.
11781
11782 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11783
11784         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11785         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11786         shell code: it contained a 'break' that was not in a loop.
11787         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11788         via a shell-language loop; this may have been true in old Autoconf
11789         versions, but it's not true in Autoconf 2.68.  I found this bug
11790         when testing coreutils git on Solaris 8, whose shell complains
11791         about the syntax error.
11792
11793 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11794
11795         * lib/base64.c: Fix comment to reference RFC 4648.
11796         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11797         <gvtulder@gmail.com>.
11798
11799 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11800
11801         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11802
11803         po/Makefile.in.in: fix make -q problem
11804         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11805         rule, since there's no file named 'check-macro-version' and its
11806         use as a file breaks make -q.
11807         (all): Don't depend on check-macro-version.
11808         (CHECK_MACRO_VERSION): New macro.
11809         (stamp-po): Use it.
11810
11811         configmake: fix make -q problem
11812         * modules/configmake (configmake.h): Update configmake.h's time stamp
11813         even if the file does not change.  Otherwise, 'make -q' fails.
11814         Problem reported by Simon Josefsson in
11815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11816
11817 2011-08-11  Jim Meyering  <meyering@redhat.com>
11818
11819         git-version-gen: correct the advice in a comment
11820         * build-aux/git-version-gen: Correct comment.
11821         Don't recommend to list .tarball-version in .gitignore.
11822
11823 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11824
11825         base64: fix off-by-one buffer size bug
11826         Problem and (trivial) fix reported by Gijs van Tulder in
11827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11828         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11829         * tests/test-base64.c (main): Catch the bug.
11830
11831 2011-08-10  Eric Blake  <eblake@redhat.com>
11832
11833         closein: correct comments
11834         * lib/closein.c (close_stdin): Improve comments.
11835
11836 2011-08-09  Bruno Haible  <bruno@clisp.org>
11837
11838         More tests for 'fseeko'.
11839         * tests/test-fseeko3.c: New file, from Eric Blake.
11840         * tests/test-fseeko3.sh: New file.
11841         * modules/fseeko-tests (Files): Add them.
11842         (TESTS): Add test-fseeko3.sh.
11843         (check_PROGRAMS): Add test-fseeko3.
11844
11845 2011-08-09  Eric Blake  <eblake@redhat.com>
11846
11847         fseeko: remove unneeded hack
11848         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11849
11850         fseeko: fix bug on glibc
11851         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11852         Reported by John W. Eaton.
11853
11854 2011-08-08  Bruno Haible  <bruno@clisp.org>
11855
11856         unictype/base: Fix interoperability with preinstalled libunistring.
11857         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11858         Reported by Simon Josefsson.
11859
11860 2011-08-08  Bruno Haible  <bruno@clisp.org>
11861
11862         iswblank: Detect declaration correctly.
11863         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11864         AC_CHECK_DECLS invocation.
11865
11866 2011-08-08  Bruno Haible  <bruno@clisp.org>
11867
11868         tcgetsid: Detect declaration correctly.
11869         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11870         AC_CHECK_DECLS invocation.
11871         Reported by Simon Josefsson.
11872
11873 2011-08-08  Eric Blake  <eblake@redhat.com>
11874
11875         largefile: fix typo that regressed large file support
11876         * modules/largefile (configure.ac-early): Fix section name.
11877
11878 2011-08-06  Karl Berry  <karl@gnu.org>
11879
11880         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11881         a separate module.
11882
11883 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11884
11885         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11886         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11887         get prototype for free.
11888
11889 2011-08-04  Bruno Haible  <bruno@clisp.org>
11890
11891         Tests for module 'pathmax'.
11892         * modules/pathmax-tests: New file.
11893         * tests/test-pathmax.c: New file.
11894
11895         canonicalize-lgpl: Support larger filenames on the Hurd.
11896         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11897         Reported by Paul Eggert.
11898
11899         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11900         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11901         * lib/chdir-long.h: Include pathmax.h.
11902         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11903         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11904         (PATH_MAX): Remove code that is done by pathmax.h.
11905         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11906         * lib/tmpfile.c: Add a comment.
11907         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11908         * modules/chdir-long (Depends-on): Add pathmax.
11909         * modules/getcwd (Depends-on): Add pathmax.
11910         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11911         is not defined.
11912         * doc/posix-headers/limits.texi: Mention the pathmax module.
11913         * NEWS: Mention the change.
11914
11915 2011-08-02  Bruno Haible  <bruno@clisp.org>
11916
11917         pthread_sigmask: Actually use results of gl_THREADLIB.
11918         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11919         gl_THREADLIB, not gl_[]THREADLIB.
11920         Reported by Eric Blake.
11921
11922 2011-08-02  Jim Meyering  <meyering@redhat.com>
11923
11924         maint.mk: relax the default _gl_TS_function_match regexp
11925         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11926         space between function name and "(" in an "extern" declaration.
11927         That would fail to match a decl with no space there: extern void foo();
11928
11929 2011-07-31  Iain Nicol  <iain@thenicols.net>
11930
11931         git-version-gen: document that EXTRA_DIST must include .version
11932         * build-aux/git-version-gen: In the how-to-use comment, document
11933         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11934         will fail when run from an unpacked distribution tarball.
11935
11936 2011-08-01  Bruno Haible  <bruno@clisp.org>
11937
11938         wctype-h: Fix last change.
11939         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11940         REPLACE_TOWLOWER to 0.
11941         Reported by Sam Steingold <sds@gnu.org>.
11942
11943 2011-07-31  Bruno Haible  <bruno@clisp.org>
11944
11945         frexpl: Update autoconf test.
11946         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11947         according to changes of 2011-06-20.
11948
11949 2011-07-31  Bruno Haible  <bruno@clisp.org>
11950
11951         sys_utsname: Add support for Minix.
11952         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11953         <sys/utsname.h>.
11954         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11955         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11956
11957 2011-07-31  Bruno Haible  <bruno@clisp.org>
11958
11959         strings: Add support for Minix.
11960         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11961         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11962         * doc/posix-headers/strings.texi: Document the Minix problem.
11963
11964 2011-07-31  Bruno Haible  <bruno@clisp.org>
11965
11966         wctype-h: Add support for Minix.
11967         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11968         REPLACE_TOWLOWER.
11969         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11970         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11971         REPLACE_ISWCNTRL.
11972
11973 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11974
11975         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11976         This is a performance improvement for 64-bit hosts: it causes the
11977         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11978
11979 2011-07-31  Bruno Haible  <bruno@clisp.org>
11980
11981         stdioext: Add support for Minix.
11982         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11983         * lib/fpurge.c (fpurge): Likewise.
11984         * lib/freadahead.c (freadahead): Likewise.
11985         * lib/freadable.c (freadable): Likewise.
11986         * lib/freading.c (freading): Likewise.
11987         * lib/freadptr.c (freadptr): Likewise.
11988         * lib/freadseek.c (freadptrinc): Likewise.
11989         * lib/fseeko.c (rpl_fseeko): Likewise.
11990         * lib/fseterr.c (fseterr): Likewise.
11991         * lib/fwritable.c (fwritable): Likewise.
11992         * lib/fwriting.c (fwriting): Likewise.
11993         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11994         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11995
11996 2011-07-31  Bruno Haible  <bruno@clisp.org>
11997
11998         errno: Port to Minix.
11999         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
12000         ECONNABORTED are defined.
12001         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
12002         GNULIB_defined_ECONNABORTED): New macros.
12003         * lib/strerror-override.h (strerror_override): Test also
12004         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
12005         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
12006         ECONNABORTED.
12007         * doc/posix-headers/errno.texi: Mention the Minix problem.
12008
12009 2011-07-31  Bruno Haible  <bruno@clisp.org>
12010
12011         Work around declaration collisions on Minix.
12012         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12013         defined, set REPLACE_MBSINIT.
12014         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12015         defined, set REPLACE_MBRTOWC.
12016         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12017         set REPLACE_MBRLEN.
12018         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12019         defined, set REPLACE_MBSRTOWCS.
12020         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12021         defined, set REPLACE_WCRTOMB.
12022         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12023         defined, set REPLACE_WCSRTOMBS.
12024
12025 2011-07-31  Bruno Haible  <bruno@clisp.org>
12026
12027         Add support for Minix with ACK compiler.
12028         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12029         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12030         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12031
12032 2011-07-31  Bruno Haible  <bruno@clisp.org>
12033
12034         Documentation about Minix.
12035         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12036         * doc/glibc-headers/*.texi: Likewise.
12037         * doc/posix-functions/*.texi: Likewise.
12038         * doc/glibc-functions/*.texi: Likewise.
12039
12040 2011-07-31  Bruno Haible  <bruno@clisp.org>
12041
12042         snippet/warn-on-use: Fix indentation.
12043         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12044
12045 2011-07-25  Jim Meyering  <meyering@redhat.com>
12046
12047         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12048         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12049         commands.
12050
12051 2011-07-27  Jim Meyering  <meyering@redhat.com>
12052
12053         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12054         * top/maint.mk (gl_extract_significant_defines_): Now that
12055         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12056         gnulib/lib/signal.in.h, and now that we recommend to
12057         define-if-undefined those two symbols in application code,
12058         we must filter them out of the "significant" list.
12059         This avoids a "make syntax-check" failure in coreutils.
12060
12061 2011-07-26  Eric Blake  <eblake@redhat.com>
12062
12063         warnings: add comments about previous patch
12064         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12065         * m4/include_next.m4: Likewise.
12066         * m4/warn-on-use.m4: Likewise.
12067         * m4/warnings.m4: Likewise, and simplify use.
12068         Suggested by Stefano Lattarini.
12069
12070         include-next, warnings: support older autoconf
12071         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12072         AS_VAR_PUSHDEF in a way that works with older autoconf.
12073         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12074         Reported by Daniel P. Berrange.
12075
12076 2011-07-25  Bruno Haible  <bruno@clisp.org>
12077
12078         fseek, ftell: Fix doc.
12079         * doc/posix-functions/fseek.texi: Reword statement about
12080         AC_SYS_LARGEFILE.
12081         * doc/posix-functions/ftell.texi: Likewise.
12082
12083 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12084             Bruno Haible  <bruno@clisp.org>
12085
12086         Add dependencies to the 'largefile' module.
12087         * modules/fopen (Depends-on): Add 'largefile'.
12088         * modules/freopen (Depends-on): Likewise.
12089         * modules/fseeko (Depends-on): Likewise.
12090         * modules/ftello (Depends-on): Likewise.
12091         * modules/glob (Depends-on): Likewise.
12092         * modules/lseek (Depends-on): Likewise.
12093         * modules/lstat (Depends-on): Likewise.
12094         * modules/mkostemp (Depends-on): Likewise.
12095         * modules/mkostemps (Depends-on): Likewise.
12096         * modules/mkstemp (Depends-on): Likewise.
12097         * modules/mkstemps (Depends-on): Likewise.
12098         * modules/open (Depends-on): Likewise.
12099         * modules/openat (Depends-on): Likewise.
12100         * modules/pread (Depends-on): Likewise.
12101         * modules/pwrite (Depends-on): Likewise.
12102         * modules/scandir (Depends-on): Likewise.
12103         * modules/stat (Depends-on): Likewise.
12104         * modules/tmpfile (Depends-on): Likewise.
12105         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12106         since the containing module now depends on the largefile module.
12107         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12108         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12109         off_t is fixed by gnulib.
12110         * doc/posix-functions/freopen.texi: Likewise.
12111         * doc/posix-functions/fseeko.texi: Likewise.
12112         * doc/posix-functions/fstatat.texi: Likewise.
12113         * doc/posix-functions/ftello.texi: Likewise.
12114         * doc/posix-functions/glob.texi: Likewise.
12115         * doc/posix-functions/lseek.texi: Likewise.
12116         * doc/posix-functions/lstat.texi: Likewise.
12117         * doc/posix-functions/mkstemp.texi: Likewise.
12118         * doc/posix-functions/open.texi: Likewise.
12119         * doc/posix-functions/openat.texi: Likewise.
12120         * doc/posix-functions/pread.texi: Likewise.
12121         * doc/posix-functions/pwrite.texi: Likewise.
12122         * doc/posix-functions/scandir.texi: Likewise.
12123         * doc/posix-functions/stat.texi: Likewise.
12124         * doc/posix-functions/tmpfile.texi: Likewise.
12125         * doc/glibc-functions/mkostemp.texi: Likewise.
12126         * doc/glibc-functions/mkostemps.texi: Likewise.
12127         * doc/glibc-functions/mkstemps.texi: Likewise.
12128
12129 2011-07-25  Bruno Haible  <bruno@clisp.org>
12130
12131         fcntl: Move AC_LIBOBJ invocation to module description.
12132         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12133         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12134
12135         fcntl: Remove call-in from fchdir.m4.
12136         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12137         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12138
12139         dup3: Remove potential call-in from fchdir.m4.
12140         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12142
12143         dup2: Move AC_LIBOBJ invocation to module description.
12144         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12145         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12146         Don't invoke AC_LIBOBJ.
12147         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12148
12149         dup2: Remove call-in from fchdir.m4.
12150         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12151         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12152
12153         fclose: Move AC_LIBOBJ invocation to module description.
12154         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12155         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12156         to 1.
12157         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12158
12159         fclose: Remove call-in from close.m4.
12160         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12161         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12162
12163         close: Move AC_LIBOBJ invocation to module description.
12164         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12165         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12166         1.
12167         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12168
12169         close: Remove call-in from fchdir.m4.
12170         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12172
12173         open: Move AC_LIBOBJ invocation to module description.
12174         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12175         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12176         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12177
12178         open: Remove call-in from fchdir.m4.
12179         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12180         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12181
12182         fchdir: Start to remove gl_REPLACE_* idiom.
12183         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12184         (gl_FUNC_FCHDIR): Invoke it.
12185
12186 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12187
12188         * lib/ftell.c (ftell): Comment out cast.
12189
12190         close: use gl_REPLACE_FCLOSE only if defined
12191         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12192         is defined.  The close module doesn't depend on the fclose module
12193         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12195         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12196
12197 2011-07-24  Jim Meyering  <meyering@redhat.com>
12198
12199         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12200         * tests/test-select.h (test_function): Declare as "static".
12201
12202 2011-07-24  Bruno Haible  <bruno@clisp.org>
12203
12204         doc: Mention the effects of AC_SYS_LARGEFILE.
12205         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12206         on this function.
12207         * doc/posix-functions/aio_error.texi: Likewise.
12208         * doc/posix-functions/aio_fsync.texi: Likewise.
12209         * doc/posix-functions/aio_read.texi: Likewise.
12210         * doc/posix-functions/aio_return.texi: Likewise.
12211         * doc/posix-functions/aio_suspend.texi: Likewise.
12212         * doc/posix-functions/aio_write.texi: Likewise.
12213         * doc/posix-functions/fgetpos.texi: Likewise.
12214         * doc/posix-functions/fopen.texi: Likewise.
12215         * doc/posix-functions/freopen.texi: Likewise.
12216         * doc/posix-functions/fsetpos.texi: Likewise.
12217         * doc/posix-functions/fstatvfs.texi: Likewise.
12218         * doc/posix-functions/ftruncate.texi: Likewise.
12219         * doc/posix-functions/ftw.texi: Likewise.
12220         * doc/posix-functions/getrlimit.texi: Likewise.
12221         * doc/posix-functions/glob.texi: Likewise.
12222         * doc/posix-functions/lio_listio.texi: Likewise.
12223         * doc/posix-functions/lockf.texi: Likewise.
12224         * doc/posix-functions/mkstemp.texi: Likewise.
12225         * doc/posix-functions/mmap.texi: Likewise.
12226         * doc/posix-functions/nftw.texi: Likewise.
12227         * doc/posix-functions/openat.texi: Likewise.
12228         * doc/posix-functions/opendir.texi: Likewise.
12229         * doc/posix-functions/posix_fadvise.texi: Likewise.
12230         * doc/posix-functions/posix_fallocate.texi: Likewise.
12231         * doc/posix-functions/pread.texi: Likewise.
12232         * doc/posix-functions/pwrite.texi: Likewise.
12233         * doc/posix-functions/readdir.texi: Likewise.
12234         * doc/posix-functions/readdir_r.texi: Likewise.
12235         * doc/posix-functions/rewinddir.texi: Likewise.
12236         * doc/posix-functions/scandir.texi: Likewise.
12237         * doc/posix-functions/seekdir.texi: Likewise.
12238         * doc/posix-functions/setrlimit.texi: Likewise.
12239         * doc/posix-functions/statvfs.texi: Likewise.
12240         * doc/posix-functions/telldir.texi: Likewise.
12241         * doc/posix-functions/tmpfile.texi: Likewise.
12242         * doc/posix-functions/truncate.texi: Likewise.
12243         * doc/glibc-functions/fallocate.texi: Likewise.
12244         * doc/glibc-functions/fstatfs.texi: Likewise.
12245         * doc/glibc-functions/fts_children.texi: Likewise.
12246         * doc/glibc-functions/fts_read.texi: Likewise.
12247         * doc/glibc-functions/getdirentries.texi: Likewise.
12248         * doc/glibc-functions/mkostemp.texi: Likewise.
12249         * doc/glibc-functions/mkostemps.texi: Likewise.
12250         * doc/glibc-functions/mkstemps.texi: Likewise.
12251         * doc/glibc-functions/preadv.texi: Likewise.
12252         * doc/glibc-functions/pwritev.texi: Likewise.
12253         * doc/glibc-functions/sendfile.texi: Likewise.
12254         * doc/glibc-functions/statfs.texi: Likewise.
12255
12256 2011-07-24  Bruno Haible  <bruno@clisp.org>
12257
12258         doc: Fix typo.
12259         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12260
12261 2011-07-24  Bruno Haible  <bruno@clisp.org>
12262
12263         doc: Mention fsusage.
12264         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12265
12266 2011-07-24  Bruno Haible  <bruno@clisp.org>
12267
12268         doc: Mention new glibc headers and functions.
12269         * doc/glibc-headers/gshadow.texi: New file.
12270         * doc/glibc-functions/endsgent.texi: New file.
12271         * doc/glibc-functions/fgetsgent.texi: New file.
12272         * doc/glibc-functions/fgetsgent_r.texi: New file.
12273         * doc/glibc-functions/getsgent.texi: New file.
12274         * doc/glibc-functions/getsgent_r.texi: New file.
12275         * doc/glibc-functions/getsgnam.texi: New file.
12276         * doc/glibc-functions/getsgnam_r.texi: New file.
12277         * doc/glibc-functions/putsgent.texi: New file.
12278         * doc/glibc-functions/setsgent.texi: New file.
12279         * doc/glibc-functions/sgetsgent.texi: New file.
12280         * doc/glibc-functions/sgetsgent_r.texi: New file.
12281         * doc/glibc-functions/malloc_info.texi: New file.
12282         * doc/glibc-functions/preadv.texi: New file.
12283         * doc/glibc-functions/pwritev.texi: New file.
12284         * doc/glibc-functions/register_printf_modifier.texi: New file.
12285         * doc/glibc-functions/register_printf_specifier.texi: New file.
12286         * doc/glibc-functions/register_printf_type.texi: New file.
12287         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12288         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12289         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12290         * doc/glibc-functions/pthread_getname_np.texi: New file.
12291         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12292         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12293         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12294         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12295         * doc/glibc-functions/pthread_setname_np.texi: New file.
12296         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12297         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12298         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12299         * doc/glibc-functions/qsort_r.texi: New file.
12300         * doc/glibc-functions/quick_exit.texi: New file.
12301         * doc/glibc-functions/syncfs.texi: New file.
12302         * doc/gnulib.texi: Include them.
12303         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12304         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12305         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12306         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12307         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12308         * doc/glibc-functions/execvpe.texi: Likewise.
12309
12310 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12311
12312         ftell: don't include <unistd.h>
12313         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12314         guaranteed to define off_t, and the ftell module depends on the
12315         stdio module.
12316
12317         ftell: do not assume wraparound signed arithmetic
12318         * lib/ftell.c: Include <limits.h>.
12319         (ftell): Don't assume wraparound signed arithmetic.
12320
12321 2011-07-24  Bruno Haible  <bruno@clisp.org>
12322
12323         close: No longer depend on module 'fclose'.
12324         * modules/close (Depends-on): Remove fclose.
12325         * NEWS: Mention the change.
12326         Suggested by Sam Steingold <sds@gnu.org>.
12327
12328 2011-07-24  Bruno Haible  <bruno@clisp.org>
12329
12330         fsusage: Enable large volume support on AIX >= 5.2.
12331         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12332         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12333         instead of STAT_STATVFS.
12334         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12335
12336         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12337         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12338         f_blocks field only on MacOS X.
12339
12340         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12341         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12342         * modules/fsusage (Depends-on): Add largefile.
12343
12344 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12345
12346         * README: Modernize discussion of signed integers.
12347         Assuming overflow wraparound is no longer safe.
12348         Mention ones' complement and signed magnitude.
12349
12350 2011-07-22  Bruno Haible  <bruno@clisp.org>
12351
12352         select tests, pselect tests: Refactor.
12353         * tests/test-select.h: New file, extracted from tests/test-select.c.
12354         (select_fn): New type.
12355         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12356         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12357         test_pipe): Add my_select argument.
12358         (test_function): Renamed from main. Add my_select argument.
12359         * tests/test-select.c: Move most code to tests/test-select.h. Include
12360         test-select.h.
12361         * modules/select-tests (Files): Add tests/test-select.h.
12362         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12363         (my_select, main): New functions.
12364         * modules/pselect-tests (Files): Add tests/test-select.h,
12365         tests/macros.h, tests/signature.h.
12366         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12367         (configure.ac): Check for <sys/wait.h>.
12368
12369 2011-07-22  Bruno Haible  <bruno@clisp.org>
12370
12371         sys_select tests: Check the signature of FD_*.
12372         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12373         signature tests from here...
12374         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12375         here.
12376         * modules/sys_select-tests (Files): Add tests/signature.h.
12377
12378 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12379
12380         largefile: new module, replacing large-inode
12381         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12382         * MODULES.html.sh: Add largefile, remove large-inode.
12383         * modules/largefile, m4/largefile.m4: New files.
12384         * modules/large-inode, m4/large-inode.m4: Remove.
12385
12386         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12387         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12388         implementations that use only 32 bits to count blocks.
12389         On typical hosts with 1024-byte blocks, this fails with file
12390         systems as small as 4 TiB.  Problem reported by Herb Wartens
12391         <http://debbugs.gnu.org/9140> and this should also fix a similar
12392         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12393
12394         large-inode: New module
12395         * MODULES.html.sh: Add it.
12396         * modules/large-inode, m4/large-inode.m4: New files.
12397
12398         extensions: Enable extensions on MacOS X 10.5 and later.
12399         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12400
12401 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12402
12403         file-has-acl: use acl_extended_file_nofollow if available
12404         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12405         (acl_extended_file): New macro.
12406         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12407         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12408
12409 2011-07-21  Bruno Haible  <bruno@clisp.org>
12410
12411         Declare system functions in a way that works with C++.
12412         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12413         declare fdopendir as extern "C".
12414         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12415         declare frexpl as extern "C".
12416         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12417         declare gai_strerror as extern "C".
12418         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12419         programs, declare gai_strerror as extern "C".
12420         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12421         declare getlogin_r as extern "C".
12422         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12423         as extern "C".
12424         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12425         declare ldexpl as extern "C".
12426         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12427         as extern "C".
12428         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12429         program, declare getmntinfo as extern "C".
12430         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12431         stpncpy as extern "C".
12432         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12433         program, declare __xpg_strerror_r as extern "C".
12434         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12435         strndup as extern "C".
12436         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12437         declare memset and bzero as extern "C".
12438         Reported by Sam Steingold <sds@gnu.org>.
12439
12440 2011-07-12  Jim Meyering  <meyering@redhat.com>
12441
12442         maint.mk: prohibit inclusion of "verify.h" without use
12443         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12444
12445 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12446
12447         timer-time: A new module to check for timer_settime()
12448         * m4/timer_time.m4: Check for the posix function.
12449         * modules/timer-time: Add the new module.
12450         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12451         Mention it.
12452
12453 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12454             Bruno Haible  <bruno@clisp.org>
12455
12456         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12457         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12458         not defined, assume POSIX threads and look for pthread_sigmask in
12459         $LIBS, without changing $CPPFLAGS.
12460
12461 2011-07-19  Bruno Haible  <bruno@clisp.org>
12462
12463         strstr: Update cross-compilation guess.
12464         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12465         CPUs, guess no, in view of glibc
12466         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12467         Suggested by Eric Blake. Reported by Reuben Thomas.
12468
12469 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12470
12471         getopt-gnu: suppress core dumps from detection code
12472         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12473         to suppress core dumps that may well occur on glibc systems.
12474         * modules/getopt-gnu: Depend on nocrash.
12475
12476 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12477
12478         pthread_sigmask: ensure usleep is declared
12479         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12480         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12481
12482 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12483
12484         doc: Document NonStop portability issues.
12485         * doc/posix-functions/sigaction.texi (sigaction):
12486         * doc/posix-headers/signal.texi (signal.h):
12487         Document NonStop.  See Joachim Schmitz in
12488         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12489
12490 2011-07-15  Bruno Haible  <bruno@clisp.org>
12491
12492         ffsl, ffsll: Avoid unportable behaviour.
12493         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12494
12495 2011-07-15  Bruno Haible  <bruno@clisp.org>
12496
12497         ffs: More tests.
12498         * tests/test-ffs.c (NBITS): New macro.
12499         (main): Add more tests.
12500         * tests/test-ffsl.c (NBITS): New macro.
12501         (main): Add more tests.
12502         * tests/test-ffsll.c (NBITS): New macro.
12503         (main): Add more tests.
12504
12505 2011-07-15  Eric Blake  <eblake@redhat.com>
12506
12507         ffsl, ffsll: new modules
12508         * modules/ffsl: New file.
12509         * modules/ffsll: Likewise.
12510         * m4/ffsl.m4: Likewise.
12511         * m4/ffsll.m4: Likewise.
12512         * lib/ffsl.c: Likewise.
12513         * lib/ffsl.h: Likewise.
12514         * lib/ffsll.c: Likewise.
12515         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12516         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12517         * modules/string (Makefile.am): Substitute witnesses.
12518         * lib/strings.in.h (ffsl, ffsll): Declare.
12519         * modules/ffsl-tests: New test file.
12520         * modules/ffsll-tests: Likewise.
12521         * tests/test-ffsl.c: Likewise.
12522         * tests/test-ffsll.c: Likewise.
12523         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12524         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12525         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12526
12527         ffs: fix m4 prerequisite
12528         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12529
12530         ffs: avoid undefined behavior
12531         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12532         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12533         Reported by Bruno Haible.
12534
12535 2011-07-12  Bruno Haible  <bruno@clisp.org>
12536
12537         pthread_sigmask: Rely on module 'threadlib'.
12538         * modules/pthread_sigmask (Depends-on): Add threadlib.
12539         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12540         is defined.
12541
12542 2011-07-12  Bruno Haible  <bruno@clisp.org>
12543
12544         regex: Depend on module 'strcase'.
12545         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12546
12547 2011-07-12  Jim Meyering  <meyering@redhat.com>
12548
12549         warn-on-use: fix typo in file name
12550         * modules/snippet/warn-on-use (Files): Correct file name:
12551         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12552
12553 2011-07-12  Bruno Haible  <bruno@clisp.org>
12554
12555         strings: Document module.
12556         * doc/posix-headers/strings.texi: Mention module 'strings'.
12557
12558 2011-07-12  Bruno Haible  <bruno@clisp.org>
12559
12560         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12561         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12562         (Files, Makefile.am): Update.
12563         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12564         * modules/stdlib (Depends-on): Update.
12565
12566 2011-07-12  Bruno Haible  <bruno@clisp.org>
12567
12568         * NEWS: Mention the changes.
12569
12570         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12571         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12572         (Files, Makefile.am): Update.
12573         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12574         * modules/arpa_inet (Depends-on): Update.
12575         * modules/ctype (Depends-on): Update.
12576         * modules/dirent (Depends-on): Update.
12577         * modules/fcntl-h (Depends-on): Update.
12578         * modules/glob (Depends-on): Update.
12579         * modules/iconv-h (Depends-on): Update.
12580         * modules/inttypes-incomplete (Depends-on): Update.
12581         * modules/langinfo (Depends-on): Update.
12582         * modules/locale (Depends-on): Update.
12583         * modules/math (Depends-on): Update.
12584         * modules/netdb (Depends-on): Update.
12585         * modules/poll-h (Depends-on): Update.
12586         * modules/pty (Depends-on): Update.
12587         * modules/search (Depends-on): Update.
12588         * modules/signal (Depends-on): Update.
12589         * modules/spawn (Depends-on): Update.
12590         * modules/stdio (Depends-on): Update.
12591         * modules/stdlib (Depends-on): Update.
12592         * modules/string (Depends-on): Update.
12593         * modules/strings (Depends-on): Update.
12594         * modules/sys_file (Depends-on): Update.
12595         * modules/sys_ioctl (Depends-on): Update.
12596         * modules/sys_select (Depends-on): Update.
12597         * modules/sys_socket (Depends-on): Update.
12598         * modules/sys_stat (Depends-on): Update.
12599         * modules/sys_time (Depends-on): Update.
12600         * modules/sys_times (Depends-on): Update.
12601         * modules/sys_utsname (Depends-on): Update.
12602         * modules/sys_wait (Depends-on): Update.
12603         * modules/termios (Depends-on): Update.
12604         * modules/time (Depends-on): Update.
12605         * modules/unistd (Depends-on): Update.
12606         * modules/wchar (Depends-on): Update.
12607         * modules/wctype-h (Depends-on): Update.
12608         * MODULES.html.sh (Support for building libraries and executables):
12609         Update.
12610
12611         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12612         * modules/snippet/unused-parameter: Renamed from
12613         modules/unused-parameter.
12614         (Files, Makefile.am): Update.
12615         * build-aux/snippet/unused-parameter.h: Renamed from
12616         build-aux/unused-parameter.h.
12617         * modules/selinux-h (Depends-on): Update.
12618         * modules/unistr/base (Depends-on): Update.
12619         * MODULES.html.sh (Core language properties): Update.
12620
12621         Rename module 'link-warning' to 'snippet/link-warning'.
12622         * modules/snippet/link-warning: Renamed from modules/link-warning.
12623         (Files, Makefile.am): Update.
12624         * build-aux/snippet/link-warning.h: Renamed from
12625         build-aux/link-warning.h.
12626         * MODULES.html.sh (Support for building libraries and executables):
12627         Update.
12628
12629         Rename module 'c++defs' to 'snippet/c++defs'.
12630         * modules/snippet/c++defs: Renamed from modules/c++defs.
12631         (Files, Makefile.am): Update.
12632         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12633         * modules/arpa_inet (Depends-on): Update.
12634         * modules/ctype (Depends-on): Update.
12635         * modules/dirent (Depends-on): Update.
12636         * modules/fcntl-h (Depends-on): Update.
12637         * modules/glob (Depends-on): Update.
12638         * modules/iconv-h (Depends-on): Update.
12639         * modules/langinfo (Depends-on): Update.
12640         * modules/locale (Depends-on): Update.
12641         * modules/math (Depends-on): Update.
12642         * modules/netdb (Depends-on): Update.
12643         * modules/poll-h (Depends-on): Update.
12644         * modules/pty (Depends-on): Update.
12645         * modules/search (Depends-on): Update.
12646         * modules/signal (Depends-on): Update.
12647         * modules/spawn (Depends-on): Update.
12648         * modules/stdio (Depends-on): Update.
12649         * modules/stdlib (Depends-on): Update.
12650         * modules/string (Depends-on): Update.
12651         * modules/strings (Depends-on): Update.
12652         * modules/sys_ioctl (Depends-on): Update.
12653         * modules/sys_select (Depends-on): Update.
12654         * modules/sys_socket (Depends-on): Update.
12655         * modules/sys_stat (Depends-on): Update.
12656         * modules/sys_time (Depends-on): Update.
12657         * modules/sys_wait (Depends-on): Update.
12658         * modules/termios (Depends-on): Update.
12659         * modules/time (Depends-on): Update.
12660         * modules/unistd (Depends-on): Update.
12661         * modules/wchar (Depends-on): Update.
12662         * modules/wctype-h (Depends-on): Update.
12663
12664         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12665         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12666         (Files, Makefile.am): Update.
12667         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12668         * modules/argv-iter (Depends-on): Update.
12669         * modules/arpa_inet (Depends-on): Update.
12670         * modules/dirent (Depends-on): Update.
12671         * modules/fcntl-h (Depends-on): Update.
12672         * modules/fnmatch (Depends-on): Update.
12673         * modules/getopt-posix (Depends-on): Update.
12674         * modules/glob (Depends-on): Update.
12675         * modules/iconv-h (Depends-on): Update.
12676         * modules/inttypes-incomplete (Depends-on): Update.
12677         * modules/locale (Depends-on): Update.
12678         * modules/math (Depends-on): Update.
12679         * modules/netdb (Depends-on): Update.
12680         * modules/search (Depends-on): Update.
12681         * modules/signal (Depends-on): Update.
12682         * modules/spawn (Depends-on): Update.
12683         * modules/stdio (Depends-on): Update.
12684         * modules/stdlib (Depends-on): Update.
12685         * modules/string (Depends-on): Update.
12686         * modules/strings (Depends-on): Update.
12687         * modules/sys_socket (Depends-on): Update.
12688         * modules/sys_stat (Depends-on): Update.
12689         * modules/sys_time (Depends-on): Update.
12690         * modules/sys_times (Depends-on): Update.
12691         * modules/sys_utsname (Depends-on): Update.
12692         * modules/time (Depends-on): Update.
12693         * modules/unistd (Depends-on): Update.
12694         * modules/wchar (Depends-on): Update.
12695         * MODULES.html.sh (Support for building libraries and executables):
12696         Update.
12697
12698 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12699
12700         Improvements on _Noreturn and related modules.
12701
12702         modules/_Exit-tests: test _Noreturn too
12703         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12704         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12705         (main): Use them.
12706
12707         stdnoreturn, stdnoreturn-tests: remove modules
12708         They're not needed here and a bit premature for use elsewhere.  See
12709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12710         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12711         * tests/test-stdnoreturn.c: Remove files.
12712         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12713         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12714         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12715         and using noreturn.
12716         * modules/openat, modules/sigpipe-die, modules/xalloc:
12717         * modules/xmemdup0, modules/xstrtol:
12718         Remove dependency on stdnoreturn.
12719
12720         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12721         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12722         Reparenthesize to avoid GCC warning.
12723         Support Microsoft's syntax.
12724         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12725
12726         _Noreturn-tests: remove module
12727         * modules/_Noreturn-tests: Remove.
12728         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12729         * tests/test-_Noreturn.c: Remove.
12730         * tests/test-stdnoreturn.c: Merge from the old
12731         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12732
12733 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12734
12735         _Noreturn, stdnoreturn, and related modules.
12736
12737         * top/maint.mk: Adjust to new noreturn support.
12738         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12739         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12740
12741         xalloc: use stdnoreturn.h
12742         * lib/xalloc.h: Include <stdnoreturn.h>.
12743         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12744         * modules/xalloc (Depends-on): Add stdnoreturn.
12745
12746         xstrtol: use stdnoreturn.h
12747         * lib/xstrtol.h: Include <stdnoreturn.h>.
12748         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12749         * modules/xstrtol (Depends-on): Add stdnoreturn.
12750
12751         xmemdup0: use stdnoreturn.h
12752         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12753         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12754         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12755
12756         sigpipe-die: use stdnoreturn.h
12757         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12758         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12759         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12760
12761         openat: use stdnoreturn.h
12762         * lib/openat.h: Include <stdnoreturn.h>.
12763         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12764         * modules/openat (Depends-on): Add stdnoreturn.
12765
12766         * lib/openat-die.c (openat_save_fail): Modernize comment.
12767
12768         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12769
12770         * lib/glthread/thread.h: Modernize comment.
12771
12772         obstack: use _Noreturn
12773         * lib/obstack.c (__attribute__): Remove macro.
12774         (print_and_abort): Use _Noreturn.
12775
12776         c-stack: use _Noreturn
12777         * lib/c-stack.c (die, overflow_handler, segv_handler):
12778         Use _Noreturn rather than __attribute__((noreturn)).
12779
12780         argmatch-tests, exclude_tests: use _Noreturn
12781         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12782         Remove.
12783         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12784
12785         stdlib: use _Noreturn
12786         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12787         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12788         * modules/stdlib (Depends-on): Add _Noreturn.
12789         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12790
12791         stdnoreturn-tests: new module
12792         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12793
12794         stdnoreturn: new module
12795         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12796         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12797
12798         _Noreturn-tests: new module
12799         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12800
12801         _Noreturn: new module
12802         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12803         New section, mentioning it.
12804         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12805
12806         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12807
12808 2011-07-11  Eric Blake  <eblake@redhat.com>
12809
12810         ffs: new module
12811         * modules/ffs: New file.
12812         * m4/ffs.m4: Likewise.
12813         * lib/ffs.c: Likewise.
12814         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12815         * modules/strings (Makefile.am): Substitute witness.
12816         (Depends-on): Add c++defs.
12817         * lib/strings.in.h (ffs): Declare.
12818         * modules/ffs-tests: New test file.
12819         * tests/test-ffs.c: Test new module.
12820         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12821         * doc/posix-functions/ffs.texi (ffs): Likewise.
12822
12823         regex: avoid compiler warning
12824         * lib/regex.c (includes): Include <strings.h>, for use of
12825         strcasecmp in regcomp.c.
12826         Reported by Joachim Schmitz.
12827
12828 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12829
12830         stdint: respect system's intmax_t if INTMAX_MAX
12831         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12832         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12833         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12834         long but int64_t is long long, and where we will clash with the
12835         system intmax_t if we override it.  See
12836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12837         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12838         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12839         similarly for UINTMAX_C.
12840
12841 2011-07-08  Bruno Haible  <bruno@clisp.org>
12842
12843         pthread_sigmask tests: Avoid a compiler warning.
12844         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12845         non-zero.
12846
12847         sigprocmask tests: A better way to avoid a compiler warning.
12848         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12849         (main): Complain if system() returns non-zero.
12850         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12851
12852 2011-07-08  Bruno Haible  <bruno@clisp.org>
12853
12854         pthread_sigmask: Work around IRIX bug.
12855         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12856         bug.
12857         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12858         there may be unblocked pending signals.
12859         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12860
12861 2011-07-08  Bruno Haible  <bruno@clisp.org>
12862
12863         pthread_sigmask: Work around Cygwin bug.
12864         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12865         bug.
12866         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12867         the system's pthread_sigmask function.
12868         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12869
12870 2011-07-08  Bruno Haible  <bruno@clisp.org>
12871
12872         pthread_sigmask: Work around bug in single-threaded implementation.
12873         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12874         FreeBSD, HP-UX, Solaris bug.
12875         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12876         * lib/pthread_sigmask.c: Include <stddef.h>.
12877         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12878         the system's pthread_sigmask function.
12879         * modules/pthread_sigmask (configure.ac): Invoke
12880         gl_PREREQ_PTHREAD_SIGMASK.
12881         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12882         HP-UX, Solaris.
12883
12884 2011-07-08  Eric Blake  <eblake@redhat.com>
12885
12886         test-sigprocmask: avoid compiler warning
12887         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12888         * tests/test-sigprocmask.c (main): Use it to silence warning.
12889         Reported by Jim Meyering.
12890
12891         test-snprintf: avoid compiler warning
12892         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12893         * tests/test-vsnprintf.c (main): Likewise.
12894         Reported by Jim Meyering.
12895
12896 2011-07-08  Bruno Haible  <bruno@clisp.org>
12897
12898         Tests for module 'pthread_sigmask'.
12899         * modules/pthread_sigmask-tests: New file.
12900         * tests/test-pthread_sigmask1.c: New file, based on
12901         tests/test-sigprocmask.c.
12902         * tests/test-pthread_sigmask2.c: New file.
12903
12904 2011-07-08  Jim Meyering  <meyering@redhat.com>
12905
12906         test-getopt.h: avoid warning about an unused variable
12907         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12908
12909 2011-07-07  Jim Meyering  <meyering@redhat.com>
12910
12911         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12912         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12913         now that it no longer contains leading TABs.
12914         Remove unused "url=FIXME" statement.
12915
12916 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12917
12918         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12919         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12920         When gl_THREADLIB is not in use, assume that the POSIX sematics
12921         are desired.  This is better for Emacs, which uses POSIX semantics
12922         on GNUish and/or POSIXish platforms, and does not use threads at
12923         all otherwise.
12924
12925         pthread_sigmask: fix typo when testing for libraries
12926         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12927         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12928
12929 2011-07-08  Eric Blake  <eblake@redhat.com>
12930
12931         fts: introduce FTS_NOATIME
12932         * lib/fts_.h (FTS_NOATIME): New bit flag.
12933         (FTS_OPTIONMASK): Adjust.
12934         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12935         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12936
12937 2011-07-08  Bruno Haible  <bruno@clisp.org>
12938
12939         Tests for module 'thread'.
12940         * modules/thread-tests: New file.
12941         * tests/test-thread_self.c: New file.
12942         * tests/test-thread_create.cc: New file.
12943
12944 2011-07-08  Bruno Haible  <bruno@clisp.org>
12945
12946         thread: Avoid gcc warnings when using gl_thread_self().
12947         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12948         'void *'.
12949         (gl_thread_self_pointer): Update.
12950
12951 2011-07-07  Bruno Haible  <bruno@clisp.org>
12952
12953         signal-c++-tests: Check declaration of pthread_sigmask.
12954         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12955         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12956         $(LIB_PTHREAD_SIGMASK).
12957
12958 2011-07-07  Bruno Haible  <bruno@clisp.org>
12959
12960         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12961         * lib/signal.in.h (pthread_sigmask): Override if
12962         REPLACE_PTHREAD_SIGMASK is 1.
12963         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12964         REPLACE_PTHREAD_SIGMASK.
12965         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12966         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12967         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12968         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12969         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12970
12971 2011-07-07  Bruno Haible  <bruno@clisp.org>
12972
12973         pthread_sigmask: Ensure declaration in <signal.h>.
12974         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12975         include <pthread.h>.
12976         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12977         problem.
12978
12979 2011-07-07  Bruno Haible  <bruno@clisp.org>
12980
12981         pthread_sigmask: Document the module.
12982         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12983
12984 2011-07-07  Bruno Haible  <bruno@clisp.org>
12985
12986         pthread_sigmask: Follow gnulib conventions.
12987         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12988         gl_PTHREAD_SIGMASK.
12989         * modules/pthread_sigmask (configure.ac): Update.
12990
12991 2011-07-07  Bruno Haible  <bruno@clisp.org>
12992
12993         pthread_sigmask: Make declaration C++ safe.
12994         * lib/signal.in.h: In two special conditions, just do an #include_next.
12995         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12996         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12997         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12998         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12999         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
13000         not REPLACE_PTHREAD_MASK.
13001         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
13002         not REPLACE_PTHREAD_MASK.
13003         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13004
13005 2011-07-07  Bruno Haible  <bruno@clisp.org>
13006
13007         pthread_sigmask: Fix return value.
13008         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13009         * lib/pthread_sigmask.c: New file.
13010         * modules/pthread_sigmask (Files): Add it.
13011         (configure.ac): Invoke AC_LIBOBJ.
13012
13013 2011-07-07  Eric Blake  <eblake@redhat.com>
13014
13015         getopt: more portable argv creation
13016         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13017         const, use char arrays rather than strings.
13018         Suggested by Paul Eggert.
13019
13020 2011-07-07  Bruno Haible  <bruno@clisp.org>
13021
13022         Tests for module 'sigprocmask'.
13023         * modules/sigprocmask-tests: New file.
13024         * tests/test-sigprocmask.c: New file.
13025
13026 2011-07-07  Bruno Haible  <bruno@clisp.org>
13027
13028         float tests: Tweak.
13029         * tests/test-float.c (main): Tweak skip message.
13030
13031 2011-07-07  Eric Blake  <eblake@redhat.com>
13032
13033         getopt: avoid compiler warning during configure
13034         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13035         assigning string literals to non-const pointer.
13036
13037         getopt-gnu: avoid crash in glibc getopt
13038         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13039         * tests/test-getopt.h (test_getopt): Enhance test.
13040         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13041         * doc/posix-functions/getopt.texi (getopt): Document it.
13042         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13043         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13044         Likewise.
13045
13046 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13047
13048         getopt: handle W; without long options in getopt [BZ #12922]
13049         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13050         but no long options are defined, just return 'W'.
13051
13052 2011-07-07  Bruno Haible  <bruno@clisp.org>
13053
13054         Avoid literal tabs.
13055         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13056         variable containing a tab instead of a literal tab.
13057         Reported by Jim Meyering.
13058
13059 2011-07-07  Bruno Haible  <bruno@clisp.org>
13060
13061         Comments.
13062         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13063
13064 2011-07-06  Bruno Haible  <bruno@clisp.org>
13065
13066         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13067         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13068         <winsock2.h>.
13069         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13070         lib/sys_socket.in.h.
13071         (close, gethostname): Hide declarations from <winsock2.h>.
13072         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13073         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13074         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13075         (select): Don't override if gnulib's <sys/select.h> was already
13076         included.
13077         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13078         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13079         setsockopt, shutdown, select): Tweak indentation.
13080
13081 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13082
13083         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13084         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13085         in an application that does not use the sys_select module.
13086
13087 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13088
13089         poll: do not return 0 on timeout=-1
13090         * lib/poll.c: Loop with yield if no events occured
13091
13092 2011-07-06  Eric Blake  <eblake@redhat.com>
13093
13094         pthread_sigmask: always replace when not using pthread
13095         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13096         replacement when using some threading other than pthread.  Fix
13097         logic bug.
13098
13099 2011-07-06  Bruno Haible  <bruno@clisp.org>
13100
13101         Comments.
13102         * m4/printf.m4: Update comments about mingw.
13103
13104 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13105
13106         sys_select: define sigset_t more portably
13107         * lib/sys_select.in.h: Always include <sys/types.h>, since
13108         we now need sigset_t and mingw defines it there.
13109         Include <signal.h> before split inclusion guard, to avoid
13110         mishaps on Solaris, whose <signal.h> eventually includes us.
13111         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13112         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13113         which come from ...
13114         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13115         gl_CHECK_TYPE_SIGSET_T.
13116         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13117         does the real work.
13118         * modules/sys_select (Depends-on): Add 'signal'.
13119
13120         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13121         Suggested by Bruno Haible.
13122
13123         pselect: Use pthread_sigmask, not sigprocmask.
13124         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13125         multithreaded apps better than sigprocmask does.
13126         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13127         sigprocmask directly.
13128
13129 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13130
13131         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13132         Don't #undef,  since we don't need any underlying pselect.
13133         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13134         (Depends-on): Add select.
13135         (Link): Add $(LIBSOCKET).
13136         These changes suggested by Bruno Haible.
13137
13138         pselect: document better
13139         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13140         * doc/posix-functions/pselect.texi (pselect): Document new module.
13141
13142         pthread_sigmask: new module
13143         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13144         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13145         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13146         This is done only as a macro; I don't know how well that'll
13147         work for C++.  Move <sys/types.h> include before the include_next,
13148         to avoid mishap on Solaris.
13149         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13150         * modules/signal (Makefile.am): Substitute the check's results.
13151         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13152
13153         test-pselect: new module
13154         * modules/pselect-tests, tests/test-pselect.c: New files.
13155         * tests/test-select.c, tests/test-sys_select-c++.cc:
13156         If TEST_PSELECT is defined, test pselect instead of testing select.
13157
13158         * tests/test-sys_select.c (sigset_t): Test for it, too.
13159         Suggested by Bruno Haible.
13160
13161 2011-07-05  Eric Blake  <eblake@redhat.com>
13162
13163         snprintf: guarantee %1$d, for libintl
13164         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13165         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13166         * doc/posix-functions/snprintf.texi (snprintf): Update.
13167         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13168         * tests/test-snprintf.c (main): Enhance test.
13169         * tests/test-vsnprintf.c (main): Likewise.
13170
13171 2011-07-05  Jim Meyering  <meyering@redhat.com>
13172
13173         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13174         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13175         per Bruno's request, to accommodate this idiom (no space after "#")
13176         even when the function is inside an #if block:
13177         char *
13178         gets (char *s)
13179         #undef gets
13180         {
13181           ...
13182         }
13183
13184 2011-07-04  Jim Meyering  <meyering@redhat.com>
13185
13186         maint: indent with spaces, not TABs, and add a rule to check this
13187         * tests/test-userspec.c: Indent with spaces, not TABs.
13188         * tests/test-argp.c: Likewise.
13189         * tests/test-c-stack2.sh: Likewise.
13190         * tests/test-parse-duration.sh: Likewise
13191         * m4/strtod.m4: Likewise.
13192         * m4/alloca.m4: Likewise.
13193         * m4/pselect.m4: Likewise.
13194         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13195
13196 2011-07-03  Jim Meyering  <meyering@redhat.com>
13197
13198         maint.mk: correct omissions in prohibit_argmatch_without_use check
13199         This rule would mistakenly report that argmatch.h is included without
13200         use even when both the argmatch and invalid_arg macro were used.
13201         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13202         of argmatch and invalid_arg.
13203
13204 2011-07-03  Bruno Haible  <bruno@clisp.org>
13205
13206         Comments about EINTR.
13207         * lib/safe-read.h: Explain the purpose of this module.
13208         * lib/safe-write.h: Likewise.
13209         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13210         module.
13211         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13212         module.
13213         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13214
13215 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13216
13217         xnanosleep: Rewrite to use new dtotimespec module.
13218         It has the conversion code that used to be in xnanosleep.
13219         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13220         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13221         (TIME_T_MAX): Remove.
13222         (xnanosleep): Rewrite in terms of dtotimespec.
13223         * modules/xnanosleep (Depends-on): Add dtotimespec.
13224         Remove intprops, stdbool.
13225
13226         timespec-add, timespec-sub: new modules
13227         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13228         * lib/timespec-add.c, lib/timespec-sub.c:
13229         * modules/timespec-add, modules/timespec-sub: New files.
13230
13231         dtotimespec: new module
13232         * lib/timespec.h (dtotimespec): New decl.
13233         * lib/dtotimespec.c, modules/dtotimespec: New files.
13234
13235         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13236
13237         pselect: new module
13238         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13239         (pselect): New decls.
13240         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13241         since the standard pselect decl uses 'restrict'.
13242         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13243         HAVE_PSELECT, REPLACE_PSELECT.
13244         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13245         HAVE_PSELECT, REPLACE_PSELECT.
13246         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13247
13248         sys_select: don't depend on sys_socket
13249         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13251         This fix works on GNU and GNU-like platforms, but has not been tested
13252         on native Windows.
13253         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13254         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13255         gl_HEADER_SYS_SOCKET.
13256         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13257         gl_PREREQ_SYS_H_WINSOCK2.
13258
13259 2011-06-29  Eric Blake  <eblake@redhat.com>
13260
13261         pipe2: fix C89 compile problem
13262         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13263         Reported by Bruno Haible.
13264
13265         pipe, pipe2: don't corrupt fd on error
13266         * lib/pipe.c (pipe): Leave fd unchanged on error.
13267         * lib/pipe2.c (pipe2): Likewise.
13268         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13269         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13270
13271 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13272
13273         mmap-anon: do not use regular expressions inadvertently
13274         * m4/mmap-anon.m4: Remove trailing period from strings sought
13275         in the output.
13276
13277 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13278
13279         nanosleep: fix integer overflow problem
13280         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13281         arithmetic wraps around on overflow.
13282
13283         nanosleep: simplify carrying
13284         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13285         first call to the underyling nanosleep, not for the last one.
13286         This doesn't fix any bugs, but it simplifies the computation of
13287         the remaining delay.  Found while auditing integer overflow issues.
13288
13289         dup2: remove test for existence of fcntl
13290         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13291         "#if HAVE_FCNTL", in the configure-time test program.
13292         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13293         and therefore speeds up "configure" a bit.  Found while
13294         adding the dup2 module to Emacs.
13295
13296 2011-06-24  Eric Blake  <eblake@redhat.com>
13297
13298         maint.mk: enhance useless header checks
13299         * top/maint.mk (_sc_header_without_use): Check both include
13300         styles.
13301         (sc_prohibit_assert_without_use)
13302         (sc_prohibit_close_stream_without_use)
13303         (sc_prohibit_getopt_without_use)
13304         (sc_prohibit_quotearg_without_use)
13305         (sc_prohibit_quote_without_use)
13306         (sc_prohibit_long_options_without_use)
13307         (sc_prohibit_inttostr_without_use)
13308         (sc_prohibit_ignore_value_without_use)
13309         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13310         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13311         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13312         (sc_prohibit_hash_pjw_without_use)
13313         (sc_prohibit_safe_read_without_use)
13314         (sc_prohibit_argmatch_without_use)
13315         (sc_prohibit_canonicalize_without_use)
13316         (sc_prohibit_root_dev_ino_without_use)
13317         (sc_prohibit_openat_without_use)
13318         (sc_prohibit_c_ctype_without_use)
13319         (sc_prohibit_signal_without_use)
13320         (sc_prohibit_stdio--_without_use)
13321         (sc_prohibit_stdio-safer_without_use)
13322         (sc_prohibit_strings_without_use)
13323         (sc_prohibit_intprops_without_use)
13324         (sc_prohibit_stddef_without_use)
13325         (sc_prohibit_xfreopen_without_use): Update clients.
13326
13327 2011-06-24  Jim Meyering  <meyering@redhat.com>
13328
13329         syntax-check: keep one maint.mk rule in sync with its header
13330         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13331         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13332         I prefer to avoid temporary files here, so use <(...), but that
13333         is not supported by /bin/sh, so...
13334         (SHELL): Define to /bin/bash.
13335
13336 2011-06-24  Eric Blake  <eblake@redhat.com>
13337
13338         maint.mk: update sc_prohibit_intprops_without_use
13339         * top/maint.mk (_intprops_names): Match recent changes.
13340
13341 2011-06-24  Bruno Haible  <bruno@clisp.org>
13342
13343         strerror-override: No-op tweak.
13344         * lib/strerror-override.h (strerror_override): Reorder conditions,
13345         for consistency with lib/strerror-override.c.
13346
13347 2011-06-23  Eric Blake  <eblake@redhat.com>
13348
13349         maint.mk: test further PATH_MAX issues
13350         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13351         (sc_prohibit_path_max_allocation): ...and also test alloca.
13352         Suggested by Jim Meyering.
13353
13354 2011-06-22  Eric Blake  <eblake@redhat.com>
13355
13356         maint.mk: add syntax-check to avoid char[PATH_MAX]
13357         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13358
13359         stat: be robust to PATH_MAX definition
13360         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13361         * modules/stat (Depends-on): Add verify.
13362
13363         link: work around IRIX bug
13364         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13365         * lib/link.c (rpl_link): Work around it.
13366         * tests/test-link.h (test_link): Enhance test.
13367         * doc/posix-functions/link.texi (link): Document the bug.
13368
13369         getopt: silence clang warning
13370         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13371         dereference.
13372         Reported by Gustavo Martin Domato.
13373
13374 2011-06-22  Jim Meyering  <meyering@redhat.com>
13375
13376         bootstrap: do not insert a blank line into each .gitignore file
13377         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13378
13379 2011-06-21  Eric Blake  <eblake@redhat.com>
13380
13381         perror: test for output mismatch
13382         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13383         perror on IRIX.
13384
13385         strerror_r: fix OpenBSD behavior on out-of-range
13386         * lib/strerror_r.c (strerror_r): Always use maximal string.
13387         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13388
13389         strerror_r: fix OpenBSD behavior on 0
13390         * lib/strerror-override.c (strerror_override): Also override 0
13391         when needed.
13392         * lib/strerror-override.h (strerror_override): Likewise.
13393         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13394         earlier.
13395         * lib/strerror_r.c (strerror_r): Likewise.
13396         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13397         behavior...
13398         (gl_FUNC_STRERROR_0): ...into new macro.
13399         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13400         is overridden.
13401         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13402         * modules/strerror-override (Files): Add strerror.m4.
13403         (configure.ac): Also provide override for 0 when needed.
13404         * doc/posix-functions/strerror.texi (strerror): Document this.
13405         * doc/posix-functions/perror.texi (perror): Likewise.
13406
13407         perror: adjust array size
13408         * modules/perror (Depends-on): Add strerror-override.
13409         * lib/perror.c (perror): Use it to avoid magic number.
13410
13411         strerror-override: reduce size
13412         * lib/strerror-override.c (strerror_override): Use fewer lines.
13413
13414 2011-06-20  Bruno Haible  <bruno@clisp.org>
13415
13416         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13417         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13418
13419 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13420
13421         alloca: port to compilers that can optimize like GCC 4.6.0
13422         * lib/alloca.c (find_stack_direction): New signature, taken from
13423         Autoconf git.  This works with GCC 4.6.0.  This code should never
13424         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13425         be used with other compilers that optimize as well as GCC 4.6.0 does.
13426         (alloca): Adjust to new signature.
13427         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13428         New macro, which patches Autoconf in a similar way.
13429
13430         c-stack: stop worrying about stack direction
13431         * lib/c-stack.c (find_stack_direction): Remove.
13432         (segv_handler): Don't worry about stack direction growth, as it's
13433         too much of a pain to configure this correctly, given how compilers
13434         are optimizing-away our stack-growth detection code.  Instead, assume
13435         that any access to just before or just after the stack is OK.
13436         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13437         Don't require AC_FUNC_ALLOCA; no longer needed.
13438
13439 2011-06-20  Eric Blake  <eblake@redhat.com>
13440
13441         test-stat: don't allocate PATH_MAX bytes
13442         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13443         PATH_MAX-sized buffer.
13444         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13445         * modules/stat-tests (Depends-on): Likewise.
13446         * tests/test-fstatat.c (includes): Drop pathmax.h.
13447         * tests/test-stat.c (includes): Likewise.
13448         Reported by Bruno Haible.
13449
13450 2011-06-20  Bruno Haible  <bruno@clisp.org>
13451
13452         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13453         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13454         * lib/float.c: New file.
13455         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13456         REPLACE_FLOAT_LDBL.
13457         * modules/float (Files): Add lib/float.c.
13458         (configure.ac): Invoke AC_LIBOBJ.
13459         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13460
13461 2011-06-20  Bruno Haible  <bruno@clisp.org>
13462
13463         Tests for module 'float'.
13464         * modules/float-tests: New file.
13465         * tests/test-float.c: New file.
13466
13467 2011-06-19  Bruno Haible  <bruno@clisp.org>
13468
13469         isinf: Coding style.
13470         * lib/isinf.c: Use GNU coding style.
13471
13472 2011-06-19  Bruno Haible  <bruno@clisp.org>
13473
13474         linkat test: Avoid test failure on AIX 7.1.
13475         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13476         * tests/test-link.h (test_link): Likewise.
13477
13478 2011-06-19  Bruno Haible  <bruno@clisp.org>
13479
13480         pread test: Avoid test failure on OpenBSD 4.9.
13481         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13482
13483 2011-06-19  Bruno Haible  <bruno@clisp.org>
13484
13485         sprintf-posix: Fix test failure on AIX 7.1.
13486         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13487         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13488         on AIX.
13489         * doc/posix-functions/fprintf.texi: Likewise.
13490         * doc/posix-functions/printf.texi: Likewise.
13491         * doc/posix-functions/snprintf.texi: Likewise.
13492         * doc/posix-functions/sprintf.texi: Likewise.
13493         * doc/posix-functions/vdprintf.texi: Likewise.
13494         * doc/posix-functions/vfprintf.texi: Likewise.
13495         * doc/posix-functions/vprintf.texi: Likewise.
13496         * doc/posix-functions/vsnprintf.texi: Likewise.
13497         * doc/posix-functions/vsprintf.texi: Likewise.
13498
13499 2011-06-19  Bruno Haible  <bruno@clisp.org>
13500
13501         roundl-ieee: Fix test failure on AIX 7.1.
13502         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13503         * doc/posix-functions/roundl.texi: Mention problem with negative
13504         arguments.
13505
13506 2011-06-19  Bruno Haible  <bruno@clisp.org>
13507
13508         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13509         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13510         * doc/posix-functions/round.texi: Mention problem with negative
13511         arguments.
13512         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13513
13514 2011-06-19  Bruno Haible  <bruno@clisp.org>
13515
13516         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13517         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13518         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13519         * doc/posix-functions/roundf.texi: Mention problem with negative
13520         arguments.
13521         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13522
13523 2011-06-19  Bruno Haible  <bruno@clisp.org>
13524
13525         ceilf-ieee: Work around bug on MacOS X 10.5.
13526         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13527
13528         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13529         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13530         IEEE compliant, avoid compiler optimizations.
13531         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13532         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13533         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13534         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13535         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13536         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13537         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13538         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13539         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13540         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13541
13542 2011-06-19  Bruno Haible  <bruno@clisp.org>
13543
13544         ceilf-ieee: Work around bug on AIX 7.1.
13545         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13546         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13547
13548 2011-06-19  Bruno Haible  <bruno@clisp.org>
13549
13550         ceil-ieee: Work around bug on AIX 7.1.
13551         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13552         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13553
13554 2011-06-18  Bruno Haible  <bruno@clisp.org>
13555
13556         fsync test: Avoid test failure on MacOS X and AIX.
13557         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13558         EINVAL.
13559
13560 2011-06-18  Bruno Haible  <bruno@clisp.org>
13561
13562         openat, fdopendir tests: Fix link errors.
13563         * modules/openat-tests (Depends-on): Add progname.
13564         * modules/fdopendir-tests (Depends-on): Likewise.
13565         * tests/test-fchownat.c: Include progname.h.
13566         (main): Call set_program_name.
13567         * tests/test-fstatat.c: Include progname.h.
13568         (main): Call set_program_name.
13569         * tests/test-mkdirat.c: Include progname.h.
13570         (main): Call set_program_name.
13571         * tests/test-openat.c: Include progname.h.
13572         (main): Call set_program_name.
13573         * tests/test-unlinkat.c: Include progname.h.
13574         (main): Call set_program_name.
13575         * tests/test-fdopendir.c: Include progname.h.
13576         (main): Call set_program_name.
13577
13578 2011-06-18  Bruno Haible  <bruno@clisp.org>
13579
13580         Doc update.
13581         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13582         HP-UX.
13583         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13584
13585 2011-06-18  Bruno Haible  <bruno@clisp.org>
13586
13587         getcwd tests: Avoid compilation error on HP-UX 11.31.
13588         * modules/getcwd-tests (Depends-on): Add pathmax.
13589         * tests/test-getcwd.c: Include pathmax.h.
13590
13591 2011-06-18  Bruno Haible  <bruno@clisp.org>
13592
13593         isfinite, isinf: Fix link error on AIX 6 and 7.
13594         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13595         needed, also test the macro with a 'float' argument.
13596         * m4/isinf.m4 (gl_ISINF): Likewise.
13597
13598 2011-06-18  Bruno Haible  <bruno@clisp.org>
13599
13600         getloadavg: Don't clobber LIBS. Regression from previous commit.
13601         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13602         AC_CHECK_LIB from here...
13603         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13604         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13605         gl_func_getloadavg_done.
13606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13607
13608 2011-06-18  Bruno Haible  <bruno@clisp.org>
13609
13610         clean-temp: Improve documentation.
13611         * lib/clean-temp.h: Explain better how to use this module.
13612         Reported by John Darrington <john@darrington.wattle.id.au>.
13613
13614 2011-06-17  Bruno Haible  <bruno@clisp.org>
13615
13616         pread, pwrite: Avoid cc warning on AIX.
13617         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13618         (pwrite): Likewise.
13619
13620 2011-06-17  Bruno Haible  <bruno@clisp.org>
13621
13622         spawn-pipe tests: Fix link error.
13623         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13625
13626 2011-06-17  Bruno Haible  <bruno@clisp.org>
13627
13628         Tests: Remove unnecessary dependency.
13629         * modules/canonicalize-tests (Depends-on): Remove progname.
13630         * modules/chown-tests (Depends-on): Likewise.
13631         * modules/dirname-tests (Depends-on): Likewise.
13632         * modules/fdopendir-tests (Depends-on): Likewise.
13633         * modules/fdutimensat-tests (Depends-on): Likewise.
13634         * modules/hash-tests (Depends-on): Likewise.
13635         * modules/lchown-tests (Depends-on): Likewise.
13636         * modules/linkat-tests (Depends-on): Likewise.
13637         * modules/renameat-tests (Depends-on): Likewise.
13638         * modules/spawn-pipe-tests (Depends-on): Likewise.
13639         * modules/utimensat-tests (Depends-on): Likewise.
13640
13641 2011-06-17  Bruno Haible  <bruno@clisp.org>
13642
13643         spawn-pipe tests: Fix link error.
13644         * tests/test-spawn-pipe-child.c: Undefine fflush.
13645
13646 2011-06-17  Bruno Haible  <bruno@clisp.org>
13647
13648         Fix tests link errors.
13649         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13650         * modules/chown-tests (Makefile.am): Don't link test-chown with
13651         LIBINTL.
13652         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13653         LIBINTL.
13654         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13655         LIBINTL.
13656         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13657         LIBINTL.
13658
13659 2011-06-16  Bruno Haible  <bruno@clisp.org>
13660
13661         crypto/gc-sha1: Fix recent regression.
13662         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13663         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13664
13665         crypto/gc-md5: Fix recent regression.
13666         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13667
13668         crypto/gc-md4: Fix recent regression.
13669         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13670         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13671
13672         crypto/gc-arctwo: Fix recent regression.
13673         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13674         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13675
13676         crypto/gc-rijndael: Fix recent regression.
13677         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13678         (configure.ac): Invoke AC_LIBOBJ here.
13679         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13681
13682         crypto/gc-hmac-sha1: Fix recent regression.
13683         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13684         (configure.ac): Invoke AC_LIBOBJ here.
13685         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13686         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13687
13688         crypto/gc-hmac-md5: Fix recent regression.
13689         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13690         (configure.ac): Invoke AC_LIBOBJ here.
13691         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13693
13694         crypto/gc-des: Fix recent regression.
13695         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13696         (configure.ac): Invoke AC_LIBOBJ here.
13697         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13698         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13699
13700         crypto/gc-arcfour: Fix recent regression.
13701         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13702         (configure.ac): Invoke AC_LIBOBJ here.
13703         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13705
13706 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13707
13708         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13709         After the 2011-05-21 change, this macro requires
13710         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13711         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13712
13713 2011-06-16  Bruno Haible  <bruno@clisp.org>
13714
13715         fprintftime: Move AC_LIBOBJ invocations to module description.
13716         * m4/fprintftime.m4: Remove file.
13717         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13718         (configure.ac): Remove gl_FPRINTFTIME call.
13719         (Makefile.am): Augment lib_SOURCES.
13720         Reported by Jim Meyering.
13721
13722 2011-06-16  Bruno Haible  <bruno@clisp.org>
13723
13724         tmpfile-safer: Finish 2011-05-23 commit.
13725         * m4/stdio-safer.m4: Really remove file.
13726         Reported by Jim Meyering.
13727
13728 2011-06-16  Bruno Haible  <bruno@clisp.org>
13729
13730         syntax-check: Fix typo.
13731         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13732         printf-posix.m4.
13733         Reported by Jim Meyering.
13734
13735 2011-06-13  Jim Meyering  <meyering@redhat.com>
13736
13737         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13738         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13739
13740 2011-05-23  Bruno Haible  <bruno@clisp.org>
13741
13742         yesno: Move AC_LIBOBJ invocations to module description.
13743         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13744         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13745
13746 2011-05-23  Bruno Haible  <bruno@clisp.org>
13747
13748         xstrtol: Move AC_LIBOBJ invocations to module description.
13749         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13750         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13751
13752 2011-05-23  Bruno Haible  <bruno@clisp.org>
13753
13754         xstrtold: Move AC_LIBOBJ invocations to module description.
13755         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13756         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13757
13758 2011-05-23  Bruno Haible  <bruno@clisp.org>
13759
13760         xstrtod: Move AC_LIBOBJ invocations to module description.
13761         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13762         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13763
13764 2011-05-23  Bruno Haible  <bruno@clisp.org>
13765
13766         xnanosleep: Move AC_LIBOBJ invocations to module description.
13767         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13768         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13769
13770 2011-05-23  Bruno Haible  <bruno@clisp.org>
13771
13772         xgetcwd: Move AC_LIBOBJ invocations to module description.
13773         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13774         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13775
13776 2011-05-23  Bruno Haible  <bruno@clisp.org>
13777
13778         xalloc: Move AC_LIBOBJ invocations to module description.
13779         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13780         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13781
13782 2011-05-23  Bruno Haible  <bruno@clisp.org>
13783
13784         write-any-file: Move AC_LIBOBJ invocations to module description.
13785         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13786         invocation.
13787         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13788
13789 2011-05-23  Bruno Haible  <bruno@clisp.org>
13790
13791         utimens: Move AC_LIBOBJ invocations to module description.
13792         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13793         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13794
13795 2011-05-23  Bruno Haible  <bruno@clisp.org>
13796
13797         utimecmp: Move AC_LIBOBJ invocations to module description.
13798         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13799         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13800
13801 2011-05-23  Bruno Haible  <bruno@clisp.org>
13802
13803         userspec: Move AC_LIBOBJ invocations to module description.
13804         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13805         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13806
13807 2011-05-23  Bruno Haible  <bruno@clisp.org>
13808
13809         unlinkdir: Move AC_LIBOBJ invocations to module description.
13810         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13811         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13812
13813 2011-05-23  Bruno Haible  <bruno@clisp.org>
13814
13815         unistd-safer: Move AC_LIBOBJ invocations to module description.
13816         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13817         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13818
13819 2011-05-23  Bruno Haible  <bruno@clisp.org>
13820
13821         tempname: Move AC_LIBOBJ invocations to module description.
13822         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13823         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13824
13825 2011-05-23  Bruno Haible  <bruno@clisp.org>
13826
13827         strftime: Move AC_LIBOBJ invocations to module description.
13828         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13829         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13830
13831 2011-05-23  Bruno Haible  <bruno@clisp.org>
13832
13833         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13834         * m4/stdlib-safer.m4: Remove file.
13835         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13836         (configure.ac): Remove gl_STDLIB_SAFER call.
13837         (Makefile.am): Augment lib_SOURCES.
13838
13839 2011-05-23  Bruno Haible  <bruno@clisp.org>
13840
13841         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13842         * m4/stdio-safer.m4: Remove file.
13843         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13844         (configure.ac): Remove gl_TMPFILE_SAFER call.
13845         (Makefile.am): Augment lib_SOURCES.
13846
13847 2011-05-23  Bruno Haible  <bruno@clisp.org>
13848
13849         popen-safer: Move AC_LIBOBJ invocations to module description.
13850         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13851         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13852         (configure.ac): Remove gl_POPEN_SAFER call.
13853         (Makefile.am): Augment lib_SOURCES.
13854
13855 2011-05-23  Bruno Haible  <bruno@clisp.org>
13856
13857         freopen-safer: Move AC_LIBOBJ invocations to module description.
13858         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13859         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13860         (configure.ac): Remove gl_FREOPEN_SAFER call.
13861         (Makefile.am): Augment lib_SOURCES.
13862
13863 2011-05-23  Bruno Haible  <bruno@clisp.org>
13864
13865         fopen-safer: Move AC_LIBOBJ invocations to module description.
13866         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13867         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13868         (configure.ac): Remove gl_FOPEN_SAFER call.
13869         (Makefile.am): Augment lib_SOURCES.
13870
13871 2011-05-23  Bruno Haible  <bruno@clisp.org>
13872
13873         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13874         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13875         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13876
13877 2011-05-23  Bruno Haible  <bruno@clisp.org>
13878
13879         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13880         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13881         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13882
13883 2011-05-23  Bruno Haible  <bruno@clisp.org>
13884
13885         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13886         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13887         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13888
13889 2011-05-23  Bruno Haible  <bruno@clisp.org>
13890
13891         settime: Move AC_LIBOBJ invocations to module description.
13892         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13893         * modules/settime (Makefile.am): Augment lib_SOURCES.
13894
13895 2011-05-23  Bruno Haible  <bruno@clisp.org>
13896
13897         savedir: Move AC_LIBOBJ invocations to module description.
13898         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13899         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13900
13901 2011-05-23  Bruno Haible  <bruno@clisp.org>
13902
13903         save-cwd: Move AC_LIBOBJ invocations to module description.
13904         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13905         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13906
13907 2011-05-23  Bruno Haible  <bruno@clisp.org>
13908
13909         same: Move AC_LIBOBJ invocations to module description.
13910         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13911         * modules/same (Makefile.am): Augment lib_SOURCES.
13912
13913 2011-05-23  Bruno Haible  <bruno@clisp.org>
13914
13915         safe-write: Move AC_LIBOBJ invocations to module description.
13916         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13917         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13918         instead of gl_SAFE_WRITE.
13919         (Makefile.am): Augment lib_SOURCES.
13920
13921 2011-05-23  Bruno Haible  <bruno@clisp.org>
13922
13923         safe-read: Move AC_LIBOBJ invocations to module description.
13924         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13925         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13926         of gl_SAFE_READ.
13927         (Makefile.am): Augment lib_SOURCES.
13928
13929 2011-05-23  Bruno Haible  <bruno@clisp.org>
13930
13931         safe-alloc: Move AC_LIBOBJ invocations to module description.
13932         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13933         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13934
13935 2011-05-23  Bruno Haible  <bruno@clisp.org>
13936
13937         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13938         * m4/rijndael.m4: Remove file.
13939         * modules/crypto/rijndael (Files): Remove it.
13940         (configure.ac): Remove gl_RIJNDAEL call.
13941         (Makefile.am): Augment lib_SOURCES.
13942
13943 2011-05-23  Bruno Haible  <bruno@clisp.org>
13944
13945         readtokens: Move AC_LIBOBJ invocations to module description.
13946         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13947         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13948
13949 2011-05-23  Bruno Haible  <bruno@clisp.org>
13950
13951         read-file: Move AC_LIBOBJ invocations to module description.
13952         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13953         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13954         of gl_FUNC_READ_FILE.
13955         (Makefile.am): Augment lib_SOURCES.
13956
13957 2011-05-23  Bruno Haible  <bruno@clisp.org>
13958
13959         quotearg: Move AC_LIBOBJ invocations to module description.
13960         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13961         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13962
13963 2011-05-23  Bruno Haible  <bruno@clisp.org>
13964
13965         quote: Move AC_LIBOBJ invocations to module description.
13966         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13967         * modules/quote (Makefile.am): Augment lib_SOURCES.
13968
13969 2011-05-23  Bruno Haible  <bruno@clisp.org>
13970
13971         posixver: Move AC_LIBOBJ invocations to module description.
13972         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13973         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13974
13975 2011-05-23  Bruno Haible  <bruno@clisp.org>
13976
13977         posixtm: Move AC_LIBOBJ invocations to module description.
13978         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13979         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13980
13981 2011-05-23  Bruno Haible  <bruno@clisp.org>
13982
13983         physmem: Move AC_LIBOBJ invocations to module description.
13984         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13985         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13986
13987 2011-05-23  Bruno Haible  <bruno@clisp.org>
13988
13989         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13990         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13991         invocation.
13992         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13993
13994 2011-05-23  Bruno Haible  <bruno@clisp.org>
13995
13996         mpsort: Move AC_LIBOBJ invocations to module description.
13997         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13998         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13999
14000 2011-05-23  Bruno Haible  <bruno@clisp.org>
14001
14002         modechange: Move AC_LIBOBJ invocations to module description.
14003         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
14004         * modules/modechange (Makefile.am): Augment lib_SOURCES.
14005
14006 2011-05-23  Bruno Haible  <bruno@clisp.org>
14007
14008         mkdir-p: Move AC_LIBOBJ invocations to module description.
14009         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14010         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14011
14012 2011-05-23  Bruno Haible  <bruno@clisp.org>
14013
14014         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14015         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14016         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14017
14018 2011-05-23  Bruno Haible  <bruno@clisp.org>
14019
14020         mgetgroups: Move AC_LIBOBJ invocations to module description.
14021         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14022         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14023
14024 2011-05-23  Bruno Haible  <bruno@clisp.org>
14025
14026         memxor: Move AC_LIBOBJ invocations to module description.
14027         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14028         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14029
14030 2011-05-23  Bruno Haible  <bruno@clisp.org>
14031
14032         memcoll: Move AC_LIBOBJ invocations to module description.
14033         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14034         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14035
14036 2011-05-23  Bruno Haible  <bruno@clisp.org>
14037
14038         memcasecmp: Move AC_LIBOBJ invocations to module description.
14039         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14040         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14041
14042 2011-05-23  Bruno Haible  <bruno@clisp.org>
14043
14044         crypto/md5: Move AC_LIBOBJ invocations to module description.
14045         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14046         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14047
14048 2011-05-23  Bruno Haible  <bruno@clisp.org>
14049
14050         crypto/md4: Move AC_LIBOBJ invocations to module description.
14051         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14052         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14053
14054 2011-05-23  Bruno Haible  <bruno@clisp.org>
14055
14056         crypto/md2: Move AC_LIBOBJ invocations to module description.
14057         * m4/md2.m4: Remove file.
14058         * modules/crypto/md2 (Files): Remove it.
14059         (configure.ac): Remove gl_MD2 call.
14060         (Makefile.am): Augment lib_SOURCES.
14061
14062 2011-05-23  Bruno Haible  <bruno@clisp.org>
14063
14064         long-options: Move AC_LIBOBJ invocations to module description.
14065         * m4/long-options.m4: Remove file.
14066         * modules/long-options (Files): Remove it.
14067         (configure.ac): Remove gl_LONG_OPTIONS call.
14068         (Makefile.am): Augment lib_SOURCES.
14069
14070 2011-05-23  Bruno Haible  <bruno@clisp.org>
14071
14072         i-ring: Move AC_LIBOBJ invocations to module description.
14073         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14074         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14075
14076 2011-05-23  Bruno Haible  <bruno@clisp.org>
14077
14078         idcache: Move AC_LIBOBJ invocations to module description.
14079         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14080         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14081
14082 2011-05-23  Bruno Haible  <bruno@clisp.org>
14083
14084         human: Move AC_LIBOBJ invocations to module description.
14085         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14086         * modules/human (Makefile.am): Augment lib_SOURCES.
14087
14088 2011-05-23  Bruno Haible  <bruno@clisp.org>
14089
14090         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14091         * m4/hmac-sha1.m4: Remove file.
14092         * modules/crypto/hmac-sha1 (Files): Remove it.
14093         (configure.ac): Remove gl_HMAC_SHA1 call.
14094         (Makefile.am): Augment lib_SOURCES.
14095
14096 2011-05-23  Bruno Haible  <bruno@clisp.org>
14097
14098         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14099         * m4/hmac-md5.m4: Remove file.
14100         * modules/crypto/hmac-md5 (Files): Remove it.
14101         (configure.ac): Remove gl_HMAC_MD5 call.
14102         (Makefile.am): Augment lib_SOURCES.
14103
14104 2011-05-23  Bruno Haible  <bruno@clisp.org>
14105
14106         hash: Move AC_LIBOBJ invocations to module description.
14107         * m4/hash.m4: Remove file.
14108         * modules/hash (Files): Remove it.
14109         (configure.ac): Remove gl_HASH call.
14110         (Makefile.am): Augment lib_SOURCES.
14111
14112 2011-05-23  Bruno Haible  <bruno@clisp.org>
14113
14114         hard-locale: Move AC_LIBOBJ invocations to module description.
14115         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14116         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14117
14118 2011-05-23  Bruno Haible  <bruno@clisp.org>
14119
14120         getugroups: Move AC_LIBOBJ invocations to module description.
14121         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14122         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14123
14124 2011-05-23  Bruno Haible  <bruno@clisp.org>
14125
14126         gettime: Move AC_LIBOBJ invocations to module description.
14127         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14128         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14129
14130 2011-05-23  Bruno Haible  <bruno@clisp.org>
14131
14132         getndelim2: Move AC_LIBOBJ invocations to module description.
14133         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14134         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14135
14136 2011-05-23  Bruno Haible  <bruno@clisp.org>
14137
14138         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14139         * m4/gc-pbkdf2-sha1.m4: Remove file.
14140         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14141         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14142         (Makefile.am): Augment lib_SOURCES.
14143
14144 2011-05-23  Bruno Haible  <bruno@clisp.org>
14145
14146         fts: Move AC_LIBOBJ invocations to module description.
14147         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14148         * modules/fts (configure.ac): ... to here.
14149
14150 2011-05-23  Bruno Haible  <bruno@clisp.org>
14151
14152         file-type: Move AC_LIBOBJ invocations to module description.
14153         * m4/file-type.m4: Remove file.
14154         * modules/file-type (Files): Remove it.
14155         (configure.ac): Remove gl_FILE_TYPE call.
14156         (Makefile.am): Augment lib_SOURCES.
14157
14158 2011-05-23  Bruno Haible  <bruno@clisp.org>
14159
14160         filenamecat*: Respect rules for use of AC_LIBOBJ.
14161         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14162         Remove AC_LIBOBJ invocation.
14163         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14164         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14165
14166 2011-05-23  Bruno Haible  <bruno@clisp.org>
14167
14168         filemode: Move AC_LIBOBJ invocations to module description.
14169         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14170         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14171
14172 2011-05-23  Bruno Haible  <bruno@clisp.org>
14173
14174         openat-safer: Move AC_LIBOBJ invocations to module description.
14175         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14176         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14177
14178 2011-05-23  Bruno Haible  <bruno@clisp.org>
14179
14180         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14181         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14182         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14183
14184 2011-05-23  Bruno Haible  <bruno@clisp.org>
14185
14186         exclude: Move AC_LIBOBJ invocations to module description.
14187         * m4/exclude.m4: Remove file.
14188         * modules/exclude (Files): Remove it.
14189         (configure.ac): Remove gl_EXCLUDE call.
14190         (Makefile.am): Augment lib_SOURCES.
14191
14192 2011-05-23  Bruno Haible  <bruno@clisp.org>
14193
14194         dirname*: Respect rules for use of AC_LIBOBJ.
14195         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14196         invocations.
14197         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14198         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14199
14200 2011-05-23  Bruno Haible  <bruno@clisp.org>
14201
14202         dirent-safer: Move AC_LIBOBJ invocations to module description.
14203         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14204         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14205
14206 2011-05-23  Bruno Haible  <bruno@clisp.org>
14207
14208         crypto/des: Move AC_LIBOBJ invocations to module description.
14209         * m4/des.m4: Remove file.
14210         * modules/crypto/des (Files): Remove it.
14211         (configure.ac): Remove gl_DES call.
14212         (Makefile.am): Augment lib_SOURCES.
14213
14214 2011-05-23  Bruno Haible  <bruno@clisp.org>
14215
14216         cycle-check: Move AC_LIBOBJ invocations to module description.
14217         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14218         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14219
14220 2011-05-23  Bruno Haible  <bruno@clisp.org>
14221
14222         c-strtold: Move AC_LIBOBJ invocations to module description.
14223         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14224         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14225
14226 2011-05-23  Bruno Haible  <bruno@clisp.org>
14227
14228         c-strtod: Move AC_LIBOBJ invocations to module description.
14229         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14230         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14231
14232 2011-05-23  Bruno Haible  <bruno@clisp.org>
14233
14234         crc: Move AC_LIBOBJ invocations to module description.
14235         * m4/crc.m4: Remove file.
14236         * modules/crc (Files): Remove it.
14237         (configure.ac): Remove gl_CRC call.
14238         (Makefile.am): Augment lib_SOURCES.
14239
14240 2011-05-23  Bruno Haible  <bruno@clisp.org>
14241
14242         close-stream: Move AC_LIBOBJ invocations to module description.
14243         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14244         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14245
14246 2011-05-23  Bruno Haible  <bruno@clisp.org>
14247
14248         closeout: Move AC_LIBOBJ invocations to module description.
14249         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14250         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14251
14252 2011-05-23  Bruno Haible  <bruno@clisp.org>
14253
14254         closein: Move AC_LIBOBJ invocations to module description.
14255         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14256         * modules/closein (Makefile.am): Augment lib_SOURCES.
14257
14258 2011-05-23  Bruno Haible  <bruno@clisp.org>
14259
14260         cloexec: Move AC_LIBOBJ invocations to module description.
14261         * m4/cloexec.m4: Remove file.
14262         * modules/cloexec (Files): Remove it.
14263         (configure.ac): Remove gl_CLOEXEC call.
14264         (Makefile.am): Augment lib_SOURCES.
14265
14266 2011-05-23  Bruno Haible  <bruno@clisp.org>
14267
14268         check-version: Move AC_LIBOBJ invocations to module description.
14269         * m4/check-version.m4: Remove file.
14270         * modules/check-version (Files): Remove it.
14271         (configure.ac): Remove gl_CHECK_VERSION call.
14272         (Makefile.am): Augment lib_SOURCES.
14273
14274 2011-05-23  Bruno Haible  <bruno@clisp.org>
14275
14276         chdir-safer: Move AC_LIBOBJ invocations to module description.
14277         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14278         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14279
14280 2011-05-23  Bruno Haible  <bruno@clisp.org>
14281
14282         canonicalize: Move AC_LIBOBJ invocations to module description.
14283         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14284         AC_LIBOBJ invocation.
14285         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14286
14287 2011-05-23  Bruno Haible  <bruno@clisp.org>
14288
14289         canon-host: Move AC_LIBOBJ invocations to module description.
14290         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14291         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14292         instead of gl_CANON_HOST.
14293         (Makefile.am): Augment lib_SOURCES.
14294
14295 2011-05-23  Bruno Haible  <bruno@clisp.org>
14296
14297         backupfile: Move AC_LIBOBJ invocations to module description.
14298         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14299         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14300
14301 2011-05-23  Bruno Haible  <bruno@clisp.org>
14302
14303         argmatch: Move AC_LIBOBJ invocations to module description.
14304         * m4/argmatch.m4: Remove file.
14305         * modules/argmatch (Files): Remove it.
14306         (configure.ac): Remove gl_ARGMATCH call.
14307         (Makefile.am): Augment lib_SOURCES.
14308
14309 2011-05-23  Bruno Haible  <bruno@clisp.org>
14310
14311         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14312         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14313         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14314
14315 2011-05-23  Bruno Haible  <bruno@clisp.org>
14316
14317         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14318         * m4/arcfour.m4: Remove file.
14319         * modules/crypto/arcfour (Files): Remove it.
14320         (configure.ac): Remove gl_ARCFOUR call.
14321         (Makefile.am): Augment lib_SOURCES.
14322
14323 2011-05-22  Bruno Haible  <bruno@clisp.org>
14324
14325         write: Move AC_LIBOBJ invocations to module description.
14326         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14327         * modules/write (configure.ac): ... to here.
14328
14329 2011-05-22  Bruno Haible  <bruno@clisp.org>
14330
14331         wmemset: Move AC_LIBOBJ invocations to module description.
14332         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14333         here...
14334         * modules/wmemset (configure.ac): ... to here.
14335
14336 2011-05-22  Bruno Haible  <bruno@clisp.org>
14337
14338         wmemmove: Move AC_LIBOBJ invocations to module description.
14339         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14340         here...
14341         * modules/wmemmove (configure.ac): ... to here.
14342
14343 2011-05-22  Bruno Haible  <bruno@clisp.org>
14344
14345         wmemcpy: Move AC_LIBOBJ invocations to module description.
14346         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14347         here...
14348         * modules/wmemcpy (configure.ac): ... to here.
14349
14350 2011-05-22  Bruno Haible  <bruno@clisp.org>
14351
14352         wmemcmp: Move AC_LIBOBJ invocations to module description.
14353         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14354         here...
14355         * modules/wmemcmp (configure.ac): ... to here.
14356
14357 2011-05-22  Bruno Haible  <bruno@clisp.org>
14358
14359         wmemchr: Move AC_LIBOBJ invocations to module description.
14360         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14361         here...
14362         * modules/wmemchr (configure.ac): ... to here.
14363
14364 2011-05-22  Bruno Haible  <bruno@clisp.org>
14365
14366         wcswidth: Move AC_LIBOBJ invocations to module description.
14367         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14368         here...
14369         * modules/wcswidth (configure.ac): ... to here.
14370
14371 2011-05-22  Bruno Haible  <bruno@clisp.org>
14372
14373         wcwidth: Respect rules for use of AC_LIBOBJ.
14374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14375         invocation from here...
14376         * modules/wcwidth (configure.ac): ... to here.
14377         (Depends-on): Update conditions.
14378
14379 2011-05-22  Bruno Haible  <bruno@clisp.org>
14380
14381         wctype: Move AC_LIBOBJ invocations to module description.
14382         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14383         invocation from here...
14384         * modules/wctype (configure.ac): ... to here.
14385         (Depends-on): Update conditions.
14386
14387 2011-05-22  Bruno Haible  <bruno@clisp.org>
14388
14389         wctrans: Move AC_LIBOBJ invocations to module description.
14390         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14391         invocation from here...
14392         * modules/wctrans (configure.ac): ... to here.
14393
14394 2011-05-22  Bruno Haible  <bruno@clisp.org>
14395
14396         wctomb: Move AC_LIBOBJ invocations to module description.
14397         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14398         invocations from here...
14399         * modules/wctomb (configure.ac): ... to here.
14400
14401 2011-05-22  Bruno Haible  <bruno@clisp.org>
14402
14403         wctob: Move AC_LIBOBJ invocations to module description.
14404         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14405         gl_PREREQ_WCTOB invocations from here...
14406         * modules/wctob (configure.ac): ... to here.
14407         (Depends-on): Update conditions.
14408
14409 2011-05-22  Bruno Haible  <bruno@clisp.org>
14410
14411         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14412         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14413         here...
14414         * modules/wcsxfrm (configure.ac): ... to here.
14415
14416 2011-05-22  Bruno Haible  <bruno@clisp.org>
14417
14418         wcstok: Move AC_LIBOBJ invocations to module description.
14419         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14420         * modules/wcstok (configure.ac): ... to here.
14421
14422 2011-05-22  Bruno Haible  <bruno@clisp.org>
14423
14424         wcsstr: Move AC_LIBOBJ invocations to module description.
14425         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14426         * modules/wcsstr (configure.ac): ... to here.
14427
14428 2011-05-22  Bruno Haible  <bruno@clisp.org>
14429
14430         wcsspn: Move AC_LIBOBJ invocations to module description.
14431         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14432         * modules/wcsspn (configure.ac): ... to here.
14433
14434 2011-05-22  Bruno Haible  <bruno@clisp.org>
14435
14436         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14437         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14438         gl_PREREQ_WCSRTOMBS invocations from here...
14439         * modules/wcsrtombs (configure.ac): ... to here.
14440
14441 2011-05-22  Bruno Haible  <bruno@clisp.org>
14442
14443         wcsrchr: Move AC_LIBOBJ invocations to module description.
14444         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14445         here...
14446         * modules/wcsrchr (configure.ac): ... to here.
14447
14448 2011-05-22  Bruno Haible  <bruno@clisp.org>
14449
14450         wcspbrk: Move AC_LIBOBJ invocations to module description.
14451         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14452         here...
14453         * modules/wcspbrk (configure.ac): ... to here.
14454
14455 2011-05-22  Bruno Haible  <bruno@clisp.org>
14456
14457         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14458         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14459         gl_PREREQ_WCSNRTOMBS invocations from here...
14460         * modules/wcsnrtombs (configure.ac): ... to here.
14461
14462 2011-05-22  Bruno Haible  <bruno@clisp.org>
14463
14464         wcsnlen: Move AC_LIBOBJ invocations to module description.
14465         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14466         here...
14467         * modules/wcsnlen (configure.ac): ... to here.
14468
14469 2011-05-22  Bruno Haible  <bruno@clisp.org>
14470
14471         wcsncpy: Move AC_LIBOBJ invocations to module description.
14472         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14473         here...
14474         * modules/wcsncpy (configure.ac): ... to here.
14475
14476 2011-05-22  Bruno Haible  <bruno@clisp.org>
14477
14478         wcsncmp: Move AC_LIBOBJ invocations to module description.
14479         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14480         here...
14481         * modules/wcsncmp (configure.ac): ... to here.
14482
14483 2011-05-22  Bruno Haible  <bruno@clisp.org>
14484
14485         wcsncat: Move AC_LIBOBJ invocations to module description.
14486         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14487         here...
14488         * modules/wcsncat (configure.ac): ... to here.
14489
14490 2011-05-22  Bruno Haible  <bruno@clisp.org>
14491
14492         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14493         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14494         from here...
14495         * modules/wcsncasecmp (configure.ac): ... to here.
14496
14497 2011-05-22  Bruno Haible  <bruno@clisp.org>
14498
14499         wcslen: Move AC_LIBOBJ invocations to module description.
14500         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14501         * modules/wcslen (configure.ac): ... to here.
14502
14503 2011-05-22  Bruno Haible  <bruno@clisp.org>
14504
14505         wcsdup: Move AC_LIBOBJ invocations to module description.
14506         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14507         * modules/wcsdup (configure.ac): ... to here.
14508
14509 2011-05-22  Bruno Haible  <bruno@clisp.org>
14510
14511         wcscspn: Move AC_LIBOBJ invocations to module description.
14512         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14513         here...
14514         * modules/wcscspn (configure.ac): ... to here.
14515
14516 2011-05-22  Bruno Haible  <bruno@clisp.org>
14517
14518         wcscpy: Move AC_LIBOBJ invocations to module description.
14519         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14520         * modules/wcscpy (configure.ac): ... to here.
14521
14522 2011-05-22  Bruno Haible  <bruno@clisp.org>
14523
14524         wcscoll: Move AC_LIBOBJ invocations to module description.
14525         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14526         here...
14527         * modules/wcscoll (configure.ac): ... to here.
14528
14529 2011-05-22  Bruno Haible  <bruno@clisp.org>
14530
14531         wcscmp: Move AC_LIBOBJ invocations to module description.
14532         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14533         * modules/wcscmp (configure.ac): ... to here.
14534
14535 2011-05-22  Bruno Haible  <bruno@clisp.org>
14536
14537         wcschr: Move AC_LIBOBJ invocations to module description.
14538         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14539         * modules/wcschr (configure.ac): ... to here.
14540
14541 2011-05-22  Bruno Haible  <bruno@clisp.org>
14542
14543         wcscat: Move AC_LIBOBJ invocations to module description.
14544         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14545         * modules/wcscat (configure.ac): ... to here.
14546
14547 2011-05-22  Bruno Haible  <bruno@clisp.org>
14548
14549         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14550         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14551         here...
14552         * modules/wcscasecmp (configure.ac): ... to here.
14553
14554 2011-05-22  Bruno Haible  <bruno@clisp.org>
14555
14556         wcrtomb: Move AC_LIBOBJ invocations to module description.
14557         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14558         invocations from here...
14559         * modules/wcrtomb (configure.ac): ... to here.
14560
14561 2011-05-22  Bruno Haible  <bruno@clisp.org>
14562
14563         wcpncpy: Move AC_LIBOBJ invocations to module description.
14564         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14565         here...
14566         * modules/wcpncpy (configure.ac): ... to here.
14567
14568 2011-05-22  Bruno Haible  <bruno@clisp.org>
14569
14570         wcpcpy: Move AC_LIBOBJ invocations to module description.
14571         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14572         * modules/wcpcpy (configure.ac): ... to here.
14573
14574 2011-05-22  Bruno Haible  <bruno@clisp.org>
14575
14576         waitpid: Move AC_LIBOBJ invocations to module description.
14577         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14578         invocation from here...
14579         * modules/waitpid (configure.ac): ... to here.
14580
14581 2011-05-22  Bruno Haible  <bruno@clisp.org>
14582
14583         utimensat: Move AC_LIBOBJ invocations to module description.
14584         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14585         here...
14586         * modules/utimensat (configure.ac): ... to here.
14587
14588 2011-05-22  Bruno Haible  <bruno@clisp.org>
14589
14590         usleep: Move AC_LIBOBJ invocations to module description.
14591         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14592         here...
14593         * modules/usleep (configure.ac): ... to here.
14594
14595 2011-05-22  Bruno Haible  <bruno@clisp.org>
14596
14597         unlockpt: Move AC_LIBOBJ invocations to module description.
14598         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14599         gl_PREREQ_UNLOCKPT invocations from here...
14600         * modules/unlockpt (configure.ac): ... to here.
14601
14602 2011-05-22  Bruno Haible  <bruno@clisp.org>
14603
14604         unlink: Respect rules for use of AC_LIBOBJ.
14605         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14606         * modules/unlink (configure.ac): ... to here.
14607
14608 2011-05-22  Bruno Haible  <bruno@clisp.org>
14609
14610         uname: Move AC_LIBOBJ invocations to module description.
14611         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14612         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14613         here...
14614         * modules/uname (configure.ac): ... to here.
14615
14616 2011-05-22  Bruno Haible  <bruno@clisp.org>
14617
14618         ttyname_r: Move AC_LIBOBJ invocations to module description.
14619         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14620         gl_PREREQ_TTYNAME_R invocations from here...
14621         * modules/ttyname_r (configure.ac): ... to here.
14622
14623 2011-05-22  Bruno Haible  <bruno@clisp.org>
14624
14625         tsearch: Move AC_LIBOBJ invocations to module description.
14626         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14627         invocations from here...
14628         * modules/tsearch (configure.ac): ... to here.
14629
14630 2011-05-22  Bruno Haible  <bruno@clisp.org>
14631
14632         towctrans: Move AC_LIBOBJ invocations to module description.
14633         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14634         AC_LIBOBJ invocation from here...
14635         * modules/towctrans (configure.ac): ... to here.
14636
14637 2011-05-22  Bruno Haible  <bruno@clisp.org>
14638
14639         tmpfile: Move AC_LIBOBJ invocations to module description.
14640         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14641         invocations from here...
14642         * modules/tmpfile (configure.ac): ... to here.
14643
14644 2011-05-22  Bruno Haible  <bruno@clisp.org>
14645
14646         times: Move AC_LIBOBJ invocations to module description.
14647         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14648         * modules/times (configure.ac): ... to here.
14649
14650 2011-05-22  Bruno Haible  <bruno@clisp.org>
14651
14652         time_r: Move AC_LIBOBJ invocations to module description.
14653         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14654         invocations from here...
14655         * modules/time_r (configure.ac): ... to here.
14656
14657 2011-05-22  Bruno Haible  <bruno@clisp.org>
14658
14659         timegm: Move AC_LIBOBJ invocations to module description.
14660         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14661         invocations from here...
14662         * modules/timegm (configure.ac): ... to here.
14663
14664 2011-05-22  Bruno Haible  <bruno@clisp.org>
14665
14666         tcgetsid: Move AC_LIBOBJ invocations to module description.
14667         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14668         and gl_PREREQ_TCGETSID invocations from here...
14669         * modules/tcgetsid (configure.ac): ... to here.
14670         (Depends-on): Update conditions.
14671
14672 2011-05-22  Bruno Haible  <bruno@clisp.org>
14673
14674         symlinkat: Move AC_LIBOBJ invocations to module description.
14675         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14676         here...
14677         * modules/symlinkat (configure.ac): ... to here.
14678
14679 2011-05-22  Bruno Haible  <bruno@clisp.org>
14680
14681         symlink: Move AC_LIBOBJ invocations to module description.
14682         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14683         here...
14684         * modules/symlink (configure.ac): ... to here.
14685
14686 2011-05-22  Bruno Haible  <bruno@clisp.org>
14687
14688         strverscmp: Move AC_LIBOBJ invocations to module description.
14689         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14690         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14691         from here...
14692         * modules/strverscmp (configure.ac): ... to here.
14693
14694 2011-05-22  Bruno Haible  <bruno@clisp.org>
14695
14696         strtok_r: Move AC_LIBOBJ invocations to module description.
14697         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14698         and gl_PREREQ_STRTOK_R invocations from here...
14699         * modules/strtok_r (configure.ac): ... to here.
14700         (Depends-on): Update conditions.
14701
14702 2011-05-22  Bruno Haible  <bruno@clisp.org>
14703
14704         strtoumax: Move AC_LIBOBJ invocations to module description.
14705         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14706         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14707         from here...
14708         * modules/strtoumax (configure.ac): ... to here.
14709
14710 2011-05-22  Bruno Haible  <bruno@clisp.org>
14711
14712         strtoimax: Move AC_LIBOBJ invocations to module description.
14713         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14714         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14715         from here...
14716         * modules/strtoimax (configure.ac): ... to here.
14717
14718 2011-05-22  Bruno Haible  <bruno@clisp.org>
14719
14720         strtoull: Move AC_LIBOBJ invocations to module description.
14721         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14722         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14723         from here...
14724         * modules/strtoull (configure.ac): ... to here.
14725
14726 2011-05-22  Bruno Haible  <bruno@clisp.org>
14727
14728         strtoll: Move AC_LIBOBJ invocations to module description.
14729         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14730         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14731         here...
14732         * modules/strtoll (configure.ac): ... to here.
14733
14734 2011-05-22  Bruno Haible  <bruno@clisp.org>
14735
14736         strtoul: Move AC_LIBOBJ invocations to module description.
14737         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14738         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14739         * modules/strtoul (configure.ac): ... to here.
14740
14741 2011-05-22  Bruno Haible  <bruno@clisp.org>
14742
14743         strtol: Move AC_LIBOBJ invocations to module description.
14744         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14745         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14746         * modules/strtol (configure.ac): ... to here.
14747
14748 2011-05-22  Bruno Haible  <bruno@clisp.org>
14749
14750         strtod: Move AC_LIBOBJ invocations to module description.
14751         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14752         invocations from here...
14753         * modules/strtod (configure.ac): ... to here.
14754
14755 2011-05-22  Bruno Haible  <bruno@clisp.org>
14756
14757         strstr*: Move AC_LIBOBJ invocations to module description.
14758         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14759         invocations from here...
14760         * modules/strstr-simple (configure.ac): ... to here.
14761         * modules/strstr (configure.ac): ... and here.
14762
14763 2011-05-22  Bruno Haible  <bruno@clisp.org>
14764
14765         strsignal: Move AC_LIBOBJ invocations to module description.
14766         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14767         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14768         * modules/strsignal (configure.ac): ... to here.
14769         (Depends-on): Update conditions.
14770
14771 2011-05-22  Bruno Haible  <bruno@clisp.org>
14772
14773         strsep: Move AC_LIBOBJ invocations to module description.
14774         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14775         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14776         here...
14777         * modules/strsep (configure.ac): ... to here.
14778
14779 2011-05-22  Bruno Haible  <bruno@clisp.org>
14780
14781         strptime: Move AC_LIBOBJ invocations to module description.
14782         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14783         gl_PREREQ_STRPTIME invocations from here...
14784         * modules/strptime (configure.ac): ... to here.
14785
14786 2011-05-22  Bruno Haible  <bruno@clisp.org>
14787
14788         strpbrk: Move AC_LIBOBJ invocations to module description.
14789         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14790         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14791         here...
14792         * modules/strpbrk (configure.ac): ... to here.
14793
14794 2011-05-22  Bruno Haible  <bruno@clisp.org>
14795
14796         strnlen: Move AC_LIBOBJ invocations to module description.
14797         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14798         invocations from here...
14799         * modules/strnlen (configure.ac): ... to here.
14800
14801 2011-05-22  Bruno Haible  <bruno@clisp.org>
14802
14803         strndup: Move AC_LIBOBJ invocations to module description.
14804         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14805         invocations from here...
14806         * modules/strndup (configure.ac): ... to here.
14807         (Depends-on): Update conditions.
14808
14809 2011-05-22  Bruno Haible  <bruno@clisp.org>
14810
14811         strncat: Move AC_LIBOBJ invocations to module description.
14812         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14813         invocations from here...
14814         * modules/strncat (configure.ac): ... to here.
14815
14816 2011-05-22  Bruno Haible  <bruno@clisp.org>
14817
14818         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14819         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14820         invocations from here...
14821         * modules/strdup (configure.ac): ... to here.
14822         * modules/strdup-posix (configure.ac): ... and here.
14823
14824 2011-05-22  Bruno Haible  <bruno@clisp.org>
14825
14826         strcspn: Move AC_LIBOBJ invocations to module description.
14827         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14828         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14829         here...
14830         * modules/strcspn (configure.ac): ... to here.
14831
14832 2011-05-22  Bruno Haible  <bruno@clisp.org>
14833
14834         strchrnul: Move AC_LIBOBJ invocations to module description.
14835         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14836         gl_PREREQ_STRCHRNUL invocations from here...
14837         * modules/strchrnul (configure.ac): ... to here.
14838
14839 2011-05-22  Bruno Haible  <bruno@clisp.org>
14840
14841         strcasestr*: Move AC_LIBOBJ invocations to module description.
14842         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14843         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14844         * modules/strcasestr-simple (configure.ac): ... to here.
14845         * modules/strcasestr (configure.ac): ... and here.
14846
14847 2011-05-22  Bruno Haible  <bruno@clisp.org>
14848
14849         strcase: Move AC_LIBOBJ invocations to module description.
14850         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14851         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14852         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14853         gl_PREREQ_STRNCASECMP invocations from here...
14854         * modules/strcase (configure.ac): ... to here.
14855
14856 2011-05-22  Bruno Haible  <bruno@clisp.org>
14857
14858         stpncpy: Move AC_LIBOBJ invocations to module description.
14859         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14860         here...
14861         * modules/stpncpy (configure.ac): ... to here.
14862
14863 2011-05-22  Bruno Haible  <bruno@clisp.org>
14864
14865         stpcpy: Move AC_LIBOBJ invocations to module description.
14866         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14867         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14868         here...
14869         * modules/stpcpy (configure.ac): ... to here.
14870
14871 2011-05-21  Bruno Haible  <bruno@clisp.org>
14872
14873         stat: Move AC_LIBOBJ invocations to module description.
14874         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14875         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14876         here...
14877         * modules/stat (configure.ac): ... to here.
14878
14879 2011-05-21  Bruno Haible  <bruno@clisp.org>
14880
14881         sleep: Move AC_LIBOBJ invocations to module description.
14882         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14883         * modules/sleep (configure.ac): ... to here.
14884
14885 2011-05-21  Bruno Haible  <bruno@clisp.org>
14886
14887         signbit: Move AC_LIBOBJ invocations to module description.
14888         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14889         * modules/signbit (configure.ac): ... to here.
14890
14891 2011-05-21  Bruno Haible  <bruno@clisp.org>
14892
14893         sigprocmask: Move AC_LIBOBJ invocations to module description.
14894         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14895         gl_PREREQ_SIGPROMASK invocations from here...
14896         * modules/sigprocmask (configure.ac): ... to here.
14897
14898 2011-05-21  Bruno Haible  <bruno@clisp.org>
14899
14900         sigaction: Move AC_LIBOBJ invocations to module description.
14901         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14902         gl_PREREQ_SIGACTION invocations from here...
14903         * modules/sigaction (configure.ac): ... to here.
14904
14905 2011-05-21  Bruno Haible  <bruno@clisp.org>
14906
14907         sig2str: Move AC_LIBOBJ invocations to module description.
14908         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14909         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14910         here...
14911         * modules/sig2str (configure.ac): ... to here.
14912
14913 2011-05-21  Bruno Haible  <bruno@clisp.org>
14914
14915         setlocale: Move AC_LIBOBJ invocations to module description.
14916         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14917         gl_PREREQ_SETLOCALE invocations from here...
14918         * modules/setlocale (configure.ac): ... to here.
14919
14920 2011-05-21  Bruno Haible  <bruno@clisp.org>
14921
14922         unsetenv: Move AC_LIBOBJ invocations to module description.
14923         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14924         and gl_PREREQ_UNSETENV invocations from here...
14925         * modules/unsetenv (configure.ac): ... to here.
14926         (Depends-on): Update.
14927
14928 2011-05-21  Bruno Haible  <bruno@clisp.org>
14929
14930         setenv: Move AC_LIBOBJ invocations to module description.
14931         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14932         here...
14933         * modules/setenv (configure.ac): ... to here.
14934
14935 2011-05-21  Bruno Haible  <bruno@clisp.org>
14936
14937         selinux-h: Move AC_LIBOBJ invocations to module description.
14938         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14939         AC_LIBOBJ invocation from here...
14940         * modules/selinux-h (configure.ac): ... to here.
14941
14942 2011-05-21  Bruno Haible  <bruno@clisp.org>
14943
14944         select: Respect rules for use of AC_LIBOBJ.
14945         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14946         here...
14947         * modules/select (configure.ac): ... to here.
14948
14949 2011-05-21  Bruno Haible  <bruno@clisp.org>
14950
14951         scandir: Move AC_LIBOBJ invocations to module description.
14952         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14953         invocations from here...
14954         * modules/scandir (configure.ac): ... to here.
14955
14956 2011-05-21  Bruno Haible  <bruno@clisp.org>
14957
14958         rpmatch: Move AC_LIBOBJ invocations to module description.
14959         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14960         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14961         here...
14962         * modules/rpmatch (configure.ac): ... to here.
14963
14964 2011-05-21  Bruno Haible  <bruno@clisp.org>
14965
14966         rmdir: Respect rules for use of AC_LIBOBJ.
14967         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14968         * modules/rmdir (configure.ac): ... to here.
14969
14970 2011-05-21  Bruno Haible  <bruno@clisp.org>
14971
14972         renameat: Move AC_LIBOBJ invocations to module description.
14973         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14974         here...
14975         * modules/renameat (configure.ac): ... to here.
14976
14977 2011-05-21  Bruno Haible  <bruno@clisp.org>
14978
14979         rename: Respect rules for use of AC_LIBOBJ.
14980         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14981         here...
14982         * modules/rename (configure.ac): ... to here.
14983
14984 2011-05-21  Bruno Haible  <bruno@clisp.org>
14985
14986         remove: Move AC_LIBOBJ invocations to module description.
14987         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14988         here...
14989         * modules/remove (configure.ac): ... to here.
14990
14991 2011-05-21  Bruno Haible  <bruno@clisp.org>
14992
14993         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14994         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14995         macro.
14996         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14997         * modules/relocatable-lib (configure.ac): ... to here.
14998         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14999         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
15000
15001 2011-05-21  Bruno Haible  <bruno@clisp.org>
15002
15003         relocatable-prog: Move AC_LIBOBJ invocations to module description.
15004         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
15005         here...
15006         * modules/relocatable-prog (configure.ac): ... to here.
15007
15008 2011-05-21  Bruno Haible  <bruno@clisp.org>
15009
15010         regex: Move AC_LIBOBJ invocations to module description.
15011         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15012         invocations from here...
15013         * modules/regex (configure.ac): ... to here.
15014
15015 2011-05-21  Bruno Haible  <bruno@clisp.org>
15016
15017         realloc-*: Move AC_LIBOBJ invocations to module description.
15018         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15019         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15020         AC_LIBOBJ invocations from here...
15021         * modules/realloc-gnu (configure.ac): ... to here.
15022         * modules/realloc-posix (configure.ac): ... and here.
15023
15024 2011-05-21  Bruno Haible  <bruno@clisp.org>
15025
15026         readutmp: Move AC_LIBOBJ invocations to module description.
15027         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15028         * modules/readutmp (configure.ac): ... to here.
15029
15030 2011-05-21  Bruno Haible  <bruno@clisp.org>
15031
15032         readlinkat: Move AC_LIBOBJ invocations to module description.
15033         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15034         here...
15035         * modules/readlinkat (configure.ac): ... to here.
15036
15037 2011-05-21  Bruno Haible  <bruno@clisp.org>
15038
15039         readlink: Move AC_LIBOBJ invocations to module description.
15040         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15041         gl_PREREQ_READLINK invocations from here...
15042         * modules/readlink (configure.ac): ... to here.
15043
15044 2011-05-21  Bruno Haible  <bruno@clisp.org>
15045
15046         readline: Move AC_LIBOBJ invocations to module description.
15047         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15048         gl_PREREQ_READLINE invocations from here...
15049         * modules/readline (configure.ac): ... to here.
15050
15051 2011-05-21  Bruno Haible  <bruno@clisp.org>
15052
15053         read: Move AC_LIBOBJ invocations to module description.
15054         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15055         * modules/read (configure.ac): ... to here.
15056
15057 2011-05-21  Bruno Haible  <bruno@clisp.org>
15058
15059         rawmemchr: Move AC_LIBOBJ invocations to module description.
15060         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15061         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15062         from here...
15063         * modules/rawmemchr (configure.ac): ... to here.
15064
15065 2011-05-21  Bruno Haible  <bruno@clisp.org>
15066
15067         random_r: Move AC_LIBOBJ invocations to module description.
15068         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15069         gl_PREREQ_RANDOM_R invocations from here...
15070         * modules/random_r (configure.ac): ... to here.
15071
15072 2011-05-21  Bruno Haible  <bruno@clisp.org>
15073
15074         pwrite: Move AC_LIBOBJ invocations to module description.
15075         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15076         * modules/pwrite (configure.ac): ... to here.
15077
15078 2011-05-21  Bruno Haible  <bruno@clisp.org>
15079
15080         putenv: Move AC_LIBOBJ invocations to module description.
15081         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15082         * modules/putenv (configure.ac): ... to here.
15083
15084 2011-05-21  Bruno Haible  <bruno@clisp.org>
15085
15086         login_tty: Move AC_LIBOBJ invocations to module description.
15087         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15088         * modules/login_tty (configure.ac): ... to here.
15089
15090 2011-05-21  Bruno Haible  <bruno@clisp.org>
15091
15092         openpty: Move AC_LIBOBJ invocations to module description.
15093         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15094         * modules/openpty (configure.ac): ... to here.
15095
15096 2011-05-21  Bruno Haible  <bruno@clisp.org>
15097
15098         forkpty: Move AC_LIBOBJ invocations to module description.
15099         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15100         * modules/forkpty (configure.ac): ... to here.
15101
15102 2011-05-21  Bruno Haible  <bruno@clisp.org>
15103
15104         ptsname: Move AC_LIBOBJ invocations to module description.
15105         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15106         invocations from here...
15107         * modules/ptsname (configure.ac): ... to here.
15108
15109 2011-05-21  Bruno Haible  <bruno@clisp.org>
15110
15111         pread: Move AC_LIBOBJ invocations to module description.
15112         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15113         * modules/pread (configure.ac): ... to here.
15114
15115 2011-05-21  Bruno Haible  <bruno@clisp.org>
15116
15117         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15118         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15119         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15120         * modules/posix_spawn (configure.ac): ... to here.
15121         * modules/posix_spawnp (configure.ac): ... and here.
15122
15123 2011-05-21  Bruno Haible  <bruno@clisp.org>
15124
15125         popen: Move AC_LIBOBJ invocations to module description.
15126         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15127         invocations from here...
15128         * modules/popen (configure.ac): ... to here.
15129
15130 2011-05-21  Bruno Haible  <bruno@clisp.org>
15131
15132         poll: Move AC_LIBOBJ invocations to module description.
15133         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15134         invocations from here...
15135         * modules/poll (configure.ac): ... to here.
15136
15137 2011-05-21  Bruno Haible  <bruno@clisp.org>
15138
15139         pipe-posix: Move AC_LIBOBJ invocations to module description.
15140         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15141         * modules/pipe-posix (configure.ac): ... to here.
15142
15143 2011-05-21  Bruno Haible  <bruno@clisp.org>
15144
15145         openat: Respect rules for use of AC_LIBOBJ.
15146         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15147         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15148         * modules/openat (configure.ac): ... to here.
15149
15150 2011-05-21  Bruno Haible  <bruno@clisp.org>
15151
15152         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15153         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15154         invocation from here...
15155         * modules/obstack-printf (configure.ac): ... to here.
15156         * modules/obstack-printf-posix (configure.ac): ... and here.
15157
15158 2011-05-21  Bruno Haible  <bruno@clisp.org>
15159
15160         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15161         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15162         from here...
15163         * modules/nl_langinfo (configure.ac): ... to here.
15164
15165 2011-05-21  Bruno Haible  <bruno@clisp.org>
15166
15167         nanosleep: Move AC_LIBOBJ invocations to module description.
15168         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15169         gl_PREREQ_NANOSLEEP invocations from here...
15170         * modules/nanosleep (configure.ac): ... to here.
15171
15172 2011-05-21  Bruno Haible  <bruno@clisp.org>
15173
15174         mountlist: Move AC_LIBOBJ invocations to module description.
15175         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15176         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15177         * modules/mountlist (configure.ac): ... to here.
15178
15179 2011-05-21  Bruno Haible  <bruno@clisp.org>
15180
15181         mktime: Respect rules for use of AC_LIBOBJ.
15182         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15183         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15184         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15185         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15186         * modules/mktime (configure.ac): ... to here.
15187         * modules/mktime-internal (configure.ac): ... and here.
15188         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15189
15190 2011-05-21  Bruno Haible  <bruno@clisp.org>
15191
15192         mkstemps: Move AC_LIBOBJ invocations to module description.
15193         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15194         here...
15195         * modules/mkstemps (configure.ac): ... to here.
15196
15197 2011-05-21  Bruno Haible  <bruno@clisp.org>
15198
15199         mkstemp: Move AC_LIBOBJ invocations to module description.
15200         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15201         gl_PREREQ_MKSTEMP invocations from here...
15202         * modules/mkstemp (configure.ac): ... to here.
15203
15204 2011-05-21  Bruno Haible  <bruno@clisp.org>
15205
15206         mkostemps: Move AC_LIBOBJ invocations to module description.
15207         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15208         here...
15209         * modules/mkostemps (configure.ac): ... to here.
15210
15211 2011-05-21  Bruno Haible  <bruno@clisp.org>
15212
15213         mkostemp: Move AC_LIBOBJ invocations to module description.
15214         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15215         gl_PREREQ_MKOSTEMP invocations from here...
15216         * modules/mkostemp (configure.ac): ... to here.
15217
15218 2011-05-21  Bruno Haible  <bruno@clisp.org>
15219
15220         mknod: Move AC_LIBOBJ invocations to module description.
15221         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15222         * modules/mknod (configure.ac): ... to here.
15223
15224 2011-05-21  Bruno Haible  <bruno@clisp.org>
15225
15226         mkfifoat: Move AC_LIBOBJ invocations to module description.
15227         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15228         here...
15229         * modules/mkfifoat (configure.ac): ... to here.
15230
15231 2011-05-21  Bruno Haible  <bruno@clisp.org>
15232
15233         mkfifo: Respect rules for use of AC_LIBOBJ.
15234         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15235         here...
15236         * modules/mkfifo (configure.ac): ... to here.
15237
15238 2011-05-21  Bruno Haible  <bruno@clisp.org>
15239
15240         mkdtemp: Move AC_LIBOBJ invocations to module description.
15241         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15242         invocations from here...
15243         * modules/mkdtemp (configure.ac): ... to here.
15244
15245 2011-05-21  Bruno Haible  <bruno@clisp.org>
15246
15247         mkdir: Move AC_LIBOBJ invocations to module description.
15248         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15249         * modules/mkdir (configure.ac): ... to here.
15250
15251 2011-05-21  Bruno Haible  <bruno@clisp.org>
15252
15253         memset: Move AC_LIBOBJ invocations to module description.
15254         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15255         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15256         here...
15257         * modules/memset (configure.ac): ... to here.
15258
15259 2011-05-21  Bruno Haible  <bruno@clisp.org>
15260
15261         memrchr: Move AC_LIBOBJ invocations to module description.
15262         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15263         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15264         here...
15265         * modules/memrchr (configure.ac): ... to here.
15266
15267 2011-05-21  Bruno Haible  <bruno@clisp.org>
15268
15269         mempcpy: Move AC_LIBOBJ invocations to module description.
15270         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15271         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15272         here...
15273         * modules/mempcpy (configure.ac): ... to here.
15274
15275 2011-05-21  Bruno Haible  <bruno@clisp.org>
15276
15277         memmove: Move AC_LIBOBJ invocations to module description.
15278         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15279         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15280         here...
15281         * modules/memmove (configure.ac): ... to here.
15282
15283 2011-05-21  Bruno Haible  <bruno@clisp.org>
15284
15285         memmem*: Move AC_LIBOBJ invocations to module description.
15286         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15287         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15288         here...
15289         (gl_FUNC_MEMMEM): ... and here...
15290         * modules/memmem-simple (configure.ac): ... to here.
15291         * modules/memmem (configure.ac): ... and here.
15292
15293 2011-05-21  Bruno Haible  <bruno@clisp.org>
15294
15295         memcpy: Move AC_LIBOBJ invocations to module description.
15296         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15297         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15298         here...
15299         * modules/memcpy (configure.ac): ... to here.
15300
15301 2011-05-21  Bruno Haible  <bruno@clisp.org>
15302
15303         memcmp: Simplify autoconf macro.
15304         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15305         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15306         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15307
15308 2011-05-21  Bruno Haible  <bruno@clisp.org>
15309
15310         memcmp: Move AC_LIBOBJ invocations to module description.
15311         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15312         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15313         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15314         * modules/memcmp (configure.ac): ... to here.
15315         (Depends-on): Update conditions.
15316
15317 2011-05-21  Bruno Haible  <bruno@clisp.org>
15318
15319         memchr: Respect rules for use of AC_LIBOBJ.
15320         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15321         invocations from here...
15322         * modules/memchr (configure.ac): ... to here.
15323
15324 2011-05-21  Bruno Haible  <bruno@clisp.org>
15325
15326         mbtowc: Move AC_LIBOBJ invocations to module description.
15327         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15328         invocations from here...
15329         * modules/mbtowc (configure.ac): ... to here.
15330
15331 2011-05-21  Bruno Haible  <bruno@clisp.org>
15332
15333         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15334         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15335         gl_PREREQ_MBSRTOWCS invocations from here...
15336         * modules/mbsrtowcs (configure.ac): ... to here.
15337
15338 2011-05-21  Bruno Haible  <bruno@clisp.org>
15339
15340         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15341         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15342         gl_PREREQ_MBSNRTOWCS invocations from here...
15343         * modules/mbsnrtowcs (configure.ac): ... to here.
15344
15345 2011-05-21  Bruno Haible  <bruno@clisp.org>
15346
15347         mbsinit: Move AC_LIBOBJ invocations to module description.
15348         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15349         invocations from here...
15350         * modules/mbsinit (configure.ac): ... to here.
15351
15352 2011-05-21  Bruno Haible  <bruno@clisp.org>
15353
15354         mbrlen: Move AC_LIBOBJ invocations to module description.
15355         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15356         invocations from here...
15357         * modules/mbrlen (configure.ac): ... to here.
15358
15359 2011-05-21  Bruno Haible  <bruno@clisp.org>
15360
15361         mbrtowc: Respect rules for use of AC_LIBOBJ.
15362         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15363         invocations from here...
15364         * modules/mbrtowc (configure.ac): ... to here.
15365
15366 2011-05-21  Bruno Haible  <bruno@clisp.org>
15367
15368         malloc-*: Move AC_LIBOBJ invocations to module description.
15369         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15370         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15371         AC_LIBOBJ invocations from here...
15372         * modules/malloc-gnu (configure.ac): ... to here.
15373         * modules/malloc-posix (configure.ac): ... and here.
15374
15375 2011-05-21  Bruno Haible  <bruno@clisp.org>
15376
15377         lstat, openat: Respect rules for use of AC_LIBOBJ.
15378         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15379         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15380         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15381         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15382         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15383         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15384         here.
15385         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15386
15387 2011-05-21  Bruno Haible  <bruno@clisp.org>
15388
15389         lseek: Move AC_LIBOBJ invocations to module description.
15390         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15391         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15392         * modules/lseek (configure.ac): ... to here.
15393
15394 2011-05-21  Bruno Haible  <bruno@clisp.org>
15395
15396         linkat: Move AC_LIBOBJ invocations to module description.
15397         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15398         here...
15399         * modules/linkat (configure.ac): ... to here.
15400
15401 2011-05-21  Bruno Haible  <bruno@clisp.org>
15402
15403         link: Respect rules for use of AC_LIBOBJ.
15404         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15405         * modules/link (configure.ac): ... to here.
15406
15407 2011-05-21  Bruno Haible  <bruno@clisp.org>
15408
15409         lchown: Move AC_LIBOBJ invocations to module description.
15410         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15411         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15412         * modules/lchown (configure.ac): ... to here.
15413
15414 2011-05-21  Bruno Haible  <bruno@clisp.org>
15415
15416         iswctype: Move AC_LIBOBJ invocations to module description.
15417         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15418         here...
15419         * modules/iswctype (configure.ac): ... to here.
15420
15421 2011-05-21  Bruno Haible  <bruno@clisp.org>
15422
15423         iswblank: Move AC_LIBOBJ invocations to module description.
15424         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15425         here...
15426         * modules/iswblank (configure.ac): ... to here.
15427
15428 2011-05-21  Bruno Haible  <bruno@clisp.org>
15429
15430         atanl: Move AC_LIBOBJ invocations to module description.
15431         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15432         * modules/atanl (configure.ac): ... to here.
15433
15434 2011-05-21  Bruno Haible  <bruno@clisp.org>
15435
15436         acosl: Move AC_LIBOBJ invocations to module description.
15437         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15438         * modules/acosl (configure.ac): ... to here.
15439
15440 2011-05-21  Bruno Haible  <bruno@clisp.org>
15441
15442         asinl: Respect rules for use of AC_LIBOBJ.
15443         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15444         * modules/asinl (configure.ac): ... to here.
15445
15446 2011-05-21  Bruno Haible  <bruno@clisp.org>
15447
15448         tanl: Move AC_LIBOBJ invocations to module description.
15449         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15450         * modules/tanl (configure.ac): ... to here.
15451
15452 2011-05-21  Bruno Haible  <bruno@clisp.org>
15453
15454         cosl: Move AC_LIBOBJ invocations to module description.
15455         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15456         * modules/cosl (configure.ac): ... to here.
15457
15458 2011-05-21  Bruno Haible  <bruno@clisp.org>
15459
15460         sinl: Move AC_LIBOBJ invocations to module description.
15461         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15462         * modules/sinl (configure.ac): ... to here.
15463
15464 2011-05-21  Bruno Haible  <bruno@clisp.org>
15465
15466         logl: Move AC_LIBOBJ invocations to module description.
15467         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15468         * modules/logl (configure.ac): ... to here.
15469
15470 2011-05-21  Bruno Haible  <bruno@clisp.org>
15471
15472         expl: Move AC_LIBOBJ invocations to module description.
15473         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15474         * modules/expl (configure.ac): ... to here.
15475
15476 2011-05-21  Bruno Haible  <bruno@clisp.org>
15477
15478         roundl: Move AC_LIBOBJ invocations to module description.
15479         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15480         * modules/roundl (configure.ac): ... to here.
15481
15482 2011-05-21  Bruno Haible  <bruno@clisp.org>
15483
15484         round: Move AC_LIBOBJ invocations to module description.
15485         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15486         * modules/round (configure.ac): ... to here.
15487
15488 2011-05-21  Bruno Haible  <bruno@clisp.org>
15489
15490         roundf: Move AC_LIBOBJ invocations to module description.
15491         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15492         * modules/roundf (configure.ac): ... to here.
15493
15494 2011-05-21  Bruno Haible  <bruno@clisp.org>
15495
15496         truncl: Move AC_LIBOBJ invocations to module description.
15497         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15498         * modules/truncl (configure.ac): ... to here.
15499
15500 2011-05-21  Bruno Haible  <bruno@clisp.org>
15501
15502         trunc: Move AC_LIBOBJ invocations to module description.
15503         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15504         * modules/trunc (configure.ac): ... to here.
15505
15506 2011-05-21  Bruno Haible  <bruno@clisp.org>
15507
15508         truncf: Move AC_LIBOBJ invocations to module description.
15509         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15510         * modules/truncf (configure.ac): ... to here.
15511
15512 2011-05-21  Bruno Haible  <bruno@clisp.org>
15513
15514         ceill: Move AC_LIBOBJ invocations to module description.
15515         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15516         * modules/ceill (configure.ac): ... to here.
15517
15518 2011-05-21  Bruno Haible  <bruno@clisp.org>
15519
15520         ceil: Move AC_LIBOBJ invocations to module description.
15521         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15522         * modules/ceil (configure.ac): ... to here.
15523
15524 2011-05-21  Bruno Haible  <bruno@clisp.org>
15525
15526         ceilf: Move AC_LIBOBJ invocations to module description.
15527         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15528         * modules/ceilf (configure.ac): ... to here.
15529
15530 2011-05-21  Bruno Haible  <bruno@clisp.org>
15531
15532         floorl: Respect rules for use of AC_LIBOBJ.
15533         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15534         * modules/floorl (configure.ac): ... to here.
15535
15536 2011-05-21  Bruno Haible  <bruno@clisp.org>
15537
15538         floor: Respect rules for use of AC_LIBOBJ.
15539         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15540         * modules/floor (configure.ac): ... to here.
15541
15542 2011-05-21  Bruno Haible  <bruno@clisp.org>
15543
15544         floorf: Move AC_LIBOBJ invocations to module description.
15545         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15546         * modules/floorf (configure.ac): ... to here.
15547
15548 2011-05-20  Bruno Haible  <bruno@clisp.org>
15549
15550         sqrtl: Respect rules for use of AC_LIBOBJ.
15551         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15552         * modules/sqrtl (configure.ac): ... to here.
15553
15554 2011-05-20  Bruno Haible  <bruno@clisp.org>
15555
15556         ldexpl: Respect rules for use of AC_LIBOBJ.
15557         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15558         * modules/ldexpl (configure.ac): ... to here.
15559
15560 2011-05-20  Bruno Haible  <bruno@clisp.org>
15561
15562         frexpl*: Respect rules for use of AC_LIBOBJ.
15563         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15564         invocation from here...
15565         * modules/frexpl (configure.ac): ... to here.
15566         * modules/frexpl-nolibm (configure.ac): ... and here.
15567
15568 2011-05-20  Bruno Haible  <bruno@clisp.org>
15569
15570         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15571         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15572         invocation from here...
15573         * modules/frexp (configure.ac): ... to here.
15574         * modules/frexp-nolibm (configure.ac): ... and here.
15575
15576 2011-05-20  Bruno Haible  <bruno@clisp.org>
15577
15578         isnan: Respect rules for use of AC_LIBOBJ.
15579         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15580         invocations here.
15581         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15582         REPLACE_ISNAN.
15583         * modules/isnand (configure.ac): Likewise.
15584         * modules/isnanl (configure.ac): Likewise.
15585
15586 2011-05-20  Bruno Haible  <bruno@clisp.org>
15587
15588         isnanl*: Respect rules for use of AC_LIBOBJ.
15589         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15590         invocation from here...
15591         * modules/isnanl (configure.ac): ... to here.
15592         * modules/isnanl-nolibm (configure.ac): ... and here.
15593
15594 2011-05-20  Bruno Haible  <bruno@clisp.org>
15595
15596         isnand*: Move AC_LIBOBJ invocations to module description.
15597         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15598         invocation from here...
15599         * modules/isnand (configure.ac): ... to here.
15600         * modules/isnand-nolibm (configure.ac): ... and here.
15601
15602 2011-05-20  Bruno Haible  <bruno@clisp.org>
15603
15604         isnanf*: Move AC_LIBOBJ invocations to module description.
15605         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15606         invocation from here...
15607         * modules/isnanf (configure.ac): ... to here.
15608         * modules/isnanf-nolibm (configure.ac): ... and here.
15609
15610 2011-05-20  Bruno Haible  <bruno@clisp.org>
15611
15612         isnan*: Separate the AC_LIBOBJ invocations.
15613         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15614         AC_LIBOBJ invocation.
15615         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15616         here.
15617         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15618         AC_LIBOBJ invocation.
15619         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15620         here.
15621         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15622         AC_LIBOBJ invocation.
15623         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15624         here.
15625         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15626
15627 2011-05-08  Bruno Haible  <bruno@clisp.org>
15628
15629         isinf: Move AC_LIBOBJ invocations to module description.
15630         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15631         * modules/isinf (configure.ac): ... to here.
15632
15633 2011-05-08  Bruno Haible  <bruno@clisp.org>
15634
15635         isfinite: Move AC_LIBOBJ invocations to module description.
15636         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15637         * modules/isfinite (configure.ac): ... to here.
15638
15639 2011-05-08  Bruno Haible  <bruno@clisp.org>
15640
15641         isblank: Move AC_LIBOBJ invocations to module description.
15642         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15643         here...
15644         * modules/isblank (configure.ac): ... to here.
15645
15646 2011-05-08  Bruno Haible  <bruno@clisp.org>
15647
15648         isapipe: Move AC_LIBOBJ invocations to module description.
15649         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15650         gl_PREREQ_ISAPIPE invocations from here...
15651         * modules/isapipe (configure.ac): ... to here.
15652         (Depends-on): Update condition.
15653
15654 2011-05-08  Bruno Haible  <bruno@clisp.org>
15655
15656         ioctl: Move AC_LIBOBJ invocations to module description.
15657         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15658         invocations from here...
15659         * modules/ioctl (configure.ac): ... to here.
15660         (Depends-on): Update condition.
15661
15662 2011-05-08  Bruno Haible  <bruno@clisp.org>
15663
15664         imaxdiv: Move AC_LIBOBJ invocations to module description.
15665         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15666         invocations from here...
15667         * modules/imaxdiv (configure.ac): ... to here.
15668
15669 2011-05-08  Bruno Haible  <bruno@clisp.org>
15670
15671         imaxabs: Move AC_LIBOBJ invocations to module description.
15672         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15673         invocations from here...
15674         * modules/imaxabs (configure.ac): ... to here.
15675
15676 2011-05-08  Bruno Haible  <bruno@clisp.org>
15677
15678         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15680         AC_LIBOBJ invocations from here...
15681         * modules/getaddrinfo (configure.ac): ... to here.
15682         (Depends-on): Add conditions.
15683
15684 2011-05-08  Bruno Haible  <bruno@clisp.org>
15685
15686         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15687         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15688         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15689         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15690         (gl_PREREQ_INET_PTON): ... from here.
15691         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15692         gl_PREREQ_INET_PTON here.
15693         (Depends-on): Update condition.
15694
15695 2011-05-08  Bruno Haible  <bruno@clisp.org>
15696
15697         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15698         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15699         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15700         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15701         (gl_PREREQ_INET_NTOP): ... from here.
15702         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15703         gl_PREREQ_INET_NTOP here.
15704         (Depends-on): Update condition.
15705
15706 2011-05-08  Bruno Haible  <bruno@clisp.org>
15707
15708         iconv_open: Move AC_LIBOBJ invocations to module description.
15709         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15710         AC_LIBOBJ invocations from here...
15711         * modules/iconv_open (configure.ac): ... to here.
15712
15713 2011-05-08  Bruno Haible  <bruno@clisp.org>
15714
15715         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15716         If module 'iconv_open' is among the main modules and module
15717         'iconv_open-utf' is among the tests dependencies, then
15718         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15719         return the special iconv_t values. Therefore iconv() and iconv_close()
15720         must support these special iconv_t values, already in lib, not only in
15721         tests.
15722         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15723         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15724         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15725         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15726         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15727         (Depends-on): Add the dependencies of iconv_open-utf.
15728         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15729         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15730         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15731
15732 2011-05-08  Bruno Haible  <bruno@clisp.org>
15733
15734         group-member: Move AC_LIBOBJ invocations to module description.
15735         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15736         gl_PREREQ_GROUP_MEMBER invocations from here...
15737         * modules/group-member (configure.ac): ... to here.
15738
15739 2011-05-08  Bruno Haible  <bruno@clisp.org>
15740
15741         grantpt: Move AC_LIBOBJ invocations to module description.
15742         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15743         invocations from here...
15744         * modules/grantpt (configure.ac): ... to here.
15745
15746 2011-05-08  Bruno Haible  <bruno@clisp.org>
15747
15748         glob: Move AC_LIBOBJ invocations to module description.
15749         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15750         from here...
15751         * modules/glob (configure.ac): ... to here.
15752
15753 2011-05-08  Bruno Haible  <bruno@clisp.org>
15754
15755         getusershell: Move AC_LIBOBJ invocations to module description.
15756         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15757         Move AC_LIBOBJ invocation from here...
15758         * modules/getusershell (configure.ac): ... to here.
15759         (Depends-on): Update condition.
15760
15761 2011-05-08  Bruno Haible  <bruno@clisp.org>
15762
15763         gettimeofday: Move AC_LIBOBJ invocations to module description.
15764         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15765         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15766         gl_PREREQ_GETTIMEOFDAY invocations from here...
15767         * modules/gettimeofday (configure.ac): ... to here.
15768
15769 2011-05-08  Bruno Haible  <bruno@clisp.org>
15770
15771         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15772         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15773         just gl_FUNC_TZSET.
15774         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15775         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15776         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15777         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15778
15779 2011-05-08  Bruno Haible  <bruno@clisp.org>
15780
15781         getsubopt: Move AC_LIBOBJ invocations to module description.
15782         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15783         gl_PREREQ_GETSUBOPT invocations from here...
15784         * modules/getsubopt (configure.ac): ... to here.
15785
15786 2011-05-08  Bruno Haible  <bruno@clisp.org>
15787
15788         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15789         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15790         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15791         * modules/getpass-gnu (configure.ac): ... to here.
15792
15793 2011-05-08  Bruno Haible  <bruno@clisp.org>
15794
15795         getpass: Move AC_LIBOBJ invocations to module description.
15796         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15797         gl_PREREQ_GETPASS invocations from here...
15798         * modules/getpass (configure.ac): ... to here.
15799
15800 2011-05-08  Bruno Haible  <bruno@clisp.org>
15801
15802         getpagesize: Move AC_LIBOBJ invocations to module description.
15803         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15804         from here...
15805         * modules/getpagesize (configure.ac): ... to here.
15806
15807 2011-05-08  Bruno Haible  <bruno@clisp.org>
15808
15809         getopt: Move AC_LIBOBJ invocations to module description.
15810         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15811         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15812         invocations from here...
15813         * modules/getopt-gnu (configure.ac): ... to here.
15814         * modules/getopt-posix (configure.ac): ... and here.
15815         (Depends-on): Update condition.
15816
15817 2011-05-08  Bruno Haible  <bruno@clisp.org>
15818
15819         getopt, argp: Respect rules for use of AC_LIBOBJ.
15820         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15821         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15822         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15823         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15824
15825 2011-05-08  Bruno Haible  <bruno@clisp.org>
15826
15827         getlogin_r: Move AC_LIBOBJ invocations to module description.
15828         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15829         gl_PREREQ_GETLOGIN_R invocations from here...
15830         * modules/getlogin_r (configure.ac): ... to here.
15831
15832 2011-05-08  Bruno Haible  <bruno@clisp.org>
15833
15834         getlogin: Move AC_LIBOBJ invocations to module description.
15835         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15836         here...
15837         * modules/getlogin (configure.ac): ... to here.
15838
15839 2011-05-08  Bruno Haible  <bruno@clisp.org>
15840
15841         getloadavg: Move AC_LIBOBJ invocations to module description.
15842         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15843         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15844         * modules/getloadavg (configure.ac): ... to here.
15845
15846 2011-05-08  Bruno Haible  <bruno@clisp.org>
15847
15848         gethrxtime: Move AC_LIBOBJ invocations to module description.
15849         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15850         LIB_GETHRXTIME from here...
15851         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15852         invocations from here...
15853         * modules/gethrxtime (configure.ac): ... to here.
15854
15855 2011-05-08  Bruno Haible  <bruno@clisp.org>
15856
15857         gethostname: Move AC_LIBOBJ invocations to module description.
15858         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15859         gl_PREREQ_GETHOSTNAME invocations from here...
15860         * modules/gethostname (configure.ac): ... to here.
15861
15862 2011-05-08  Bruno Haible  <bruno@clisp.org>
15863
15864         getgroups: Move AC_LIBOBJ invocations to module description.
15865         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15866         here...
15867         * modules/getgroups (configure.ac): ... to here.
15868
15869 2011-05-08  Bruno Haible  <bruno@clisp.org>
15870
15871         getdtablesize: Move AC_LIBOBJ invocations to module description.
15872         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15873         invocation from here...
15874         * modules/getdtablesize (configure.ac): ... to here.
15875
15876 2011-05-08  Bruno Haible  <bruno@clisp.org>
15877
15878         getdomainname: Move AC_LIBOBJ invocations to module description.
15879         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15880         gl_PREREQ_GETDOMAINNAME invocations from here...
15881         * modules/getdomainname (configure.ac): ... to here.
15882
15883 2011-05-08  Bruno Haible  <bruno@clisp.org>
15884
15885         getline: Move AC_LIBOBJ invocations to module description.
15886         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15887         invocations from here...
15888         * modules/getline (configure.ac): ... to here.
15889
15890 2011-05-08  Bruno Haible  <bruno@clisp.org>
15891
15892         getline: Simplify.
15893         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15894         It's already handled through the module dependency.
15895
15896 2011-05-08  Bruno Haible  <bruno@clisp.org>
15897
15898         getdelim: Move AC_LIBOBJ invocations to module description.
15899         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15900         and gl_PREREQ_GETDELIM invocations from here...
15901         * modules/getdelim (configure.ac): ... to here.
15902         (Depends-on): Fix condition.
15903
15904 2011-05-08  Bruno Haible  <bruno@clisp.org>
15905
15906         getcwd: Move AC_LIBOBJ invocations to module description.
15907         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15908         invocations from here...
15909         * modules/getcwd (configure.ac): ... to here.
15910
15911 2011-05-08  Bruno Haible  <bruno@clisp.org>
15912
15913         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15914         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15915         here...
15916         * modules/getcwd-lgpl (configure.ac): ... to here.
15917
15918 2011-05-07  Bruno Haible  <bruno@clisp.org>
15919
15920         crypto/gc: Move AC_LIBOBJ invocations to module description.
15921         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15922         * modules/crypto/gc (configure.ac): ... to here.
15923
15924 2011-05-07  Bruno Haible  <bruno@clisp.org>
15925
15926         fwriting: Move AC_LIBOBJ invocations to module description.
15927         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15928         here...
15929         * modules/fwriting (configure.ac): ... to here.
15930
15931 2011-05-07  Bruno Haible  <bruno@clisp.org>
15932
15933         fwritable: Move AC_LIBOBJ invocations to module description.
15934         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15935         here...
15936         * modules/fwritable (configure.ac): ... to here.
15937
15938 2011-05-07  Bruno Haible  <bruno@clisp.org>
15939
15940         futimens: Move AC_LIBOBJ invocations to module description.
15941         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15942         here...
15943         * modules/futimens (configure.ac): ... to here.
15944
15945 2011-05-07  Bruno Haible  <bruno@clisp.org>
15946
15947         ftruncate: Move AC_LIBOBJ invocations to module description.
15948         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15949         gl_PREREQ_FTRUNCATE invocations from here...
15950         * modules/ftruncate (configure.ac): ... to here.
15951
15952 2011-05-07  Bruno Haible  <bruno@clisp.org>
15953
15954         fsync: Move AC_LIBOBJ invocations to module description.
15955         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15956         invocations from here...
15957         * modules/fsync (configure.ac): ... to here.
15958
15959 2011-05-07  Bruno Haible  <bruno@clisp.org>
15960
15961         fsusage: Move AC_LIBOBJ invocations to module description.
15962         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15963         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15964         * modules/fsusage (configure.ac): ... to here.
15965
15966 2011-05-07  Bruno Haible  <bruno@clisp.org>
15967
15968         freopen: Move AC_LIBOBJ invocations to module description.
15969         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15970         invocations from here...
15971         * modules/freopen (configure.ac): ... to here.
15972
15973 2011-05-07  Bruno Haible  <bruno@clisp.org>
15974
15975         free: Move AC_LIBOBJ invocations to module description.
15976         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15977         invocations from here...
15978         * modules/free (configure.ac): ... to here.
15979
15980 2011-05-07  Bruno Haible  <bruno@clisp.org>
15981
15982         freadable: Move AC_LIBOBJ invocations to module description.
15983         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15984         here...
15985         * modules/freadable (configure.ac): ... to here.
15986
15987 2011-05-07  Bruno Haible  <bruno@clisp.org>
15988
15989         fpurge: Move AC_LIBOBJ invocations to module description.
15990         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15991         invocations from here...
15992         * modules/fpurge (configure.ac): ... to here.
15993
15994 2011-05-07  Bruno Haible  <bruno@clisp.org>
15995
15996         fpending: Move AC_LIBOBJ invocations to module description.
15997         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15998         gl_FUNC_FPENDING.
15999         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
16000         invocations from here...
16001         * modules/fpending (configure.ac): ... to here.
16002
16003 2011-05-07  Bruno Haible  <bruno@clisp.org>
16004
16005         fopen: Move AC_LIBOBJ invocations to module description.
16006         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
16007         invocations from here...
16008         * modules/fopen (configure.ac): ... to here.
16009
16010 2011-05-07  Bruno Haible  <bruno@clisp.org>
16011
16012         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16013         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16014         gl_FUNC_FNMATCH_POSIX.
16015         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16016         invocations from here...
16017         * modules/fnmatch (configure.ac): ... to here.
16018         * modules/fnmatch-gnu (configure.ac): ... and here.
16019
16020 2011-05-07  Bruno Haible  <bruno@clisp.org>
16021
16022         flock: Move AC_LIBOBJ invocations to module description.
16023         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16024         invocations from here...
16025         * modules/flock (configure.ac): ... to here.
16026
16027 2011-05-07  Bruno Haible  <bruno@clisp.org>
16028
16029         fileblocks: Move AC_LIBOBJ invocations to module description.
16030         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16031         gl_PREREQ_FILEBLOCKS invocations from here...
16032         * modules/fileblocks (configure.ac): ... to here.
16033
16034 2011-05-06  Bruno Haible  <bruno@clisp.org>
16035
16036         fflush: Move AC_LIBOBJ invocations to module description.
16037         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16038         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16039         invocations from here...
16040         * modules/fflush (configure.ac): ... to here.
16041
16042 2011-05-06  Bruno Haible  <bruno@clisp.org>
16043
16044         fdopendir: Move AC_LIBOBJ invocations to module description.
16045         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16046         here...
16047         * modules/fdopendir (configure.ac): ... to here.
16048         (Depends-on): Improve conditions.
16049
16050 2011-05-06  Bruno Haible  <bruno@clisp.org>
16051
16052         _Exit: Move AC_LIBOBJ invocations to module description.
16053         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16054         invocations from here...
16055         * modules/_Exit (configure.ac): ... to here.
16056
16057 2011-05-21  Bruno Haible  <bruno@clisp.org>
16058
16059         euidaccess: Respect rules for use of AC_LIBOBJ.
16060         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16061         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16062         from here...
16063         * modules/euidaccess (configure.ac): ... to here.
16064
16065 2011-05-06  Bruno Haible  <bruno@clisp.org>
16066
16067         error: Move AC_LIBOBJ invocations to module description.
16068         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16069         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16070         invocations from here...
16071         * modules/error (configure.ac): ... to here.
16072
16073 2011-05-06  Bruno Haible  <bruno@clisp.org>
16074
16075         duplocale: Move AC_LIBOBJ invocations to module description.
16076         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16077         gl_PREREQ_DUPLOCALE invocations from here...
16078         * modules/duplocale (configure.ac): ... to here.
16079
16080 2011-05-05  Bruno Haible  <bruno@clisp.org>
16081
16082         dirfd: Move AC_LIBOBJ invocations to module description.
16083         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16084         gl_FUNC_DIRFD.
16085         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16086         here...
16087         * modules/dirfd (configure.ac): ... to here.
16088         (Depends-on): Fix condition.
16089
16090 2011-05-05  Bruno Haible  <bruno@clisp.org>
16091
16092         chown: Respect rules for use of AC_LIBOBJ.
16093         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16094         * modules/chown (configure.ac): ... to here.
16095
16096 2011-05-05  Bruno Haible  <bruno@clisp.org>
16097
16098         chdir-long: Move AC_LIBOBJ invocations to module description.
16099         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16100         gl_PREREQ_CHDIR_LONG invocations from here...
16101         * modules/chdir-long (configure.ac): ... to here.
16102
16103 2011-05-05  Bruno Haible  <bruno@clisp.org>
16104
16105         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16106         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16107         from here...
16108         * modules/canonicalize-lgpl (configure.ac): ... to here.
16109
16110 2011-05-05  Bruno Haible  <bruno@clisp.org>
16111
16112         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16113         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16114         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16115         REPLACE_CALLOC.
16116         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16117         * modules/calloc-gnu (configure.ac): Likewise.
16118
16119 2011-05-05  Bruno Haible  <bruno@clisp.org>
16120
16121         btowc: Move AC_LIBOBJ invocations to module description.
16122         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16123         invocations from here...
16124         * modules/btowc (configure.ac): ... to here.
16125
16126 2011-05-21  Bruno Haible  <bruno@clisp.org>
16127
16128         atexit: Move AC_LIBOBJ invocations to module description.
16129         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16130         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16131         here...
16132         * modules/atexit (configure.ac): ... to here.
16133
16134 2011-05-05  Bruno Haible  <bruno@clisp.org>
16135
16136         atoll: Move AC_LIBOBJ invocations to module description.
16137         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16138         invocations from here...
16139         * modules/atoll (configure.ac): ... to here.
16140
16141 2011-05-05  Bruno Haible  <bruno@clisp.org>
16142
16143         argz: Move AC_LIBOBJ invocations to module description.
16144         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16145         * modules/argz (configure.ac): ... to here.
16146
16147 2011-05-05  Bruno Haible  <bruno@clisp.org>
16148
16149         alphasort: Move AC_LIBOBJ invocations to module description.
16150         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16151         gl_PREREQ_ALPHASORT invocations from here...
16152         * modules/alphasort (configure.ac): ... to here.
16153
16154 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16155
16156         verify: new macro verify_expr; verify_true deprecated
16157         * NEWS: Mention this.
16158         * doc/verify.texi (Compile-time Assertions): Document this.
16159         * lib/verify.h (verify_true): Deprecate.
16160         (verify_expr): New macro.
16161         * tests/test-verify.c (function): Test verify_expr.
16162
16163 2011-06-14  Jim Meyering  <meyering@redhat.com>
16164
16165         init.sh: give more portable redirection-related advice in a comment
16166         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16167         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16168         for lots of discussion.  Stefano Lattarini suggested the solution
16169         of putting "9>&2" after the command.  Reported by Bruno Haible.
16170
16171 2011-06-13  Bruno Haible  <bruno@clisp.org>
16172
16173         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16174         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16175         'none'.
16176
16177 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16178
16179         ftoastr: use strtof only if HAVE_STRTOF
16180         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16182         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16183         * modules/ftoastr (configure.ac): Check for strtof.
16184
16185 2011-06-13  Bruno Haible  <bruno@clisp.org>
16186
16187         gnulib-tool: Addendum to 2011-06-08 commit.
16188         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16189         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16190
16191 2011-06-13  Bruno Haible  <bruno@clisp.org>
16192
16193         fseeko: Provide a non-inline replacement of fseek().
16194         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16195         * modules/fseeko (Depends-on): Add fseek.
16196         * modules/fseek (License): Change to LGPLv2+.
16197
16198 2011-06-13  Bruno Haible  <bruno@clisp.org>
16199
16200         ftello: Provide a non-inline replacement of ftell().
16201         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16202         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16203         not have ftello() (such as on mingw).
16204         * modules/ftello (Depends-on): Add ftell.
16205         * modules/ftell (License): Change to LGPLv2+.
16206
16207 2011-05-07  Bruno Haible  <bruno@clisp.org>
16208
16209         ftell: Move AC_LIBOBJ invocations to module description.
16210         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16211         * modules/ftell (configure.ac): ... to here.
16212
16213 2011-05-07  Bruno Haible  <bruno@clisp.org>
16214
16215         ftello: Respect rules for use of AC_LIBOBJ.
16216         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16217         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16218         here...
16219         * modules/ftello (configure.ac): ... to here.
16220
16221 2011-05-07  Bruno Haible  <bruno@clisp.org>
16222
16223         fseeko: Simplify.
16224         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16225         (gl_FUNC_FSEEKO): Inline it here.
16226
16227 2011-05-07  Bruno Haible  <bruno@clisp.org>
16228
16229         fseek: Move AC_LIBOBJ invocations to module description.
16230         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16231         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16232         * modules/fseek (configure.ac): ... to here.
16233
16234 2011-05-07  Bruno Haible  <bruno@clisp.org>
16235
16236         fseek: Respect rules for use of AC_LIBOBJ.
16237         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16238         here...
16239         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16240
16241 2011-05-07  Bruno Haible  <bruno@clisp.org>
16242
16243         fseeko: Respect rules for use of AC_LIBOBJ.
16244         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16245         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16246         here...
16247         * modules/fseeko (configure.ac): ... to here.
16248
16249 2011-06-13  Bruno Haible  <bruno@clisp.org>
16250
16251         gnulib-tool: Allow comments in the 'Depends-on' section.
16252         * doc/gnulib.texi (Module description): Mention comment syntax in the
16253         Depends-on section.
16254         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16255
16256 2011-06-13  Bruno Haible  <bruno@clisp.org>
16257
16258         file-set.h: guard __attibute__ use, now that it's not always defined
16259         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16260         versions that support it.  This fixes a coreutils build failure with
16261         the vendor cc on HP-UX 11.31.
16262
16263 2011-06-12  Bruno Haible  <bruno@clisp.org>
16264
16265         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16266         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16267         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16268         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16269         (acl, aclsort): New declarations.
16270         (aclv_nontrivial): New declaration.
16271         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16272         (file_has_acl): Read also the second kind of HP-UX ACLs.
16273         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16274         kind of HP-UX ACLs if the first kind fails.
16275         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16276         second kind of HP-UX ACLs.
16277         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16278         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16279         agree.
16280         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16281         hpuxjfs.
16282         Handle hpuxjfs.
16283         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16284         hpuxjfs.
16285         Handle hpuxjfs.
16286         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16287         (func_test_same_acls): Use both lsacl and getacl.
16288         Handle hpuxjfs.
16289         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16290         (func_test_same_acls): Use both lsacl and getacl.
16291         Handle hpuxjfs.
16292
16293 2011-06-12  Bruno Haible  <bruno@clisp.org>
16294
16295         acl: Complete the 2010-08-10 fix.
16296         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16297         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16298         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16299         explicitly.
16300         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16301         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16302
16303 2011-06-12  Bruno Haible  <bruno@clisp.org>
16304
16305         spawn-pipe tests: Comments.
16306         * tests/test-spawn-pipe-child.c (main): Update comment.
16307         Reported by James Youngman <jay@gnu.org>.
16308
16309 2011-06-11  James Youngman  <jay@gnu.org>
16310
16311         New module 'stat-size'.
16312         * modules/stat-size: New module.  Provides macros for accessing
16313         file size information in instances of struct stat.  Depends on the
16314         fileblocks module because it calls st_blocks.
16315         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16316         * doc/gnulib.texi: Include stat-size.texi.
16317         * doc/stat-size.texi: Documentation for this module.
16318         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16319         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16320         AC_STRUCT_ST_BLOCKS.
16321
16322 2011-06-09  Bruno Haible  <bruno@clisp.org>
16323
16324         thread: Support pthreads-win32.
16325         * lib/glthread/thread.h (gl_thread_self): Define differently on
16326         pthreads-win32.
16327         (gl_null_thread): New declaration.
16328         (gl_thread_self_pointer): New macro.
16329         * lib/glthread/thread.c (gl_null_thread): New constant.
16330         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16331         gl_thread_self.
16332         * tests/test-tls.c: Likewise.
16333         Suggested by Paul Eggert. Reported by Eric Blake.
16334
16335 2011-06-09  Bruno Haible  <bruno@clisp.org>
16336
16337         thread: Fix confusion between NULL and 0.
16338         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16339         Reported by Paul Eggert.
16340
16341 2011-06-09  Bruno Haible  <bruno@clisp.org>
16342
16343         spawn-pipe tests: Avoid test failure on HP-UX 11.
16344         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16345         is closed.
16346
16347 2011-06-09  Bruno Haible  <bruno@clisp.org>
16348
16349         acl tests: Fix compilation error on HP-UX 11.
16350         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16351
16352 2011-06-09  Bruno Haible  <bruno@clisp.org>
16353
16354         rmdir: Avoid test failure on HP-UX 10.20.
16355         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16356         EEXIST.
16357
16358 2011-06-08  Eric Blake  <eblake@redhat.com>
16359
16360         perror: fix test on mingw
16361         * modules/perror-tests (Depends-on): Add dup2.
16362
16363         strerror_r-posix: fix on MacOS
16364         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16365         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16366         logic bug.
16367         * lib/strerror_r.c (strerror_r): Fix the bug.
16368         * lib/strerror.c (strerror): Likewise.
16369         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16370         problem.
16371         * doc/posix-functions/strerror.texi (strerror): Likewise.
16372         * doc/posix-functions/perror.texi (perror): Likewise.
16373         * tests/test-strerror.c (main): Enhance test.
16374         * tests/test-strerror_r.c (main): Likewise.
16375
16376 2011-06-08  Bruno Haible  <bruno@clisp.org>
16377
16378         gnulib-tool: Better isolation between different gnulib-tool invocations.
16379         * gnulib-tool: New option --witness-c-macro.
16380         (witness_c_macro): New variable.
16381         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16382         AM_CPPFLAGS define it as a C macro.
16383         (func_emit_tests_Makefile_am): Likewise.
16384         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16385         read it from there.
16386         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16387         m4_define, not AC_DEFUN.
16388         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16389         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16390         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16391         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16392         s|...|...|, to substitute the values of the GNULIB_* module indicator
16393         variables.
16394         * modules/dirent (Makefile.am): Likewise.
16395         * modules/fcntl-h (Makefile.am): Likewise.
16396         * modules/iconv-h (Makefile.am): Likewise.
16397         * modules/langinfo (Makefile.am): Likewise.
16398         * modules/locale (Makefile.am): Likewise.
16399         * modules/math (Makefile.am): Likewise.
16400         * modules/netdb (Makefile.am): Likewise.
16401         * modules/poll-h (Makefile.am): Likewise.
16402         * modules/pty (Makefile.am): Likewise.
16403         * modules/search (Makefile.am): Likewise.
16404         * modules/signal (Makefile.am): Likewise.
16405         * modules/spawn (Makefile.am): Likewise.
16406         * modules/stdio (Makefile.am): Likewise.
16407         * modules/stdlib (Makefile.am): Likewise.
16408         * modules/string (Makefile.am): Likewise.
16409         * modules/sys_ioctl (Makefile.am): Likewise.
16410         * modules/sys_select (Makefile.am): Likewise.
16411         * modules/sys_socket (Makefile.am): Likewise.
16412         * modules/sys_stat (Makefile.am): Likewise.
16413         * modules/sys_times (Makefile.am): Likewise.
16414         * modules/sys_utsname (Makefile.am): Likewise.
16415         * modules/sys_wait (Makefile.am): Likewise.
16416         * modules/termios (Makefile.am): Likewise.
16417         * modules/time (Makefile.am): Likewise.
16418         * modules/unistd (Makefile.am): Likewise.
16419         * modules/wchar (Makefile.am): Likewise.
16420
16421 2011-06-08  Eric Blake  <eblake@redhat.com>
16422
16423         strerror: simplify replacement
16424         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16425         * modules/strerror (configure.ac): No prereqs needed here...
16426         * modules/strerror-override (configure.ac): ...but this needs it.
16427         (Files): Add file for needed prereq macro.
16428
16429 2011-06-08  Bruno Haible  <bruno@clisp.org>
16430
16431         strerror_r-posix: Tweaks.
16432         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16433         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16434         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16435         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16436         (gl_FUNC_STRERROR_R): ... to here.
16437         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16438
16439 2011-06-07  Eric Blake  <eblake@redhat.com>
16440
16441         perror: document fixed bugs
16442         * doc/posix-functions/perror.texi (perror): Document recent
16443         patches.
16444
16445 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16446
16447         stat-time: get_stat_birthtime failure is better-defined
16448         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16449         return a timestamp whose tv_sec and tv_nsec values are both -1.
16450         Previously, the spec said only that the tv_nsec value was negative.
16451         This upward-compatible change simplifies GNU tar a bit.
16452
16453 2011-06-07  Eric Blake  <eblake@redhat.com>
16454
16455         strerror_r-posix: work around cygwin 1.7.9
16456         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16457         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16458         bug without replacing strerror_r.
16459         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16460         strerror_r is buggy, but without requiring strerror_r compilation.
16461         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16462
16463         test-perror: relax test to ignore cygwin bug
16464         * tests/test-perror2.c (main): Relax test on requiring detection
16465         of stream errors, and use unbuffered stream.
16466         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16467         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16468         * doc/posix-functions/fputc.texi (fputc): Likewise.
16469         * doc/posix-functions/fputs.texi (fputs): Likewise.
16470         * doc/posix-functions/fputws.texi (fputws): Likewise.
16471         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16472         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16473         * doc/posix-functions/getopt.texi (getopt): Likewise.
16474         * doc/posix-functions/perror.texi (perror): Likewise.
16475         * doc/posix-functions/printf.texi (printf): Likewise.
16476         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16477         * doc/posix-functions/psignal.texi (psignal): Likewise.
16478         * doc/posix-functions/putc.texi (putc): Likewise.
16479         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16480         Likewise.
16481         * doc/posix-functions/putchar.texi (putchar): Likewise.
16482         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16483         Likewise.
16484         * doc/posix-functions/puts.texi (puts): Likewise.
16485         * doc/posix-functions/putwc.texi (putwc): Likewise.
16486         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16487         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16488         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16489         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16490         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16491         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16492         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16493         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16494
16495 2011-05-22  Bruno Haible  <bruno@clisp.org>
16496
16497         strerror: Move AC_LIBOBJ invocations to module description.
16498         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16499         gl_PREREQ_STRERROR invocations from here...
16500         * modules/strerror (configure.ac): ... to here.
16501
16502 2011-05-21  Bruno Haible  <bruno@clisp.org>
16503
16504         perror: Use common idiom.
16505         * modules/perror (configure.ac): Reorder statements.
16506
16507 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16508
16509         tests: fix usage message in 'mktempd_'
16510         * tests/init.sh (mktempd_): In the usage message, use literal
16511         'mktempd_', not '$ME' (which is even undefined), as the name of
16512         the subroutine.
16513
16514 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16515
16516         tests init: new function 'fatal_', for hard errors
16517         Before this patch, the only way offered by tests/init.sh to
16518         properly signal a hard error was the `framework_failure_'
16519         function.  But the error message issued by that function,
16520         as its name would suggest, refers to a set-up failure in the
16521         testsuite, while hard errors can obviously also be due to
16522         other reasons.  The best way to fix this inconsistency is to
16523         introduce a new function with a more general error message.
16524         * tests/init.sh (fatal_): New function.
16525
16526 2011-06-06  Eric Blake  <eblake@redhat.com>
16527
16528         canonicalize-lgpl: use common idiom
16529         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16530         over newer POSIX -Rf.
16531         Reported by Bruno Haible.
16532
16533         canonicalize-lgpl: work around AIX realpath bug
16534         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16535         * doc/posix-functions/realpath.texi (realpath): Document it.
16536         Reported by Bruno Haible.
16537
16538         strerror: work around FreeBSD bug
16539         * lib/strerror.c (strerror): Special case 0.
16540         Reported by Bruno Haible.
16541
16542         strerror-override: avoid bloating errno module
16543         * modules/errno (Files, configure.ac): Move replacement strings...
16544         * modules/strerror-override: ...to new module.
16545         * modules/strerror (Depends-on): Add strerror-override.
16546         * modules/strerror_r-posix (Depends-on): Likewise.
16547         * MODULES.html.sh: Document new module.
16548         Reported by Bruno Haible.
16549
16550 2011-06-06  Bruno Haible  <bruno@clisp.org>
16551
16552         spawn-pipe tests: Rename program.
16553         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16554         * tests/test-spawn-pipe-child.c: Update comment.
16555         * tests/test-spawn-pipe.sh: Update.
16556         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16557
16558         spawn-pipe tests: Link the child program only against libc.
16559         * tests/test-spawn-pipe-child.c: New file, extracted from
16560         tests/test-spawn-pipe.c.
16561         (main): Expect only one argument.
16562         (is_open): New function, copied from tests/test-pipe.c.
16563         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16564         (child_main): Remove function.
16565         (test_pipe): Pass only one argument to the child program.
16566         (main): Remove child process code. Expect the child program's name as
16567         first argument.
16568         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16569         argument.
16570         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16571         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16572         test-spawn-pipe-child against no libraries.
16573
16574 2011-06-06  Bruno Haible  <bruno@clisp.org>
16575
16576         careadlinkat: Avoid mismatch between ssize_t and int.
16577         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16578         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16579
16580 2011-06-06  Jim Meyering  <meyering@redhat.com>
16581
16582         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16583         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16584         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16585
16586 2011-06-05  Bruno Haible  <bruno@clisp.org>
16587
16588         ansi-c++-opt: Interoperability with libtool.
16589         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16590         set the variable to "no", not to ":".
16591         * NEWS: Mention the change.
16592
16593 2011-06-05  Bruno Haible  <bruno@clisp.org>
16594
16595         acl: Fix test failure on AIX 7.
16596         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16597         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16598
16599 2011-06-05  Bruno Haible  <bruno@clisp.org>
16600
16601         pipe-filter-ii: Fix test failure on AIX and IRIX.
16602         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16603         with EAGAIN, retry with a smaller buffer size.
16604
16605 2011-06-05  Bruno Haible  <bruno@clisp.org>
16606
16607         localename: Fix link dependencies.
16608         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16609         * modules/localename-tests (Makefile.am): Link test-localename with
16610         $(LIBTHREAD).
16611
16612 2011-06-05  Bruno Haible  <bruno@clisp.org>
16613
16614         error: Avoid gcc warning.
16615         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16616
16617 2011-06-05  Bruno Haible  <bruno@clisp.org>
16618
16619         unsetenv: Avoid gcc warning.
16620         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16621
16622 2011-06-05  Bruno Haible  <bruno@clisp.org>
16623
16624         setenv: Avoid gcc warning.
16625         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16626
16627 2011-06-05  Bruno Haible  <bruno@clisp.org>
16628
16629         sys_select: Ensure memset is declared also on AIX 7.
16630         * lib/sys_select.in.h: Include <string.h> also on AIX.
16631         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16632         self-contained also on AIX 7.1.
16633
16634 2011-06-04  Jim Meyering  <meyering@redhat.com>
16635
16636         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16637         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16638         function name, "error".
16639         (_gl_translatable_diag_func_re): New configurable variable.
16640
16641 2011-06-04  Bruno Haible  <bruno@clisp.org>
16642
16643         getopt: Avoid gcc warning.
16644         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16645
16646 2011-06-04  Bruno Haible  <bruno@clisp.org>
16647
16648         strerror_r: Fix comments.
16649         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16650         commit.
16651
16652 2011-06-04  Bruno Haible  <bruno@clisp.org>
16653
16654         perror: Fix compilation error.
16655         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16656         Undefine fprintf, not sprintf.
16657         * modules/perror (Depends-on): Remove intprops, verify.
16658
16659 2011-06-04  Bruno Haible  <bruno@clisp.org>
16660
16661         setlocale: Enable replacement on Cygwin 1.5.
16662         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16663         Cygwin 1.5.x.
16664         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16665         LC_CTYPE category also exists on Cygwin 1.5.x.
16666
16667 2011-06-04  Bruno Haible  <bruno@clisp.org>
16668
16669         strerror-override: Don't disable symbol renamings.
16670         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16671         * lib/strerror-override.c: Include config.h.
16672         (strerror_override): Don't undefine.
16673
16674 2011-06-03  Bruno Haible  <bruno@clisp.org>
16675
16676         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16677         * lib/localename.h: Update copyright header.
16678         * lib/localename.c: Likewise.
16679         * lib/relocatable.h: Likewise.
16680         * lib/relocatable.c: Likewise.
16681
16682 2011-06-02  Bruno Haible  <bruno@clisp.org>
16683
16684         doc: Fix a module name.
16685         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16686
16687 2011-06-02  Bruno Haible  <bruno@clisp.org>
16688
16689         pipe2: Remove dependency on 'nonblocking' module.
16690         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16691         O_NONBLOCK is defined by gnulib.
16692         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16693         is zero.
16694         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16695         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16696         defined by gnulib.
16697         (get_nonblocking_flag): New function.
16698         (main): Test O_NONBLOCK flag only if it is nonzero.
16699         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16700
16701 2011-06-03  Jim Meyering  <meyering@redhat.com>
16702
16703         maint: three new prohibit-header-without-use rules
16704         Prohibit use of cloexec.h, posixver.h, same.h without use.
16705         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16706         (sc_prohibit_posixver_without_use): Likewise.
16707         (sc_prohibit_same_without_use): Likewise.
16708
16709 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16710
16711         allocator: 'die' routine is now given requested size
16712         * lib/allocator.h (struct allocator.die): New size arg.
16713         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16714         If the actual problem is an ssize_t limitation, not a size_t or
16715         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16716
16717 2011-06-01  Eric Blake  <eblake@redhat.com>
16718
16719         strerror: drop strerror_r dependency
16720         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16721         * lib/strerror-override.c (strerror_override): ...to new file.
16722         * lib/strerror-override.h: Add prototype.
16723         * lib/strerror-impl.h: Delete.
16724         * lib/strerror.c (strerror): New implementation.
16725         * modules/errno (Files): Add new files.
16726         (configure.ac): Compile new file as appropriate.
16727         * modules/strerror (Files): Drop unused file.
16728         (Depends-on): Drop strerror_r-posix.
16729         * MODULES.html.sh: Document strerror_r-posix.
16730         Requested by Sam Steingold.
16731
16732         perror: call strerror_r directly
16733         * modules/perror (Files): Drop strerror-impl.h.
16734         * lib/perror.c (perror): Use our own stack buffer, rather than
16735         calling a wrapper that uses static storage.
16736         * doc/posix-functions/perror.texi (perror): Document a limitation
16737         of our replacement.
16738
16739         strerror_r: fix includes for FreeBSD
16740         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16741         since we use abort on some platforms.
16742         Reported by Matthias Bolte.
16743
16744 2011-05-31  Bruno Haible  <bruno@clisp.org>
16745
16746         Fix link errors in tests: openat-die uses gettext-h.
16747         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16748         against $(LIBINTL).
16749         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16750         against $(LIBINTL).
16751         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16752         $(LIBINTL).
16753         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16754         against $(LIBINTL).
16755         * modules/linkat-tests (Makefile.am): Link test-linkat against
16756         $(LIBINTL).
16757         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16758         $(LIBINTL).
16759         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16760         against $(LIBINTL).
16761         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16762         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16763         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16764         $(LIBINTL).
16765         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16766         $(LIBINTL).
16767         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16768         $(LIBINTL).
16769         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16770
16771 2011-05-31  Bruno Haible  <bruno@clisp.org>
16772
16773         Fix link errors in tests: wait-process uses gettext-h.
16774         * modules/nonblocking-pipe-tests (Makefile.am): Set
16775         test_nonblocking_pipe_main_LDADD.
16776         * modules/nonblocking-socket-tests (Makefile.am): Link
16777         test-nonblocking-socket-main against $(LIBINTL).
16778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16779
16780 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16781
16782         assert-h: work around 'verify' incompatibility
16783         * lib/verify.h: Use @...@ directives, not ifdef.
16784         * modules/assert-h (assert.h): Implement the directives.
16785         (assert.h): Substitute the symbol-prefix more consistently.
16786
16787 2011-05-29  Jim Meyering  <meyering@redhat.com>
16788
16789         trim: remove three superfluous assignments
16790         * lib/trim.c (trim2): Remove three superfluous assignments
16791         and correct brace positioning.
16792
16793 2011-05-29  Bruno Haible  <bruno@clisp.org>
16794
16795         wctype-h: Avoid namespace pollution on Solaris 2.6.
16796         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16797         identifiers.
16798         * doc/posix-headers/wctype.texi: Mention the problem.
16799         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16800
16801 2011-05-28  Jim Meyering  <meyering@redhat.com>
16802
16803         parse-datetime.y: accommodate -Wstrict-overflow
16804         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16805         placate -Wstrict-overflow.
16806
16807         trim: avoid a warning from -O2 -Wstrict-overflow
16808         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16809
16810 2011-05-29  Bruno Haible  <bruno@clisp.org>
16811
16812         gnulib-tool: Fix bug in yesterday's commit.
16813         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16814         twice.
16815
16816 2011-05-29  Bruno Haible  <bruno@clisp.org>
16817
16818         Allow multiple gnulib generated include files to be combined.
16819         * gnulib-tool (func_compute_include_guard_prefix): New function.
16820         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16821         ${gl_include_guard_prefix} references.
16822         (func_import, func_create_testdir): Invoke
16823         func_compute_include_guard_prefix.
16824         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16825         * lib/ctype.in.h: Likewise.
16826         * lib/dirent.in.h: Likewise.
16827         * lib/errno.in.h: Likewise.
16828         * lib/fcntl.in.h: Likewise.
16829         * lib/float.in.h: Likewise.
16830         * lib/getopt.in.h: Likewise.
16831         * lib/iconv.in.h: Likewise.
16832         * lib/langinfo.in.h: Likewise.
16833         * lib/locale.in.h: Likewise.
16834         * lib/math.in.h: Likewise.
16835         * lib/netdb.in.h: Likewise.
16836         * lib/netinet_in.in.h: Likewise.
16837         * lib/poll.in.h: Likewise.
16838         * lib/pthread.in.h: Likewise.
16839         * lib/pty.in.h: Likewise.
16840         * lib/sched.in.h: Likewise.
16841         * lib/se-selinux.in.h: Likewise.
16842         * lib/search.in.h: Likewise.
16843         * lib/signal.in.h: Likewise.
16844         * lib/spawn.in.h: Likewise.
16845         * lib/stdarg.in.h: Likewise.
16846         * lib/stddef.in.h: Likewise.
16847         * lib/stdint.in.h: Likewise.
16848         * lib/stdio.in.h: Likewise.
16849         * lib/stdlib.in.h: Likewise.
16850         * lib/string.in.h: Likewise.
16851         * lib/strings.in.h: Likewise.
16852         * lib/sys_file.in.h: Likewise.
16853         * lib/sys_ioctl.in.h: Likewise.
16854         * lib/sys_select.in.h: Likewise.
16855         * lib/sys_socket.in.h: Likewise.
16856         * lib/sys_stat.in.h: Likewise.
16857         * lib/sys_time.in.h: Likewise.
16858         * lib/sys_times.in.h: Likewise.
16859         * lib/sys_uio.in.h: Likewise.
16860         * lib/sys_utsname.in.h: Likewise.
16861         * lib/sys_wait.in.h: Likewise.
16862         * lib/sysexits.in.h: Likewise.
16863         * lib/termios.in.h: Likewise.
16864         * lib/time.in.h: Likewise.
16865         * lib/unistd.in.h: Likewise.
16866         * lib/wchar.in.h: Likewise.
16867         * lib/wctype.in.h: Likewise.
16868         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16869         * modules/ctype (Makefile.am): Likewise.
16870         * modules/dirent (Makefile.am): Likewise.
16871         * modules/errno (Makefile.am): Likewise.
16872         * modules/fcntl-h (Makefile.am): Likewise.
16873         * modules/float (Makefile.am): Likewise.
16874         * modules/getopt-posix (Makefile.am): Likewise.
16875         * modules/iconv-h (Makefile.am): Likewise.
16876         * modules/langinfo (Makefile.am): Likewise.
16877         * modules/locale (Makefile.am): Likewise.
16878         * modules/math (Makefile.am): Likewise.
16879         * modules/netdb (Makefile.am): Likewise.
16880         * modules/netinet_in (Makefile.am): Likewise.
16881         * modules/poll-h (Makefile.am): Likewise.
16882         * modules/pthread (Makefile.am): Likewise.
16883         * modules/pty (Makefile.am): Likewise.
16884         * modules/sched (Makefile.am): Likewise.
16885         * modules/search (Makefile.am): Likewise.
16886         * modules/selinux-h (Makefile.am): Likewise.
16887         * modules/signal (Makefile.am): Likewise.
16888         * modules/spawn (Makefile.am): Likewise.
16889         * modules/stdarg (Makefile.am): Likewise.
16890         * modules/stddef (Makefile.am): Likewise.
16891         * modules/stdint (Makefile.am): Likewise.
16892         * modules/stdio (Makefile.am): Likewise.
16893         * modules/stdlib (Makefile.am): Likewise.
16894         * modules/string (Makefile.am): Likewise.
16895         * modules/strings (Makefile.am): Likewise.
16896         * modules/sys_file (Makefile.am): Likewise.
16897         * modules/sys_ioctl (Makefile.am): Likewise.
16898         * modules/sys_select (Makefile.am): Likewise.
16899         * modules/sys_socket (Makefile.am): Likewise.
16900         * modules/sys_stat (Makefile.am): Likewise.
16901         * modules/sys_time (Makefile.am): Likewise.
16902         * modules/sys_times (Makefile.am): Likewise.
16903         * modules/sys_uio (Makefile.am): Likewise.
16904         * modules/sys_utsname (Makefile.am): Likewise.
16905         * modules/sys_wait (Makefile.am): Likewise.
16906         * modules/sysexits (Makefile.am): Likewise.
16907         * modules/termios (Makefile.am): Likewise.
16908         * modules/time (Makefile.am): Likewise.
16909         * modules/unistd (Makefile.am): Likewise.
16910         * modules/wchar (Makefile.am): Likewise.
16911         * modules/wctype-h (Makefile.am): Likewise.
16912         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16913
16914 2011-05-29  Bruno Haible  <bruno@clisp.org>
16915
16916         assert-h: Allow multiple gnulib generated replacements to coexist.
16917         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16918
16919 2011-05-29  Bruno Haible  <bruno@clisp.org>
16920
16921         argp: Allow coexistence with strerror_r-posix module.
16922         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16923         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16924         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16925         not the glibc signature.
16926
16927 2011-05-28  Bruno Haible  <bruno@clisp.org>
16928
16929         gnulib-tool: Alternative structure of testdirs, similar to --import.
16930         * gnulib-tool: New option --single-configure.
16931         (func_usage): Document it.
16932         (single_configure): New variable.
16933         (func_modules_transitive_closure_separately,
16934         func_modules_transitive_closure_separately,
16935         func_determine_use_libtests, func_modules_add_dummy_separately,
16936         func_modules_to_filelist_separately): New functions, extracted from
16937         func_import.
16938         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16939         (func_import): Use the new functions.
16940         (func_create_testdir): Set final_modules. Handle $single_configure =
16941         true case.
16942
16943 2011-05-28  Bruno Haible  <bruno@clisp.org>
16944
16945         getloadavg: Remove an unreliable safety check.
16946         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16947         getloadavg.c is in place.
16948         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16949         Reported by Sam Steingold <sds@gnu.org>.
16950
16951 2011-05-28  Bruno Haible  <bruno@clisp.org>
16952
16953         doc: Cleanup yet another file produced by texinfo.tex.
16954         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16955
16956 2011-05-28  Bruno Haible  <bruno@clisp.org>
16957
16958         Finish the conditional dependencies mechanism.
16959         * gnulib-tool: New option --no-conditional-dependencies.
16960         (func_usage): Document it. Don't mark --conditional-dependencies as
16961         experimental.
16962         (cond_dependencies): The possible values can now be true, false, empty.
16963         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16964         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16965         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16966
16967 2011-05-28  Bruno Haible  <bruno@clisp.org>
16968
16969         doc: Use a recent texinfo.tex.
16970         * doc/Makefile (tex_opts): New variable.
16971         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16972
16973 2011-05-28  Jim Meyering  <meyering@redhat.com>
16974
16975         intprops.h: adjust comment to match code change
16976         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16977         only once, it *may* have side effects.  Also fix an unrelated typo.
16978         (_GL_INT_SIGNED): Likewise.
16979
16980 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16981
16982         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16983
16984 2011-05-26  Bruno Haible  <bruno@clisp.org>
16985
16986         mbsrchr: Avoid collision with system function on Interix.
16987         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16988         Reported by Markus Duft <mduft@gentoo.org>.
16989
16990 2011-05-15  James Youngman  <jay@gnu.org>
16991
16992         getopt: for ambiguous options, enumerate the possibilities.
16993         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16994         the ambiguous options when an ambiguous prefix is given. This was
16995         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16996         glibc change was
16997         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16998
16999 2011-05-25  Eric Blake  <eblake@redhat.com>
17000
17001         getcwd: work around mingw bug
17002         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
17003         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17004         Reported by Matthias Bolte.
17005
17006 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
17007
17008         test-intprops: disable -Wtype-limits diagnostics
17009         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17010         diagnostics.  Otherwise, the integer overflow macros generate many
17011         diagnostics.  Reported by Jim Meyering in
17012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17013
17014         intprops: shorten, to pacify gcc -Woverlength-strings
17015         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17016         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17017         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17018         likely to run afoul of C compiler limits for string constant lengths.
17019         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17020
17021 2011-05-24  Eric Blake  <eblake@redhat.com>
17022
17023         docs: document recently fixed glibc printf bug
17024         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17025         * doc/posix-functions/printf.texi (printf): Likewise.
17026         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17027         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17028
17029         closein-tests: convert to init.sh
17030         * modules/closein-tests (Files): Add init.sh
17031         * tests/test-closein.sh Use it.
17032
17033         yesno-tests: convert to init.sh
17034         * modules/yesno-tests (Files): Add init.sh.
17035         * tests/test-yesno.sh: Use it.
17036
17037         atexit-tests: ensure reliable exit status
17038         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17039         Reported by Bruno Haible.
17040
17041 2011-05-24  Bruno Haible  <bruno@clisp.org>
17042
17043         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17044         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17045         gl_PREREQ_STRERROR_R invocations from here...
17046         * modules/strerror_r-posix (configure.ac): ... to here.
17047
17048 2011-05-24  Eric Blake  <eblake@redhat.com>
17049
17050         strerror_r: fix missing header
17051         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17052
17053         strerror_r: fix AIX test failures
17054         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17055         ERANGE failure.
17056
17057         strerror_r: fix Solaris test failures
17058         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17059         failures.
17060         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17061
17062         strerror_r: enforce POSIX recommendations
17063         * lib/strerror_r.c (safe_copy): New helper method.
17064         (strerror_r): Guarantee a non-empty string.
17065         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17066         recent POSIX rulings and to match our strerror guarantees.
17067         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17068
17069 2011-05-24  Jim Meyering  <meyering@redhat.com>
17070
17071         test-perror2.c: avoid warning about unused variable
17072         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17073
17074 2011-05-24  Eric Blake  <eblake@redhat.com>
17075
17076         perror: avoid spurious test failure on HP-UX
17077         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17078
17079         tests: fix logic bug in init.sh
17080         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17081         shell.
17082
17083 2011-05-24  Jim Meyering  <meyering@redhat.com>
17084
17085         utimensat: do not reference an out-of-scope buffer
17086         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17087         declared in an inner scope, yet "times" would be dereferenced outside
17088         the scope in which "ts" was valid.
17089         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17090         of ts[2] "out/up", so that the use of aliased "times" (via
17091         "times = ts;") does not end up referencing an out-of-scope "ts"
17092
17093         opendir-safer.c: don't clobber errno; don't close negative FD
17094         * lib/opendir-safer.c (opendir_safer):
17095         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17096         file descriptor, and more importantly, don't clobber the
17097         offending errno value with EINVAL.  Before, upon failure
17098         of dup_safer, we would pass the negative file descriptor to
17099         fdopendir, which would clobber errno.
17100
17101 2011-05-23  Bruno Haible  <bruno@clisp.org>
17102
17103         idcache: Fix module description.
17104         * modules/idcache (Include): Set to "idcache.h".
17105
17106 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17107
17108         gnulib-tool: fix portability problem with MacOS sed
17109         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17110         before the "}".  Problem reported by Leo in
17111         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17112         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17113         sed_extract_condition1, sed_extract_condition2.
17114
17115 2011-05-23  Bruno Haible  <bruno@clisp.org>
17116
17117         hash: Simplify autoconf macro.
17118         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17119
17120 2011-05-23  Bruno Haible  <bruno@clisp.org>
17121
17122         getugroups: Fix module description.
17123         * modules/getugroups (Include): Set to "getugroups.h".
17124
17125 2011-05-23  Bruno Haible  <bruno@clisp.org>
17126
17127         linkat: Simplify autoconf macro.
17128         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17129
17130 2011-05-23  Bruno Haible  <bruno@clisp.org>
17131             Eric Blake  <eblake@redhat.com>
17132
17133         linkat, renameat: Update dependencies.
17134         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17135         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17136         symlinkat.
17137
17138 2011-05-23  Jim Meyering  <meyering@redhat.com>
17139
17140         maint.mk: more tight_scope improvements
17141         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17142         (_gl_TS_headers): Define only in if-0'd block.
17143         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17144         sometimes we must *not* use it.  Adjust uses accordingly.
17145         (sc_tight_scope): Use much simpler grep-based test to determine
17146         whether we skip this rule.
17147
17148         maint.mk: generalize/improve the tight-scope rule
17149         * top/maint.mk: Emit a warning when the test is skipped.
17150         (_gl_TS_dir): Add $(srcdir)/ prefix.
17151         (_gl_TS_function_match): Simplify, rather than trying
17152         to enumerate common types.  Otherwise, it would fail to match an
17153         "extern unsigned char const *" declaration in idutils.
17154         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17155         a way to support use of that type of macro.
17156         (_gl_TS_var_match): Simplify regexp.
17157         (_gl_TS_obj_files): New configurable variable.
17158         (_gl_TS_headers): Likewise.
17159
17160 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17161
17162         verify: fix bug when gnulib <assert.h> is also included
17163         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17164         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17165         Perhaps there's a better way, but this fixes the immediate problem.
17166         Problem reported by Bruno Haible in
17167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17168
17169 2011-05-22  Bruno Haible  <bruno@clisp.org>
17170
17171         xgetcwd: Simplify autoconf macro.
17172         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17173
17174 2011-05-22  Bruno Haible  <bruno@clisp.org>
17175
17176         New module 'mktime-internal'.
17177         * modules/mktime-internal: New file.
17178         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17179         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17180         mktime_internal as a C macro if libc has __mktime_internal.
17181         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17182         conditions.
17183         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17184
17185 2011-05-22  Bruno Haible  <bruno@clisp.org>
17186
17187         timegm: Correct mktime replacement statements.
17188         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17189         defining mktime as a C macro. This completes a 2009-07-28 commit.
17190
17191 2011-05-22  Bruno Haible  <bruno@clisp.org>
17192
17193         timegm: Simplify autoconf macro.
17194         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17195
17196 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17197
17198         clock-time: change to LGPLv2+.
17199         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17200         BSD-like but we have no mark for that; this is good enough for now.
17201
17202 2011-05-21  Bruno Haible  <bruno@clisp.org>
17203
17204         strerror_r: Fix comments.
17205         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17206
17207 2011-05-21  Bruno Haible  <bruno@clisp.org>
17208
17209         relocatable-prog-wrapper: Fix possible link error.
17210         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17211         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17212         (gl_FUNC_SETENV): ... to here.
17213         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17214         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17215
17216 2011-05-21  Bruno Haible  <bruno@clisp.org>
17217
17218         relocatable-prog-wrapper: Assume strerror() exists.
17219         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17220         m4/strerror.m4.
17221         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17222         * lib/relocwrapper.c: Remove mention of strerror module.
17223         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17224         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17225         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17226         C macro.
17227
17228 2011-05-21  Bruno Haible  <bruno@clisp.org>
17229
17230         select: Simplify replacement idiom.
17231         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17232         Win32 platforms.
17233         * lib/sys_select.in.h (select): Simplify accordingly.
17234         * modules/select (Depends-on): Likewise.
17235
17236 2011-05-21  Bruno Haible  <bruno@clisp.org>
17237
17238         mkdir-p: Simplify autoconf macro.
17239         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17240         gl_FUNC_LCHOWN.
17241
17242 2011-05-21  Eric Blake  <eblake@redhat.com>
17243
17244         strerror_r: avoid clobbering strerror on cygwin
17245         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17246         fall back instead to sys_errlist.
17247         * modules/strerror (configure.ac): Add witness.
17248         * tests/test-strerror_r.c (main): Enhance test.
17249         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17250         * tests/test-perror2.c (main): Free memory before exit.
17251
17252 2011-05-21  Bruno Haible  <bruno@clisp.org>
17253
17254         mkdtemp: Use gnulib naming conventions.
17255         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17256         * modules/mkdtemp (configure.ac): Update.
17257
17258 2011-05-20  Eric Blake  <eblake@redhat.com>
17259
17260         strerror_r: avoid corrupting errno on Solaris
17261         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17262         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17263
17264         strerror_r: avoid compiler warning
17265         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17266
17267         strerror_r: simplify AIX code
17268         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17269
17270         test-perror: avoid spurious failure on FreeBSD
17271         * modules/perror-tests (Depends-on): Add strerror, now that
17272         strerror_r no longer pulls it in.
17273
17274 2011-05-20  Bruno Haible  <bruno@clisp.org>
17275
17276         strerror_r-posix: Remove unused dependencies.
17277         * modules/strerror_r-posix (Depends-on): Remove strerror.
17278         Reported by Eric Blake.
17279
17280 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17281
17282         intprops: remove assumption about A|B representation
17283         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17284         is a valid integer if both A and B are.  Although this is true for
17285         all known practical hosts, the C standard doesn't guarantee it,
17286         and the code need not assume it.  Also, this change may work around
17287         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17289
17290 2011-05-20  Eric Blake  <eblake@redhat.com>
17291
17292         perror: work around FreeBSD bug
17293         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17294         is broken.  Move AC_LIBOBJ...
17295         * modules/perror (configure.ac): Here.
17296         * doc/posix-functions/perror.texi (perror): Document this.
17297         * tests/test-perror2.c (main): Enhance test.
17298
17299         test-perror: check for strerror interactions
17300         * tests/macros.h (STREQ): Add macro.
17301         * modules/perror-tests (Files): Add second test.
17302         * tests/test-perror2.c (main): New file.
17303         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17304
17305         test-perror: rewrite to use init script
17306         * modules/perror-tests (Files): Add init.sh.
17307         * tests/test-perror.sh: Use temporary directory.
17308
17309 2011-05-20  Jim Meyering  <meyering@redhat.com>
17310
17311         maint: replace misused "a" with "an"
17312         * doc/intprops.texi: "a integer"
17313         * doc/regex.texi: "a explanation"
17314         * lib/alignof.h: "a object"
17315         * lib/argmatch.h: "a explanation"
17316         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17317         * lib/stdint.in.h: "a integer"
17318         * lib/userspec.c: "a owner"
17319         * doc/gnulib.texi: Fix "a idea", and reword.
17320
17321 2011-05-19  Jim Meyering  <meyering@redhat.com>
17322
17323         maint: correct misuse of "a" and "an"
17324         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17325         * lib/argp-help.c: "an docum...": s/an/a/
17326         * lib/argp-parse.c: "An vector": s/An/A/
17327         * lib/execute.c: "an native": s/an/a/
17328         * lib/spawn-pipe.c: Likewise.
17329         * lib/gc.h: "an Gc_rc": s/an/a/
17330         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17331         * lib/fts.c: "an stat.st_dev": s/an/a/
17332
17333 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17334
17335         intprops-tests: work around HP-UX 11.23 cc bug with constants
17336         * tests/test-intprops.c (VERIFY): New macro.
17337         (main): Use it, instead of verify, to work around the compiler bug; see
17338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17339
17340         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17341         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17342         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17343         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17344         (_GL_REMAINDER_OVERFLOW): Use it.
17345
17346         intprops-tests: revert unsigned part of previous change
17347         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17348         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17349         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17351
17352 2011-05-19  Bruno Haible  <bruno@clisp.org>
17353
17354         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17355         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17356         strerror_r() returned without filling the buffer.
17357         Reported by Eric Blake.
17358
17359 2011-05-19  Eric Blake  <eblake@redhat.com>
17360
17361         strerror_r: guarantee unchanged errno
17362         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17363         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17364         failure.
17365         * tests/test-strerror_r.c (main): Enhance test.
17366
17367 2011-05-19  Bruno Haible  <bruno@clisp.org>
17368
17369         strerror_r: Reorder #if blocks.
17370         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17371         for consistency with the previous commit.
17372
17373 2011-05-19  Bruno Haible  <bruno@clisp.org>
17374
17375         perror: Avoid clobbering the strerror buffer when possible.
17376         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17377         * lib/strerror.c: Include it.
17378         * modules/strerror (Files): Add lib/strerror-impl.h.
17379         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17380         (my_strerror): New function, defined through lib/strerror-impl.h.
17381         (perror): Use it instead of strerror.
17382         * modules/perror (Files): Add lib/strerror-impl.h.
17383         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17384
17385 2011-05-19  Eric Blake  <eblake@redhat.com>
17386
17387         strerror_r: fix on newer cygwin
17388         * lib/strerror_r.c (strerror_r): Cygwin now has
17389         __xpg_strerror_r, use it.
17390
17391 2011-05-19  Bruno Haible  <bruno@clisp.org>
17392
17393         strerror_r: Avoid clobbering the strerror buffer when possible.
17394         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17395         (sys_nerr, sys_errlist): New declarations.
17396         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17397         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17398         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17399
17400 2011-05-19  Bruno Haible  <bruno@clisp.org>
17401
17402         strerror_r: Fix test failure on mingw.
17403         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17404         EXTEND_STRERROR_R.
17405         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17406         macros from errno.in.h instead.
17407
17408 2011-05-19  Eric Blake  <eblake@redhat.com>
17409
17410         strerror: relax test for Solaris
17411         * tests/test-strerror.c (main): Permit Solaris behavior.
17412         * tests/test-strerror_r.c (main): Likewise.
17413
17414         strerror: enforce POSIX ruling on strerror(0)
17415         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17416         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17417         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17418         * doc/posix-functions/strerror.texi (strerror): Document it.
17419         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17420         * tests/test-strerror.c (main): Strengthen test.
17421         * tests/test-strerror_r.c (main): Likewise.
17422
17423 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17424
17425         intprop-tests: port to older and more-pedantic compilers
17426         * modules/intprops-tests (Files): Add tests/macros.h.
17427         * tests/test-intprops.c: Include macros.h.
17428         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17429         it's no longer documented to expand to an integer constant expression.
17430         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17431         argument is floating point, as it's no longer documented to expand
17432         to an integer constant expression in that case.
17433         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17434         compiler bugs reported by Bruno Haible.  See
17435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17436         (U0, U1): New constants, to work around the same bugs.  Also,
17437         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17438
17439         intprops: work around C compiler bugs
17440         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17441         bug in Sun C 5.11 2010/08/13 and other compilers; see
17442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17443
17444         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17445         * doc/intprops.texi (Integer Type Determination): Fix
17446         documentation for TYPE_IS_INTEGER: it returns an constant
17447         expression, not an integer constant expression.  Fix doc for
17448         TYPE_SIGNED: it returns an integer constant expression only if its
17449         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17450         hardly worth documented that way....)
17451
17452 2011-05-18  Bruno Haible  <bruno@clisp.org>
17453
17454         strerror_r: Avoid clobbering the strerror buffer when possible.
17455         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17456         Handle gnulib defined errno values here. When strerror() returns NULL
17457         or an empty string, return EINVAL.
17458         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17459         gnulib defined errno values here.
17460         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17461
17462 2011-05-18  Eric Blake  <eblake@redhat.com>
17463
17464         fnmatch: avoid compiler warning
17465         * lib/fnmatch_loop.c (FCT): Use correct type.
17466         Reported by Matthias Bolte.
17467
17468 2011-05-13  Jim Meyering  <meyering@redhat.com>
17469
17470         maint.mk: three new prohibit_<HDR>_without_use rules
17471         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17472         (sc_prohibit_stdio-safer_without_use): Likewise.
17473         (sc_prohibit_xfreopen_without_use): Likewise.
17474
17475 2011-05-17  Jim Meyering  <meyering@redhat.com>
17476
17477         announce-gen: fail if the NEWS delta is empty
17478         If there's nothing noteworthy in NEWS, then either you forgot
17479         or you shouldn't be releasing.
17480         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17481
17482 2011-05-17  Pádraig Brady <P@draigBrady.com>
17483
17484         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17485         reserved symbols starting with double underscore from the check.
17486
17487 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17488
17489         intprops: add doc
17490         * doc/intprops.texi: New file, documenting intprops.
17491         * doc/gnulib.texi (Particular Modules): Include it.
17492
17493         verify: add doc to gnulib manual and fix example
17494         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17495         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17496         (Compile-time Assertions): Fix example so it can't overflow.
17497
17498 2011-05-17  Jim Meyering  <meyering@redhat.com>
17499
17500         warnings.m4: don't usurp save_CPPFLAGS variable name
17501         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17502
17503         doc: fix typo
17504         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17505
17506 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17507             Bruno Haible  <bruno@clisp.org>
17508
17509         doc: Tweak recent change.
17510         * README (Portability guidelines): Tweak new text.
17511         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17512         Interix 6.1.
17513
17514 2011-05-16  Eric Blake  <eblake@redhat.com>
17515
17516         inttypes: avoid autoconf warning
17517         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17518         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17519
17520 2011-05-16  Sam Steingold <sds@gnu.org>
17521         and Eric Blake  <eblake@redhat.com>
17522
17523         vc-list-files: accept multiple directory operands
17524         * build-aux/vc-list-files: Iterate over all remaining operands.
17525
17526 2011-05-16  Bruno Haible  <bruno@clisp.org>
17527
17528         Fix confusion regarding deprecated modules.
17529         * modules/calloc (Status, Notice): Mark module as deprecated, not
17530         obsolete.
17531         * modules/fnmatch-posix (Status, Notice): Likewise.
17532         * modules/getdate (Status, Notice): Likewise.
17533         * modules/getopt (Status, Notice): Likewise.
17534         * modules/malloc (Status, Notice): Likewise.
17535         * modules/pipe (Status, Notice): Likewise.
17536         * modules/realloc (Status, Notice): Likewise.
17537         * modules/rename-dest-slash (Status, Notice): Likewise.
17538         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17539         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17540         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17541         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17542         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17543
17544 2011-05-16  Bruno Haible  <bruno@clisp.org>
17545
17546         doc: List the target platforms.
17547         * doc/gnulib-intro.texi (Target Platforms): New section.
17548         * doc/gnulib.texi (Introduction): Update menu.
17549         * README (Portability guidelines): Refer to the new section. Update
17550         statement about oldest supported environment. Remove rationale why
17551         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17552         unportable C89 function.
17553         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17554         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17555
17556 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17557
17558         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17559
17560 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17561
17562         intprops-tests: new module
17563         * modules/intprops-tests, tests/test-intprops.c: New files.
17564
17565         intprops: add safe, portable integer overflow checking
17566         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17567         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17568         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17569         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17570         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17571         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17572         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17573         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17574         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17575         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17576         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17577
17578 2011-05-12  James Youngman  <jay@gnu.org>
17579
17580         Add a test for glibc's Bugzilla bug #12378.
17581         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17582         doesn't allow the literal matching of a lone "[" (which is
17583         required by POSIX).
17584         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17585
17586 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17587
17588         Sync glibc change fixing Bugzilla bug #12378.
17589         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17590         beginning and fall back to matching as normal character if the
17591         string ends before the matching ']' is found.  This is what POSIX
17592         requires.
17593
17594 2011-05-13  Eric Blake  <eblake@redhat.com>
17595
17596         getcwd-lgpl: relax test for FreeBSD
17597         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17598         issue.
17599         * tests/test-getcwd-lgpl.c (main): Relax test.
17600         Reported by Matthias Bolte.
17601
17602 2011-05-11  Eric Blake  <eblake@redhat.com>
17603
17604         test-fflush: silence compiler warning
17605         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17606
17607 2011-05-11  Bruno Haible  <bruno@clisp.org>
17608
17609         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17610         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17611         * modules/canonicalize (Depends-on): Add 'nocrash'.
17612         * modules/canonicalize-lgpl (Depends-on): Likewise.
17613         * doc/posix-functions/realpath.texi: Update platforms list.
17614         Reported by Ryan Schmidt <ryandesign@macports.org>.
17615
17616 2011-05-11  Bruno Haible  <bruno@clisp.org>
17617
17618         group-member: Declare function in <unistd.h>.
17619         * lib/unistd.in.h (group_member): New declaration.
17620         * lib/group-member.h: Remove file.
17621         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17622         * tests/test-unistd-c++.cc: Check signature of group_member.
17623         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17624         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17625         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17626         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17627         HAVE_GROUP_MEMBER.
17628         * modules/group-member (Files): Remove lib/group-member.h.
17629         (Depends-on): Add unistd. Specify conditions.
17630         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17631         (Include): Change to <unistd.h>.
17632         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17633         HAVE_GROUP_MEMBER.
17634         * NEWS: Mention the change.
17635         * lib/euidaccess.c: Don't include group-member.h.
17636
17637 2011-05-11  Bruno Haible  <bruno@clisp.org>
17638
17639         group-member: Document module.
17640         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17641         module.
17642
17643 2011-05-11  Bruno Haible  <bruno@clisp.org>
17644
17645         fclose: Fix mistake earlier today.
17646         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17647
17648 2011-05-11  Eric Blake  <eblake@redhat.com>
17649
17650         fclose: preserve fflush errors
17651         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17652         Reported by Jim Meyering.
17653
17654         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17655         * build-aux/bootstrap (check_versions): When no specific version
17656         is required, merely check that the app produces an exit status
17657         that indicates its existence.
17658
17659         maint.mk: drop redundant check
17660         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17661         the same but better.
17662
17663 2011-05-11  Bruno Haible  <bruno@clisp.org>
17664
17665         fclose: Fix possible link error.
17666         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17667         unregister_shadow_fd. Improve comments.
17668         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17669         Eric Blake.
17670
17671 2011-05-11  Jim Meyering  <meyering@redhat.com>
17672
17673         maint.mk: improve "can not" detection and generalize rule name
17674         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17675         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17676         Use the same technique as in sc_prohibit_doubled_word, so that
17677         we recognize "can not" also when the words are separated by a newline.
17678         Suggested by Eric Blake.
17679         (perl_filename_lineno_text_): Define.  Factored out of...
17680         (prohibit_doubled_word_): ...here.  Use the new definition.
17681         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17682         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17683         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17684
17685 2011-05-10  Eric Blake  <eblake@redhat.com>
17686
17687         fclose: avoid double close race when possible
17688         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17689         all but WINDOWS_SOCKETS.
17690
17691 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17692
17693         openat: correct new comment
17694         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17695
17696 2011-05-10  Jim Meyering  <meyering@redhat.com>
17697
17698         openat: add comments
17699         * lib/openat-proc.c (openat_proc_name): Add comments,
17700         mostly from Eric Blake.
17701
17702 2011-05-09  Eric Blake  <eblake@redhat.com>
17703
17704         openat: reduce syscalls in first probe of /proc
17705         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17706         be a directory.  Simplify the probe for .. bugs.
17707         * modules/openat (Depends-on): Drop same-inode.
17708         Reported by Bastien ROUCARIES.
17709
17710 2011-05-09  Jim Meyering  <meyering@redhat.com>
17711
17712         maint.mk: change semantics/name of tight_scope variables
17713         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17714         Rename variables to align with semantics that make them more useful.
17715
17716         maint.mk: tweak new rule's name not to impinge
17717         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17718         (sc_tight_scope): Use new rule name rather than $@-0.
17719
17720         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17721         * top/maint.mk (sc_tight_scope): New rule.
17722         (sc_tight_scope-0): New rule, ifdef'd out.
17723         (_gl_TS_dir): Default.
17724         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17725         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17726
17727 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17728
17729         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17730         Haible <bruno@clisp.org>.
17731
17732 2011-05-08  Bruno Haible  <bruno@clisp.org>
17733
17734         Comments.
17735         * m4/isnanf.m4: Add comment.
17736         * m4/isnanl.m4: Likewise.
17737
17738 2011-05-08  Bruno Haible  <bruno@clisp.org>
17739
17740         glob: Remove obsolete macro.
17741         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17742
17743 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17744
17745         intprops: Sun C 5.11 supports __typeof__
17746         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17747         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17748         which is new.
17749         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17750
17751         intprops: switch to usual gnulib indenting and naming
17752         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17753         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17754
17755         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17756
17757 2011-05-08  Jim Meyering  <meyering@redhat.com>
17758
17759         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17760         * top/maint.mk (release-prep): Use make's --no-print-directory
17761         option when generating the announcement.  This eliminates the
17762         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17763         generated announcement template.
17764
17765 2011-05-08  Bruno Haible  <bruno@clisp.org>
17766
17767         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17768         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17769         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17770
17771 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17772
17773         ignore-value, verify: Omit include files from lib_SOURCES.
17774         * modules/ignore-value, modules/verify (Makefile.am):
17775         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17776         that leads Automake to duplicate use of am__objects_... variables
17777         in Makefile.in.  See
17778         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17779
17780 2011-05-07  Bruno Haible  <bruno@clisp.org>
17781
17782         fclose: Simplify autoconf macro.
17783         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17784         defined.
17785
17786 2011-05-07  Bruno Haible  <bruno@clisp.org>
17787
17788         canonicalize-lgpl: Fix autoconf macro ordering bug.
17789         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17790         gl_STDLIB_H_DEFAULTS.
17791
17792 2011-05-06  Eric Blake  <eblake@redhat.com>
17793
17794         maintainer-makefile: make sc_po_check easier to tune
17795         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17796         to probe for strings, such as an alternate location for gnulib.
17797
17798         fclose: guarantee behavior on seekable stdin
17799         * modules/fclose (Depends-on): Add fflush.
17800         * doc/posix-functions/fclose.texi (fclose): Document this.
17801         * tests/test-fclose.c (main): Make test for this unconditional.
17802
17803 2011-05-06  Bruno Haible  <bruno@clisp.org>
17804
17805         fflush, fpurge: Relicense under LGPLv2+.
17806         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17807         * modules/fpurge (License): Likewise.
17808         With permission from Eric Blake and Jim Meyering.
17809         Suggested by Eric Blake.
17810
17811 2011-05-06  Karl Berry  <karl@gnu.org>
17812
17813         * MODULES.html.sh (func_all_modules): remove exit.
17814
17815 2011-05-06  Jim Meyering  <meyering@redhat.com>
17816
17817         maint.mk: use info-gnu@ as the default only for a stable release
17818         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17819         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17820         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17821         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17822
17823 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17824
17825         assert-h: new module, which supports C1X-style static_assert
17826         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17827         * lib/verify.h: Revamp so that this can be copied into assert.h,
17828         while retaining the ability to use it standalone as before.
17829         Rename private identifiers so as not to encroach on the
17830         standard C namespace, since this is now used by assert.h.
17831         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17832         the old verify_true.
17833         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17834         the old verify_true.  Use _GL_VERIFY_TYPE.
17835         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17836         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17837         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17838         defined when this file is copied into the replacement assert.h.
17839         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17840         and _Static_assert is not built in.
17841         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17842         defined, and use the new macros mentioned above.
17843         * doc/posix-headers/assert.texi: Document this.
17844
17845 2011-05-05  Bruno Haible  <bruno@clisp.org>
17846
17847         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17848         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17849         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17850         gl_REPLACE_FCLOSE here.
17851         * modules/fflush (Depends-on): Remove fclose.
17852         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17853         combination with module 'fclose'.
17854
17855 2011-05-05  Bruno Haible  <bruno@clisp.org>
17856
17857         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17858         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17859         gl_FUNC_FFLUSH.
17860         (gl_FUNC_FFLUSH): Use it.
17861         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17862         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17863         gl_REPLACE_FSEEKO here.
17864
17865 2011-05-05  Bruno Haible  <bruno@clisp.org>
17866
17867         tzset: Relicense under LGPL.
17868         * modules/tzset (License): Change to LGPL.
17869         No agreement needed; it's a no-op.
17870
17871         strtoimax, strtoumax: Relicense under LGPL.
17872         * modules/strtoimax (License): Change to LGPL.
17873         * modules/strtoumax (License): Likewise.
17874         With permission from Jim Meyering, Paul Eggert:
17875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17877
17878         getgroups: Relicense under LGPL.
17879         * modules/getgroups (License): Change to LGPL.
17880         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17884
17885         nanosleep: Relicense under LGPL.
17886         * modules/nanosleep (License): Change to LGPL.
17887         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17888         Haible:
17889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17892         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17893
17894         futimens: Relicense under LGPL.
17895         * modules/futimens (License): Change to LGPL.
17896         With permission from Eric Blake:
17897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17898
17899         fflush: Relicense under LGPL.
17900         * modules/fflush (License): Change to LGPL.
17901         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17905
17906         tmpfile: Relicense under LGPL.
17907         * modules/tmpfile (License): Change to LGPL.
17908         With permission from Ben Pfaff:
17909         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17910
17911         isfinite: Relicense under LGPL.
17912         * modules/isfinite (License): Change to LGPL.
17913         With permission from Ben Pfaff, Bruno Haible:
17914         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17916
17917         acosl..tanl: Relicense under LGPL.
17918         * modules/acosl (License): Change to LGPL.
17919         * modules/asinl (License): Likewise.
17920         * modules/atanl (License): Likewise.
17921         * modules/cosl (License): Likewise.
17922         * modules/expl (License): Likewise.
17923         * modules/logl (License): Likewise.
17924         * modules/sinl (License): Likewise.
17925         * modules/sqrtl (License): Likewise.
17926         * modules/tanl (License): Likewise.
17927         Source code originally from glibc and Paolo Bonzini. Agreements:
17928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17929         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17930
17931 2011-05-05  Bruno Haible  <bruno@clisp.org>
17932
17933         signal: Define sighandler_t.
17934         * lib/signal.in.h (sighandler_t): New type.
17935         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17936         whether sighandler_t is defined.
17937         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17938         * modules/signal (Depends-on): Add extensions.
17939         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17940         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17941         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17942
17943 2011-05-05  Eric Blake  <eblake@redhat.com>
17944
17945         maint: remove useless REPLACE_*_H macros
17946         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17947         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17948         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17949         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17950         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17951         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17952         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17953         * m4/btowc.m4: Update callers.
17954         * m4/dirfd.m4: Likewise.
17955         * m4/duplocale.m4: Likewise.
17956         * m4/fchdir.m4: Likewise.
17957         * m4/fdopendir.m4: Likewise.
17958         * m4/inet_ntop.m4: Likewise.
17959         * m4/inet_pton.m4: Likewise.
17960         * m4/ioctl.m4: Likewise.
17961         * m4/mbrlen.m4: Likewise.
17962         * m4/mbrtowc.m4: Likewise.
17963         * m4/mbsinit.m4: Likewise.
17964         * m4/mbsnrtowcs.m4: Likewise.
17965         * m4/mbsrtowcs.m4: Likewise.
17966         * m4/poll.m4: Likewise.
17967         * m4/setlocale.m4: Likewise.
17968         * m4/wcrtomb.m4: Likewise.
17969         * m4/wcsnrtombs.m4: Likewise.
17970         * m4/wcsrtombs.m4: Likewise.
17971         * m4/wctob.m4: Likewise.
17972         * m4/wcwidth.m4: Likewise.
17973         * modules/posix_spawn: Likewise.
17974         * modules/posix_spawn_file_actions_addclose: Likewise.
17975         * modules/posix_spawn_file_actions_adddup2: Likewise.
17976         * modules/posix_spawn_file_actions_addopen: Likewise.
17977         * modules/posix_spawn_file_actions_destroy: Likewise.
17978         * modules/posix_spawn_file_actions_init: Likewise.
17979         * modules/posix_spawnattr_destroy: Likewise.
17980         * modules/posix_spawnattr_getflags: Likewise.
17981         * modules/posix_spawnattr_getpgroup: Likewise.
17982         * modules/posix_spawnattr_getschedparam: Likewise.
17983         * modules/posix_spawnattr_getschedpolicy: Likewise.
17984         * modules/posix_spawnattr_getsigdefault: Likewise.
17985         * modules/posix_spawnattr_getsigmask: Likewise.
17986         * modules/posix_spawnattr_init: Likewise.
17987         * modules/posix_spawnattr_setflags: Likewise.
17988         * modules/posix_spawnattr_setpgroup: Likewise.
17989         * modules/posix_spawnattr_setschedparam: Likewise.
17990         * modules/posix_spawnattr_setschedpolicy: Likewise.
17991         * modules/posix_spawnattr_setsigdefault: Likewise.
17992         * modules/posix_spawnattr_setsigmask: Likewise.
17993         * modules/posix_spawnp: Likewise.
17994
17995 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17996
17997         Add option to do-release-commit-and-tag to specify branch.
17998         * build-aux/do-release-commit-and-tag: Add --branch.
17999
18000 2011-05-03  Bruno Haible  <bruno@clisp.org>
18001
18002         Avoid unnecessary compilation units, through conditional dependencies.
18003         * modules/accept (Depends-on): Add conditions to the dependencies.
18004         * modules/acosl (Depends-on): Likewise.
18005         * modules/argz (Depends-on): Likewise.
18006         * modules/asinl (Depends-on): Likewise.
18007         * modules/atanl (Depends-on): Likewise.
18008         * modules/atoll (Depends-on): Likewise.
18009         * modules/bind (Depends-on): Likewise.
18010         * modules/btowc (Depends-on): Likewise.
18011         * modules/canonicalize-lgpl (Depends-on): Likewise.
18012         * modules/ceil (Depends-on): Likewise.
18013         * modules/ceilf (Depends-on): Likewise.
18014         * modules/ceill (Depends-on): Likewise.
18015         * modules/chdir-long (Depends-on): Likewise.
18016         * modules/chown (Depends-on): Likewise.
18017         * modules/close (Depends-on): Likewise.
18018         * modules/connect (Depends-on): Likewise.
18019         * modules/cosl (Depends-on): Likewise.
18020         * modules/dirfd (Depends-on): Likewise.
18021         * modules/dprintf (Depends-on): Likewise.
18022         * modules/dprintf-posix (Depends-on): Likewise.
18023         * modules/error (Depends-on): Likewise.
18024         * modules/euidaccess (Depends-on): Likewise.
18025         * modules/expl (Depends-on): Likewise.
18026         * modules/faccessat (Depends-on): Likewise.
18027         * modules/fchdir (Depends-on): Likewise.
18028         * modules/fclose (Depends-on): Likewise.
18029         * modules/fcntl (Depends-on): Likewise.
18030         * modules/fdopendir (Depends-on): Likewise.
18031         * modules/fflush (Depends-on): Likewise.
18032         * modules/floor (Depends-on): Likewise.
18033         * modules/floorf (Depends-on): Likewise.
18034         * modules/floorl (Depends-on): Likewise.
18035         * modules/fnmatch (Depends-on): Likewise.
18036         * modules/fopen (Depends-on): Likewise.
18037         * modules/fprintf-posix (Depends-on): Likewise.
18038         * modules/frexp (Depends-on): Likewise.
18039         * modules/frexp-nolibm (Depends-on): Likewise.
18040         * modules/frexpl (Depends-on): Likewise.
18041         * modules/frexpl-nolibm (Depends-on): Likewise.
18042         * modules/fseek (Depends-on): Likewise.
18043         * modules/fsusage (Depends-on): Likewise.
18044         * modules/ftell (Depends-on): Likewise.
18045         * modules/ftello (Depends-on): Likewise.
18046         * modules/futimens (Depends-on): Likewise.
18047         * modules/getcwd (Depends-on): Likewise.
18048         * modules/getcwd-lgpl (Depends-on): Likewise.
18049         * modules/getdelim (Depends-on): Likewise.
18050         * modules/getdomainname (Depends-on): Likewise.
18051         * modules/getgroups (Depends-on): Likewise.
18052         * modules/gethostname (Depends-on): Likewise.
18053         * modules/getline (Depends-on): Likewise.
18054         * modules/getlogin_r (Depends-on): Likewise.
18055         * modules/getopt-posix (Depends-on): Likewise.
18056         * modules/getpeername (Depends-on): Likewise.
18057         * modules/getsockname (Depends-on): Likewise.
18058         * modules/getsockopt (Depends-on): Likewise.
18059         * modules/getsubopt (Depends-on): Likewise.
18060         * modules/getusershell (Depends-on): Likewise.
18061         * modules/glob (Depends-on): Likewise.
18062         * modules/grantpt (Depends-on): Likewise.
18063         * modules/iconv_open (Depends-on): Likewise.
18064         * modules/iconv_open-utf (Depends-on): Likewise.
18065         * modules/inet_ntop (Depends-on): Likewise.
18066         * modules/inet_pton (Depends-on): Likewise.
18067         * modules/ioctl (Depends-on): Likewise.
18068         * modules/isapipe (Depends-on): Likewise.
18069         * modules/isfinite (Depends-on): Likewise.
18070         * modules/isinf (Depends-on): Likewise.
18071         * modules/lchown (Depends-on): Likewise.
18072         * modules/ldexpl (Depends-on): Likewise.
18073         * modules/link (Depends-on): Likewise.
18074         * modules/linkat (Depends-on): Likewise.
18075         * modules/listen (Depends-on): Likewise.
18076         * modules/logl (Depends-on): Likewise.
18077         * modules/lstat (Depends-on): Likewise.
18078         * modules/mbrlen (Depends-on): Likewise.
18079         * modules/mbrtowc (Depends-on): Likewise.
18080         * modules/mbsinit (Depends-on): Likewise.
18081         * modules/mbsnrtowcs (Depends-on): Likewise.
18082         * modules/mbsrtowcs (Depends-on): Likewise.
18083         * modules/mbtowc (Depends-on): Likewise.
18084         * modules/memcmp (Depends-on): Likewise.
18085         * modules/mkdir (Depends-on): Likewise.
18086         * modules/mkdtemp (Depends-on): Likewise.
18087         * modules/mkfifo (Depends-on): Likewise.
18088         * modules/mkfifoat (Depends-on): Likewise.
18089         * modules/mknod (Depends-on): Likewise.
18090         * modules/mkostemp (Depends-on): Likewise.
18091         * modules/mkostemps (Depends-on): Likewise.
18092         * modules/mkstemp (Depends-on): Likewise.
18093         * modules/mkstemps (Depends-on): Likewise.
18094         * modules/mktime (Depends-on): Likewise.
18095         * modules/nanosleep (Depends-on): Likewise.
18096         * modules/open (Depends-on): Likewise.
18097         * modules/openat (Depends-on): Likewise.
18098         * modules/perror (Depends-on): Likewise.
18099         * modules/poll (Depends-on): Likewise.
18100         * modules/popen (Depends-on): Likewise.
18101         * modules/posix_spawn (Depends-on): Likewise.
18102         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18103         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18104         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18105         * modules/posix_spawnp (Depends-on): Likewise.
18106         * modules/pread (Depends-on): Likewise.
18107         * modules/printf-posix (Depends-on): Likewise.
18108         * modules/ptsname (Depends-on): Likewise.
18109         * modules/putenv (Depends-on): Likewise.
18110         * modules/pwrite (Depends-on): Likewise.
18111         * modules/readline (Depends-on): Likewise.
18112         * modules/readlink (Depends-on): Likewise.
18113         * modules/readlinkat (Depends-on): Likewise.
18114         * modules/recv (Depends-on): Likewise.
18115         * modules/recvfrom (Depends-on): Likewise.
18116         * modules/regex (Depends-on): Likewise.
18117         * modules/remove (Depends-on): Likewise.
18118         * modules/rename (Depends-on): Likewise.
18119         * modules/renameat (Depends-on): Likewise.
18120         * modules/rmdir (Depends-on): Likewise.
18121         * modules/round (Depends-on): Likewise.
18122         * modules/roundf (Depends-on): Likewise.
18123         * modules/roundl (Depends-on): Likewise.
18124         * modules/rpmatch (Depends-on): Likewise.
18125         * modules/select (Depends-on): Likewise.
18126         * modules/send (Depends-on): Likewise.
18127         * modules/sendto (Depends-on): Likewise.
18128         * modules/setenv (Depends-on): Likewise.
18129         * modules/setlocale (Depends-on): Likewise.
18130         * modules/setsockopt (Depends-on): Likewise.
18131         * modules/shutdown (Depends-on): Likewise.
18132         * modules/sigaction (Depends-on): Likewise.
18133         * modules/signbit (Depends-on): Likewise.
18134         * modules/sigprocmask (Depends-on): Likewise.
18135         * modules/sinl (Depends-on): Likewise.
18136         * modules/sleep (Depends-on): Likewise.
18137         * modules/snprintf (Depends-on): Likewise.
18138         * modules/snprintf-posix (Depends-on): Likewise.
18139         * modules/socket (Depends-on): Likewise.
18140         * modules/sprintf-posix (Depends-on): Likewise.
18141         * modules/sqrtl (Depends-on): Likewise.
18142         * modules/stat (Depends-on): Likewise.
18143         * modules/strchrnul (Depends-on): Likewise.
18144         * modules/strdup-posix (Depends-on): Likewise.
18145         * modules/strerror (Depends-on): Likewise.
18146         * modules/strerror_r-posix (Depends-on): Likewise.
18147         * modules/strndup (Depends-on): Likewise.
18148         * modules/strnlen (Depends-on): Likewise.
18149         * modules/strptime (Depends-on): Likewise.
18150         * modules/strsep (Depends-on): Likewise.
18151         * modules/strsignal (Depends-on): Likewise.
18152         * modules/strstr-simple (Depends-on): Likewise.
18153         * modules/strtod (Depends-on): Likewise.
18154         * modules/strtoimax (Depends-on): Likewise.
18155         * modules/strtok_r (Depends-on): Likewise.
18156         * modules/strtoumax (Depends-on): Likewise.
18157         * modules/symlink (Depends-on): Likewise.
18158         * modules/symlinkat (Depends-on): Likewise.
18159         * modules/tanl (Depends-on): Likewise.
18160         * modules/tcgetsid (Depends-on): Likewise.
18161         * modules/tmpfile (Depends-on): Likewise.
18162         * modules/trunc (Depends-on): Likewise.
18163         * modules/truncf (Depends-on): Likewise.
18164         * modules/truncl (Depends-on): Likewise.
18165         * modules/uname (Depends-on): Likewise.
18166         * modules/unlink (Depends-on): Likewise.
18167         * modules/unlockpt (Depends-on): Likewise.
18168         * modules/unsetenv (Depends-on): Likewise.
18169         * modules/usleep (Depends-on): Likewise.
18170         * modules/utimensat (Depends-on): Likewise.
18171         * modules/vasprintf (Depends-on): Likewise.
18172         * modules/vdprintf (Depends-on): Likewise.
18173         * modules/vdprintf-posix (Depends-on): Likewise.
18174         * modules/vfprintf-posix (Depends-on): Likewise.
18175         * modules/vprintf-posix (Depends-on): Likewise.
18176         * modules/vsnprintf (Depends-on): Likewise.
18177         * modules/vsnprintf-posix (Depends-on): Likewise.
18178         * modules/vsprintf-posix (Depends-on): Likewise.
18179         * modules/wcrtomb (Depends-on): Likewise.
18180         * modules/wcscasecmp (Depends-on): Likewise.
18181         * modules/wcscspn (Depends-on): Likewise.
18182         * modules/wcsdup (Depends-on): Likewise.
18183         * modules/wcsncasecmp (Depends-on): Likewise.
18184         * modules/wcsnrtombs (Depends-on): Likewise.
18185         * modules/wcspbrk (Depends-on): Likewise.
18186         * modules/wcsrtombs (Depends-on): Likewise.
18187         * modules/wcsspn (Depends-on): Likewise.
18188         * modules/wcsstr (Depends-on): Likewise.
18189         * modules/wcstok (Depends-on): Likewise.
18190         * modules/wcswidth (Depends-on): Likewise.
18191         * modules/wctob (Depends-on): Likewise.
18192         * modules/wctomb (Depends-on): Likewise.
18193         * modules/wctype (Depends-on): Likewise.
18194         * modules/wcwidth (Depends-on): Likewise.
18195         * modules/write (Depends-on): Likewise.
18196
18197 2011-05-03  Bruno Haible  <bruno@clisp.org>
18198
18199         Support for conditional dependencies.
18200         * doc/gnulib.texi (Module description): Document the syntax of
18201         conditional dependencies.
18202         * gnulib-tool: New option --conditional-dependencies.
18203         (func_usage): Document it.
18204         (cond_dependencies): New variable.
18205         (func_get_automake_snippet_conditional,
18206         func_get_automake_snippet_unconditional): New functions, extracted from
18207         func_get_automake_snippet.
18208         (func_get_automake_snippet): Use them.
18209         (sed_first_32_chars): New variable.
18210         (func_module_shellfunc_name): New function.
18211         (func_module_shellvar_name): New function.
18212         (func_module_conditional_name): New function.
18213         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18214         func_cond_module_condition): New functions.
18215         (func_modules_transitive_closure): Add support for conditional
18216         dependencies.
18217         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18218         conditional automake snippet in an automake conditional.
18219         (func_emit_autoconf_snippets): Emit shell functions that contain the
18220         code for conditional modules.
18221         (func_import, func_create_testdir): Update specification.
18222
18223 2011-05-03  Eric Blake  <eblake@redhat.com>
18224
18225         test-getaddrinfo: report error information
18226         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18227
18228 2011-05-03  Jim Meyering  <meyering@redhat.com>
18229
18230         bootstrap: avoid build failure when $GZIP is set
18231         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18232         program name.  If defined at all, it is supposed to list gzip options.
18233         Reported by Alan Curry in http://debbugs.gnu.org/8609
18234
18235 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18236
18237         readme-release: new module with release instructions
18238         * modules/readme-release: New module.
18239         * top/README-release: New file, from coreutils, grep, diffutils.
18240         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18241
18242 2011-05-02  Eric Blake  <eblake@redhat.com>
18243
18244         fflush: also replace fclose when fixing fflush
18245         * modules/fflush (Depends-on): Add fclose.
18246         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18247         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18248         memstreams with no backing fd.
18249         * doc/posix-functions/fclose.texi (fclose): Document the use of
18250         fflush module to fix the bug.
18251         * tests/test-fclose.c (main): Relax test when fclose is used in
18252         isolation.
18253
18254         fclose: add some tests
18255         * modules/fclose-tests: New test module.
18256         * tests/test-fclose.c: New file.
18257         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18258
18259         fclose: reduced dependencies
18260         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18261         simpler lseek.
18262         * lib/fclose.c (rpl_fclose): Likewise.
18263         Reported by Simon Josefsson.
18264
18265         exit: drop remaining clients
18266         * modules/argmatch (Depends-on): Replace exit with stdlib.
18267         * modules/copy-file (Depends-on): Likewise.
18268         * modules/execute (Depends-on): Likewise.
18269         * modules/exitfail (Depends-on): Likewise.
18270         * modules/obstack (Depends-on): Likewise.
18271         * modules/pagealign_alloc (Depends-on): Likewise.
18272         * modules/pipe-filter-gi (Depends-on): Likewise.
18273         * modules/pipe-filter-ii (Depends-on): Likewise.
18274         * modules/savewd (Depends-on): Likewise.
18275         * modules/spawn-pipe (Depends-on): Likewise.
18276         * modules/wait-process (Depends-on): Likewise.
18277         * modules/xsetenv (Depends-on): Likewise.
18278         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18279         * modules/git-merge-changelog (Depends-on): Likewise.
18280         * modules/long-options (Depends-on): Likewise.
18281         * modules/pt_chown (Depends-on): Likewise.
18282         * modules/sysexits (Depends-on): Likewise.
18283
18284         freading: relax license from LGPLv3+ to LGPLv2+
18285         * modules/freading (License): Relax LGPL version.
18286
18287 2011-05-02  Bruno Haible  <bruno@clisp.org>
18288
18289         fchdir: Remove unused dependencies.
18290         * modules/fchdir (Depends-on): Remove include_next.
18291
18292 2011-05-02  Bruno Haible  <bruno@clisp.org>
18293
18294         gnulib-tool: Refactor.
18295         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18296         from func_emit_autoconf_snippets.
18297         (func_emit_autoconf_snippets): Use it.
18298
18299 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18300
18301         * NEWS: Document removal of 'exit'.
18302         * modules/exit: Remove file.
18303
18304 2011-05-01  Bruno Haible  <bruno@clisp.org>
18305
18306         Update DEPENDENCIES.
18307         * DEPENDENCIES (gettext): Recommend the newest release.
18308         Reported by Simon Josefsson.
18309
18310 2011-05-01  Bruno Haible  <bruno@clisp.org>
18311
18312         gnulib-tool: Reduce code duplication.
18313         * gnulib-tool (func_emit_autoconf_snippets): New function.
18314         (func_import, func_create_testdir): Use it.
18315
18316 2011-04-30  Eric Blake  <eblake@redhat.com>
18317
18318         fclose: don't fail on non-seekable input stream
18319         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18320         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18321         since fflush is allowed to fail in that case.
18322
18323 2011-04-30  Bruno Haible  <bruno@clisp.org>
18324
18325         dup3: cleanup
18326         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18327
18328 2011-04-30  Bruno Haible  <bruno@clisp.org>
18329
18330         netdb: Make it work in C++ mode.
18331         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18332         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18333         module.
18334         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18335         gl_MODULE_INDICATOR_FOR_TESTS.
18336         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18337         * modules/netdb-c++-tests: New file.
18338         * tests/test-netdb-c++.cc: New file.
18339
18340 2011-04-30  Bruno Haible  <bruno@clisp.org>
18341
18342         New modules 'vfscanf', 'vscanf'.
18343         * modules/vfscanf: New file.
18344         * modules/vscanf: New file.
18345         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18346         here.
18347         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18348         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18349
18350 2011-04-30  Bruno Haible  <bruno@clisp.org>
18351
18352         passfd: Add comments.
18353         * lib/passfd.c: Add comments about platforms.
18354
18355 2011-04-30  Bruno Haible  <bruno@clisp.org>
18356
18357         sys_uio: Make <sys/uio.h> self-contained.
18358         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18359         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18360
18361 2011-04-30  Bruno Haible  <bruno@clisp.org>
18362
18363         sys_socket: Ensure 'struct iovec' definition.
18364         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18365         <sys/socket.h>.
18366         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18367
18368 2011-04-30  Bruno Haible  <bruno@clisp.org>
18369
18370         sys_uio: Protect definition of 'struct iovec'.
18371         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18372         it as a C struct.
18373
18374 2011-04-30  Bruno Haible  <bruno@clisp.org>
18375
18376         manywarnings: fix indentation
18377         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18378
18379 2011-04-30  Pádraig Brady <P@draigBrady.com>
18380
18381         manywarnings: add -Wno-missing-field-initializers if needed.
18382         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18383         option if it's needed to allow initialization with { 0, }
18384
18385 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18386
18387         announce-gen: cosmetic improvement
18388         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18389
18390 2011-04-29  Jim Meyering  <meyering@redhat.com>
18391
18392         vc-list-files: indent with spaces, not TABs
18393         * build-aux/vc-list-files: Convert leading TABs to spaces,
18394         to match the style of most other files in gnulib.
18395
18396         announce-gen: indent with spaces, not TABs
18397         * build-aux/announce-gen: Convert all TABs to spaces, to match
18398         the style of most other files in gnulib.
18399
18400 2011-04-29  Eric Blake  <eblake@redhat.com>
18401
18402         quotearg: avoid uninitialized variable use
18403         * lib/quotearg.c (quoting_options_from_style): Initialize
18404         remaining fields, and ensure that custom styles are only used via
18405         quoting_options rather than quoting_style.
18406
18407 2011-04-29  Jim Meyering  <meyering@redhat.com>
18408
18409         maint.mk: remove unused VC-tag variable
18410         * top/maint.mk (VC-tag): Remove unused variable.
18411
18412 2011-04-29  Bruno Haible  <bruno@clisp.org>
18413
18414         netdb: fix gai_strerror replacements
18415         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18416         * modules/netdb: Substitute it.
18417
18418 2011-04-29  Jim Meyering  <meyering@redhat.com>
18419
18420         test-getcwd.c: avoid new set-but-not-used warning
18421         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18422         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18423         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18424         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18425
18426         test-hash.c: avoid a new shadowing warning
18427         * tests/test-hash.c (main): Don't shadow "dup".
18428
18429 2011-04-28  Eric Blake  <eblake@redhat.com>
18430
18431         getaddrinfo: fix gai_strerror signature
18432         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18433         and work around mingw with UNICODE defined.
18434         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18435         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18436         * modules/netdb (Makefile.am): Substitute it.
18437         * lib/netdb.in.h (gai_strerror): Declare replacement.
18438         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18439         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18440         the fix.
18441
18442         getsockopt: avoid compiler warning
18443         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18444         Reported by Matthias Bolte.
18445
18446         tests: drop unused link dependency
18447         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18448         * modules/dirent-safer-tests (Makefile.am): Likewise.
18449         * modules/fdopendir-tests (Makefile.am): Likewise.
18450         * modules/mkfifoat-tests (Makefile.am): Likewise.
18451         * modules/openat-safer-tests (Makefile.am): Likewise.
18452         * modules/openat-tests (Makefile.am): Likewise.
18453         * modules/readlinkat-tests (Makefile.am): Likewise.
18454         * modules/symlinkat-tests (Makefile.am): Likewise.
18455         * modules/linkat-tests (Makefile.am): Likewise.
18456         (Depends-on): Switch to filenamecat-lgpl.
18457         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18458         LIBINTL.
18459         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18460         * tests/test-linkat.c (main): Don't require xalloc.
18461
18462         hash, mgetgroups: drop xalloc dependency
18463         * lib/hash.c (includes): Adjust includes.
18464         * lib/mgetgroups.c (includes): Likewise.
18465         (xgetgroups): Move...
18466         * lib/xgetgroups.c: ...to new file.
18467         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18468         * modules/xgetgroups: New file, split from...
18469         * modules/mgetgroups: ...here.
18470         (Depends-on): Add xalloc-oversized.
18471         * modules/hash (Depends-on): Likewise.
18472         * modules/hash-tests (Depends-on): Drop xalloc.
18473         (test_hash_LDADD): Drop unused library.
18474         * tests/test-hash.c (main): Break xalloc dependency.
18475         (includes): Drop unused include.
18476
18477         xalloc-oversized: new module
18478         * modules/xalloc-oversized: New module.
18479         * modules/xalloc (Depends-on): Add it.
18480         * lib/xalloc.h (xalloc_oversized): Move...
18481         * lib/xalloc-oversized.h: ...into new file.
18482
18483         utimecmp: drop dependency on xmalloc
18484         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18485         due to memory pressure.
18486         * modules/utimecmp (Depends-on): Drop xalloc.
18487
18488 2011-04-27  Eric Blake  <eblake@redhat.com>
18489
18490         getcwd: fix mingw bugs
18491         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18492         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18493         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18494
18495 2011-04-27  Bruno Haible  <bruno@clisp.org>
18496
18497         mkstemps: Ensure declaration on MacOS X 10.5.
18498         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18499         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18500         MacOS X.
18501
18502 2011-04-27  Bruno Haible  <bruno@clisp.org>
18503
18504         mkstemp: More documentation.
18505         * doc/posix-functions/mkstemp.texi: Document header file problem on
18506         MacOS X.
18507
18508 2011-04-27  Bruno Haible  <bruno@clisp.org>
18509
18510         mkstemp: Tweak configure message when cross-compiling.
18511         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18512         result as a guess.
18513
18514 2011-04-27  Bruno Haible  <bruno@clisp.org>
18515
18516         clean-temp: Clarify what it does.
18517         * lib/clean-temp.h: Add more comments.
18518         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18519         module.
18520         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18521         * doc/glibc-functions/mkstemps.texi: Likewise.
18522         * doc/glibc-functions/mkostemps.texi: Likewise.
18523
18524 2011-04-27  Eric Blake  <eblake@redhat.com>
18525
18526         fchdir: avoid extra chdir and fix test
18527         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18528         getcwd-lgpl.
18529         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18530         have to be canonical.
18531         (canonicalize_file_name): Drop unused macro.
18532         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18533
18534         filenamecat-lgpl: fix licence
18535         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18536         when it was first created.
18537
18538         linkat, renameat: add missing dependency
18539         * modules/linkat (Depends-on): Require getcwd-lgpl.
18540         * modules/renameat (Depends-on): Likewise.
18541
18542         tests: reduce dependencies
18543         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18544         * tests/test-renameat.c (main): Likewise.
18545         * modules/linkat-tests (Depends-on): Relax dependency.
18546         * modules/renameat-tests (Depends-on): Likewise.
18547         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18548         dependency explicit.
18549
18550         save-cwd: reduce default dependency
18551         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18552         * lib/save-cwd.c: Update comments.
18553         * NEWS: Document the semantic change.
18554
18555         getcwd: enhance tests
18556         * tests/test-getcwd-lgpl.c: New file, taken from...
18557         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18558         repeat long path stress tests from m4 probe.
18559         * modules/getcwd-lgpl-tests: New module.
18560         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18561         * m4/getcwd-abort-bug.m4: Update comment.
18562         * m4/getcwd-path-max.m4: Likewise.
18563
18564         getcwd-lgpl: new module
18565         * modules/getcwd-lgpl: New module.
18566         * lib/getcwd-lgpl.c: New file.
18567         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18568         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18569         * modules/getcwd (configure.ac): Set C witness.
18570         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18571
18572         getcwd: tweak comments
18573         * m4/getcwd-abort-bug.m4: Fix comments.
18574         * m4/getcwd-path-max.m4: Likewise.
18575         * m4/getcwd.m4: Likewise.
18576
18577 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18578         and Eric Blake  <eblake@redhat.com>
18579
18580         mkstemp: replace if system version uses wrong permissions
18581         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18582         read/write mode bits set in file created by mkstemp.
18583         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18584
18585 2011-04-27  Eric Blake  <eblake@redhat.com>
18586
18587         passfd: avoid compiler warning
18588         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18589         Reported by Laine Stump.
18590
18591 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18592
18593         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18594         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18595
18596 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18597         and Eric Blake  <eblake@redhat.com>
18598
18599         mkstemp: mention clean-temp module
18600         * lib/mkstemp.c: Add comment.
18601         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18602
18603 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18604
18605         inttypes: also provide default values for 32-bit tests
18606         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18607         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18608
18609 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18610
18611         strtoumax: remove dependency on strtoimax
18612         This is like the strtoull change of yesterday.
18613         * modules/strtoumax (Files): Add lib/strtoimax.c.
18614         (Depends-on): Remove strtoimax and add verify.
18615
18616         inttypes-incomplete: new module
18617         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18618         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18619         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18620         of gl_INTTYPES_H.
18621         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18622         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18623         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18624         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18625         * modules/strtoumax, modules/xstrtol (Depends-on):
18626         Depend on inttypes-incomplete, not inttypes.
18627         * modules/inttypes-incomplete: New module, containing the contents
18628         of the old modules/inttypes module, except that the Files: section
18629         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18630         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18631         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18632         (Depends-on): Depend only on inttypes-incomplete.
18633         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18634
18635         inttypes: omit now-redundant strtoimax and strtoumax work
18636         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18637         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18638
18639         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18640         This supports apps that need pointers to strtoimax and strtoumax,
18641         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18642         nonexistent functions.  See
18643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18644         et seq.
18645         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18646         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18647         a macro.
18648         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18649
18650 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18651
18652         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18653
18654 2011-04-25  Bruno Haible  <bruno@clisp.org>
18655
18656         strtol, strtoul: Mark modules as obsolete.
18657         * modules/strtol (Status, Notice): New sections.
18658         * modules/strtoul (Status, Notice): New sections.
18659
18660 2011-04-25  Bruno Haible  <bruno@clisp.org>
18661
18662         strtod: Remove check for strtod, unless supporting old platforms.
18663         * modules/strtod-obsolete: New file.
18664         * m4/strtod-obsolete.m4: New file.
18665         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18666         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18667         * modules/strtod (Depends-on): Add strtod-obsolete.
18668         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18669
18670 2011-04-25  Bruno Haible  <bruno@clisp.org>
18671
18672         strcase: Make module obsolete.
18673         * modules/strcase (Status, Notice): New sections.
18674
18675 2011-04-25  Bruno Haible  <bruno@clisp.org>
18676
18677         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18678         * modules/dup2-obsolete: New file.
18679         * m4/dup2-obsolete.m4: New file.
18680         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18681         gl_FUNC_DUP2_OBSOLETE is not also defined.
18682         * modules/dup2 (Depends-on): Add dup2-obsolete.
18683         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18684
18685 2011-04-25  Bruno Haible  <bruno@clisp.org>
18686
18687         strnlen: Avoid memchr related link error on old obsolete platforms.
18688         * modules/memchr-obsolete: New file.
18689         * m4/memchr-obsolete.m4: New file.
18690         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18691         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18692         * modules/memchr (Depends-on): Add memchr-obsolete.
18693         * modules/strnlen (Depends-on): Likewise.
18694         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18695
18696 2011-04-25  Jim Meyering  <meyering@redhat.com>
18697
18698         maint.mk: makefile_at_at_check extend and clean up
18699         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18700         in addition to */Makefile.am.
18701         Exempt legitimate uses of @VAR@ notation, e.g.,
18702         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18703         Remove obsolete coreutils-specific comment.
18704         Prompted by discussion here:
18705         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18706
18707 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18708
18709         strtoul: remove dependency on strtol
18710         This is so that 'configure' need not check for strtol merely because
18711         the application needs strtoul.
18712         * modules/strtoul (Files): Add lib/strtol.c.
18713         (Depends-on): Remove strtol.
18714
18715         strtoull: remove dependency on strtoul
18716         This is like the strtoll change.
18717         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18718         (Depends-on): Remove strtoul.
18719
18720         strtoll: remove dependency on strtol
18721         This is so that 'configure' need not check for strtol merely because
18722         the application needs strtoll.
18723         * modules/strtoll (Files): Add lib/strtol.c.
18724         (Depends-on): Remove strtol.
18725
18726 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18727
18728         inttypes: Move some configure check to module 'imaxdiv'.
18729         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18730         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18731         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18732
18733 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18734
18735         inttypes: Move some configure check to module 'imaxabs'.
18736         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18737         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18738         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18739
18740 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18741
18742         inttypes: Remove configure tests that are not needed since 2009-12-31.
18743         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18744         gl_cv_header_working_inttypes_h.
18745
18746 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18747
18748         * modules/strnlen (Depends-on): Remove memchr.
18749         The strnlen implementation doesn't need the memchr module's fixes; see
18750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18751
18752         strtol: remove dependency on wchar
18753         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18754         * modules/strtol (Depends-on): Remove wchar.
18755
18756 2011-04-21  Eric Blake  <eblake@redhat.com>
18757
18758         passfd: fix test regression on Linux
18759         * modules/passfd-tests (configure.ac): Correct socketpair check.
18760
18761         passfd: speed up configure and drop unused code
18762         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18763         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18764         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18765         Instead of probing at configure for unix_scm_rights_bsd44_way,
18766         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18767         check to a struct member probe.
18768         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18769         (sendfd, recvfd): Update preprocessor checks.
18770         * modules/passfd (Files): Reflect rename, and drop unused file.
18771         (Depends-on): Drop unused dependency.
18772
18773         passfd: allow compilation on mingw
18774         * modules/sys_socket (Depends-on): Add sys_uio.
18775         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18776         iovec and a minimal struct msghdr.
18777         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18778         * tests/test-sys_socket.c (main): Enhance test.
18779         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18780         guaranteed to provide what we need.
18781         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18782         * modules/passfd-tests (Depends-on): Add sys_wait.
18783         * tests/test-passfd.c (main): Skip test on mingw, for now.
18784         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18785         partial 'struct msghdr' implementation.
18786
18787         sys_uio: new module
18788         * modules/sys_uio: New module.
18789         * modules/sys_uio-tests: Likewise.
18790         * lib/sys_uio.in.h: New file.
18791         * m4/sys_uio_h.m4: Likewise.
18792         * tests/test-sys_uio.c: Likewise.
18793         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18794         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18795
18796 2011-04-20  Jim Meyering  <meyering@redhat.com>
18797
18798         useless-if-before-free: avoid false-positive
18799         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18800         disjunct so that it too requires a terminating ";".  Without that,
18801         this script would identify as useless one statement from gcc that
18802         was not:
18803           if (aligned_ptr)
18804             free (((void **) aligned_ptr) [-1]);
18805
18806 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18807
18808         doc: update users.txt.
18809         * users.txt: Add barcode.
18810
18811 2011-04-19  Bruno Haible  <bruno@clisp.org>
18812
18813         ioctl: Remove link dependency on native Windows.
18814         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18815         (gl_close_fn, gl_ioctl_fn): New types.
18816         (struct fd_hook): Renamed from struct close_hook. Change type of
18817         private_close_fn field. Add private_ioctl_fn field.
18818         (close_hook_fn): Add parameter for primary close method.
18819         (execute_close_hooks, execute_all_close_hooks): Likewise.
18820         (ioctl_hook_fn): New type.
18821         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18822         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18823         argument.
18824         (unregister_fd_hook): Renamed from unregister_close_hook.
18825         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18826         Don't include <unistd.h>.
18827         (close): Remove undef.
18828         (anchor): Update.
18829         (execute_close_hooks): Add argument for primary close method.
18830         (execute_all_close_hooks): Likewise.
18831         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18832         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18833         argument. Allow each argument to be NULL.
18834         (unregister_fd_hook): Renamed from unregister_close_hook.
18835         * lib/close.c (rpl_close): Pass 'close' function pointer to
18836         execute_all_close_hooks.
18837         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18838         (primary_ioctl): New function.
18839         (ioctl): Don't call ioctlsocket here. Instead, call
18840         execute_all_ioctl_hooks.
18841         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18842         close method.
18843         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18844         (fd_sockets_hook): Renamed from close_sockets_hook.
18845         (gl_sockets_startup, gl_sockets_cleanup): Update.
18846         * modules/fd-hook: Renamed from modules/close-hook. Update.
18847         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18848         * modules/sockets (Depends-on): Likewise.
18849         * modules/ioctl (Depends-on): Add fd-hook.
18850         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18851         GNULIB_SOCKET.
18852
18853 2011-04-19  Bruno Haible  <bruno@clisp.org>
18854
18855         Move the support of O_NONBLOCK in open() to the 'open' module.
18856         * modules/nonblocking (Depends-on): Remove 'open'.
18857         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18858         gl_cv_have_open_O_NONBLOCK.
18859         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18860         O_NONBLOCK support.
18861         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18862
18863 2011-04-17  Bruno Haible  <bruno@clisp.org>
18864
18865         pipe2: Simplify code.
18866         * lib/pipe2.c (pipe2): Reduce code duplication.
18867
18868 2011-04-17  Bruno Haible  <bruno@clisp.org>
18869
18870         nonblocking: Add comment.
18871         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18872
18873 2011-04-17  Bruno Haible  <bruno@clisp.org>
18874
18875         nonblocking: Add tests for sockets.
18876         * tests/test-nonblocking-socket.sh: New file.
18877         * tests/test-nonblocking-socket-main.c: New file.
18878         * tests/test-nonblocking-socket-child.c: New file.
18879         * tests/test-nonblocking-socket.h: New file.
18880         * tests/socket-server.h: New file.
18881         * tests/socket-client.h: New file.
18882         * modules/nonblocking-socket-tests: New file.
18883         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18884
18885 2011-04-17  Bruno Haible  <bruno@clisp.org>
18886
18887         nonblocking: Add tests for pipes.
18888         * tests/test-nonblocking-pipe.sh: New file.
18889         * tests/test-nonblocking-pipe-main.c: New file.
18890         * tests/test-nonblocking-pipe-child.c: New file.
18891         * tests/test-nonblocking-pipe.h: New file.
18892         * tests/test-nonblocking-writer.h: New file.
18893         * tests/test-nonblocking-reader.h: New file.
18894         * tests/test-nonblocking-misc.h: New file.
18895         * modules/nonblocking-pipe-tests: New file.
18896         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18897
18898 2011-04-16  Bruno Haible  <bruno@clisp.org>
18899
18900         gettext: Clarify the needed programmer actions.
18901         * modules/gettext (Notice): New field.
18902         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18903
18904 2011-04-16  Bruno Haible  <bruno@clisp.org>
18905
18906         strchrnul: Tweak last commit.
18907         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18908         bug.
18909         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18910         as in _GL_FUNCDECL_SYS.
18911         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18912         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18913
18914 2011-04-15  Eric Blake  <eblake@redhat.com>
18915
18916         strchrnul: work around cygwin bug
18917         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18918         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18920         * modules/string (Makefile.am): Substitute it.
18921         * lib/string.in.h (strchrnul): Use it.
18922
18923 2011-04-15  Bruno Haible  <bruno@clisp.org>
18924
18925         Don't require lib/stdio-write.c when only module 'stdio' is used.
18926         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18927         invocation.
18928         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18929
18930 2011-04-14  Bruno Haible  <bruno@clisp.org>
18931
18932         Support non-blocking pipe I/O in read() on native Windows.
18933         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18934         (read): New declaration.
18935         * lib/read.c: New file.
18936         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18937         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18938         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18939         vscanf): New declarations.
18940         * lib/stdio-read.c: New file.
18941         * m4/read.m4: New file.
18942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18943         REPLACE_READ.
18944         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18945         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18946         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18947         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18948         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18949         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18950         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18951         * modules/read: New file.
18952         * modules/nonblocking (Files): Add lib/stdio-read.c.
18953         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18954         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18955         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18956         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18957         * modules/pread (Depends-on): Add read.
18958         * modules/safe-read (Depends-on): Likewise.
18959         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18960         gets, scanf, vfscanf, vscanf): Verify signatures.
18961         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18962         problem with non-blocking pipes.
18963         * doc/posix-functions/fgetc.texi: Likewise.
18964         * doc/posix-functions/fgets.texi: Likewise.
18965         * doc/posix-functions/fread.texi: Likewise.
18966         * doc/posix-functions/fscanf.texi: Likewise.
18967         * doc/posix-functions/getc.texi: Likewise.
18968         * doc/posix-functions/getchar.texi: Likewise.
18969         * doc/posix-functions/gets.texi: Likewise.
18970         * doc/posix-functions/scanf.texi: Likewise.
18971         * doc/posix-functions/vfscanf.texi: Likewise.
18972         * doc/posix-functions/vscanf.texi: Likewise.
18973
18974 2011-04-14  Bruno Haible  <bruno@clisp.org>
18975
18976         Support non-blocking pipe I/O in write() on native Windows.
18977         * lib/write.c (rpl_write): Split a write request that failed merely
18978         because the byte count was larger than the pipe buffer's size.
18979         * doc/posix-functions/write.texi: Mention the problem with large byte
18980         counts.
18981
18982 2011-04-14  Bruno Haible  <bruno@clisp.org>
18983
18984         wchar: Ensure that wchar_t gets defined on uClibc.
18985         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18986         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18987
18988 2011-04-13  Bruno Haible  <bruno@clisp.org>
18989
18990         safe-write, full-read: Avoid unnecessary compilation units.
18991         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18992         (Depends-on): Remove safe-read. Add ssize_t.
18993         * modules/full-read (Files): Add lib/full-write.c.
18994         (Depends-on): Add full-write.
18995
18996 2011-04-13  Bruno Haible  <bruno@clisp.org>
18997
18998         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18999         * modules/pwrite (Depends-on): Add 'write'.
19000
19001 2011-04-13  Bruno Haible  <bruno@clisp.org>
19002
19003         Support non-blocking pipe I/O in write() on native Windows.
19004         * lib/unistd.in.h (write): Enable replacement also if
19005         GNULIB_UNISTD_H_NONBLOCKING is 1.
19006         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
19007         (rpl_write): When failing to write on a non-blocking pipe, change
19008         errno from ENOSPC to EAGAIN.
19009         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19010         putchar, puts, vfprintf, vprintf): Enable replacement also if
19011         GNULIB_STDIO_H_NONBLOCKING is 1.
19012         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19013         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19014         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19015         CALL_WITH_SIGPIPE_EMULATION.
19016         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19017         * m4/nonblocking.m4: New file.
19018         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19019         for non-blocking I/O support.
19020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19021         GNULIB_UNISTD_H_NONBLOCKING.
19022         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19023         required for non-blocking I/O support.
19024         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19025         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19026         lib/stdio-write.c, m4/asm-underscore.m4.
19027         (Depends-on): Add stdio, unistd.
19028         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19029         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19030         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19031         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19032         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19033         problem with non-blocking pipes.
19034         * doc/posix-functions/fputc.texi: Likewise.
19035         * doc/posix-functions/fputs.texi: Likewise.
19036         * doc/posix-functions/fwrite.texi: Likewise.
19037         * doc/posix-functions/printf.texi: Likewise.
19038         * doc/posix-functions/putc.texi: Likewise.
19039         * doc/posix-functions/putchar.texi: Likewise.
19040         * doc/posix-functions/puts.texi: Likewise.
19041         * doc/posix-functions/vfprintf.texi: Likewise.
19042         * doc/posix-functions/vprintf.texi: Likewise.
19043         * doc/posix-functions/write.texi: Likewise.
19044
19045 2011-04-10  Jim Meyering  <meyering@redhat.com>
19046
19047         maint.mk: prohibit doubled words
19048         Detect them also when they're separated by a newline.
19049         There are 3 ways to customize it:
19050           - disable the test on a per file basis, as usual with rules using
19051             $(VC_LIST_EXCEPT)
19052           - replace the default doubled-word-selecting regexp (affects all files)
19053           - ignore a particular file-vs-doubled-word match
19054         I nearly used that last one to ignore the "is is" match in
19055         coreutils' NEWS file, since the text was "ls -is is ..."
19056         To do that, I would have added this line to cfg.mk:
19057           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19058         but it would have ignored any "is is" match in NEWS.
19059         Low probability, but still...
19060         Instead, I changed the text, slightly:
19061           -  ls -is is now consistent with ls -lis in ignoring values returned
19062           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19063         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19064         (prohibit_doubled_word_): Define.
19065         (sc_prohibit_doubled_word): New rule.
19066         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19067
19068 2011-04-10  Jim Meyering  <meyering@redhat.com>
19069
19070         maint: fix doubled-word typo in comment
19071         * m4/gethostname.m4: s/is is/it is/
19072         * m4/getdomainname.m4: Likewise.
19073
19074 2011-04-10  Jim Meyering  <meyering@redhat.com>
19075
19076         maint: remove doubled word: s/it it/it/
19077         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19078
19079 2011-04-10  Jim Meyering  <meyering@redhat.com>
19080
19081         maint.mk: remove useless semicolon and backslash
19082         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19083         semicolon and backslash.
19084
19085 2011-04-10  Bruno Haible  <bruno@clisp.org>
19086
19087         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19088         * modules/stdint-tests (Depends-on): Add wchar.
19089
19090 2011-04-10  Jim Meyering  <meyering@redhat.com>
19091
19092         maint: remove doubled words in comments, e.g., s/a a/a/
19093         * lib/strptime.c (day_of_the_week): s/the the/the/
19094         * tests/test-chown.h (test_chown): s/a a/a/
19095
19096         test-chown.h: correct a cast
19097         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19098         when the destination is a stat.st_gid.
19099
19100 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19101
19102         getaddrinfo: Fix test for sa_len member.
19103         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19104         include <sys/types.h> before <sys/socket.h>.
19105
19106 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19107
19108         maint: change "can not" to "cannot"
19109         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19110         boundaries.
19111
19112 2011-04-09  Jim Meyering  <meyering@redhat.com>
19113
19114         maint: change "a a" to "a"
19115         * tests/test-lchown.h (test_lchown): s/a a/a/
19116
19117         maint.mk: prohibit \<the the\>
19118         * top/maint.mk (sc_prohibit_the_the): New rule.
19119
19120         maint: fix "the the" in comment
19121         * lib/count-one-bits.h: s/the the/the/
19122
19123         maint: change "can not" to "cannot"
19124         But do not change the occurrences in maintain.texi or in
19125         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19126         * doc/gnulib-tool.texi: s/can not/cannot/
19127         * doc/posix-functions/accept.texi (accept): Likewise.
19128         * doc/posix-functions/socket.texi (socket): Likewise.
19129         * lib/mbrtowc.c: Likewise.
19130
19131         maint.mk: prohibit use of "can not"
19132         * top/maint.mk (sc_prohibit_can_not): New rule.
19133         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19134
19135 2011-04-09  Bruno Haible  <bruno@clisp.org>
19136
19137         careadlinkat: Guard against misuse of careadlinkatcwd.
19138         * lib/careadlinkat.c: Include <stdlib.h>.
19139         (careadlinkatcwd): Check that the fd argument is as expected.
19140
19141 2011-04-09  Bruno Haible  <bruno@clisp.org>
19142
19143         careadlinkat: Use common coding style.
19144         * lib/careadlinkat.c: Move gnulib includes after system includes.
19145
19146 2011-04-09  Bruno Haible  <bruno@clisp.org>
19147
19148         careadlinkat: Clarify specification.
19149         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19150         (careadlinkatcwd): Add comment.
19151         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19152
19153 2011-04-09  Bruno Haible  <bruno@clisp.org>
19154
19155         areadlinkat: Avoid link error on many platforms.
19156         * modules/areadlinkat (Depends-on): Add areadlink.
19157
19158 2011-04-09  Bruno Haible  <bruno@clisp.org>
19159
19160         allocator, careadlinkat: Fix double-inclusion guard.
19161         * lib/allocator.h: Fix double-inclusion guard.
19162         * lib/careadlinkat.h: Likewise.
19163
19164 2011-04-09  Bruno Haible  <bruno@clisp.org>
19165
19166         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19167         * lib/relocwrapper.c: Update dependencies hierarchy.
19168         * build-aux/install-reloc: Update list of files to be compiled.
19169         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19170         lib/allocator.[hc].
19171
19172 2011-04-08  Eric Blake  <eblake@redhat.com>
19173
19174         strftime: silence gnulib-tool warning
19175         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19176
19177 2011-04-08  Bruno Haible  <bruno@clisp.org>
19178
19179         verify: Fix syntax error with GCC 4.6 in C++ mode.
19180         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19181         (HAVE_STATIC_ASSERT): New macro.
19182         (verify_true, verify): Use 'static_assert' if it is supported and
19183         '_Static_assert' is not supported.
19184
19185 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19186
19187         allocator: New module.
19188         * modules/allocator, lib/allocator.c: New files.
19189         * lib/allocator.h (stdlib_allocator): New decl.
19190         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19191         Remove.  Do not include <stdlib.h>.
19192         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19193         * modules/careadlinkat (Files): Remove lib/allocator.h.
19194         (Depends-on): Add allocator.
19195
19196         stdlib: let modules use system malloc, realloc
19197         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19198         if !_GL_USE_STDLIB_ALLOC.
19199         (malloc, realloc): Limit this change to a smaller scope.
19200
19201         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19202         (malloc, realloc): Don't #undef; no longer needed.
19203         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19204         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19205         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19206         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19207         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19208         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19209         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19210         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19211
19212         careadlinkat: rename members to avoid problem
19213         * lib/allocator.h (struct allocator): Rename members from
19214         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19215         and realloc are #define'd.  Reported by Eric Blake in
19216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19217         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19218
19219 2011-04-08  Eric Blake  <eblake@redhat.com>
19220
19221         nonblocking: reduce dependency
19222         * tests/test-nonblocking.c: Only test sockets when in use.
19223         * modules/nonblocking-tests (Depends-on): Drop socket.
19224         (Makefile.am): Link even if sockets are not present.
19225         * modules/pipe2-tests (Makefile.am): Likewise.
19226         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19227
19228         pipe2: fix O_NONBLOCK support on mingw
19229         * modules/pipe2 (Depends-on): Add nonblocking.
19230         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19231         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19232         * tests/test-nonblocking.c (main): Likewise.
19233         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19234
19235         fcntl-h: fix O_ACCMODE on cygwin
19236         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19237         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19238
19239         pipe-filter: drop O_NONBLOCK workarounds
19240         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19241         * modules/pipe-filter-ii (Depends-on): Likewise.
19242         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19243
19244         nonblocking: provide O_NONBLOCK for mingw
19245         * modules/nonblocking (Depends-on): Add open.
19246         (configure.ac): Set new witness macro.
19247         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19248         * modules/fcntl-h (Makefile.am): Substitute it.
19249         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19250         nonblocking module is in use.
19251         * lib/nonblocking.c: Adjust portability test.
19252         * lib/open.c (open): Don't let native open see gnulib flag.
19253         * tests/test-fcntl-h.c (main): Enhance test.
19254         * tests/test-open.h (test_open): Likewise.
19255         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19256
19257         careadlinkat: fix compilation error on mingw
19258         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19259         within struct allocator.
19260
19261 2011-04-06  Eric Blake  <eblake@redhat.com>
19262
19263         binary-io: relicense under LGPLv2+
19264         * modules/binary-io (License): Relax to LGPLv2+.
19265         Requested for libvirt, and required by pipe2.
19266
19267 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19268
19269         verify: use _Static_assert if available
19270         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19271         (verify_true, verify): Use it if available.  This generates better
19272         diagnostics with GCC 4.6.0 and later.
19273
19274 2011-04-05  Bruno Haible  <bruno@clisp.org>
19275
19276         Remove leftover generated .h files after config.status changed.
19277
19278         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19279         GL_GENERATE_ALLOCA_H.
19280         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19281         GL_GENERATE_ALLOCA_H evaluates to false.
19282
19283         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19284         GL_GENERATE_ARGZ_H.
19285         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19286         evaluates to false.
19287
19288         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19289         GL_GENERATE_BYTESWAP_H.
19290         * modules/byteswap (Makefile.am): Remove byteswap.h if
19291         GL_GENERATE_BYTESWAP_H evaluates to false.
19292
19293         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19294         GL_GENERATE_ERRNO_H.
19295         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19296         evaluates to false.
19297
19298         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19299         GL_GENERATE_FLOAT_H.
19300         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19301         evaluates to false.
19302
19303         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19304         GL_GENERATE_FNMATCH_H.
19305         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19306         GL_GENERATE_FNMATCH_H evaluates to false.
19307
19308         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19309         GL_GENERATE_GLOB_H.
19310         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19311         evaluates to false.
19312
19313         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19314         automake conditional GL_GENERATE_ICONV_H.
19315         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19316         evaluates to false.
19317
19318         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19319         GL_GENERATE_NETINET_IN_H.
19320         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19321         GL_GENERATE_NETINET_IN_H evaluates to false.
19322
19323         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19324         conditional GL_GENERATE_PTHREAD_H.
19325         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19326         * modules/pthread (Makefile.am): Remove pthread.h if
19327         GL_GENERATE_PTHREAD_H evaluates to false.
19328
19329         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19330         GL_GENERATE_SCHED_H.
19331         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19332         evaluates to false.
19333
19334         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19335         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19336         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19337         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19338
19339         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19340         GL_GENERATE_STDARG_H.
19341         * modules/stdarg (Makefile.am): Remove stdarg.h if
19342         GL_GENERATE_STDARG_H evaluates to false.
19343
19344         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19345         GL_GENERATE_STDBOOL_H.
19346         * modules/stdbool (Makefile.am): Remove stdbool.h if
19347         GL_GENERATE_STDBOOL_H evaluates to false.
19348
19349         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19350         conditional GL_GENERATE_STDDEF_H.
19351         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19352         * modules/stddef (Makefile.am): Remove stddef.h if
19353         GL_GENERATE_STDDEF_H evaluates to false.
19354
19355         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19356         GL_GENERATE_STDINT_H.
19357         * modules/stdint (Makefile.am): Remove stdint.h if
19358         GL_GENERATE_STDINT_H evaluates to false.
19359
19360         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19361         GL_GENERATE_SYSEXITS_H.
19362         * modules/sysexits (Makefile.am): Remove sysexits.h if
19363         GL_GENERATE_SYSEXITS_H evaluates to false.
19364
19365         Reported by Karl Berry and Ralf Wildenhues.
19366
19367 2011-04-05  Bruno Haible  <bruno@clisp.org>
19368
19369         Ensure to rebuild generated .h files when config.status has changed.
19370         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19371         config.status.
19372         * modules/ctype (Makefile.am): Likewise.
19373         * modules/dirent (Makefile.am): Likewise.
19374         * modules/errno (Makefile.am): Likewise.
19375         * modules/fcntl-h (Makefile.am): Likewise.
19376         * modules/float (Makefile.am): Likewise.
19377         * modules/getopt-posix (Makefile.am): Likewise.
19378         * modules/glob (Makefile.am): Likewise.
19379         * modules/iconv-h (Makefile.am): Likewise.
19380         * modules/inttypes (Makefile.am): Likewise.
19381         * modules/langinfo (Makefile.am): Likewise.
19382         * modules/locale (Makefile.am): Likewise.
19383         * modules/math (Makefile.am): Likewise.
19384         * modules/netdb (Makefile.am): Likewise.
19385         * modules/netinet_in (Makefile.am): Likewise.
19386         * modules/poll-h (Makefile.am): Likewise.
19387         * modules/pthread (Makefile.am): Likewise.
19388         * modules/pty (Makefile.am): Likewise.
19389         * modules/sched (Makefile.am): Likewise.
19390         * modules/search (Makefile.am): Likewise.
19391         * modules/selinux-h (Makefile.am): Likewise.
19392         * modules/signal (Makefile.am): Likewise.
19393         * modules/spawn (Makefile.am): Likewise.
19394         * modules/stdarg (Makefile.am): Likewise.
19395         * modules/stdbool (Makefile.am): Likewise.
19396         * modules/stddef (Makefile.am): Likewise.
19397         * modules/stdint (Makefile.am): Likewise.
19398         * modules/stdio (Makefile.am): Likewise.
19399         * modules/stdlib (Makefile.am): Likewise.
19400         * modules/string (Makefile.am): Likewise.
19401         * modules/strings (Makefile.am): Likewise.
19402         * modules/sys_file (Makefile.am): Likewise.
19403         * modules/sys_ioctl (Makefile.am): Likewise.
19404         * modules/sys_select (Makefile.am): Likewise.
19405         * modules/sys_socket (Makefile.am): Likewise.
19406         * modules/sys_stat (Makefile.am): Likewise.
19407         * modules/sys_time (Makefile.am): Likewise.
19408         * modules/sys_times (Makefile.am): Likewise.
19409         * modules/sys_utsname (Makefile.am): Likewise.
19410         * modules/sys_wait (Makefile.am): Likewise.
19411         * modules/sysexits (Makefile.am): Likewise.
19412         * modules/termios (Makefile.am): Likewise.
19413         * modules/time (Makefile.am): Likewise.
19414         * modules/unistd (Makefile.am): Likewise.
19415         * modules/wchar (Makefile.am): Likewise.
19416         * modules/wctype-h (Makefile.am): Likewise.
19417         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19418
19419 2011-04-05  Bruno Haible  <bruno@clisp.org>
19420
19421         pipe2: Relicense under LGPLv2+.
19422         * modules/pipe2 (License): Change to LGPLv2+.
19423         Requested by Eric Blake, for libvirt.
19424
19425 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19426
19427         bootstrap: compute gnulib_extra_files after updating build_aux
19428         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19429         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19430
19431 2011-04-05  Eric Blake  <eblake@redhat.com>
19432
19433         bootstrap: preserve git whitelist item sorting
19434         * build-aux/bootstrap (sort_patterns): New function.
19435         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19436
19437 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19438
19439         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19440         sc_space_tab check.
19441
19442 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19443
19444         areadlink, areadlinkat: rewrite in terms of careadlinkat
19445         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19446         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19447         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19448         (malloc, realloc): Remove #undefs.
19449         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19450         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19451         readlink, ssize_t, stdint, unistd.
19452         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19453         areadlink, stdint.
19454
19455         careadlinkat: new module
19456         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19457         * modules/careadlinkat: New files, written by me with
19458         a review and feedback from Ben Pfaff in
19459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19460
19461 2011-04-01  Bruno Haible  <bruno@clisp.org>
19462
19463         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19464         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19465         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19466         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19467         Reported by Bruce Korb <bruce.korb@gmail.com>.
19468
19469 2011-04-01  Bruno Haible  <bruno@clisp.org>
19470
19471         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19472         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19473         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19474         * modules/wcpcpy (Depends-on): Add extensions.
19475         * modules/wcpncpy (Depends-on): Likewise.
19476         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19477         systems.
19478         * doc/posix-functions/wcpncpy.texi: Likewise.
19479         * doc/posix-functions/wcwidth.texi: Likewise.
19480
19481 2011-03-31  Eric Blake  <eblake@redhat.com>
19482
19483         nonblocking: fix mingw test failures
19484         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19485         non-blocking flag on regular file.
19486         (get_nonblocking_flag): Set errno on invalid fd.
19487         * tests/test-nonblocking.c (main): Avoid test failure on
19488         directories if fchdir is not active.
19489         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19490
19491 2011-03-31  Bruno Haible  <bruno@clisp.org>
19492
19493         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19494         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19495         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19496         Reported by Simon Josefsson <simon@josefsson.org>.
19497
19498 2011-03-31  Bruno Haible  <bruno@clisp.org>
19499         and Eric Blake  <eblake@redhat.com>
19500
19501         nonblocking: new module
19502         * modules/nonblocking: New module.
19503         * modules/nonblocking-tests: Likewise.
19504         * lib/nonblocking.h: New file.
19505         * lib/nonblocking.c: Likewise.
19506         * tests/test-nonblocking.c: New test.
19507         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19508
19509 2011-03-30  Bruno Haible  <bruno@clisp.org>
19510
19511         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19512         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19513         instead of 'printf' format for GCC >= 4.4.
19514         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19515         (fprintf, printf, vfprintf, vprintf): Declare with
19516         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19517         the system's vfprintf() function.
19518         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19519
19520 2011-03-30  Eric Blake  <eblake@redhat.com>
19521
19522         passfd: fix scoping bug
19523         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19524         before sendmsg/recvmsg.
19525
19526         passfd: standardize coding conventions
19527         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19528         can be learned at compile time.
19529         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19530         ifdefs.
19531         (sendfd, recvfd): Follow gnulib code conventions.
19532
19533         passfd: fix incorrect sendmsg arguments
19534         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19535         incorrect msg_controllen value.
19536         * modules/passfd-tests (Depends-on): Check for alarm.
19537         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19538         Reported by Bastien ROUCARIES.
19539
19540 2011-03-30  Bruno Haible  <bruno@clisp.org>
19541
19542         c-strcasestr: Relicense under LGPLv2+.
19543         * modules/c-strcasestr (License): Change to LGPLv2+.
19544         Requested by Eric Blake, for libvirt.
19545
19546 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19547
19548         * users.txt: Add libidn2.  Fix libtasn1 link.
19549
19550 2011-03-30  Jim Meyering  <meyering@redhat.com>
19551
19552         tests: readlink* ("",... fails with EINVAL on newer kernels
19553         readlink and readlinkat have typically failed with ENOENT for
19554         the invalid, empty file name,  "".  However, with the advent
19555         of linux-2.6.39, they fail with EINVAL.
19556         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19557         when operating on the empty file name.
19558         * tests/test-readlink.h (test_readlink): Likewise.
19559
19560 2011-03-29  Bruno Haible  <bruno@clisp.org>
19561
19562         Relicense some modules under LGPLv2+, for libidn2.
19563         * modules/array-mergesort (License): Change to LGPLv2+.
19564         * modules/c-strcaseeq (License): Likewise.
19565         * modules/striconveh (License): Likewise.
19566         * modules/striconveha (License): Likewise.
19567         * modules/uniconv/base (License): Likewise.
19568         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19569         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19570         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19571         * modules/unictype/base (License): Likewise.
19572         * modules/unictype/bidiclass-of (License): Likewise.
19573         * modules/unictype/category-M (License): Likewise.
19574         * modules/unictype/category-none (License): Likewise.
19575         * modules/unictype/category-of (License): Likewise.
19576         * modules/unictype/category-test (License): Likewise.
19577         * modules/unictype/category-test-withtable (License): Likewise.
19578         * modules/unictype/combining-class (License): Likewise.
19579         * modules/unictype/joiningtype-of (License): Likewise.
19580         * modules/unictype/scripts (License): Likewise.
19581         * modules/uninorm/base (License): Likewise.
19582         * modules/uninorm/canonical-decomposition (License): Likewise.
19583         * modules/uninorm/composition (License): Likewise.
19584         * modules/uninorm/decompose-internal (License): Likewise.
19585         * modules/uninorm/decomposition-table (License): Likewise.
19586         * modules/uninorm/nfc (License): Likewise.
19587         * modules/uninorm/nfd (License): Likewise.
19588         * modules/uninorm/u32-normalize (License): Likewise.
19589         * modules/unistr/base (License): Likewise.
19590         * modules/unistr/u32-cpy (License): Likewise.
19591         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19592         * modules/unistr/u32-to-u8 (License): Likewise.
19593         * modules/unistr/u32-uctomb (License): Likewise.
19594         * modules/unistr/u8-check (License): Likewise.
19595         * modules/unistr/u8-mblen (License): Likewise.
19596         * modules/unistr/u8-mbtouc (License): Likewise.
19597         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19598         * modules/unistr/u8-mbtoucr (License): Likewise.
19599         * modules/unistr/u8-prev (License): Likewise.
19600         * modules/unistr/u8-strlen (License): Likewise.
19601         * modules/unistr/u8-to-u32 (License): Likewise.
19602         * modules/unistr/u8-uctomb (License): Likewise.
19603         * modules/unitypes (License): Likewise.
19604         Requested by Simon Josefsson.
19605
19606 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19607
19608         lib-symbol-visibility: Add a notice.
19609         * modules/lib-symbol-visibility (Notice): New field.
19610
19611 2011-03-29  Bruno Haible  <bruno@clisp.org>
19612
19613         getaddrinfo: Doc fix.
19614         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19615         section "fixed in Gnulib".
19616
19617 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19618
19619         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19620         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19621
19622 2011-03-26  Bruno Haible  <bruno@clisp.org>
19623
19624         unictype/property-byname: Reduce the number of load-time relocations.
19625         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19626         (UC_PROPERTY_INDEX_*): New enumeration values.
19627         (uc_property_byname): Convert an index from the lookup table to an
19628         uc_property_t.
19629         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19630         values.
19631
19632 2011-03-26  Bruno Haible  <bruno@clisp.org>
19633
19634         unictype/property-byname: Allow omitted word separators and aliases.
19635         * lib/unictype/pr_byname.gperf: Add property names without word
19636         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19637         for 'space'.
19638
19639 2011-03-26  Bruno Haible  <bruno@clisp.org>
19640
19641         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19642         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19643         also hyphens to space.
19644         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19645         without spaces.
19646         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19647
19648 2011-03-26  Bruno Haible  <bruno@clisp.org>
19649
19650         unictype/joiningtype-byname: Recognize long names as well.
19651         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19652         a long name.
19653         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19654         unictype/joiningtype_byname.h.
19655         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19656         * lib/unictype/joiningtype_byname.gperf: New file.
19657         * modules/unictype/joiningtype-byname (Files): Add
19658         lib/unictype/joiningtype_byname.gperf.
19659         (Depends-on): Add gperf.
19660         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19661         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19662         long names.
19663
19664         Tests for module 'unictype/joiningtype-longname'.
19665         * modules/unictype/joiningtype-longname-tests: New file.
19666         * tests/unictype/test-joiningtype_longname.c: New file.
19667
19668         New module 'unictype/joiningtype-longname'.
19669         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19670         * lib/unictype/joiningtype_longname.c: New file.
19671         * modules/unictype/joiningtype-longname: New file.
19672         * modules/unictype/joiningtype-all (Depends-on): Add
19673         unictype/joiningtype-longname.
19674
19675 2011-03-26  Bruno Haible  <bruno@clisp.org>
19676
19677         unictype/bidiclass-byname: Recognize long names as well.
19678         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19679         name.
19680         * lib/unictype/bidi_byname.c: Include <string.h>,
19681         unictype/bidi_byname.h.
19682         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19683         * lib/unictype/bidi_byname.gperf: New file.
19684         * modules/unictype/bidiclass-byname (Files): Add
19685         lib/unictype/bidi_byname.gperf.
19686         (Depends-on): Add gperf.
19687         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19688         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19689         long names.
19690
19691         Tests for module 'unictype/bidiclass-longname'.
19692         * modules/unictype/bidiclass-longname-tests: New file.
19693         * tests/unictype/test-bidi_longname.c: New file.
19694
19695         New module 'unictype/bidiclass-longname'.
19696         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19697         * lib/unictype/bidi_longname.c: New file.
19698         * modules/unictype/bidiclass-longname: New file.
19699         * modules/unictype/bidiclass-all (Depends-on): Add
19700         unictype/bidiclass-longname.
19701
19702 2011-03-26  Bruno Haible  <bruno@clisp.org>
19703
19704         unictype/bidi*: Rename modules.
19705         * modules/unictype/bidiclass-all: Renamed from
19706         modules/unictype/bidicategory-all.
19707         * modules/unictype/bidiclass-name: Renamed from
19708         modules/unictype/bidiclass-name.
19709         (Description): Update.
19710         * modules/unictype/bidiclass-name-tests: Renamed from
19711         modules/unictype/bidicategory-name-tests.
19712         * modules/unictype/bidiclass-byname: Renamed from
19713         modules/unictype/bidicategory-byname.
19714         (Description): Update.
19715         * modules/unictype/bidiclass-byname-tests: Renamed from
19716         modules/unictype/bidicategory-byname-tests.
19717         * modules/unictype/bidiclass-of: Renamed from
19718         modules/unictype/bidicategory-of.
19719         (Description): Update.
19720         * modules/unictype/bidiclass-of-tests: Renamed from
19721         modules/unictype/bidicategory-of-tests.
19722         * modules/unictype/bidiclass-test: Renamed from
19723         modules/unictype/bidicategory-test.
19724         (Description): Update.
19725         * modules/unictype/bidiclass-test-tests: Renamed from
19726         modules/unictype/bidicategory-test-tests.
19727         * modules/unictype/bidicategory-all: New file, a simple redirection.
19728         * modules/unictype/bidicategory-name: Likewise.
19729         * modules/unictype/bidicategory-byname: Likewise.
19730         * modules/unictype/bidicategory-of: Likewise.
19731         * modules/unictype/bidicategory-test: Likewise.
19732         * modules/unictype/property-bidi-* (Dependencies): Update.
19733         * lib/unictype/bidi_*.c: Update comment.
19734
19735 2011-03-26  Bruno Haible  <bruno@clisp.org>
19736
19737         unictype/bidi*: Rename functions, part 2.
19738         * modules/unictype/bidicategory-name (configure.ac): Update required
19739         libunistring version.
19740         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19741
19742 2011-03-25  Bruno Haible  <bruno@clisp.org>
19743
19744         New module 'unictype/combining-class-all'.
19745         * modules/unictype/combining-class-all: New file.
19746
19747         Tests for module 'unictype/combining-class-byname'.
19748         * modules/unictype/combining-class-byname-tests: New file.
19749         * tests/unictype/test-combiningclass_byname.c: New file.
19750
19751         New module 'unictype/combining-class-byname'.
19752         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19753         * lib/unictype/combiningclass_byname.c: New file.
19754         * lib/unictype/combiningclass_byname.gperf: New file.
19755         * modules/unictype/combining-class-byname: New file.
19756
19757         Tests for module 'unictype/combining-class-longname'.
19758         * modules/unictype/combining-class-longname-tests: New file.
19759         * tests/unictype/test-combiningclass_longname.c: New file.
19760
19761         New module 'unictype/combining-class-longname'.
19762         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19763         * lib/unictype/combiningclass_longname.c: New file.
19764         * modules/unictype/combining-class-longname: New file.
19765
19766         Tests for module 'unictype/combining-class-name'.
19767         * modules/unictype/combining-class-name-tests: New file.
19768         * tests/unictype/test-combiningclass_name.c: New file.
19769
19770         New module 'unictype/combining-class-name'.
19771         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19772         * lib/unictype/combiningclass_name.c: New file.
19773         * modules/unictype/combining-class-name: New file.
19774
19775 2011-03-25  Bruno Haible  <bruno@clisp.org>
19776
19777         unictype/combining-class: Rename source files.
19778         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19779         of unictype/combining.h.
19780         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19781         Update.
19782         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19783         * modules/unictype/combining-class (Description): Fix.
19784         (Files, Makefile.am): Update.
19785         * tests/unictype/test-combiningclass.c: Renamed from
19786         tests/unictype/test-combining.c.
19787         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19788
19789 2011-03-25  Bruno Haible  <bruno@clisp.org>
19790
19791         unictype: Update list of canonical combining classes.
19792         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19793
19794 2011-03-25  Bruno Haible  <bruno@clisp.org>
19795
19796         unictype/category-byname: Recognize long names as well.
19797         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19798         a long name.
19799         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19800         unictype/categ_byname.h.
19801         (UC_CATEGORY_INDEX_*): New enumeration values.
19802         (uc_general_category_byname): Use uc_general_category_lookup and
19803         convert from index to value.
19804         * lib/unictype/categ_byname.gperf: New file.
19805         * modules/unictype/category-byname (Files): Add
19806         lib/unictype/categ_byname.gperf.
19807         (Depends-on): Add gperf.
19808         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19809         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19810         long names.
19811
19812         Tests for module 'unictype/category-longname'.
19813         * modules/unictype/category-longname-tests: New file.
19814         * tests/unictype/test-categ_longname.c: New file.
19815
19816         New module 'unictype/category-longname'.
19817         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19818         * lib/unictype/categ_longname.c: New file.
19819         * modules/unictype/category-longname: New file.
19820         * modules/unictype/category-all (Depends-on): Add it.
19821
19822 2011-03-25  Bruno Haible  <bruno@clisp.org>
19823
19824         Tests for module 'unictype/category-LC'.
19825         * modules/unictype/category-LC-tests: New file.
19826         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19827
19828         New module 'unictype/category-LC'.
19829         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19830         (UC_CATEGORY_LC): New declaration.
19831         (UC_CASED_LETTER): New macro.
19832         * lib/gen-uni-tables.c (is_category_LC): New function.
19833         (output_categories): Also handle category LC.
19834         (UC_CATEGORY_MASK_LC): New enumeration value.
19835         (general_category_byname): Also handle category LC.
19836         * lib/unictype/categ_LC.c: New file.
19837         * lib/unictype/categ_LC.h: New file, automatically generated.
19838         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19839         category LC.
19840         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19841         * modules/unictype/category-LC: New file.
19842         * modules/unictype/category-byname (Depends-on): Add
19843         unictype/category-LC.
19844         * modules/unictype/category-all (Depends-on): Likewise.
19845
19846 2011-03-25  Eric Blake  <eblake@redhat.com>
19847
19848         xmalloc: revert yesterday's regression
19849         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19850         realloc's underlying behavior (allowing allocation of zero-size
19851         objects, especially if malloc-gnu is also in use).
19852
19853 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19854
19855         maint.mk: add missing version to VC-tag
19856         * top/maint.mk: git tag was missing actual tag name; add it.
19857
19858         valgrind: do leak checking, and exit with code 1 on error (not 0)
19859         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19860         to VALGRIND.
19861
19862 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19863
19864         posix-modules: say what it does.
19865         * posix-modules: Add a line to the --help output saying what it does.
19866
19867 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19868
19869         xmalloc: Do not leak if underlying realloc is C99 compatible.
19870         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19871         This avoids a leak on C99-based systems.  See
19872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19873
19874 2011-03-24  Eric Blake  <eblake@redhat.com>
19875
19876         realloc: document portability problem
19877         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19878         passing 0 size to realloc.
19879
19880 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19881
19882         doc: update users.txt
19883         * users.txt: Add cvsps, tmpwatch
19884
19885 2011-03-23  Matt Rice  <ratmice@gmail.com>
19886
19887         doc: update users.txt
19888         * users.txt: Add gdb.
19889
19890 2011-03-23  Jim Meyering  <meyering@redhat.com>
19891
19892         doc: update users.txt
19893         Looking through matches up to the following URL (there are still
19894         several more pages), I found several projects that use gnulib:
19895         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19896         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19897         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19898
19899 2011-03-22  Bruno Haible  <bruno@clisp.org>
19900
19901         unictype/bidi*: Rename functions.
19902         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19903         uc_bidi_class, uc_is_bidi_class): New declarations.
19904         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19905         uc_bidi_category_byname.
19906         (uc_bidi_category_byname): New function.
19907         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19908         u_bidi_category_name.
19909         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19910         (uc_bidi_category_name): New function.
19911         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19912         uc_bidi_category.
19913         (uc_bidi_category): New function.
19914         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19915         uc_is_bidi_category. Invoke uc_bidi_class.
19916         (uc_is_bidi_category): New function.
19917         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19918         instead of uc_bidi_category_byname.
19919         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19920         instead of uc_bidi_category_name.
19921         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19922         uc_bidi_category.
19923         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19924         instead of uc_is_bidi_category.
19925
19926 2011-03-21  Bruno Haible  <bruno@clisp.org>
19927
19928         New module 'unictype/joininggroup-all'.
19929         * modules/unictype/joininggroup-all: New file.
19930
19931         Tests for module 'unictype/joininggroup-of'.
19932         * modules/unictype/joininggroup-of-tests: New file.
19933         * tests/unictype/test-joininggroup_of.c: New file.
19934         * tests/unictype/test-joininggroup_of.h: New file, automatically
19935         generated by gen-uni-tables.
19936
19937         New module 'unictype/joininggroup-of'.
19938         * modules/unictype/joininggroup-of: New file.
19939         * lib/unictype/joininggroup_of.c: New file.
19940         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19941         gen-uni-tables.
19942
19943         Tests for module 'unictype/joininggroup-byname'.
19944         * modules/unictype/joininggroup-byname-tests: New file.
19945         * tests/unictype/test-joininggroup_byname.c: New file.
19946
19947         New module 'unictype/joininggroup-byname'.
19948         * modules/unictype/joininggroup-byname: New file.
19949         * lib/unictype/joininggroup_byname.c: New file.
19950         * lib/unictype/joininggroup_byname.gperf: New file.
19951
19952         Tests for module 'unictype/joininggroup-name'.
19953         * modules/unictype/joininggroup-name-tests: New file.
19954         * tests/unictype/test-joininggroup_name.c: New file.
19955
19956         New module 'unictype/joininggroup-name'.
19957         * modules/unictype/joininggroup-name: New file.
19958         * lib/unictype/joininggroup_name.c: New file.
19959         * lib/unictype/joininggroup_name.h: New file.
19960
19961         New module 'unictype/joiningtype-all'.
19962         * modules/unictype/joiningtype-all: New file.
19963
19964         Tests for module 'unictype/joiningtype-of'.
19965         * modules/unictype/joiningtype-of-tests: New file.
19966         * tests/unictype/test-joiningtype_of.c: New file.
19967         * tests/unictype/test-joiningtype_of.h: New file, automatically
19968         generated by gen-uni-tables.
19969
19970         New module 'unictype/joiningtype-of'.
19971         * modules/unictype/joiningtype-of: New file.
19972         * lib/unictype/joiningtype_of.c: New file.
19973         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19974         gen-uni-tables.
19975
19976         Tests for module 'unictype/joiningtype-byname'.
19977         * modules/unictype/joiningtype-byname-tests: New file.
19978         * tests/unictype/test-joiningtype_byname.c: New file.
19979
19980         New module 'unictype/joiningtype-byname'.
19981         * modules/unictype/joiningtype-byname: New file.
19982         * lib/unictype/joiningtype_byname.c: New file.
19983
19984         Tests for module 'unictype/joiningtype-name'.
19985         * modules/unictype/joiningtype-name-tests: New file.
19986         * tests/unictype/test-joiningtype_name.c: New file.
19987
19988         New module 'unictype/joiningtype-name'.
19989         * modules/unictype/joiningtype-name: New file.
19990         * lib/unictype/joiningtype_name.c: New file.
19991
19992         unictype: Add support for Arabic shaping properties.
19993         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19994         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19995         declarations.
19996         (UC_JOINING_GROUP_*): New enumeration values.
19997         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19998         declarations.
19999         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
20000         (unicode_joining_type): New variable.
20001         (UC_JOINING_GROUP_*): New enumeration values.
20002         (unicode_joining_group): New variable.
20003         (fill_arabicshaping, joining_type_as_c_identifier,
20004         output_joining_type_test, output_joining_type,
20005         joining_group_as_c_identifier, output_joining_group_test,
20006         output_joining_group): New functions.
20007         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
20008         fill_arabicshaping and output_joining_type_test, output_joining_type,
20009         output_joining_group_test, output_joining_group.
20010         Reported by Simon Josefsson.
20011
20012 2011-03-21  Jim Meyering  <meyering@redhat.com>
20013
20014         strftime: fix a bug in yesterday's change
20015         * lib/strftime.c (add): Accommodate width's initial value of -1.
20016         Otherwise, nstrftime would copy uninitialized data into
20017         the result buffer.
20018
20019 2011-03-21  Jim Meyering  <meyering@redhat.com>
20020
20021         tests: add strftime-tests module
20022         * tests/test-strftime.c: New file.
20023         * modules/strftime-tests: New module.
20024
20025 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20026
20027         strftime: don't assume a byte count fits in 'int'
20028         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20029         found this problem by static analysis, using gcc -Wstrict-overflow
20030         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20031         on an integer overflow having undefined behavior, but it turns out
20032         that the argument is a size, which might not fit in 'int' anyway,
20033
20034 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20035
20036         stdio: don't require ignore_value around fwrite
20037
20038         This patch works around libc bug 11959
20039         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20040         Without this patch, applications must often write
20041         ignore_value (fwrite (...)) even though the ignore_value is
20042         not helpful here.  It's common to write many objects, using
20043         fwrite/printf/etc., and then use ferror to detect output error.
20044
20045         I considered making this patch optional, but decided against it,
20046         because libc is obviously being inconsistent here: there is no
20047         reason libc should insist that user code must inspect fwrite
20048         return's value without also insisting that it inspect printf's,
20049         putchar's, etc.  If user code wants to have a strict style where
20050         all these functions' values are checked (so that ferror need not
20051         be checked), we could add support for that style in a new gnulib
20052         module, but in the meantime it's better to be consistent and to
20053         support common usage.
20054
20055         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20056         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20057         that we are compiling in checking mode, and if not C++, and
20058         if not already wrapping fwrite for some other reason.
20059         (fwrite): #define to rpl_fwrite if the latter is defined.
20060
20061 2011-03-20  Bruno Haible  <bruno@clisp.org>
20062
20063         verror: Fix compilation error introduced on 2011-02-13.
20064         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20065         instead of __attribute__.
20066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20067
20068 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20069             Bruno Haible  <bruno@clisp.org>
20070
20071         socklen: do not depend on sys_socket
20072         While trying to modify Emacs to use gnulib's socklen module,
20073         I discovered a circular dependency: socklen depends on sys_socket
20074         and vice versa.  Emacs can use socklen, but it does not need
20075         sys_socket because it has its own substitute for sys/socket.h.
20076         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20077         gl_TYPE_SOCKLEN_T.
20078         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20079         gl_PREREQ_SYS_H_SOCKET.
20080         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20081         gl_PREREQ_SYS_H_SOCKET.
20082         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20083         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20084         * modules/socklen (Depends-on): Do not depend on sys_socket.
20085         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20086
20087 2011-03-20  Jim Meyering  <meyering@redhat.com>
20088
20089         maint.mk: sort file names *after* new transformation
20090         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20091         prefix would have led to an unwarranted failure in GNU parted.
20092         Sort after that transformation.
20093
20094 2011-03-19  Jim Meyering  <meyering@redhat.com>
20095
20096         maint.mk: fix po-file syntax-check rule
20097         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20098         Patch by Bruno Haible.
20099
20100 2011-03-19  Bruno Haible  <bruno@clisp.org>
20101
20102         socklen: Update comment.
20103         * m4/socklen.m4: Update comment about platforms.
20104
20105 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20106             Bruno Haible  <bruno@clisp.org>
20107
20108         inet_ntop, inet_pton: Simplify.
20109         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20110         documented to provide socklen_t and we already depend on sys_socket.
20111         * modules/inet_pton (Depends-on): Likewise.
20112         * lib/arpa_inet.in.h: Adjust comment.
20113
20114 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20115             Bruno Haible  <bruno@clisp.org>
20116
20117         netdb: Simplify.
20118         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20119         documented to provide socklen_t and we already depend on sys_socket.
20120         * lib/netdb.in.h: Adjust comment.
20121
20122 2011-03-19  Bruno Haible  <bruno@clisp.org>
20123
20124         sys_socket, netdb: Document problem with socklen_t.
20125         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20126         platforms.
20127         * doc/posix-headers/netdb.texi: Likewise.
20128
20129 2011-03-18  Eric Blake  <eblake@redhat.com>
20130
20131         maint.mk: let po check work in VPATH build
20132         * top/maint.mk (po_file): Allow cfg.mk override.
20133         (sc_po_check): Allow VPATH use.
20134         Reported by Jiri Denemark.
20135
20136 2011-03-16  Jim Meyering  <meyering@redhat.com>
20137
20138         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20139         Before, you would have had to create one .x-sc_ file per rule in order
20140         to exempt offending files.  Now, you may instead use a Make variable --
20141         usually defined in cfg.mk -- whose name identifies the affected rule.
20142         * top/maint.mk (_sc_excl): Define.
20143         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20144         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20145
20146 2011-03-13  Bruno Haible  <bruno@clisp.org>
20147
20148         ignore-value tests: Avoid warnings.
20149         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20150         empty for gcc < 3.4.
20151
20152 2011-03-13  Bruno Haible  <bruno@clisp.org>
20153
20154         passfd: Fix link error on Solaris.
20155         * modules/passfd (Description): Correct.
20156         (Depends-on): Add socketlib.
20157         (Link): New section.
20158         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20159
20160 2011-03-13  Bruno Haible  <bruno@clisp.org>
20161
20162         passfd: Fix link error on AIX 5.2.
20163         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20164
20165 2011-03-13  Bruno Haible  <bruno@clisp.org>
20166
20167         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20168         * lib/sys_socket.in.h: Include <stddef.h>.
20169         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20170         CMSG_FIRSTHDR. Remove unused variable.
20171
20172 2011-03-13  Bruno Haible  <bruno@clisp.org>
20173
20174         passfd: Fix compilation error on OpenBSD.
20175         * lib/passfd.c: Include <sys/uio.h>.
20176
20177 2011-03-13  Bruno Haible  <bruno@clisp.org>
20178
20179         passfd test: Fix warnings.
20180         * tests/test-passfd.c: Include <sys/wait.h>.
20181         (main): Fix typo.
20182
20183 2011-03-13  Bruno Haible  <bruno@clisp.org>
20184
20185         passfd module, part 4, tweaks.
20186         * tests/test-passfd.c: Reorder includes.
20187         (main): Fix perror and printf calls.
20188
20189 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20190
20191         passfd module, part 4.
20192         * modules/passfd-tests: New file.
20193         * tests/test-passfd.c: New file.
20194
20195 2011-03-13  Jim Meyering  <meyering@redhat.com>
20196
20197         Makefile: rely on GNU make; derive syntax-check rule names
20198         Rather than requiring that each sc_ rule be listed as a dependent
20199         of "check", use features of GNU make to derive the list.
20200         * Makefile (syntax-check-rules): Define.
20201         (check): Depend on the new variable, not the hard-coded list.
20202
20203 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20204             Bruno Haible  <bruno@clisp.org>
20205
20206         passfd module, part 3.
20207         * lib/passfd.h (recvfd): Add a flags argument.
20208         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20209         (recvfd): Add a flags argument.
20210         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20211         exists.
20212         * modules/passfd (Depends-on): Add cloexec.
20213         Suggested by Eric Blake.
20214
20215 2011-03-13  Bruno Haible  <bruno@clisp.org>
20216
20217         passfd module, part 2, tweaks.
20218         * modules/passfd (Files): Reorder.
20219         (Depends-on): Remove errno.
20220         (Include): Remove <sys/socket.h>, <sys/un.h>.
20221         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20222         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20223         specification header. Include <sys/socket.h> always. Don't include
20224         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20225         (sendfd): Clarify that it sets errno when it fails.
20226         (recvfd): Fix specification.
20227
20228 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20229
20230         passfd module, part 2.
20231         * modules/passfd: New file.
20232         * lib/passfd.h: New file.
20233         * lib/passfd.c: New file.
20234
20235 2011-03-12  Bruno Haible  <bruno@clisp.org>
20236
20237         wcswidth, mbswidth: Avoid integer overflow.
20238         * lib/wcswidth.c: Include <limits.h>.
20239         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20240         * lib/mbswidth.c: Include <limits.h>.
20241         (mbsnwidth): Avoid 'int' overflow.
20242         Reported by Jim Meyering.
20243
20244 2011-03-12  Bruno Haible  <bruno@clisp.org>
20245
20246         futimens, utimensat: Avoid endless recursion on Solaris 10.
20247         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20248         Solaris.
20249         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20250         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20251
20252 2011-03-11  Jim Meyering  <meyering@redhat.com>
20253
20254         maint.mk: relax a regexp to accommodate other formatting styles
20255         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20256         between "ngettext" and the following "(".
20257
20258 2011-03-11  Pádraig Brady <P@draigBrady.com>
20259
20260         maint.mk: suppress a false positive warning
20261         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20262         diagnostics are marked with ngettext.
20263
20264 2011-03-10  Eric Blake  <eblake@redhat.com>
20265
20266         wchar: add explicit dependencies, for Tru64
20267         * modules/mbmemcasecoll (Depends-on): Add wchar.
20268         * modules/mbtowc (Depends-on): Likewise.
20269         * modules/vasnprintf (Depends-on): Likewise.
20270         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20271         * modules/wctomb (Depends-on): Likewise.
20272         Reported by Peter O'Gorman.
20273
20274 2011-03-08  Bruno Haible  <bruno@clisp.org>
20275
20276         passfd module, part 1, tweaks.
20277         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20278         Improve indentation. Improve AC_MSG_CHECKING messages.
20279         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20280         gl_SOCKET_FAMILIES.
20281
20282 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20283
20284         passfd module, part 1.
20285         * m4/afunix.m4: New file.
20286         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20287         sockets.
20288
20289 2011-03-08  Bruno Haible  <bruno@clisp.org>
20290
20291         regex-quote: New API.
20292         * lib/regex-quote.h: Include <stdbool.h>.
20293         (struct regex_quote_spec): New type.
20294         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20295         New declarations.
20296         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20297         'const struct regex_quote_spec *' argument.
20298         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20299         (pcre_special): New constant.
20300         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20301         New functions.
20302         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20303         'const struct regex_quote_spec *' argument.
20304         * modules/regex-quote (Depends-on): Add stdbool.
20305         * tests/test-regex-quote.c (check): Update for new API. Add test for
20306         anchored results.
20307         * NEWS: Mention the API change.
20308         Reported by Reuben Thomas and Eric Blake.
20309
20310 2011-03-06  Bruno Haible  <bruno@clisp.org>
20311
20312         regex-quote: Fix creation of POSIX extended regular expressions.
20313         * lib/regex-quote.c (ere_special): Add grouping and alternation
20314         operators.
20315
20316 2011-03-05  Bruno Haible  <bruno@clisp.org>
20317
20318         doc: Improve doc regarding autopoint vs. gnulib.
20319         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20320         disable autopoint while running autoreconf.
20321         Suggested by Ralf Wildenhues.
20322
20323 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20324
20325         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20326         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20327
20328 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20329
20330         parse-duration: remove xalloc.h dependency
20331         * lib/parse-duration.c (parse_period): handle NULL return from
20332         strdup instead of calling xstrdup().
20333         * modules/parse-duration: remove "xalloc" dependency
20334
20335 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20336
20337         bootstrap: honor m4_base when running aclocal
20338         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20339
20340 2011-03-02  Jim Meyering  <meyering@redhat.com>
20341
20342         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20343         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20344         on request from Matt Booth.
20345
20346 2011-03-01  Eric Blake  <eblake@redhat.com>
20347
20348         test-link: work on Hurd
20349         * tests/test-link.h (test_link): Hurd rejects linking directories
20350         with EISDIR instead of the POSIX-mandated EPERM.
20351
20352 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20353
20354         stdio: simplify by moving files to printf-posix, sigpipe
20355         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20356         since this symbol is needed only if printf is replaced.
20357         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20358         Require gl_ASM_SYMBOL_PREFIX.
20359         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20360         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20361         (Depends-on): Add 'raise'.
20362         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20363         * modules/stdio (Files): Remove lib/stdio-write.c,
20364         m4/asm-underscore.m4.
20365         (Depends-on): Remove 'raise'.
20366
20367         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20368         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20369         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20370         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20371
20372 2011-02-28  Bruno Haible  <bruno@clisp.org>
20373
20374         localcharset: Assume ANSI C behaviour of free().
20375         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20376         calling free().
20377         Suggested by Simon Josefsson <simon@josefsson.org>.
20378
20379 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20380             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20381             Bruno Haible  <bruno@clisp.org>  (tiny change)
20382
20383         On Cygwin, use /proc file system instead of win32 API.
20384         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20385         Win32 file names.
20386         (DllMain): Simplify by removing Cygwin specific code.
20387         (find_shared_library_fullname): Use Linux specific implementation also
20388         for Cygwin.
20389         (get_shared_library_fullname): Update accordingly.
20390         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20391         Win32 file names.
20392         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20393         Cygwin specific code.
20394
20395 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20396             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20397
20398         Fix OpenMP flag detection for various Fortran compilers.
20399         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20400         OpenMP-conditional compilation construct, to force compile
20401         failure with missing OpenMP flag.
20402         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20403
20404 2011-02-25  Eric Blake  <eblake@redhat.com>
20405
20406         strstr: expand test coverage
20407         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20408         compilation.
20409         * tests/test-memmem.c (main): Duplicate tests.
20410         * tests/test-strcasestr.c (main): Likewise.
20411         * tests/test-c-strcasestr.c (main): Likewise.
20412
20413 2011-02-25  Jim Meyering  <meyering@redhat.com>
20414
20415         maint.mk: detect missing-NL-at-EOF, too
20416         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20417         it also detects when a file lacks a newline at EOF.
20418         (require_exactly_one_NL_at_EOF_): Renamed from
20419         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20420         since people may well have .x-sc_... file names tied to the
20421         existing name.  Suggested by Eric Blake.
20422
20423 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20424
20425         dirname: move m4/dos.m4 functionality into lib/dosname.h
20426
20427         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20428         extracts symbols from it, puts them into config.h; but it's much
20429         easier to use the symbols directly.  filename.h already does this,
20430         but it disagrees with dos.m4 in some respects.  This patch
20431         introduces a different include file dosname.h that packages up
20432         dos.m4, and then later we can work on merging filename.h and
20433         dosname.h.  Applications that need only the easy-to-configure
20434         symbols should consider including dosname.h rather than dirname.h.
20435         * NEWS: Mention incompatible changes.
20436         * m4/dos.m4: Remove.
20437         * lib/dosname.h, modules/dosname: New files.
20438         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20439         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20440         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20441         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20442         Include dosname.h, not dirname.h.
20443         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20444         Include dosname.h, for definitions of symbols like ISSLASH
20445         that used to be in config.h.
20446         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20447         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20448         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20449         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20450         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20451         * modules/rmdir (Files): Likewise.
20452         * modules/stat (Files): Likewise.
20453         * modules/unlink (Files): Likewise.
20454         * modules/dirname-lgpl (Depends-on): Add dosname.
20455         * modules/lstat (Depends-on): Likewise.
20456         * modules/openat (Depends-on): Likewise.
20457         * modules/rmdir (Depends-on): Likewise.
20458         * modules/savewd (Depends-on): Likewise.
20459         * modules/stat (Depends-on): Likewise.
20460         * modules/unlink (Depends-on): Likewise.
20461         * modules/openat (Depends-on): Remove dirname-lgpl.
20462         * modules/savewd (Depends-on): Likewise.
20463         * tests/test-dirname.c: Do not use removed symbols like
20464         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20465         the remaining symbols, e.g., ISSLASH ('\\').
20466
20467 2011-02-25  Eric Blake  <eblake@redhat.com>
20468
20469         strstr: revert patches that introduced bug and pessimization
20470         * lib/str-two-way.h: Add another reference.
20471         (two_way_short_needle, two_way_long_needle): Revert changes from
20472         2011-02-24; they pessimize search speed.
20473         (critical_factorization): Partially revert changes from
20474         2010-06-22; they violate the requirement that the left half of the
20475         needle be smaller than the period of the needle.
20476
20477 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20478
20479         filenamecat: remove unnecessary dependency on dirname-lgpl
20480         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20481         is no direct dependency, just an indirect one via filenamecat-lgpl.
20482
20483         remove: remove unnecessary use of m4/dos.m4
20484         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20485         * modules/remove (FILES): Remove m4/dos.m4.
20486
20487         * lib/openat-proc.c: Don't include dirname.h; not needed.
20488
20489         backupfile: remove unnecessary use of m4/dos.m4
20490         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20491         of its symbols are used by the backupfile code.  backupfile.c does
20492         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20493         for the rare case of programs that want all their backup file
20494         names to live within 8+3 limits, and dos.m4 doesn't address that.
20495         * modules/backupfile (Files): Remove m4/dos.m4.
20496
20497 2011-02-24  Jim Meyering  <meyering@redhat.com>
20498
20499         strstr: fix a bug whereby strstr would mistakenly return NULL
20500         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20501         in period calculation.
20502         (two_way_long_needle): Likewise.
20503         The original problem was reported by Mike Stump in
20504         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20505         Ralf Wildenhues provided the short needle and haystack.
20506         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20507         Add a more involved test to trigger the bug in two_way_long_needle.
20508
20509 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20510
20511         gnulib-tool: remove use of bold display in help screen
20512         * gnulib-tool (func_usage): Do not use bold display anymore in the
20513         help screen.  That was just meant to be a temporary emphasis for a
20514         backward-incompatible change.
20515
20516 2011-02-23  Bruno Haible  <bruno@clisp.org>
20517
20518         Fix misindentation of preprocessor directives.
20519         * lib/argp-namefrob.h: Reindent preprocessor directives.
20520         * lib/getopt_int.h (struct _getopt_data): Likewise.
20521         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20522         * lib/vasnprintf.c (decode_long_double): Likewise.
20523         * tests/test-argmatch.c: Insert blank lines, for clarity.
20524         * tests/test-exclude.c: Likewise.
20525
20526 2011-02-22  Bruno Haible  <bruno@clisp.org>
20527
20528         ioctl: Fix for MacOS X in 64-bit mode.
20529         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20530         value.
20531         Suggested by Eric Blake.
20532         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20533
20534 2011-02-22  Jim Meyering  <meyering@redhat.com>
20535
20536         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20537         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20538         in lib/.
20539
20540 2011-02-22  Eric Blake  <eblake@redhat.com>
20541
20542         maint: avoid any CDPATH issue
20543         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20544
20545         maint: adjust cpp indentation for my modules, as well
20546         * Makefile (sc_cpp_indent_check): Add my name.
20547         * lib/fbufmode.c: Filter through cppi.
20548         * lib/fpurge.c: Likewise.
20549         * lib/freadable.c: Likewise.
20550         * lib/freading.c: Likewise.
20551         * lib/fwritable.c: Likewise.
20552         * lib/fwriting.c: Likewise.
20553         * lib/sigaction.c: Likewise.
20554
20555 2011-02-22  Jim Meyering  <meyering@redhat.com>
20556
20557         maint: adjust cpp indentation to reflect nesting depth
20558         I.e., in a block of code that begins with an unnested "#if",
20559         put one space between the "#" in column 1 and following token.
20560         For example,
20561         -#include <sys/vfs.h>
20562         +# include <sys/vfs.h>
20563         Do this only in .c files that are part of a module I maintain.
20564         * lib/linkat.c: Filter through cppi.
20565         * lib/nanosleep.c: Likewise.
20566         * lib/openat.c: Likewise.
20567         * lib/openat-die.c: Likewise.
20568         * lib/dup3.c: Likewise.
20569         * lib/fchownat.c: Likewise.
20570         * lib/flock.c: Likewise.
20571         * lib/fsync.c: Likewise.
20572         * lib/fts.c: Likewise.
20573         * lib/getpass.c: Likewise.
20574         * lib/gettimeofday.c: Likewise.
20575         * lib/userspec.c: Likewise.
20576         * Makefile (sc_cpp_indent_check): New rule, to check this.
20577
20578 2011-02-22  Bruno Haible  <bruno@clisp.org>
20579
20580         New module 'wctomb'.
20581         * lib/stdlib.in.h (wctomb): New declaration.
20582         * lib/wctomb.c: New file.
20583         * lib/wctomb-impl.h: New file.
20584         * m4/wctomb.m4: New file.
20585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20586         REPLACE_WCTOMB.
20587         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20588         REPLACE_WCTOMB.
20589         * modules/wctomb: New file.
20590         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20591         * doc/posix-functions/wctomb.texi: Mention the new module.
20592         * modules/wctob (Depends-on): Add wctomb.
20593
20594 2011-02-22  Bruno Haible  <bruno@clisp.org>
20595
20596         New module 'mbtowc'.
20597         * lib/stdlib.in.h (mbtowc): New declaration.
20598         * lib/mbtowc.c: New file.
20599         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20600         * m4/mbtowc.m4: New file.
20601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20602         REPLACE_MBTOWC.
20603         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20604         REPLACE_MBTOWC.
20605         * modules/mbtowc: New file.
20606         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20607         * doc/posix-functions/mbtowc.texi: Mention the new module.
20608         * modules/btowc (Depends-on): Add mbtowc.
20609
20610 2011-02-22  Bruno Haible  <bruno@clisp.org>
20611
20612         wcrtomb: Add more tests for native Windows platforms.
20613         * tests/test-wcrtomb-w32-1.sh: New file.
20614         * tests/test-wcrtomb-w32-2.sh: New file.
20615         * tests/test-wcrtomb-w32-3.sh: New file.
20616         * tests/test-wcrtomb-w32-4.sh: New file.
20617         * tests/test-wcrtomb-w32-5.sh: New file.
20618         * tests/test-wcrtomb-w32.c: New file.
20619         * modules/wcrtomb-tests (Files): Add them.
20620         (Makefile.am): Arrange to run these tests.
20621         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20622         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20623
20624 2011-02-20  Bruno Haible  <bruno@clisp.org>
20625
20626         wcrtomb: Enhance test.
20627         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20628
20629 2011-02-20  Bruno Haible  <bruno@clisp.org>
20630
20631         mbrtowc: Tiny optimization.
20632         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20633
20634 2011-02-20  Jim Meyering  <meyering@redhat.com>
20635
20636         test-exclude.c: remove unmatched #endif
20637         * tests/test-exclude.c: Remove stray #endif, left over from
20638         the change of a week ago.
20639
20640 2011-02-19  Jim Meyering  <meyering@redhat.com>
20641
20642         git-version-gen: skip "-dirty" check when appropriate
20643         * build-aux/git-version-gen: Don't run any git commands when the
20644         version string comes from .tarball-version.  Prior to this, we
20645         would run git update-index --refresh even from a just-unpacked
20646         tarball directory, and that could affect a .git/ directory in a
20647         parent of the build directory.  Reported by Mike Frysinger.
20648
20649 2011-02-19  Bruno Haible  <bruno@clisp.org>
20650
20651         unictype/property-byname: Reduce the size of the 'data' segment.
20652         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20653
20654 2011-02-19  Bruno Haible  <bruno@clisp.org>
20655
20656         unictype/scripts: Reduce the size of the 'data' segment.
20657         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20658         '%pic'.
20659         * lib/unictype/scripts_byname.gperf: Regenerated.
20660
20661 2011-02-19  Bruno Haible  <bruno@clisp.org>
20662
20663         stdint: Update documentation.
20664         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20665
20666 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20667
20668         stdint: omit redundant check for wchar.h
20669         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20670         always tests whether wchar.h exists, so remove the now-redundant test.
20671
20672 2011-02-18  Bruno Haible  <bruno@clisp.org>
20673
20674         stdint: Cut dependency to module 'wchar'.
20675         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20676         include the necessary prerequisites.
20677         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20678         * modules/stdint (Depends-on): Remove wchar.
20679         (Makefile.am): Substitute HAVE_WCHAR_H.
20680         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20681
20682 2011-02-18  Eric Blake  <eblake@redhat.com>
20683
20684         longlong: skip, rather than fail, on cross-compilation
20685         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20686         when cross-compiling; regression from 2011-02-16.
20687
20688 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20689
20690         * NEWS: Mention 2011-02-08 change to stdlib.
20691
20692 2011-02-17  Bruno Haible  <bruno@clisp.org>
20693
20694         getloadavg: Add comments about platforms.
20695         * m4/getloadavg.m4: Add comment.
20696         * lib/getloadavg.c: Likewise.
20697
20698 2011-02-17  Bruno Haible  <bruno@clisp.org>
20699
20700         getloadavg: Fix link error on Solaris 2.6.
20701         * modules/getloadavg (Link): New section.
20702         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20703         linking test-getloadavg.
20704         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20705         getloadavg.
20706
20707 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20708
20709         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20710         It was 'int', but this doesn't match the IRIX 6.5 manual.
20711         Suggested by Bruno Haible in
20712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20713
20714 2011-02-17  Bruno Haible  <bruno@clisp.org>
20715
20716         havelib: Fix comments.
20717         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20718         change.
20719
20720 2011-02-17  Bruno Haible  <bruno@clisp.org>
20721
20722         havelib: Update config.rpath.
20723         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20724
20725 2011-02-17  Bruno Haible  <bruno@clisp.org>
20726
20727         getloadavg test: Add some plausibility checks.
20728         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20729         is improbable.
20730
20731 2011-02-16  Eric Blake  <eblake@redhat.com>
20732
20733         maintainer-makefile: make syntax-check a no-op from tarballs
20734         * top/maint.mk (no-vc-detected): New rule.
20735         (local-checks-available): Use it to avoid hanging if someone tries
20736         'make syntax-check' from a tarball.  Also append to any non-syntax
20737         checks already defined in cfg.mk.
20738
20739 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20740
20741         longlong: tune, particularly for common case of c99
20742
20743         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20744         or running anything if c99, or if unsigned long long int does not
20745         work.  In either case, we know the answer without further tests.
20746         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20747         it at most once, and use its results for both long long int and
20748         unsigned long long int.  This is more likely to be efficient in
20749         the common case where the program wants to check for both long
20750         long int and unsigned long long int.
20751         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20752         since the answer is already known.
20753
20754 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20755
20756         getloadavg: set errno
20757         * lib/getloadavg.c: Set errno when returning -1.  If no other
20758         error number looks appropriate, set it to ENOSYS if the getloadavg
20759         looks like it can't possibly ever work, ENOTSUP otherwise.
20760         Suggested by Bruno Haible in
20761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20762
20763         getloadavg: trim unused parts and speed up 'configure'
20764         * NEWS: Document this.
20765         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20766         always compiled if getloadavg is absent.
20767         Move test code to ...
20768         * tests/test-getloadavg.c: New file, containing previous
20769         contents of test from lib/getloadavg.c.  It also contains
20770         suggestions by Bruno Haible in
20771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20772         * modules/getloadavg-tests: New file.
20773         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20774         Do tests in the same order as they're needed for getloadavg.c.
20775         Omit setgid-related tests that generate symbols KMEM_GROUP,
20776         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20777         Do only the tests that are needed to see whether the system has
20778         getloadavg, moving the other tests into ...
20779         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20780         NLIST_NAME_UNION; nobody should be using it.  Do not define
20781         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20782         relevant, as the user of this module shouldn't care how getloadavg
20783         is implemented.
20784
20785         getloadavg: omit unused var
20786         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20787
20788 2011-02-15  Jim Meyering  <meyering@redhat.com>
20789
20790         doc: update users.txt
20791         * users.txt: Update iwhd's URL.
20792
20793 2011-02-13  Bruno Haible  <bruno@clisp.org>
20794
20795         Consistent macro naming for macros that use GCC __attribute__.
20796         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20797         _ATTRIBUTE_NONNULL_.
20798         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20799         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20800         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20801         ATTRIBUTE_DEPRECATED.
20802         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20803         ATTRIBUTE_NORETURN.
20804         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20805         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20806         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20807         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20808         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20809         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20810         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20811         ATTRIBUTE_SENTINEL.
20812         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20813         ATTRIBUTE_RETURN_CHECK.
20814         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20815         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20816         ATTRIBUTE_NORETURN.
20817         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20818         Reported by Paul Eggert.
20819
20820 2011-02-13  Bruno Haible  <bruno@clisp.org>
20821
20822         Don't interfere with a program's definition of __attribute__.
20823         * lib/argp.h (__attribute__): Remove definition.
20824         (_GL_ATTRIBUTE_FORMAT): New macro.
20825         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20826         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20827         (_GL_ATTRIBUTE_FORMAT): New macro.
20828         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20829         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20830         GCC 3 or newer.
20831         * lib/error.h (__attribute__): Remove definition.
20832         (_GL_ATTRIBUTE_FORMAT): New macro.
20833         (error, error_at_line): Use it.
20834         * lib/hash.h (__attribute__): Remove definition.
20835         (ATTRIBUTE_WUR): Update definition. Define always.
20836         * lib/openat.h (__attribute__): Remove definition.
20837         (ATTRIBUTE_NORETURN): Update definition. Define always.
20838         * lib/sigpipe-die.h (__attribute__): Remove definition.
20839         (ATTRIBUTE_NORETURN): Update definition. Define always.
20840         * lib/vasnprintf.h (__attribute__): Remove definition.
20841         (_GL_ATTRIBUTE_FORMAT): New macro.
20842         (asnprintf, vasnprintf): Use it.
20843         * lib/xalloc.h (__attribute__): Remove definition.
20844         (ATTRIBUTE_NORETURN): Update definition. Define always.
20845         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20846         * lib/xmemdup0.h (__attribute__): Remove definition.
20847         (ATTRIBUTE_NORETURN): Update definition. Define always.
20848         * lib/xprintf.h (__attribute__): Remove definition.
20849         (_GL_ATTRIBUTE_FORMAT): New macro.
20850         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20851         * lib/xstrtol.h (__attribute__): Remove definition.
20852         (ATTRIBUTE_NORETURN): Update definition. Define always.
20853         * lib/xvasprintf.h (__attribute__): Remove definition.
20854         (_GL_ATTRIBUTE_FORMAT): New macro.
20855         (xasprintf, xvasprintf): Use it.
20856         * tests/test-argmatch.c (__attribute__): Remove definition.
20857         (ATTRIBUTE_NORETURN): Update definition. Define always.
20858         * tests/test-exclude.c (__attribute__): Remove definition.
20859         (ATTRIBUTE_NORETURN): Update definition. Define always.
20860         Reported by Paul Eggert.
20861
20862 2011-02-13  Bruno Haible  <bruno@clisp.org>
20863
20864         mbrtowc: Add more tests for native Windows platforms.
20865         * tests/test-mbrtowc-w32-1.sh: New file.
20866         * tests/test-mbrtowc-w32-2.sh: New file.
20867         * tests/test-mbrtowc-w32-3.sh: New file.
20868         * tests/test-mbrtowc-w32-4.sh: New file.
20869         * tests/test-mbrtowc-w32-5.sh: New file.
20870         * tests/test-mbrtowc-w32.c: New file.
20871         * modules/mbrtowc-tests (Files): Add them.
20872         (Makefile.am): Arrange to run these tests.
20873         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20874         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20875
20876 2011-02-13  Bruno Haible  <bruno@clisp.org>
20877
20878         mbrtowc: Work around native Windows bug.
20879         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20880         guess when no suitable locale for testing was found.
20881         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20882
20883 2011-02-13  Bruno Haible  <bruno@clisp.org>
20884
20885         mbsinit: Work around mingw bug.
20886         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20887         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20888         Windows.
20889         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20890
20891 2011-02-13  Bruno Haible  <bruno@clisp.org>
20892
20893         mbsinit: Don't crash for a NULL argument.
20894         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20895         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20896
20897 2011-02-13  Bruno Haible  <bruno@clisp.org>
20898
20899         Don't interfere with a program's definition of __attribute__.
20900         * lib/stdio.in.h (__attribute__): Remove definition.
20901         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20902         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20903         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20904         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20905         * lib/string.in.h (__attribute__): Remove definition.
20906         Reported by Paul Eggert.
20907
20908 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20909
20910         stdlib: don't get in the way of non-GCC __attribute__
20911         See thread starting at
20912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20913         Revert previous stdlib change, installing the following instead:
20914         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20915         to get in the way of a non-GCC compiler that supports __attribute__.
20916         (_GL_ATTRIBUTE_RETURN): New macro.
20917         (_Exit): Use it instead of __attribute__.
20918
20919 2011-02-12  Bruno Haible  <bruno@clisp.org>
20920
20921         quotearg test: Avoid test failure on mingw.
20922         * tests/test-quotearg.sh: Convert the locale identifier from native
20923         Windows syntax to Unix syntax.
20924
20925 2011-02-12  Bruno Haible  <bruno@clisp.org>
20926
20927         setlocale: Prefer gnulib's override over libintl's override.
20928         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20929         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20930         GNULIB_defined_setlocale is set.
20931
20932 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20933
20934         stdlib: support non-GCC __attribute__
20935
20936         Fix a serious and tricky problem encountered when attempting to
20937         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20938         5.5, but it crashed due to memory corruption on Solaris 10 with
20939         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20940         bits that are otherwise zero.  This tagging is optional inside
20941         Emacs but is preferred and is used when __attribute__ ((__aligned
20942         (8))) works, as it does with both recent-enough GCC and with Sun C
20943         5.11.  However, Sun C 5.11 is not GCC and does not #define
20944         __GNUC__ and __GNUC_MINOR__.
20945
20946         When I added the getloadavg module to Emacs, it brought in
20947         stdlib.in.h, which contained this fragment:
20948
20949            #ifndef __attribute__
20950            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20951            #  define __attribute__(Spec)   /* empty */
20952            # endif
20953            #endif
20954
20955         When files that include <stdlib.h> were compiled with Sun C 5.11,
20956         the above code disabled __attribute__ ((__aligned (8))), which
20957         caused variables to not be properly aligned, which eventually led
20958         to the pointer corruption mentioned above.  (This was a bit hard
20959         to diagnose, unfortunately.)
20960
20961         Several "#define __attribute__(X) /* empty */" code snippets need
20962         to be eradicated from Gnulib to work with non-GCC compilers that
20963         support __attribute__.  The Autoconf way to do this is to test for
20964         each kind of attribute that we want support for, and selectively
20965         enable that in source code.
20966
20967         Fix this problem just for stdlib.h, by adding a test for the
20968         __noreturn__ attribute, and change stdlib.in.h to use that test
20969         when needed.  This technique can be easily generalized to the
20970         other *.in.h files and attributes, and a similar technique can be
20971         used for *.h and *.c files.  This patch is enough to solve the
20972         problem for Emacs + getloadavg, and I thought I'd publish it for
20973         feedback before undertaking further, similar fixes in other
20974         modules.
20975
20976         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20977         because it's not needed for stdlib.h.  It merely substitutes the
20978         value directly into stdlib.h.  We may well need to #define it, or
20979         similar symbols, for other modules, but it's nice to also have an
20980         option to not #define it for applications like Emacs that do not
20981         need it.
20982
20983         * lib/stdlib.in.h (__attribute__): Do not #define.
20984         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20985         be defined only if the _Exit module is also used.
20986         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20988         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20989         platforms.
20990         * modules/_Exit (Files): Add m4/attribute.m4.
20991         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20992         * m4/attribute.m4: New file.
20993
20994 2011-02-12  Bruno Haible  <bruno@clisp.org>
20995
20996         wcsrtombs: Work around bug on native Windows.
20997         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20998         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20999         instead of len.
21000         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
21001
21002 2011-02-12  Bruno Haible  <bruno@clisp.org>
21003
21004         mbsrtowcs: Work around bug on native Windows.
21005         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
21006         against mingw bug.
21007         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
21008
21009 2011-02-12  Bruno Haible  <bruno@clisp.org>
21010
21011         Avoid setlocale bugs in tests.
21012         * modules/btowc (Dependencies): Add setlocale.
21013         * modules/c-strcase (Dependencies): Likewise.
21014         * modules/mbmemcasecmp (Dependencies): Likewise.
21015         * modules/mbmemcasecoll (Dependencies): Likewise.
21016         * modules/mbrtowc (Dependencies): Likewise.
21017         * modules/mbscasecmp (Dependencies): Likewise.
21018         * modules/mbscasestr (Dependencies): Likewise.
21019         * modules/mbschr (Dependencies): Likewise.
21020         * modules/mbscspn (Dependencies): Likewise.
21021         * modules/mbsinit (Dependencies): Likewise.
21022         * modules/mbsncasecmp (Dependencies): Likewise.
21023         * modules/mbsnrtowcs (Dependencies): Likewise.
21024         * modules/mbspbrk (Dependencies): Likewise.
21025         * modules/mbspcasecmp (Dependencies): Likewise.
21026         * modules/mbsrchr (Dependencies): Likewise.
21027         * modules/mbsrtowcs (Dependencies): Likewise.
21028         * modules/mbsspn (Dependencies): Likewise.
21029         * modules/mbsstr (Dependencies): Likewise.
21030         * modules/nl_langinfo (Dependencies): Likewise.
21031         * modules/quotearg (Dependencies): Likewise.
21032         * modules/unicase/locale-language (Dependencies): Likewise.
21033         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21034         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21035         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21036         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21037         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21038         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21039         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21040         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21041         * modules/vasnprintf-posix (Dependencies): Likewise.
21042         * modules/wcrtomb (Dependencies): Likewise.
21043         * modules/wcsnrtombs (Dependencies): Likewise.
21044         * modules/wcsrtombs (Dependencies): Likewise.
21045
21046 2011-02-12  Bruno Haible  <bruno@clisp.org>
21047
21048         setlocale: Workaround native Windows bug.
21049         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21050         succeeds but sets LC_CTYPE to "C", report a failure.
21051         * tests/test-setlocale2.sh: New file.
21052         * tests/test-setlocale2.c: New file.
21053         * modules/setlocale-tests (Files): Add the new files.
21054         (Makefile.am): Enable test-setlocale2.sh test.
21055         * doc/posix-functions/setlocale.texi: Mention workaround.
21056
21057 2011-02-11  Bruno Haible  <bruno@clisp.org>
21058
21059         Tests for module 'setlocale'.
21060         * modules/setlocale-tests: New file.
21061         * tests/test-setlocale1.sh: New file.
21062         * tests/test-setlocale1.c: New file.
21063
21064         New module 'setlocale'.
21065         * lib/locale.in.h (setlocale): New declaration.
21066         * lib/setlocale.c: New file, based on
21067         gettext/gettext-runtime/intl/setlocale.c.
21068         * m4/setlocale.m4: New file.
21069         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21070         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21071         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21072         REPLACE_SETLOCALE.
21073         * modules/setlocale: New file.
21074         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21075         * doc/posix-functions/setlocale.texi: Mention the new module.
21076
21077 2011-02-11  Bruno Haible  <bruno@clisp.org>
21078
21079         Prepare for locale dependent tests on mingw.
21080         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21081         because it has the wrong locale encoding.
21082         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21083         French_France.1252 instead of "fr".
21084         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21085         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21086         because it has the wrong locale encoding.
21087         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21088         native Windows, try Turkish_Turkey.65001.
21089         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21090         Chinese_China.54936.
21091
21092         Prepare for locale dependent tests on mingw.
21093         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21094         differently.
21095         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21096         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21097         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21098         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21099
21100 2011-02-11  Eric Blake  <eblake@redhat.com>
21101
21102         strptime: avoid compiler warnings
21103         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21104         compiler warnings about dead code.
21105         Reported by Daniel P. Berrange.
21106
21107 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21108
21109         doc: update users.txt
21110         * users.txt: Add rcs.
21111
21112 2011-02-10  John W. Eaton  <jwe@gnu.org>
21113
21114         doc: update users.txt
21115         * users.txt: Add octave.
21116
21117 2011-02-10  Jim Meyering  <meyering@redhat.com>
21118
21119         doc: update users.txt
21120         * users.txt: Add iwhd.
21121
21122 2011-02-09  Bruno Haible  <bruno@clisp.org>
21123
21124         gnulib-tool: Make copyright notice adjustment more robust.
21125         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21126         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21127         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21128         License".
21129         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21130
21131 2011-02-06  Bruno Haible  <bruno@clisp.org>
21132
21133         New module 'towctrans'.
21134         * modules/towctrans: New file.
21135         * lib/wctype.in.h (towctrans): New declaration.
21136         * lib/towctrans.c: New file.
21137         * lib/towctrans-impl.h: New file.
21138         * m4/towctrans.m4: New file.
21139         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21140         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21141         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21142         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21143         * doc/posix-functions/towctrans.texi: Mention the new module.
21144
21145 2011-02-06  Bruno Haible  <bruno@clisp.org>
21146
21147         New module 'wctrans'.
21148         * modules/wctrans: New file.
21149         * lib/wctype.in.h (wctrans): New declaration.
21150         * lib/wctrans.c: New file.
21151         * lib/wctrans-impl.h: New file.
21152         * m4/wctrans.m4: New file.
21153         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21154         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21155         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21156         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21157         * doc/posix-functions/wctrans.texi: Mention the new module.
21158
21159 2011-02-06  Bruno Haible  <bruno@clisp.org>
21160
21161         New module 'iswctype'.
21162         * modules/iswctype: New file.
21163         * lib/wctype.in.h (iswctype): New declaration.
21164         * lib/iswctype.c: New file.
21165         * lib/iswctype-impl.h: New file.
21166         * m4/iswctype.m4: New file.
21167         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21168         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21169         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21170         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21171         * doc/posix-functions/iswctype.texi: Mention the new module and the
21172         HP-UX 11.00 problem.
21173
21174 2011-02-06  Bruno Haible  <bruno@clisp.org>
21175
21176         New module 'wctype'.
21177         * modules/wctype: Change to represent the wctype() substitute.
21178         * lib/wctype.in.h (wctype): New declaration.
21179         * lib/wctype.c: New file.
21180         * lib/wctype-impl.h: New file.
21181         * m4/wctype.m4: New file.
21182         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21183         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21184         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21185         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21186         * doc/posix-functions/wctype.texi: Mention the new module and the
21187         HP-UX 11.00 problem.
21188
21189 2011-02-06  Bruno Haible  <bruno@clisp.org>
21190
21191         wctype-h: Ensure wctype_t and wctrans_t are defined.
21192         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21193         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21194         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21195         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21196         HAVE_WCTRANS_T.
21197         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21198
21199 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21200
21201         flock: fix license typo
21202
21203         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21204         omitted.
21205
21206 2011-02-08  Bruno Haible  <bruno@clisp.org>
21207
21208         Split large sed scripts, for HP-UX sed.
21209         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21210         to avoid HP-UX limit of 99 commands, in the near future.
21211         * modules/stdlib (Makefile.am): Likewise.
21212         * modules/unistd (Makefile.am): Likewise.
21213         * modules/wchar (Makefile.am): Likewise.
21214         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21215         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21216         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21217
21218 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21219             Bruno Haible  <bruno@clisp.org>
21220
21221         stdlib: improve random_r modularization
21222         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21223         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21224         you also need the random_r module to get this material right.
21225         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21226         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21227         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21228
21229 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21230
21231         stdlib: don't depend on stdint
21232         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21233         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21234         be independent of whether stdint.h is needed.
21235         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21236         here, instead of ...
21237         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21238         struct random_data should be using the random_r module, not just
21239         the stdlib module (which wouldn't make sense: what package needs
21240         just struct random_data without also needing random_r?).
21241         * modules/stdlib (Depends-on): Remove stdint.
21242
21243         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21244         See the thread rooted at
21245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21246         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21247         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21248         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21249         __VMS)); previously it was always included (via fcntl--.h).
21250         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21251         hand; this is good enough for load averages.  Also, do not use
21252         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21253         flags directly if available and don't bother otherwise.  (Packages
21254         that need the extra reliability should use the modules that define
21255         these flags on older platforms that lack them.)
21256         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21257         fcntl-safer.
21258
21259 2011-02-08  Jim Meyering  <meyering@redhat.com>
21260
21261         di-set.h, ino-map.h: add multiple-inclusion guard
21262         Technically, the guard is required only for ino-map.h, due to its
21263         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21264         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21265         * lib/ino-map.h: Likewise.
21266
21267 2011-02-06  Bruno Haible  <bruno@clisp.org>
21268
21269         iswblank: Ensure declaration on glibc systems.
21270         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21271         * modules/iswblank (Dependencies): Add 'extensions'.
21272         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21273
21274 2011-02-06  Bruno Haible  <bruno@clisp.org>
21275
21276         New module 'iswblank'.
21277         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21278         * modules/iswblank: New file.
21279         * modules/wctype-h (Files): Remove lib/iswblank.c.
21280         (Makefile.am): Substitute GNULIB_ISWBLANK.
21281         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21282         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21283         (gl_WCTYPE_H_DEFAULTS): New macro.
21284         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21285         * modules/iswblank-tests: New file.
21286         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21287         * tests/test-wctype-h.c (main): Remove iswblank tests.
21288         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21289         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21290         of 'wctype-h'.
21291         * NEWS: Mention the change.
21292         * modules/mbchar (Depends-on): Add iswblank.
21293
21294 2011-02-08  Bruno Haible  <bruno@clisp.org>
21295
21296         di-set tests: Refactor.
21297         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21298         unnecessary includes.
21299         (ASSERT): Remove macro.
21300         (main): Make C90 compliant by avoiding variable declaration after
21301         statement.
21302         * modules/di-set-tests (Files): Add tests/macros.h.
21303
21304 2011-02-08  Bruno Haible  <bruno@clisp.org>
21305
21306         ino-map tests: Refactor.
21307         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21308         unnecessary includes.
21309         (ASSERT): Remove macro.
21310         (main): Make C90 compliant by avoiding variable declaration after
21311         statement.
21312         * modules/ino-map-tests (Files): Add tests/macros.h.
21313
21314 2011-02-08  Jim Meyering  <meyering@redhat.com>
21315
21316         di-set: add "const" to a cast
21317         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21318         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21319
21320 2011-02-06  Bruno Haible  <bruno@clisp.org>
21321
21322         Rename module 'wctype' to 'wctype-h'.
21323         * modules/wctype-h: Renamed from modules/wctype.
21324         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21325         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21326         (Files, Depends-on, Makefile.am): Update.
21327         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21328         (Files, Makefile.am): Update.
21329         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21330         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21331         * doc/posix-headers/wctype.texi: Update.
21332         * doc/posix-functions/iswalnum.texi: Update.
21333         * doc/posix-functions/iswalpha.texi: Update.
21334         * doc/posix-functions/iswblank.texi: Update.
21335         * doc/posix-functions/iswcntrl.texi: Update.
21336         * doc/posix-functions/iswdigit.texi: Update.
21337         * doc/posix-functions/iswgraph.texi: Update.
21338         * doc/posix-functions/iswlower.texi: Update.
21339         * doc/posix-functions/iswprint.texi: Update.
21340         * doc/posix-functions/iswpunct.texi: Update.
21341         * doc/posix-functions/iswspace.texi: Update.
21342         * doc/posix-functions/iswupper.texi: Update.
21343         * doc/posix-functions/iswxdigit.texi: Update.
21344         * doc/posix-functions/towlower.texi: Update.
21345         * doc/posix-functions/towupper.texi: Update.
21346         * NEWS: Mention the change.
21347         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21348         * modules/mbchar (Dependencies): Likewise.
21349         * modules/mbswidth (Dependencies): Likewise.
21350         * modules/quotearg (Dependencies): Likewise.
21351         * modules/regex (Dependencies): Likewise.
21352         * modules/wcscasecmp (Dependencies): Likewise.
21353         * modules/wcsncasecmp (Dependencies): Likewise.
21354         * modules/wcwidth (Dependencies): Likewise.
21355
21356 2011-02-06  Bruno Haible  <bruno@clisp.org>
21357
21358         New module 'wcswidth'.
21359         * modules/wcswidth: New file.
21360         * lib/wchar.in.h (wcswidth): New declaration.
21361         * lib/wcswidth.c: New file.
21362         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21363         * m4/wcswidth.m4: New file.
21364         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21365         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21366         REPLACE_WCSWIDTH.
21367         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21368         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21369         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21370         * doc/posix-functions/wcswidth.texi: Mention the new module.
21371
21372 2011-02-06  Bruno Haible  <bruno@clisp.org>
21373
21374         New module 'wcstok'.
21375         * modules/wcstok: New file.
21376         * lib/wchar.in.h (wcstok): New declaration.
21377         * lib/wcstok.c: New file.
21378         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21379         * m4/wcstok.m4: New file.
21380         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21381         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21382         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21383         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21384         * doc/posix-functions/wcstok.texi: Mention the new module.
21385
21386 2011-02-06  Bruno Haible  <bruno@clisp.org>
21387
21388         New module 'wcsstr'.
21389         * modules/wcsstr: New file.
21390         * lib/wchar.in.h (wcsstr): New declaration.
21391         * lib/wcsstr.c: New file.
21392         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21393         * m4/wcsstr.m4: New file.
21394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21396         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21397         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21398         * doc/posix-functions/wcsstr.texi: Mention the new module.
21399
21400 2011-02-06  Bruno Haible  <bruno@clisp.org>
21401
21402         New module 'wcspbrk'.
21403         * modules/wcspbrk: New file.
21404         * lib/wchar.in.h (wcspbrk): New declaration.
21405         * lib/wcspbrk.c: New file.
21406         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21407         * m4/wcspbrk.m4: New file.
21408         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21409         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21410         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21411         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21412         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21413
21414 2011-02-06  Bruno Haible  <bruno@clisp.org>
21415
21416         New module 'wcsspn'.
21417         * modules/wcsspn: New file.
21418         * lib/wchar.in.h (wcsspn): New declaration.
21419         * lib/wcsspn.c: New file.
21420         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21421         * m4/wcsspn.m4: New file.
21422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21424         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21425         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21426         * doc/posix-functions/wcsspn.texi: Mention the new module.
21427
21428 2011-02-06  Bruno Haible  <bruno@clisp.org>
21429
21430         New module 'wcscspn'.
21431         * modules/wcscspn: New file.
21432         * lib/wchar.in.h (wcscspn): New declaration.
21433         * lib/wcscspn.c: New file.
21434         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21435         * m4/wcscspn.m4: New file.
21436         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21437         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21438         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21439         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21440         * doc/posix-functions/wcscspn.texi: Mention the new module.
21441
21442 2011-02-06  Bruno Haible  <bruno@clisp.org>
21443
21444         New module 'wcsrchr'.
21445         * modules/wcsrchr: New file.
21446         * lib/wchar.in.h (wcsrchr): New declaration.
21447         * lib/wcsrchr.c: New file.
21448         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21449         * m4/wcsrchr.m4: New file.
21450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21453         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21454         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21455
21456 2011-02-06  Bruno Haible  <bruno@clisp.org>
21457
21458         New module 'wcschr'.
21459         * modules/wcschr: New file.
21460         * lib/wchar.in.h (wcschr): New declaration.
21461         * lib/wcschr.c: New file.
21462         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21463         * m4/wcschr.m4: New file.
21464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21467         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21468         * doc/posix-functions/wcschr.texi: Mention the new module.
21469
21470 2011-02-06  Bruno Haible  <bruno@clisp.org>
21471
21472         New module 'wcsdup'.
21473         * modules/wcsdup: New file.
21474         * lib/wchar.in.h (wcsdup): New declaration.
21475         * lib/wcsdup.c: New file.
21476         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21477         * m4/wcsdup.m4: New file.
21478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21481         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21482         * doc/posix-functions/wcsdup.texi: Mention the new module.
21483
21484 2011-02-06  Bruno Haible  <bruno@clisp.org>
21485
21486         New module 'wcsxfrm'.
21487         * modules/wcsxfrm: New file.
21488         * lib/wchar.in.h (wcsxfrm): New declaration.
21489         * lib/wcsxfrm.c: New file.
21490         * lib/wcsxfrm-impl.h: New file.
21491         * m4/wcsxfrm.m4: New file.
21492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21495         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21496         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21497
21498 2011-02-06  Bruno Haible  <bruno@clisp.org>
21499
21500         New module 'wcscoll'.
21501         * modules/wcscoll: New file.
21502         * lib/wchar.in.h (wcscoll): New declaration.
21503         * lib/wcscoll.c: New file.
21504         * lib/wcscoll-impl.h: New file.
21505         * m4/wcscoll.m4: New file.
21506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21509         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21510         * doc/posix-functions/wcscoll.texi: Mention the new module.
21511
21512 2011-02-06  Bruno Haible  <bruno@clisp.org>
21513
21514         New module 'wcsncasecmp'.
21515         * modules/wcsncasecmp: New file.
21516         * lib/wchar.in.h (wcsncasecmp): New declaration.
21517         * lib/wcsncasecmp.c: New file.
21518         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21519         * m4/wcsncasecmp.m4: New file.
21520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21523         HAVE_WCSNCASECMP.
21524         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21525         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21526
21527 2011-02-06  Bruno Haible  <bruno@clisp.org>
21528
21529         New module 'wcscasecmp'.
21530         * modules/wcscasecmp: New file.
21531         * lib/wchar.in.h (wcscasecmp): New declaration.
21532         * lib/wcscasecmp.c: New file.
21533         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21534         * m4/wcscasecmp.m4: New file.
21535         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21536         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21537         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21538         HAVE_WCSCASECMP.
21539         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21540         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21541
21542 2011-02-05  Bruno Haible  <bruno@clisp.org>
21543
21544         New module 'wcsncmp'.
21545         * modules/wcsncmp: New file.
21546         * lib/wchar.in.h (wcsncmp): New declaration.
21547         * lib/wcsncmp.c: New file.
21548         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21549         * m4/wcsncmp.m4: New file.
21550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21552         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21553         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21554         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21555
21556 2011-02-05  Bruno Haible  <bruno@clisp.org>
21557
21558         New module 'wcscmp'.
21559         * modules/wcscmp: New file.
21560         * lib/wchar.in.h (wcscmp): New declaration.
21561         * lib/wcscmp.c: New file.
21562         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21563         * m4/wcscmp.m4: New file.
21564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21567         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21568         * doc/posix-functions/wcscmp.texi: Mention the new module.
21569
21570 2011-02-05  Bruno Haible  <bruno@clisp.org>
21571
21572         New module 'wcsncat'.
21573         * modules/wcsncat: New file.
21574         * lib/wchar.in.h (wcsncat): New declaration.
21575         * lib/wcsncat.c: New file.
21576         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21577         * m4/wcsncat.m4: New file.
21578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21581         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21582         * doc/posix-functions/wcsncat.texi: Mention the new module.
21583
21584 2011-02-05  Bruno Haible  <bruno@clisp.org>
21585
21586         New module 'wcscat'.
21587         * modules/wcscat: New file.
21588         * lib/wchar.in.h (wcscat): New declaration.
21589         * lib/wcscat.c: New file.
21590         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21591         * m4/wcscat.m4: New file.
21592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21595         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21596         * doc/posix-functions/wcscat.texi: Mention the new module.
21597
21598 2011-02-05  Bruno Haible  <bruno@clisp.org>
21599
21600         New module 'wcpncpy'.
21601         * modules/wcpncpy: New file.
21602         * lib/wchar.in.h (wcpncpy): New declaration.
21603         * lib/wcpncpy.c: New file.
21604         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21605         * m4/wcpncpy.m4: New file.
21606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21608         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21609         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21610         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21611
21612 2011-02-05  Bruno Haible  <bruno@clisp.org>
21613
21614         New module 'wcsncpy'.
21615         * modules/wcsncpy: New file.
21616         * lib/wchar.in.h (wcsncpy): New declaration.
21617         * lib/wcsncpy.c: New file.
21618         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21619         * m4/wcsncpy.m4: New file.
21620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21623         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21624         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21625
21626 2011-02-05  Bruno Haible  <bruno@clisp.org>
21627
21628         New module 'wcpcpy'.
21629         * modules/wcpcpy: New file.
21630         * lib/wchar.in.h (wcpcpy): New declaration.
21631         * lib/wcpcpy.c: New file.
21632         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21633         * m4/wcpcpy.m4: New file.
21634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21636         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21637         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21638         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21639
21640 2011-02-05  Bruno Haible  <bruno@clisp.org>
21641
21642         New module 'wcscpy'.
21643         * modules/wcscpy: New file.
21644         * lib/wchar.in.h (wcscpy): New declaration.
21645         * lib/wcscpy.c: New file.
21646         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21647         * m4/wcscpy.m4: New file.
21648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21651         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21652         * doc/posix-functions/wcscpy.texi: Mention the new module.
21653
21654 2011-02-05  Bruno Haible  <bruno@clisp.org>
21655
21656         New module 'wcsnlen'.
21657         * modules/wcsnlen: New file.
21658         * lib/wchar.in.h (wcsnlen): New declaration.
21659         * lib/wcsnlen.c: New file.
21660         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21661         * m4/wcsnlen.m4: New file.
21662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21665         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21666         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21667
21668 2011-02-05  Bruno Haible  <bruno@clisp.org>
21669
21670         New module 'wcslen'.
21671         * modules/wcslen: New file.
21672         * lib/wchar.in.h (wcslen): New declaration.
21673         * lib/wcslen.c: New file.
21674         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21675         * m4/wcslen.m4: New file.
21676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21678         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21679         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21680         * doc/posix-functions/wcslen.texi: Mention the new module.
21681
21682 2011-02-05  Bruno Haible  <bruno@clisp.org>
21683
21684         New module 'wmemset'.
21685         * modules/wmemset: New file.
21686         * lib/wchar.in.h (wmemset): New declaration.
21687         * lib/wmemset.c: New file.
21688         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21689         * m4/wmemset.m4: New file.
21690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21692         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21693         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21694         * doc/posix-functions/wmemset.texi: Mention the new module.
21695
21696 2011-02-05  Bruno Haible  <bruno@clisp.org>
21697
21698         New module 'wmemmove'.
21699         * modules/wmemmove: New file.
21700         * lib/wchar.in.h (wmemmove): New declaration.
21701         * lib/wmemmove.c: New file.
21702         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21703         * m4/wmemmove.m4: New file.
21704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21706         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21707         HAVE_WMEMMOVE.
21708         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21709         * doc/posix-functions/wmemmove.texi: Mention the new module.
21710
21711 2011-02-05  Bruno Haible  <bruno@clisp.org>
21712
21713         New module 'wmemcpy'.
21714         * modules/wmemcpy: New file.
21715         * lib/wchar.in.h (wmemcpy): New declaration.
21716         * lib/wmemcpy.c: New file.
21717         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21718         * m4/wmemcpy.m4: New file.
21719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21721         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21722         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21723         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21724
21725 2011-02-05  Bruno Haible  <bruno@clisp.org>
21726
21727         New module 'wmemcmp'.
21728         * modules/wmemcmp: New file.
21729         * lib/wchar.in.h (wmemcmp): New declaration.
21730         * lib/wmemcmp.c: New file.
21731         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21732         * m4/wmemcmp.m4: New file.
21733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21735         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21736         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21737         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21738
21739 2011-02-07  Jim Meyering  <meyering@redhat.com>
21740
21741         di-set, ino-map: new modules, from coreutils
21742         * lib/di-set.c: New file.
21743         * lib/di-set.h: Likewise.
21744         * lib/ino-map.c: Likewise.
21745         * lib/ino-map.h: Likewise.
21746         * modules/di-set: Likewise.
21747         * modules/di-set-tests: Likewise.
21748         * modules/ino-map: Likewise.
21749         * modules/ino-map-tests: Likewise.
21750         * tests/test-di-set.c: Likewise.
21751         * tests/test-ino-map.c: Likewise.
21752
21753 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21754
21755         getloadavg: merge minor changes from Emacs
21756
21757         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21758         (getloadavg): Use memset, not bzero.
21759
21760         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21761         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21762         clash (bug#86).
21763
21764 2010-11-14  Bruno Haible  <bruno@clisp.org>
21765
21766         Allow multiple gnulib generated replacements to coexist.
21767         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21768         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21769         * lib/langinfo.in.h (nl_item): Likewise.
21770         * lib/math.in.h (_NaN, NAN): Likewise.
21771         * lib/netdb.in.h (struct addrinfo): Likewise.
21772         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21773         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21774         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21775         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21776         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21777         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21778         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21779         pthread_mutexattr_init, pthread_mutexattr_settype,
21780         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21781         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21782         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21783         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21784         * lib/sched.in.h (struct sched_param): Likewise.
21785         * lib/se-selinux.in.h (security_class_t, security_context_t,
21786         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21787         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21788         lsetfilecon, fsetfilecon, security_check_context,
21789         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21790         Likewise.
21791         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21792         Likewise.
21793         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21794         _gl_function_taking_int_returning_void_t, union sigval,
21795         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21796         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21797         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21798         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21799         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21800         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21801         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21802         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21803         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21804         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21805         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21806         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21807         socklen_t, rpl_fd_isset): Likewise.
21808         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21809         * lib/sys_time.in.h (struct timeval): Likewise.
21810         * lib/sys_times.in.h (struct tms): Likewise.
21811         * lib/sys_utsname.in.h (struct utsname):
21812         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21813         * lib/unistd.in.h (getpagesize): Likewise.
21814         * lib/wchar.in.h (mbstate_t): Likewise.
21815         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21816         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21817         towlower, towupper): Likewise.
21818         Reported by Sam Steingold <sds@gnu.org>.
21819
21820 2011-02-05  Eric Blake  <eblake@redhat.com>
21821
21822         unsetenv: work around Haiku issues
21823         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21824         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21825
21826 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21827
21828         libposix: avoid calling error() within libposix
21829         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21830         is defined.
21831
21832 2011-02-05  Eric Blake  <eblake@redhat.com>
21833
21834         strerror_r-posix: port to cygwin
21835         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21836         implementation.
21837         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21838         * tests/test-strerror_r.c (main): Fix test.
21839         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21840         issue.
21841
21842 2011-02-05  Bruno Haible  <bruno@clisp.org>
21843
21844         New module 'wmemchr'.
21845         * modules/wmemchr: New file.
21846         * lib/wchar.in.h (wmemchr): New declaration.
21847         * lib/wmemchr.c: New file.
21848         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21849         * m4/wmemchr.m4: New file.
21850         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21851         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21852         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21853         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21854         * doc/posix-functions/wmemchr.texi: Mention the new module.
21855
21856 2011-02-04  Eric Blake  <eblake@redhat.com>
21857
21858         fdopendir: detect FreeBSD bug
21859         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21860         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21861
21862 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21863
21864         stdbool: do not define HAVE_STDBOOL_H
21865         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21866         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21867         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21868         imported from the latest Autoconf git.  It was motivated by Emacs,
21869         which uses gnulib but does not need HAVE_STDBOOL_H.
21870
21871 2011-02-04  Bruno Haible  <bruno@clisp.org>
21872
21873         wcsnrtombs: Prepare for new module wwcsnrtombs.
21874         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21875         * lib/wcsnrtombs.c: Include it.
21876         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21877
21878         wcsrtombs: Prepare for new module wwcsrtombs.
21879         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21880         * lib/wcsrtombs.c: Include it.
21881         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21882
21883         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21884         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21885         * lib/mbsnrtowcs.c: Include it.
21886         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21887
21888         mbsrtowcs: Prepare for new module mbsrtowwcs.
21889         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21890         * lib/mbsrtowcs.c: Include it.
21891         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21892
21893 2011-02-04  Bruno Haible  <bruno@clisp.org>
21894
21895         vasnprintf: Reduce use of malloc for small format strings.
21896         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21897         (arguments): Add room for the first 7 arguments.
21898         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21899         (char_directives, u8_directives, u16_directives, u32_directives): Add
21900         room for the first 7 directives.
21901         * lib/printf-parse.c: Include <string.h>.
21902         (PRINTF_PARSE): Change memory handling code so that it uses the first
21903         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21904         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21905         Reported by Pádraig Brady <P@draigbrady.com>.
21906
21907 2011-01-31  Eric Blake  <eblake@redhat.com>
21908
21909         dup2: work around Haiku bug
21910         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21911         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21912         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21913         * tests/test-dup2.c (main): Enhance test.
21914
21915 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21916
21917         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21918         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21919         declared by eglibc 2.11.2.
21920         * lib/stdio.in.h: Likewise.
21921
21922 2011-01-31  Eric Blake  <eblake@redhat.com>
21923
21924         ignore-value: add missing test dependency
21925         * tests/test-ignore-value.c: Revert previous change; stdio.h
21926         provides off_t.
21927         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21928
21929 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21930
21931         mktime: clarify long_int width checking
21932         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21933         the top level, to make it clearer that the assumption about
21934         long_int width is being checked.  See
21935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21936
21937 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21938
21939         ignore-value: Fix self-test.
21940         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21941
21942 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21943
21944         TYPE_MAXIMUM: avoid theoretically undefined behavior
21945         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21946         negative number, which the C Standard says has undefined behavior.
21947         In practice this is not a problem, but might as well do it by the book.
21948         Reported by Rich Felker and Eric Blake; see
21949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21950         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21951         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21953         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21954         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21955         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21956
21957         mktime: #undef mktime before #defining it
21958         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21959
21960         mktime: systematically normalize tm_isdst comparisons
21961         * lib/mktime.c (isdst_differ): New function.
21962         (__mktime_internal): Use it systematically for all isdst comparisons.
21963         This completes the fix for libc BZ #6723, and removes the need for
21964         normalizing tm_isdst.  See
21965         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21966         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21967
21968         mktime: fix some integer overflow issues and sidestep the rest
21969
21970         This was prompted by a bug report by Benjamin Lindner for MinGW
21971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21972         His bug is due to signed integer overflow (0 - INT_MIN), and I
21973         I scanned through mktime.c looking for other integer overflow
21974         problems, fixing all the bugs I found.
21975
21976         Although the C Standard says the resulting code is still not safe
21977         in the presence of integer overflow, in practice it should be good
21978         enough for all real-world two's-complement implementations, except
21979         for debugging environments that deliberately trap on integer
21980         overflow (e.g., gcc -ftrapv).
21981
21982         * lib/mktime.c (WRAPV): New macro.
21983         (SHR): Also check that long_int and time_t shift right in the
21984         usual way, before using the fast-but-unportable method.
21985         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21986         used.  The code already assumed two's complement, so there's
21987         no need to test for alternatives.  All uses removed.
21988         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21989         the C standard.  Problem reported by Rich Felker in
21990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21991         (twos_complement_arithmetic): Also check long_int and time_t.
21992         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21993         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21994         (__mktime_internal): Avoid integer overflow with unary subtraction
21995         in two instances where -1 - X is an adequate replacement for -X,
21996         since the calculations are approximate.
21997
21998 2011-01-29  Eric Blake  <eblake@redhat.com>
21999
22000         mktime: avoid infinite loop
22001         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
22002         type; behavior is still undefined but portable to all known targets.
22003         Reported by Rich Felker.
22004
22005 2011-01-29  Simon Josefsson  <simon@josefsson.org>
22006
22007         rename, unlink, same-inode: Relicense.
22008         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22009         * modules/unlink (License): Likewise.
22010         * modules/same-inode (License): Likewise.
22011
22012 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22013
22014         mktime: avoid problems on NetBSD 5 / i386
22015         * lib/mktime.c (long_int): New type.  This works around a problem
22016         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22017         but time_t is 64 bits, and where I expect the existing code is
22018         wrong in some cases.
22019         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22020         (ydhms_diff): Bring back the compile-time check for wide-enough
22021         year and yday.
22022
22023         mktime: fix misspelling in comment
22024         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22025         This merges all recent glibc changes of importance.
22026
22027 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22028
22029         move-if-change: cope with concurrent mv of identical file.
22030         * build-aux/move-if-change (CMPPROG): Accept environment
22031         variable as an override for `cmp'.
22032         (usage): Document CMPPROG.
22033         Adjust comparison to drop stdout.  Cope with failure of mv if
22034         the target file exists and is identical to the source, for
22035         parallel builds.
22036         Report from H.J. Lu against binutils in PR binutils/12283.
22037
22038 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22039
22040         * users.txt: Mention sharutils.
22041
22042 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22043
22044         * users.txt: Mention OATH Toolkit.
22045
22046 2011-01-27  Bruno Haible  <bruno@clisp.org>
22047
22048         Prepare for supporting FreeBSD 10.
22049         * build-aux/config.libpath: Remove handling of freebsd1*.
22050
22051 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22052
22053         Prepare for supporting FreeBSD 10.
22054         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22055         match FreeBSD 10.0.
22056
22057 2011-01-27  Bruno Haible  <bruno@clisp.org>
22058
22059         vma-iter, get-rusage-as: Add OpenBSD support.
22060         * modules/vma-iter (configure.ac): Test for mquery.
22061         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22062         * lib/vma-iter.c: Include <sys/mman.h>.
22063         (vma_iterate): Add an implementation based on mquery().
22064         * lib/resource-ext.h (get_rusage_as): Update comments.
22065         * lib/get-rusage-as.c: Likewise.
22066         * lib/get-rusage-data.c: Likewise.
22067
22068 2011-01-26  Karl Berry  <karl@gnu.org>
22069
22070         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22071         variables to make it easier to override the makeinfo program used.
22072
22073 2011-01-26  Eric Blake  <eblake@redhat.com>
22074
22075         fcntl: work around Haiku F_DUPFD bugs
22076         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22077         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22078         cloexec bit on duplication.
22079         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22080
22081 2011-01-26  Bruno Haible  <bruno@clisp.org>
22082
22083         Enable memory leak tests on AIX.
22084         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22085         * tests/test-fprintf-posix3.c (main): Likewise.
22086
22087 2011-01-26  Bruno Haible  <bruno@clisp.org>
22088
22089         Tests for module 'get-rusage-data'.
22090         * modules/get-rusage-data-tests: New file.
22091         * tests/test-get-rusage-data.c: New file.
22092
22093         New module 'get-rusage-data'.
22094         * lib/resource-ext.h (get_rusage_data): New declaration.
22095         * lib/get-rusage-data.c: New file.
22096         * modules/get-rusage-data: New file.
22097
22098 2011-01-25  Bruno Haible  <bruno@clisp.org>
22099
22100         get-rusage-as: Allow for easier testing.
22101         * lib/resource-ext.h (get_rusage_as): Add comment.
22102         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22103         (main): New function for interactive testing.
22104
22105 2011-01-25  Bruno Haible  <bruno@clisp.org>
22106
22107         vma-iter: Treat Haiku like BeOS.
22108         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22109         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22110
22111 2011-01-25  Eric Blake  <eblake@redhat.com>
22112
22113         c-stack: fix regression on cygwin when libsigsegv is present
22114         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22115
22116 2011-01-24  Bruno Haible  <bruno@clisp.org>
22117
22118         vma-iter: Avoid empty intervals.
22119         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22120         on an empty interval.
22121
22122 2011-01-24  Jim Meyering  <meyering@redhat.com>
22123
22124         u64: remove unnecessary #include
22125         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22126
22127 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22128
22129         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22130         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22131
22132 2011-01-23  Bruno Haible  <bruno@clisp.org>
22133
22134         New module 'vma-iter'.
22135         * lib/vma-iter.h: New file.
22136         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22137         * modules/vma-iter: New file.
22138         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22139         for get_rusage_as_via_iterator.
22140         (vma_iterate_callback): New function.
22141         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22142         * modules/get-rusage-as (Depends-on): Add vma-iter.
22143
22144 2011-01-23  Bruno Haible  <bruno@clisp.org>
22145
22146         uninorm: Tweak includes.
22147         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22148         Reported by Jim Meyering.
22149
22150 2011-01-23  Bruno Haible  <bruno@clisp.org>
22151
22152         get-rusage-as: Improve on NetBSD.
22153         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22154         /proc, like on FreeBSD.
22155
22156 2011-01-23  Jim Meyering  <meyering@redhat.com>
22157
22158         xreadlink.h: remove unnecessary #include
22159         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22160
22161         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22162         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22163
22164 2011-01-23  Bruno Haible  <bruno@clisp.org>
22165
22166         get-rusage-as: Fix bug.
22167         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22168         original limit when aborting the first loop.
22169
22170 2011-01-23  Bruno Haible  <bruno@clisp.org>
22171
22172         wctype: Ensure valid C syntax.
22173         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22174         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22175
22176 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22177
22178         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22180         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22181         as they are needed only for configure's test case.
22182         This removes two unnecessary symbols from config.h.
22183
22184         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22185         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22186         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22187         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22188         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22189         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22190         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22191         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22192         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22193         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22194         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22195         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22196         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22197         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22198         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22199         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22200         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22201         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22202
22203 2011-01-21  Eric Blake  <eblake@redhat.com>
22204
22205         maintainer-makefile: work with older git for submodule check
22206         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22207         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22208         Reported by Matthias Bolte.
22209
22210         bootstrap: minor portability fixes
22211         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22212         (usage): Omit leading capital and trailing . on help phrases, per
22213         GNU Coding Standards.
22214         (check_versions, top level): Prefix messages with script name.
22215
22216 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22217
22218         bootstrap: support --no-git option
22219         * build-aux/bootstrap: Add --no-git option, to be used when
22220         --gnulib-srcdir points to the exact desired checkout.
22221
22222 2011-01-21  Eric Blake  <eblake@redhat.com>
22223
22224         strerror_r-posix: work with glibc 2.13
22225         * lib/strerror_r.c (strerror_r): Fix return type.
22226
22227 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22228             Bruno Haible  <bruno@clisp.org>
22229
22230         uN_strstr: New unit tests.
22231         * modules/unistr/u8-strstr-tests: New file.
22232         * modules/unistr/u16-strstr-tests: New file.
22233         * modules/unistr/u32-strstr-tests: New file.
22234         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22235         * tests/unistr/test-u8-strstr.c: New file.
22236         * tests/unistr/test-u16-strstr.c: New file.
22237         * tests/unistr/test-u32-strstr.c: New file.
22238
22239 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22240             Bruno Haible  <bruno@clisp.org>
22241
22242         Make uN_strstr functions O(n) worst-case.
22243         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22244         16-bit and 32-bit unit cases, use the unibyte algorithm from
22245         lib/mbsstr.c.
22246         * lib/unistr/u8-strstr.c: Include <string.h>.
22247         (UNIT_IS_UINT8_T): New macro.
22248         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22249         (U_STRLEN, U_STRNLEN): New macros.
22250         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22251         (U_STRLEN, U_STRNLEN): New macros.
22252         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22253         (configure.ac): Update required libunistring version.
22254         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22255         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22256         malloca.
22257         (configure.ac): Update required libunistring version.
22258         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22259         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22260         malloca.
22261         (configure.ac): Update required libunistring version.
22262
22263 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22264             Bruno Haible  <bruno@clisp.org>
22265
22266         Prepare for faster uN_strstr functions.
22267         * lib/str-kmp.h: Support definable UNITs.
22268         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22269         needle_len argument.
22270         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22271         * lib/mbscasestr.c (mbscasestr): Likewise.
22272
22273 2011-01-21  Pádraig Brady <P@draigBrady.com>
22274
22275         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22276         * tests/test-malloca.c (main): Unset the environment variable
22277         to greatly speed up the test.
22278         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22279         * modules/malloca-tests: Depend on unsetenv.
22280
22281 2011-01-21  Pádraig Brady <P@draigBrady.com>
22282
22283         ignore-value: remove stdint dependency
22284         * lib/ignore-value.h: Remove <stdint.h>
22285         * modules/ignore-value: Remove stdint dependency.
22286
22287 2011-01-21  Jim Meyering  <meyering@redhat.com>
22288
22289         maint.mk: adjust variable name to be consistent with other gl_ vars
22290         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22291         to be lower case.
22292
22293 2011-01-20  Jim Meyering  <meyering@redhat.com>
22294
22295         maint.mk: make "check" depend on public-submodule-commit by default
22296         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22297
22298 2011-01-20  Bruno Haible  <bruno@clisp.org>
22299
22300         mbfile, mbiter: Complete change from 2008-12-21.
22301         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22302         * m4/mbiter.m4 (gl_MBITER): Likewise.
22303
22304 2011-01-20  Jim Meyering  <meyering@redhat.com>
22305
22306         init.sh: insert space between each function name and "()"
22307         * tests/init.sh: Make it a little easier to see that a function's
22308         name is "warn_", and not "warn" when looking at the first part of
22309         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22310
22311 2011-01-20  Jim Meyering  <meyering@redhat.com>
22312
22313         mountlist: clean up code formatting
22314         * lib/mountlist.c (read_file_system_list): Split a long line,
22315         correct bracing style, use NULL in place of "(struct statfs *)0",
22316         don't parenthesize return value, add spaces around "=" and after
22317         ";-in-for-stmt".
22318
22319 2011-01-14  Markus Duft <mduft@gentoo.org>
22320
22321         mountlist: add support for Interix
22322         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22323         Apply statvfs to all entries of /dev/fs.
22324         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22325         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22326
22327 2011-01-20  Jim Meyering  <meyering@redhat.com>
22328
22329         maint.mk: improve the public-submodule-commit rule
22330         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22331         to suppress printing of its commands... unless V=1.
22332         Add git submodule's --quiet option to suppress printing of e.g.,
22333         "Entering gnulib" output.
22334         "cd" into $(srcdir) before running git submodule.
22335
22336 2011-01-20  Bruno Haible  <bruno@clisp.org>
22337
22338         include_next: Fix bug introduced on 2011-01-18.
22339         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22340         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22341         ac_cv_header_... variable if the second argument is not 'check'.
22342         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22343         gl_NEXT_HEADERS_INTERNAL.
22344
22345 2011-01-20  Bruno Haible  <bruno@clisp.org>
22346
22347         Allow the user to avoid the GNULIB_TEST_* macros.
22348         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22349         Suggested by Paul Eggert.
22350
22351 2011-01-14  Jim Meyering  <meyering@redhat.com>
22352
22353         bootstrap: avoid failure when there is no .gitmodules file
22354         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22355         has been assigned to, even when its value is the empty string.
22356         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22357         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22358         Reported by John W. Eaton <jwe@gnu.org>.
22359
22360 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22361
22362         assume <ctype.h>, ..., <time.h> exist
22363         For years gnulib has been assuming the existence of the headers
22364         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22365         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22366         them, since they don't appear to be needed.
22367         * README (Portability guidelines): Document this.
22368         * lib/flock.c: Assume <fcntl.h> exists.
22369         * lib/regex_internal.h: Assume <locale.h> exists.
22370         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22371         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22372         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22373         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22374         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22375         * m4/regex.m4 (gl_REGEX): Likewise.
22376         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22377         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22378         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22379         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22380         * tests/test-argp.c: Likewise.
22381         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22382
22383         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22384         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22385         AA_APPLE_UNIVERSAL_BUILD.  See
22386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22387         * NEWS: Document this.
22388
22389 2011-01-19  Eric Blake  <eblake@redhat.com>
22390
22391         c-stack: assume stack overflow if SA_SIGINFO unsupported
22392         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22393         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22394         sigaction will work.
22395         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22396         behavior match Linux.
22397         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22398
22399         stdbool-tests: accommodate Haiku
22400         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22401
22402         binary-io: fix O_TEXT on Haiku
22403         * modules/binary-io (Depends-on): Add fcntl-h.
22404         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22405         than blindly undefining O_TEXT.
22406         Reported by Scott McCreary.
22407
22408 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22409
22410         include_next: do not check for standard headers like stddef.h
22411
22412         I found this problem when modifying Emacs to use gnulib.
22413         I noticed that it added HAVE_STDDEF_H to config.h, even though
22414         gnulib always assumes <stddef.h> exists as per README and this
22415         symbol is unnecessary.
22416         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22417         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22418         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22419         faster for headers like stddef.h that are known to exist.
22420         (gl_CHECK_NEXT_HEADERS): Use it.
22421         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22422         rather than gl_CHECK_NEXT_HEADERS.
22423         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22424         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22425
22426 2011-01-18  Eric Blake  <eblake@redhat.com>
22427
22428         ansi-c++-opt: skip C++ dependency style if C++ is unused
22429         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22430         tests when we know C++ compilation is not desired.
22431         Reported by Scott McCreary.
22432
22433 2011-01-18  Bruno Haible  <bruno@clisp.org>
22434
22435         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22436         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22437         (main): Perform test also when getrlimit and setrlimit don't exist or
22438         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22439         limiting the address space size using setrlimit, compare the address
22440         space size before and after the the test.
22441         * tests/test-dprintf-posix2.c: Likewise.
22442         * tests/test-fprintf-posix3.sh: Update skip messages.
22443         * tests/test-dprintf-posix2.sh: Likewise.
22444         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22445         * modules/dprintf-posix-tests (Depends-on): Likewise.
22446         Reported by Bruce Korb <bkorb@gnu.org> and
22447         Gary V. Vaughan <gary@gnu.org>.
22448
22449 2011-01-18  Bruno Haible  <bruno@clisp.org>
22450
22451         get-rusage-as: Improvement for Cygwin.
22452         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22453         areas that are merely reserved.
22454
22455 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22456
22457         strftime: remove dependencies on multibyte modules
22458
22459         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22460         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22461         only if __osf__ is defined, and I suspect OSF doesn't need these
22462         other modules.  If my guess is wrong, we'll need to come up with a
22463         variant of strftime that doesn't need the multibyte modules.
22464
22465         I discovered this problem when attempting modify Emacs to use the
22466         strftime module.  With the previous gnulib, this caused Emacs to
22467         need 31 new files, ranging from lib/config.charset to
22468         m4/wint_t.m4.  This was overkill and I expect would be offputting
22469         to the Emacs maintainers.  After this change, only 6 new files are
22470         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22471         stdbool.m4, and tm_gmtoff.m4.
22472
22473         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22474         Suggested by Bruno Haible in
22475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22476         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22477         and do not check for wchar.h.
22478         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22479         (Depends-on): Remove mbrlen, mbsinit, wchar.
22480
22481 2011-01-18  Bruno Haible  <bruno@clisp.org>
22482
22483         Tests for module 'get-rusage-as'.
22484         * modules/get-rusage-as-tests: New file.
22485         * tests/test-get-rusage-as.c: New file.
22486
22487         New module 'get-rusage-as'.
22488         * modules/get-rusage-as: New file.
22489         * lib/resource-ext.h: New file.
22490         * lib/get-rusage-as.c: New file.
22491
22492 2011-01-17  Eric Blake  <eblake@redhat.com>
22493
22494         sigaction: relax license from LGPLv3+ to LGPLv2+
22495         * modules/sigaction (License): Relax to LGPLv2+.
22496
22497 2011-01-14  Bruno Haible  <bruno@clisp.org>
22498
22499         filemode: Make function declarations usable in C++ mode.
22500         * lib/filemode.h: Enclose function declarations in extern "C" block.
22501         Reported by John W. Eaton <jwe@gnu.org>.
22502
22503 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22504
22505         save-cwd: no longer include "xgetcwd.h"
22506         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22507         This avoids a compilation failure in projects that use save-cwd
22508         without also using the xgetcwd module.
22509
22510 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22511
22512         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22513         This is so that a program like Emacs, which needs only dtoastr,
22514         does not have to bother with distributing and compiling ftoastr
22515         and ldtoastr.
22516         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22517         * modules/dtoastr, modules/ldtoastr: New files.
22518         * modules/ftoastr: Now works just for 'float'.
22519         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22520         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22521         dtoastr.c, ldtoastr.c.
22522
22523 2011-01-11  Jim Meyering  <meyering@redhat.com>
22524
22525         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22526         There is no need to work around the lack of the fchdir function,
22527         since gnulib can now provide a replacement when required.
22528         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22529         * modules/save-cwd (Depends-on): Add fchdir.
22530
22531 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22532
22533         openat, save-cwd: avoid xmalloc
22534
22535         This removes a direct (but undocumented) dependency of openat on
22536         xalloc, along with an indirect dependency via save-cwd.  It also
22537         removes a dependency of save-cwd on xgetcwd, and thereby
22538         indirectly on xalloc.  This change causes the openat substitute
22539         to fall back on save_cwd when memory is tight, and for save_cwd to
22540         fail instead of dying when memory is tight, but that's good enough.
22541         Problem and initial idea for fix reported by Bastien Roucaries in
22542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22543
22544         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22545         xalloc.h (for xmalloc).
22546         (openat_proc_name): Use malloc, not xmalloc.
22547         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22548         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22549
22550         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22551         This avoids heap allocation for file names whose lengths are in
22552         the range 512..1023, with the upper bound increasing to at most
22553         4031 depending on the platform's PATH_MAX.  (We do not want
22554         pathmax.h here as it might supply a non-constant PATH_MAX.)
22555         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22556         Perhaps they should be moved to malloca.h?
22557         (OPENAT_BUFFER_SIZE): Use them.
22558
22559 2011-01-10  Bruno Haible  <bruno@clisp.org>
22560
22561         doc: Update users.txt.
22562         * users.txt: Add recutils.
22563
22564 2011-01-09  Karl Berry  <karl@gnu.org>
22565
22566         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22567
22568         * doc/configmake.texi: New file.
22569         * doc/gnulib.texi: Include it.
22570         * modules/configmake: Move documentation from here.
22571
22572 2011-01-09  Bruno Haible  <bruno@clisp.org>
22573
22574         Update to Unicode 6.0.0.
22575         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22576         (get_lbp): Update for Unicode 6.0.0.
22577         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22578         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22579         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22580         U+11001, U+11038..U+11046. Remove U+06DE.
22581         (uc_width): Fix bounds of planes.
22582         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22583         lib/uniwidth/width.c.
22584         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22585         trailing whitespace removed.
22586         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22587         without comments, but with the original copyright notice.
22588         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22589         * lib/unicase/ignorable.h: Likewise.
22590         * lib/unicase/tocasefold.h: Likewise.
22591         * lib/unicase/tolower.h: Likewise.
22592         * lib/unicase/totitle.h: Likewise.
22593         * lib/unicase/toupper.h: Likewise.
22594         * lib/unictype/bidi_of.h: Likewise.
22595         * lib/unictype/blocks.h: Likewise.
22596         * lib/unictype/categ_C.h: Likewise.
22597         * lib/unictype/categ_Cn.h: Likewise.
22598         * lib/unictype/categ_L.h: Likewise.
22599         * lib/unictype/categ_Ll.h: Likewise.
22600         * lib/unictype/categ_Lm.h: Likewise.
22601         * lib/unictype/categ_Lo.h: Likewise.
22602         * lib/unictype/categ_Lu.h: Likewise.
22603         * lib/unictype/categ_M.h: Likewise.
22604         * lib/unictype/categ_Mc.h: Likewise.
22605         * lib/unictype/categ_Me.h: Likewise.
22606         * lib/unictype/categ_Mn.h: Likewise.
22607         * lib/unictype/categ_N.h: Likewise.
22608         * lib/unictype/categ_Nd.h: Likewise.
22609         * lib/unictype/categ_No.h: Likewise.
22610         * lib/unictype/categ_P.h: Likewise.
22611         * lib/unictype/categ_Po.h: Likewise.
22612         * lib/unictype/categ_S.h: Likewise.
22613         * lib/unictype/categ_Sc.h: Likewise.
22614         * lib/unictype/categ_Sk.h: Likewise.
22615         * lib/unictype/categ_Sm.h: Likewise.
22616         * lib/unictype/categ_So.h: Likewise.
22617         * lib/unictype/categ_of.h: Likewise.
22618         * lib/unictype/combining.h: Likewise.
22619         * lib/unictype/ctype_alnum.h: Likewise.
22620         * lib/unictype/ctype_alpha.h: Likewise.
22621         * lib/unictype/ctype_graph.h: Likewise.
22622         * lib/unictype/ctype_lower.h: Likewise.
22623         * lib/unictype/ctype_print.h: Likewise.
22624         * lib/unictype/ctype_punct.h: Likewise.
22625         * lib/unictype/ctype_upper.h: Likewise.
22626         * lib/unictype/decdigit.h: Likewise.
22627         * lib/unictype/digit.h: Likewise.
22628         * lib/unictype/numeric.h: Likewise.
22629         * lib/unictype/pr_alphabetic.h: Likewise.
22630         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22631         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22632         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22633         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22634         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22635         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22636         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22637         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22638         * lib/unictype/pr_case_ignorable.h: Likewise.
22639         * lib/unictype/pr_cased.h: Likewise.
22640         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22641         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22642         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22643         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22644         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22645         * lib/unictype/pr_combining.h: Likewise.
22646         * lib/unictype/pr_composite.h: Likewise.
22647         * lib/unictype/pr_currency_symbol.h: Likewise.
22648         * lib/unictype/pr_decimal_digit.h: Likewise.
22649         * lib/unictype/pr_deprecated.h: Likewise.
22650         * lib/unictype/pr_format_control.h: Likewise.
22651         * lib/unictype/pr_grapheme_base.h: Likewise.
22652         * lib/unictype/pr_grapheme_extend.h: Likewise.
22653         * lib/unictype/pr_grapheme_link.h: Likewise.
22654         * lib/unictype/pr_id_continue.h: Likewise.
22655         * lib/unictype/pr_id_start.h: Likewise.
22656         * lib/unictype/pr_ideographic.h: Likewise.
22657         * lib/unictype/pr_lowercase.h: Likewise.
22658         * lib/unictype/pr_math.h: Likewise.
22659         * lib/unictype/pr_numeric.h: Likewise.
22660         * lib/unictype/pr_other_alphabetic.h: Likewise.
22661         * lib/unictype/pr_other_id_continue.h: Likewise.
22662         * lib/unictype/pr_other_math.h: Likewise.
22663         * lib/unictype/pr_punctuation.h: Likewise.
22664         * lib/unictype/pr_sentence_terminal.h: Likewise.
22665         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22666         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22667         * lib/unictype/pr_unified_ideograph.h: Likewise.
22668         * lib/unictype/pr_uppercase.h: Likewise.
22669         * lib/unictype/pr_xid_continue.h: Likewise.
22670         * lib/unictype/pr_xid_start.h: Likewise.
22671         * lib/unictype/scripts.h: Likewise.
22672         * lib/unictype/scripts_byname.gperf: Likewise.
22673         * lib/unictype/sy_java_ident.h: Likewise.
22674         * lib/unigbrk/gbrkprop.h: Likewise.
22675         * lib/unilbrk/lbrkprop1.h: Likewise.
22676         * lib/unilbrk/lbrkprop2.h: Likewise.
22677         * lib/uninorm/decomposition-table2.h: Likewise.
22678         * lib/uniwbrk/wbrkprop.h: Likewise.
22679         * tests/unicase/test-cased.c: Likewise.
22680         * tests/unicase/test-ignorable.c: Likewise.
22681         * tests/unicase/test-uc_tolower.c: Likewise.
22682         * tests/unicase/test-uc_totitle.c: Likewise.
22683         * tests/unicase/test-uc_toupper.c: Likewise.
22684         * tests/unictype/test-categ_C.c: Likewise.
22685         * tests/unictype/test-categ_Cn.c: Likewise.
22686         * tests/unictype/test-categ_L.c: Likewise.
22687         * tests/unictype/test-categ_Ll.c: Likewise.
22688         * tests/unictype/test-categ_Lm.c: Likewise.
22689         * tests/unictype/test-categ_Lo.c: Likewise.
22690         * tests/unictype/test-categ_Lu.c: Likewise.
22691         * tests/unictype/test-categ_M.c: Likewise.
22692         * tests/unictype/test-categ_Mc.c: Likewise.
22693         * tests/unictype/test-categ_Me.c: Likewise.
22694         * tests/unictype/test-categ_Mn.c: Likewise.
22695         * tests/unictype/test-categ_N.c: Likewise.
22696         * tests/unictype/test-categ_Nd.c: Likewise.
22697         * tests/unictype/test-categ_No.c: Likewise.
22698         * tests/unictype/test-categ_P.c: Likewise.
22699         * tests/unictype/test-categ_Po.c: Likewise.
22700         * tests/unictype/test-categ_S.c: Likewise.
22701         * tests/unictype/test-categ_Sc.c: Likewise.
22702         * tests/unictype/test-categ_Sk.c: Likewise.
22703         * tests/unictype/test-categ_Sm.c: Likewise.
22704         * tests/unictype/test-categ_So.c: Likewise.
22705         * tests/unictype/test-ctype_alnum.c: Likewise.
22706         * tests/unictype/test-ctype_alpha.c: Likewise.
22707         * tests/unictype/test-ctype_graph.c: Likewise.
22708         * tests/unictype/test-ctype_lower.c: Likewise.
22709         * tests/unictype/test-ctype_print.c: Likewise.
22710         * tests/unictype/test-ctype_punct.c: Likewise.
22711         * tests/unictype/test-ctype_upper.c: Likewise.
22712         * tests/unictype/test-decdigit.h: Likewise.
22713         * tests/unictype/test-digit.h: Likewise.
22714         * tests/unictype/test-numeric.h: Likewise.
22715         * tests/unictype/test-pr_alphabetic.c: Likewise.
22716         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22717         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22718         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22719         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22720         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22721         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22722         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22723         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22724         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22725         * tests/unictype/test-pr_cased.c: Likewise.
22726         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22727         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22728         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22729         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22730         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22731         * tests/unictype/test-pr_combining.c: Likewise.
22732         * tests/unictype/test-pr_composite.c: Likewise.
22733         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22734         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22735         * tests/unictype/test-pr_deprecated.c: Likewise.
22736         * tests/unictype/test-pr_format_control.c: Likewise.
22737         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22738         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22739         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22740         * tests/unictype/test-pr_id_continue.c: Likewise.
22741         * tests/unictype/test-pr_id_start.c: Likewise.
22742         * tests/unictype/test-pr_ideographic.c: Likewise.
22743         * tests/unictype/test-pr_lowercase.c: Likewise.
22744         * tests/unictype/test-pr_math.c: Likewise.
22745         * tests/unictype/test-pr_numeric.c: Likewise.
22746         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22747         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22748         * tests/unictype/test-pr_other_math.c: Likewise.
22749         * tests/unictype/test-pr_punctuation.c: Likewise.
22750         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22751         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22752         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22753         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22754         * tests/unictype/test-pr_uppercase.c: Likewise.
22755         * tests/unictype/test-pr_xid_continue.c: Likewise.
22756         * tests/unictype/test-pr_xid_start.c: Likewise.
22757         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22758         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22759         changes.
22760         * lib/unictype/categ_Cc.h: Likewise.
22761         * lib/unictype/categ_Cf.h: Likewise.
22762         * lib/unictype/categ_Co.h: Likewise.
22763         * lib/unictype/categ_Cs.h: Likewise.
22764         * lib/unictype/categ_Lt.h: Likewise.
22765         * lib/unictype/categ_Nl.h: Likewise.
22766         * lib/unictype/categ_Pc.h: Likewise.
22767         * lib/unictype/categ_Pd.h: Likewise.
22768         * lib/unictype/categ_Pe.h: Likewise.
22769         * lib/unictype/categ_Pf.h: Likewise.
22770         * lib/unictype/categ_Pi.h: Likewise.
22771         * lib/unictype/categ_Ps.h: Likewise.
22772         * lib/unictype/categ_Z.h: Likewise.
22773         * lib/unictype/categ_Zl.h: Likewise.
22774         * lib/unictype/categ_Zp.h: Likewise.
22775         * lib/unictype/categ_Zs.h: Likewise.
22776         * lib/unictype/ctype_blank.h: Likewise.
22777         * lib/unictype/ctype_cntrl.h: Likewise.
22778         * lib/unictype/ctype_digit.h: Likewise.
22779         * lib/unictype/ctype_space.h: Likewise.
22780         * lib/unictype/ctype_xdigit.h: Likewise.
22781         * lib/unictype/mirror.h: Likewise.
22782         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22783         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22784         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22785         * lib/unictype/pr_bidi_control.h: Likewise.
22786         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22787         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22788         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22789         * lib/unictype/pr_bidi_pdf.h: Likewise.
22790         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22791         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22792         * lib/unictype/pr_dash.h: Likewise.
22793         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22794         * lib/unictype/pr_diacritic.h: Likewise.
22795         * lib/unictype/pr_extender.h: Likewise.
22796         * lib/unictype/pr_hex_digit.h: Likewise.
22797         * lib/unictype/pr_hyphen.h: Likewise.
22798         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22799         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22800         * lib/unictype/pr_ignorable_control.h: Likewise.
22801         * lib/unictype/pr_iso_control.h: Likewise.
22802         * lib/unictype/pr_join_control.h: Likewise.
22803         * lib/unictype/pr_left_of_pair.h: Likewise.
22804         * lib/unictype/pr_line_separator.h: Likewise.
22805         * lib/unictype/pr_logical_order_exception.h: Likewise.
22806         * lib/unictype/pr_non_break.h: Likewise.
22807         * lib/unictype/pr_not_a_character.h: Likewise.
22808         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22809         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22810         * lib/unictype/pr_other_id_start.h: Likewise.
22811         * lib/unictype/pr_other_lowercase.h: Likewise.
22812         * lib/unictype/pr_other_uppercase.h: Likewise.
22813         * lib/unictype/pr_paired_punctuation.h: Likewise.
22814         * lib/unictype/pr_paragraph_separator.h: Likewise.
22815         * lib/unictype/pr_pattern_syntax.h: Likewise.
22816         * lib/unictype/pr_pattern_white_space.h: Likewise.
22817         * lib/unictype/pr_private_use.h: Likewise.
22818         * lib/unictype/pr_quotation_mark.h: Likewise.
22819         * lib/unictype/pr_radical.h: Likewise.
22820         * lib/unictype/pr_soft_dotted.h: Likewise.
22821         * lib/unictype/pr_space.h: Likewise.
22822         * lib/unictype/pr_titlecase.h: Likewise.
22823         * lib/unictype/pr_variation_selector.h: Likewise.
22824         * lib/unictype/pr_white_space.h: Likewise.
22825         * lib/unictype/pr_zero_width.h: Likewise.
22826         * lib/unictype/sy_c_ident.h: Likewise.
22827         * lib/unictype/sy_c_whitespace.h: Likewise.
22828         * lib/unictype/sy_java_whitespace.h: Likewise.
22829         * lib/uninorm/composition-table.gperf: Likewise.
22830         * lib/uninorm/decomposition-table1.h: Likewise.
22831         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22832         LB8.
22833         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22834         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22835         * modules/unictype/*: Bump version number of expected libunistring
22836         version.
22837
22838 2011-01-09  Bruno Haible  <bruno@clisp.org>
22839
22840         Update to Unicode 5.2.0.
22841         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22842         trailing whitespace removed.
22843
22844 2011-01-09  Bruno Haible  <bruno@clisp.org>
22845
22846         New Unicode character properties, from Unicode 5.2.0.
22847         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22848         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22849         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22850         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22851         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22852         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22853         uc_is_property_cased, uc_is_property_case_ignorable,
22854         uc_is_property_changes_when_lowercased,
22855         uc_is_property_changes_when_uppercased,
22856         uc_is_property_changes_when_titlecased,
22857         uc_is_property_changes_when_casefolded,
22858         uc_is_property_changes_when_casemapped): New declarations.
22859         * lib/unictype/pr_byname.gperf: Add the new properties.
22860         * modules/unictype/property-byname (Depends-on): Depend on the new
22861         properties modules.
22862         * modules/unictype/property-all (Depends-on): Likewise.
22863         * MODULES.html.sh (Unicode string functions): Add
22864         unictype/property-case-ignorable, unictype/property-cased,
22865         unictype/property-changes-when-casefolded,
22866         unictype/property-changes-when-casemapped,
22867         unictype/property-changes-when-lowercased,
22868         unictype/property-changes-when-titlecased,
22869         unictype/property-changes-when-uppercased.
22870
22871         New module 'unictype/property-changes-when-casemapped'.
22872         * modules/unictype/property-changes-when-casemapped: New file.
22873         * lib/unictype/pr_changes_when_casemapped.c: New file.
22874         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22875         generated by gen-uni-tables.
22876         * modules/unictype/property-changes-when-casemapped-tests: New file.
22877         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22878         automatically generated by gen-uni-tables.
22879
22880         New module 'unictype/property-changes-when-casefolded'.
22881         * modules/unictype/property-changes-when-casefolded: New file.
22882         * lib/unictype/pr_changes_when_casefolded.c: New file.
22883         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22884         generated by gen-uni-tables.
22885         * modules/unictype/property-changes-when-casefolded-tests: New file.
22886         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22887         automatically generated by gen-uni-tables.
22888
22889         New module 'unictype/property-changes-when-titlecased'.
22890         * modules/unictype/property-changes-when-titlecased: New file.
22891         * lib/unictype/pr_changes_when_titlecased.c: New file.
22892         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22893         generated by gen-uni-tables.
22894         * modules/unictype/property-changes-when-titlecased-tests: New file.
22895         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22896         automatically generated by gen-uni-tables.
22897
22898         New module 'unictype/property-changes-when-uppercased'.
22899         * modules/unictype/property-changes-when-uppercased: New file.
22900         * lib/unictype/pr_changes_when_uppercased.c: New file.
22901         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22902         generated by gen-uni-tables.
22903         * modules/unictype/property-changes-when-uppercased-tests: New file.
22904         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22905         automatically generated by gen-uni-tables.
22906
22907         New module 'unictype/property-changes-when-lowercased'.
22908         * modules/unictype/property-changes-when-lowercased: New file.
22909         * lib/unictype/pr_changes_when_lowercased.c: New file.
22910         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22911         generated by gen-uni-tables.
22912         * modules/unictype/property-changes-when-lowercased-tests: New file.
22913         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22914         automatically generated by gen-uni-tables.
22915
22916         New module 'unictype/property-case-ignorable'.
22917         * modules/unictype/property-case-ignorable: New file.
22918         * lib/unictype/pr_case_ignorable.c: New file.
22919         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22920         by gen-uni-tables.
22921         * modules/unictype/property-case-ignorable-tests: New file.
22922         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22923         generated by gen-uni-tables.
22924
22925         New module 'unictype/property-cased'.
22926         * modules/unictype/property-cased: New file.
22927         * lib/unictype/pr_cased.c: New file.
22928         * lib/unictype/pr_cased.h: New file, automatically generated by
22929         gen-uni-tables.
22930         * modules/unictype/property-cased-tests: New file.
22931         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22932         gen-uni-tables.
22933
22934 2011-01-09  Bruno Haible  <bruno@clisp.org>
22935
22936         Update to Unicode 5.2.0.
22937         * lib/gen-uni-tables.c (output_predicate, output_category,
22938         output_combclass, output_bidi_category, output_decimal_digit_test,
22939         output_decimal_digit, output_digit_test, output_digit,
22940         output_numeric_test, output_numeric, output_mirror, output_scripts,
22941         output_scripts_byname, output_blocks, output_ident_category): Fix
22942         comment header.
22943         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22944         get_wbp.
22945         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22946         items.
22947         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22948         Changes_When_Lowercased, Changes_When_Uppercased,
22949         Changes_When_Titlecased, Changes_When_Casefolded,
22950         Changes_When_Casemapped.
22951         (is_property_alphabetic, is_property_default_ignorable_code_point):
22952         Update for Unicode 5.2.0.
22953         (is_property_cased, is_property_case_ignorable,
22954         is_property_changes_when_lowercased,
22955         is_property_changes_when_uppercased,
22956         is_property_changes_when_titlecased,
22957         is_property_changes_when_casefolded,
22958         is_property_changes_when_casemapped): New functions.
22959         (output_properties): Output also the properties cased, case_ignorable,
22960         changes_when_lowercased, changes_when_uppercased,
22961         changes_when_titlecased, changes_when_casefolded,
22962         changes_when_casemapped.
22963         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22964         Unicode TR#11 revision 17 -> 19.
22965         (LBP_CP): New enumeration value.
22966         (LBP_*): Adjust values accordingly.
22967         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22968         TR#14 revision 22 -> 24.
22969         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22970         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22971         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22972         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22973         is_WBP_MIDLETTER.
22974         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22975         the code1 and code2 of each composition rule.
22976         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22977         * lib/unicase/ignorable.h: Likewise.
22978         * lib/unicase/tocasefold.h: Likewise.
22979         * lib/unicase/tolower.h: Likewise.
22980         * lib/unicase/totitle.h: Likewise.
22981         * lib/unicase/toupper.h: Likewise.
22982         * lib/unictype/bidi_of.h: Likewise.
22983         * lib/unictype/blocks.h: Likewise.
22984         * lib/unictype/categ_C.h: Likewise.
22985         * lib/unictype/categ_Cf.h: Likewise.
22986         * lib/unictype/categ_Cn.h: Likewise.
22987         * lib/unictype/categ_L.h: Likewise.
22988         * lib/unictype/categ_Ll.h: Likewise.
22989         * lib/unictype/categ_Lm.h: Likewise.
22990         * lib/unictype/categ_Lo.h: Likewise.
22991         * lib/unictype/categ_Lu.h: Likewise.
22992         * lib/unictype/categ_M.h: Likewise.
22993         * lib/unictype/categ_Mc.h: Likewise.
22994         * lib/unictype/categ_Mn.h: Likewise.
22995         * lib/unictype/categ_N.h: Likewise.
22996         * lib/unictype/categ_Nd.h: Likewise.
22997         * lib/unictype/categ_Nl.h: Likewise.
22998         * lib/unictype/categ_No.h: Likewise.
22999         * lib/unictype/categ_P.h: Likewise.
23000         * lib/unictype/categ_Pd.h: Likewise.
23001         * lib/unictype/categ_Po.h: Likewise.
23002         * lib/unictype/categ_S.h: Likewise.
23003         * lib/unictype/categ_Sc.h: Likewise.
23004         * lib/unictype/categ_So.h: Likewise.
23005         * lib/unictype/categ_of.h: Likewise.
23006         * lib/unictype/combining.h: Likewise.
23007         * lib/unictype/ctype_alnum.h: Likewise.
23008         * lib/unictype/ctype_alpha.h: Likewise.
23009         * lib/unictype/ctype_graph.h: Likewise.
23010         * lib/unictype/ctype_lower.h: Likewise.
23011         * lib/unictype/ctype_print.h: Likewise.
23012         * lib/unictype/ctype_punct.h: Likewise.
23013         * lib/unictype/ctype_upper.h: Likewise.
23014         * lib/unictype/decdigit.h: Likewise.
23015         * lib/unictype/digit.h: Likewise.
23016         * lib/unictype/numeric.h: Likewise.
23017         * lib/unictype/pr_alphabetic.h: Likewise.
23018         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23019         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23020         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23021         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23022         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23023         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23024         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23025         * lib/unictype/pr_combining.h: Likewise.
23026         * lib/unictype/pr_composite.h: Likewise.
23027         * lib/unictype/pr_currency_symbol.h: Likewise.
23028         * lib/unictype/pr_dash.h: Likewise.
23029         * lib/unictype/pr_decimal_digit.h: Likewise.
23030         * lib/unictype/pr_deprecated.h: Likewise.
23031         * lib/unictype/pr_diacritic.h: Likewise.
23032         * lib/unictype/pr_extender.h: Likewise.
23033         * lib/unictype/pr_grapheme_base.h: Likewise.
23034         * lib/unictype/pr_grapheme_extend.h: Likewise.
23035         * lib/unictype/pr_grapheme_link.h: Likewise.
23036         * lib/unictype/pr_id_continue.h: Likewise.
23037         * lib/unictype/pr_id_start.h: Likewise.
23038         * lib/unictype/pr_ideographic.h: Likewise.
23039         * lib/unictype/pr_ignorable_control.h: Likewise.
23040         * lib/unictype/pr_logical_order_exception.h: Likewise.
23041         * lib/unictype/pr_lowercase.h: Likewise.
23042         * lib/unictype/pr_numeric.h: Likewise.
23043         * lib/unictype/pr_other_alphabetic.h: Likewise.
23044         * lib/unictype/pr_punctuation.h: Likewise.
23045         * lib/unictype/pr_sentence_terminal.h: Likewise.
23046         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23047         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23048         * lib/unictype/pr_unified_ideograph.h: Likewise.
23049         * lib/unictype/pr_uppercase.h: Likewise.
23050         * lib/unictype/pr_xid_continue.h: Likewise.
23051         * lib/unictype/pr_xid_start.h: Likewise.
23052         * lib/unictype/pr_zero_width.h: Likewise.
23053         * lib/unictype/scripts.h: Likewise.
23054         * lib/unictype/scripts_byname.gperf: Likewise.
23055         * lib/unictype/sy_java_ident.h: Likewise.
23056         * lib/unigbrk/gbrkprop.h: Likewise.
23057         * lib/unilbrk/lbrkprop1.h: Likewise.
23058         * lib/unilbrk/lbrkprop2.h: Likewise.
23059         * lib/unilbrk/lbrktables.h: Likewise.
23060         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23061         LBP_CP. Implement rule LB30.
23062         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23063         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23064         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23065         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23066         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23067         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23068         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23069         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23070         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23071         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23072         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23073         bits instead of 16 bits in the code1 and code2 of each composition
23074         rule.
23075         (uc_composition): Update for Unicode 5.2.0.
23076         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23077         * lib/uninorm/decomposition-table2.h: Likewise.
23078         * lib/uniwbrk/wbrkprop.h: Likewise.
23079         * tests/unicase/test-cased.c: Likewise.
23080         * tests/unicase/test-ignorable.c: Likewise.
23081         * tests/unicase/test-uc_tolower.c: Likewise.
23082         * tests/unicase/test-uc_totitle.c: Likewise.
23083         * tests/unicase/test-uc_toupper.c: Likewise.
23084         * tests/unictype/test-categ_C.c: Likewise.
23085         * tests/unictype/test-categ_Cf.c: Likewise.
23086         * tests/unictype/test-categ_Cn.c: Likewise.
23087         * tests/unictype/test-categ_L.c: Likewise.
23088         * tests/unictype/test-categ_Ll.c: Likewise.
23089         * tests/unictype/test-categ_Lm.c: Likewise.
23090         * tests/unictype/test-categ_Lo.c: Likewise.
23091         * tests/unictype/test-categ_Lu.c: Likewise.
23092         * tests/unictype/test-categ_M.c: Likewise.
23093         * tests/unictype/test-categ_Mc.c: Likewise.
23094         * tests/unictype/test-categ_Mn.c: Likewise.
23095         * tests/unictype/test-categ_N.c: Likewise.
23096         * tests/unictype/test-categ_Nd.c: Likewise.
23097         * tests/unictype/test-categ_Nl.c: Likewise.
23098         * tests/unictype/test-categ_No.c: Likewise.
23099         * tests/unictype/test-categ_P.c: Likewise.
23100         * tests/unictype/test-categ_Pd.c: Likewise.
23101         * tests/unictype/test-categ_Po.c: Likewise.
23102         * tests/unictype/test-categ_S.c: Likewise.
23103         * tests/unictype/test-categ_Sc.c: Likewise.
23104         * tests/unictype/test-categ_So.c: Likewise.
23105         * tests/unictype/test-ctype_alnum.c: Likewise.
23106         * tests/unictype/test-ctype_alpha.c: Likewise.
23107         * tests/unictype/test-ctype_graph.c: Likewise.
23108         * tests/unictype/test-ctype_lower.c: Likewise.
23109         * tests/unictype/test-ctype_print.c: Likewise.
23110         * tests/unictype/test-ctype_punct.c: Likewise.
23111         * tests/unictype/test-ctype_upper.c: Likewise.
23112         * tests/unictype/test-decdigit.h: Likewise.
23113         * tests/unictype/test-digit.h: Likewise.
23114         * tests/unictype/test-numeric.h: Likewise.
23115         * tests/unictype/test-pr_alphabetic.c: Likewise.
23116         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23117         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23118         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23119         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23120         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23121         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23122         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23123         * tests/unictype/test-pr_combining.c: Likewise.
23124         * tests/unictype/test-pr_composite.c: Likewise.
23125         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23126         * tests/unictype/test-pr_dash.c: Likewise.
23127         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23128         * tests/unictype/test-pr_deprecated.c: Likewise.
23129         * tests/unictype/test-pr_diacritic.c: Likewise.
23130         * tests/unictype/test-pr_extender.c: Likewise.
23131         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23132         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23133         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23134         * tests/unictype/test-pr_id_continue.c: Likewise.
23135         * tests/unictype/test-pr_id_start.c: Likewise.
23136         * tests/unictype/test-pr_ideographic.c: Likewise.
23137         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23138         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23139         * tests/unictype/test-pr_lowercase.c: Likewise.
23140         * tests/unictype/test-pr_numeric.c: Likewise.
23141         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23142         * tests/unictype/test-pr_punctuation.c: Likewise.
23143         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23144         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23145         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23146         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23147         * tests/unictype/test-pr_uppercase.c: Likewise.
23148         * tests/unictype/test-pr_xid_continue.c: Likewise.
23149         * tests/unictype/test-pr_xid_start.c: Likewise.
23150         * tests/unictype/test-pr_zero_width.c: Likewise.
23151         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23152         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23153         changed behaviour: line breaking is now disallowed between a letter
23154         or '=' and '('.
23155         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23156         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23157         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23158         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23159         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23160         lib/uniwidth/width.c.
23161         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23162         without comments, but with the original copyright notice.
23163         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23164         changes.
23165         * lib/unictype/categ_Cc.h: Likewise.
23166         * lib/unictype/categ_Co.h: Likewise.
23167         * lib/unictype/categ_Cs.h: Likewise.
23168         * lib/unictype/categ_Lt.h: Likewise.
23169         * lib/unictype/categ_Me.h: Likewise.
23170         * lib/unictype/categ_Pc.h: Likewise.
23171         * lib/unictype/categ_Pe.h: Likewise.
23172         * lib/unictype/categ_Pf.h: Likewise.
23173         * lib/unictype/categ_Pi.h: Likewise.
23174         * lib/unictype/categ_Ps.h: Likewise.
23175         * lib/unictype/categ_Sk.h: Likewise.
23176         * lib/unictype/categ_Sm.h: Likewise.
23177         * lib/unictype/categ_Z.h: Likewise.
23178         * lib/unictype/categ_Zl.h: Likewise.
23179         * lib/unictype/categ_Zp.h: Likewise.
23180         * lib/unictype/categ_Zs.h: Likewise.
23181         * lib/unictype/ctype_blank.h: Likewise.
23182         * lib/unictype/ctype_cntrl.h: Likewise.
23183         * lib/unictype/ctype_digit.h: Likewise.
23184         * lib/unictype/ctype_space.h: Likewise.
23185         * lib/unictype/ctype_xdigit.h: Likewise.
23186         * lib/unictype/mirror.h: Likewise.
23187         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23188         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23189         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23190         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23191         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23192         * lib/unictype/pr_bidi_control.h: Likewise.
23193         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23194         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23195         * lib/unictype/pr_bidi_pdf.h: Likewise.
23196         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23197         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23198         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23199         * lib/unictype/pr_format_control.h: Likewise.
23200         * lib/unictype/pr_hex_digit.h: Likewise.
23201         * lib/unictype/pr_hyphen.h: Likewise.
23202         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23203         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23204         * lib/unictype/pr_iso_control.h: Likewise.
23205         * lib/unictype/pr_join_control.h: Likewise.
23206         * lib/unictype/pr_left_of_pair.h: Likewise.
23207         * lib/unictype/pr_line_separator.h: Likewise.
23208         * lib/unictype/pr_math.h: Likewise.
23209         * lib/unictype/pr_non_break.h: Likewise.
23210         * lib/unictype/pr_not_a_character.h: Likewise.
23211         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23212         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23213         * lib/unictype/pr_other_id_continue.h: Likewise.
23214         * lib/unictype/pr_other_id_start.h: Likewise.
23215         * lib/unictype/pr_other_lowercase.h: Likewise.
23216         * lib/unictype/pr_other_math.h: Likewise.
23217         * lib/unictype/pr_other_uppercase.h: Likewise.
23218         * lib/unictype/pr_paired_punctuation.h: Likewise.
23219         * lib/unictype/pr_paragraph_separator.h: Likewise.
23220         * lib/unictype/pr_pattern_syntax.h: Likewise.
23221         * lib/unictype/pr_pattern_white_space.h: Likewise.
23222         * lib/unictype/pr_private_use.h: Likewise.
23223         * lib/unictype/pr_quotation_mark.h: Likewise.
23224         * lib/unictype/pr_radical.h: Likewise.
23225         * lib/unictype/pr_soft_dotted.h: Likewise.
23226         * lib/unictype/pr_space.h: Likewise.
23227         * lib/unictype/pr_titlecase.h: Likewise.
23228         * lib/unictype/pr_variation_selector.h: Likewise.
23229         * lib/unictype/pr_white_space.h: Likewise.
23230         * lib/unictype/sy_c_ident.h: Likewise.
23231         * lib/unictype/sy_c_whitespace.h: Likewise.
23232         * lib/unictype/sy_java_whitespace.h: Likewise.
23233         * modules/uni*/*: Bump version number of expected libunistring version.
23234         Reported by Simon Josefsson.
23235
23236 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23237
23238         useless-if-before-free: fix typo in --help and make the internal,
23239         automatic version date update process work once again.
23240         --help output contained a NUL character instead of the
23241         backslash-zero that was intended.  Also, the "must lie within
23242         the first 8 lines" line is on line 9, and hence not getting
23243         automatically updated.
23244         * build-aux/useless-if-before-free: Fix the former by adding a
23245         backslash, and the latter by condensing the three lines of what-it-does
23246         to a single line, leaving one line of slack for the future.
23247
23248 2011-01-09  Bruno Haible  <bruno@clisp.org>
23249
23250         uniwidth/width: Fix width of U+1D173..U+1D17A.
23251         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23252         symbolic_width, output_width_property_test): New functions.
23253         (main): Invoke output_nonspacing_property, output_width_property_test.
23254         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23255         U+1D173..U+1D17A.
23256         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23257         1.
23258         * modules/uniwidth/*: Bump version number of expected libunistring
23259         version.
23260         * modules/unilbrk/*: Likewise.
23261
23262 2011-01-08  Bruno Haible  <bruno@clisp.org>
23263
23264         uninorm tests: Preserve copyright of Unicode data file.
23265         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23266         Mention modifications.
23267
23268 2011-01-08  Bruno Haible  <bruno@clisp.org>
23269
23270         gen-uni-tables: Prepare for Unicode 5.2.0.
23271         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23272         (debug_output_lbp, output_lbp): Update.
23273
23274 2011-01-08  Bruno Haible  <bruno@clisp.org>
23275
23276         unilbrk: Clarify gen-uni-tables.c code.
23277         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23278         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23279         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23280
23281 2011-01-07  Bruno Haible  <bruno@clisp.org>
23282
23283         strtod: Restore errno when successfully parsing Infinity or NaN.
23284         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23285         restore the original errno.
23286
23287 2011-01-07  Bruno Haible  <bruno@clisp.org>
23288
23289         remove test: Avoid failure on HP-UX 11.
23290         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23291
23292 2011-01-07  Bruno Haible  <bruno@clisp.org>
23293
23294         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23295         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23296         error code.
23297
23298 2011-01-07  Pádraig Brady <P@draigBrady.com>
23299
23300         ignore-value: fixup comments, and add Eric Blake
23301         as an author since he rewrote the macros.
23302         * lib/ignore-value.h (ignore_value):  State that
23303         we now support aggregates.  Also specify exactly
23304         when the GCC warn_unused_result feature was added.
23305
23306 2011-01-06  Eric Blake  <eblake@redhat.com>
23307
23308         ignore-value: support aggregate types
23309         * lib/ignore-value.h (ignore_value): Provide separate gcc
23310         definition.
23311         * modules/ignore-value-tests: New test module.
23312         * tests/test-ignore-value.c: New test.
23313
23314         maint.mk: improve sc_prohibit_strcmp regex
23315         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23316         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23317         definition of STRNEQ.
23318
23319         signal: work around Haiku issue with SIGBUS
23320         * lib/siglist.h: Add comment.
23321         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23322         strsignal's favoring of SIGSEGV.
23323         * tests/test-signal.c (main): Avoid test failure.
23324         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23325         Reported by Scott McCreary.
23326
23327         maint.mk: add pre-release check to ensure submodule commits are public
23328         * top/maint.mk (public-submodule-commit): New rule.
23329         (submodule-checks): New variable.
23330         (alpha beta stable): Depend on the variable.
23331
23332 2011-01-05  Pádraig Brady <P@draigBrady.com>
23333         and Jim Meyering  <meyering@redhat.com>
23334
23335         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23336         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23337         (ATTRIBUTE_DEPRECATED): Define.
23338         (_ignore_case): New function.
23339         (ignore_value): New macro, to replace the old function.
23340         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23341         * modules/ignore-value (Depends-on): Add stdint.
23342
23343 2011-01-04  Eric Blake  <eblake@redhat.com>
23344
23345         doc: regenerate INSTALL
23346         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23347         @firstparagraphindent support, now that autoconf dropped it.
23348         (INSTALL_PRELUDE): Reinstate old macro.
23349         * doc/install.texi: Resync from autoconf.
23350         * doc/INSTALL: Reflect recent autoconf update.
23351         * doc/INSTALL.ISO: Likewise.
23352         * doc/INSTALL.UTF-8: Likewise.
23353         Reported by Karl Berry.
23354
23355 2011-01-04  Bruce Korb  <address@hidden>
23356
23357         git-version-gen: avoid a sub-shell
23358         * build-aux/git-version-gen: Redirect stderr in `...` via
23359         "exec 2>...", rather than via an added sub-shell.
23360
23361 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23362
23363         git-version-gen: use (...) rather than sh -c '...'
23364         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23365         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23366
23367 2011-01-03  Jim Meyering  <meyering@redhat.com>
23368
23369         git-version-gen: convert leading TABs to spaces
23370         * build-aux/git-version-gen: Expand leading TABs.
23371
23372         git-version-gen: handle failed "git rev-list"
23373         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23374         from git and proceeding as if it had succeeded but printed no SHA1
23375         checksums, suppress the diagnostic and handle the failure.
23376         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23377
23378         git-version-gen: include command name in one more diagnostic
23379         * build-aux/git-version-gen: When the required .tarball-version file
23380         was missing or unreadable, you might see the diagnostic from "cat",
23381         but no trace of the name of the invoking script.  Now, you still see
23382         the diagnostic from cat, but also get one from "git-version-gen: ".
23383         Inspired by a patch from Bruce Korb.
23384
23385         update-copyright: adjust test to match changed code
23386         * tests/test-update-copyright.sh: Change test's expected output
23387         to match new actual output.
23388
23389 2011-01-02  Bruno Haible  <bruno@clisp.org>
23390
23391         getlogin_r: Avoid test failure on HP-UX 11.
23392         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23393         ERANGE when the second argument is zero.
23394         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23395         portability problem.
23396
23397 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23398
23399         * build-aux/update-copyright: doc Simon's changes
23400
23401 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23402
23403         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23404         environment variable.
23405
23406 2011-01-02  Bruno Haible  <bruno@clisp.org>
23407
23408         unigbrk: Avoid gcc warnings.
23409         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23410         unused variable.
23411         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23412         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23413         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23414         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23415         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23416         Change type of first argument to 'const char *'.
23417         (main): Remove unused variable.
23418         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23419         type of first argument to 'const char *'.
23420         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23421         Likewise.
23422         (main): Change type of variable 's'.
23423         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23424         to 'int'.
23425
23426 2011-01-02  Bruno Haible  <bruno@clisp.org>
23427
23428         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23429         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23430         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23431         bug.
23432         * lib/pwrite.c: Undo 2010-12-31 patch.
23433         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23434
23435 2011-01-02  Bruno Haible  <bruno@clisp.org>
23436
23437         pread: Fix test whether it works.
23438         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23439
23440 2011-01-02  Bruno Haible  <bruno@clisp.org>
23441
23442         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23443         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23444         ends in "6". Don't require a specific month name. Try also the locale
23445         names found on HP-UX 11 and Solaris 7.
23446
23447 2011-01-02  Bruno Haible  <bruno@clisp.org>
23448
23449         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23450         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23451         C linkage.
23452         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23453
23454 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23455
23456         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23457         for consistency, since the "cluster" term is not used elsewhere.
23458         * lib/unigbrk.in.h: Update name.
23459         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23460         * lib/unigbrk/u16-grapheme-next.c: Update name.
23461         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23462         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23463         * lib/unigbrk/u32-grapheme-next.c: Update name.
23464         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23465         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23466         * lib/unigbrk/u8-grapheme-next.c: Update name.
23467         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23468         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23469         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23470         Suggested by Bruno Haible.
23471
23472 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23473
23474         Remove module 'u8-grapheme-len' as too redundant with
23475         'u8-grapheme-next'.
23476         * modules/unigbrk/u8-grapheme-len: Delete file.
23477         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23478         * lib/unigbrk.in.h: Remove prototype for deleted function.
23479         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23480         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23481
23482         Remove module 'u16-grapheme-len' as too redundant with
23483         'u16-grapheme-next'.
23484         * modules/unigbrk/u16-grapheme-len: Delete file.
23485         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23486         * lib/unigbrk.in.h: Remove prototype for deleted function.
23487         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23488         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23489
23490         Remove module 'u32-grapheme-len' as too redundant with
23491         'u32-grapheme-next'.
23492         * modules/unigbrk/u32-grapheme-len: Delete file.
23493         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23494         * lib/unigbrk.in.h: Remove prototype for deleted function.
23495         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23496         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23497
23498         Suggested by Bruno Haible.
23499
23500 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23501
23502         * unigbrk.in.h: Fix typo: "ben" => "been".
23503         Reported by Bruno Haible.
23504
23505 2011-01-01  Jim Meyering  <meyering@redhat.com>
23506
23507         maint: update almost all copyright ranges to include 2011
23508         Run the new "make update-copyright" rule.
23509
23510 2011-01-01  Jim Meyering  <meyering@redhat.com>
23511
23512         maint: update-copyright: exempt doc/INSTALL*
23513         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23514         since they are generated.  Suggested by Bruno Haible.
23515
23516 2011-01-01  Jim Meyering  <meyering@redhat.com>
23517
23518         maint: refine the update-copyright rule
23519         * Makefile (update-copyright): Also exclude any file that includes
23520         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23521         code that merely generates the comment.
23522
23523 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23524
23525         New module 'u8-grapheme-len'.
23526         * modules/unigbrk/u8-grapheme-len: New file.
23527         * modules/unigbrk/u8-grapheme-len-tests: New file.
23528         * lib/unigbrk.in.h: Add prototype for new function.
23529         * lib/unigbrk/u8-grapheme-len.c: New file.
23530         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23531
23532         New module 'u16-grapheme-len'.
23533         * modules/unigbrk/u16-grapheme-len: New file.
23534         * modules/unigbrk/u16-grapheme-len-tests: New file.
23535         * lib/unigbrk.in.h: Add prototype for new function.
23536         * lib/unigbrk/u16-grapheme-len.c: New file.
23537         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23538
23539         New module 'u32-grapheme-len'.
23540         * modules/unigbrk/u32-grapheme-len: New file.
23541         * modules/unigbrk/u32-grapheme-len-tests: New file.
23542         * lib/unigbrk.in.h: Add prototype for new function.
23543         * lib/unigbrk/u32-grapheme-len.c: New file.
23544         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23545
23546         New module 'u8-grapheme-next'.
23547         * modules/unigbrk/u8-grapheme-next: New file.
23548         * modules/unigbrk/u8-grapheme-next-tests: New file.
23549         * lib/unigbrk.in.h: Add prototype for new function.
23550         * lib/unigbrk/u8-grapheme-next.c: New file.
23551         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23552
23553         New module 'u16-grapheme-next'.
23554         * modules/unigbrk/u16-grapheme-next: New file.
23555         * modules/unigbrk/u16-grapheme-next-tests: New file.
23556         * lib/unigbrk.in.h: Add prototype for new function.
23557         * lib/unigbrk/u16-grapheme-next.c: New file.
23558         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23559
23560         New module 'u32-grapheme-next'.
23561         * modules/unigbrk/u32-grapheme-next: New file.
23562         * modules/unigbrk/u32-grapheme-next-tests: New file.
23563         * lib/unigbrk.in.h: Add prototype for new function.
23564         * lib/unigbrk/u32-grapheme-next.c: New file.
23565         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23566
23567         New module 'u8-grapheme-prev'.
23568         * modules/unigbrk/u8-grapheme-prev: New file.
23569         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23570         * lib/unigbrk.in.h: Add prototype for new function.
23571         * lib/unigbrk/u8-grapheme-prev.c: New file.
23572         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23573
23574         New module 'u16-grapheme-prev'.
23575         * modules/unigbrk/u16-grapheme-prev: New file.
23576         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23577         * lib/unigbrk.in.h: Add prototype for new function.
23578         * lib/unigbrk/u16-grapheme-prev.c: New file.
23579         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23580
23581         New module 'u32-grapheme-prev'.
23582         * modules/unigbrk/u32-grapheme-prev: New file.
23583         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23584         * lib/unigbrk.in.h: Add prototype for new function.
23585         * lib/unigbrk/u32-grapheme-prev.c: New file.
23586         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23587
23588         New module 'u8-grapheme-breaks'.
23589         * modules/unigbrk/u8-grapheme-breaks: New file.
23590         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23591         * lib/unigbrk.in.h: Add prototype for new function.
23592         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23593         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23594
23595         New module 'u16-grapheme-breaks'.
23596         * modules/unigbrk/u16-grapheme-breaks: New file.
23597         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23598         * lib/unigbrk.in.h: Add prototype for new function.
23599         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23600         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23601
23602         New module 'u32-grapheme-breaks'.
23603         * modules/unigbrk/u32-grapheme-breaks: New file.
23604         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23605         * lib/unigbrk.in.h: Add prototype for new function.
23606         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23607         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23608
23609         New module 'ulc-grapheme-breaks'.
23610         * modules/unigbrk/ulc-grapheme-breaks: New file.
23611         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23612         * m4/locale-ar.m4: New file.
23613         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23614         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23615         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23616
23617 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23618
23619         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23620         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23621         modified how this file was generated before I initially submitted
23622         the module, but failed to regenerate it.  This meant that several
23623         of the level2 entries were wrong.
23624         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23625         Remove the division-by-2 that is folded into the table now that
23626         gbrkprop.h has been regenerated properly.  Now -1 entries are
23627         handled correctly.
23628
23629         New module 'unigbrk/uc-gbrk-prop-tests'.
23630         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23631         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23632         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23633         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23634
23635 2011-01-01  Bruno Haible  <bruno@clisp.org>
23636
23637         Avoid use of hexadecimal escapes.
23638         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23639         instead of hexadecimal escapes.
23640
23641 2011-01-01  Jim Meyering  <meyering@redhat.com>
23642
23643         maint: new rule to update copyright year ranges
23644         * Makefile (update-copyright): New rule.
23645
23646         maint: indent with TABs in Makefile
23647         * Makefile: Expand leading sequences of spaces to TABs
23648
23649         version-etc: update the copyright year it reports
23650         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23651
23652 2010-12-31  Bruno Haible  <bruno@clisp.org>
23653
23654         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23655         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23656         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23657         zero.
23658
23659 2010-12-31  Bruno Haible  <bruno@clisp.org>
23660
23661         pwrite: Work around HP-UX 11.11 bug.
23662         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23663         works and set REPLACE_PWRITE if not.
23664         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23665         function.
23666         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23667
23668 2010-12-31  Bruno Haible  <bruno@clisp.org>
23669
23670         pread: Work around HP-UX 11 bugs.
23671         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23672         and set REPLACE_PREAD if not.
23673         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23674
23675 2010-12-31  Eric Blake  <eblake@redhat.com>
23676
23677         nl_langinfo: fix YESEXPR on Irix 6.5
23678         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23679         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23680         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23681         it.
23682
23683 2010-12-31  Bruno Haible  <bruno@clisp.org>
23684
23685         iconv: Document HP-UX 11 bug.
23686         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23687
23688 2010-12-31  Bruno Haible  <bruno@clisp.org>
23689
23690         ldexpl: Fix link error on HP-UX 11.
23691         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23692         LDEXPL_LIBM, using $ISNANL_LIBM.
23693
23694 2010-12-31  Eric Blake  <eblake@redhat.com>
23695
23696         ftello: avoid compilation failure with SunStudio c89
23697         * lib/ftello.c (ftello): Use lseek, not llseek.
23698
23699         tests: avoid failing coreutils tests on cygwin
23700         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23701         (create_exe_shims_): Return 0 when skipping.
23702
23703 2010-12-31  Bruno Haible  <bruno@clisp.org>
23704
23705         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23706         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23707
23708 2010-12-31  Bruno Haible  <bruno@clisp.org>
23709
23710         waitpid: Fix link error in C++ mode.
23711         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23712
23713 2010-12-31  Bruno Haible  <bruno@clisp.org>
23714
23715         isnan: Use GCC built-ins when possible.
23716         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23717         __builtin_isnan.
23718         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23719         (isnan): Define using GCC built-ins for GCC >= 4.0.
23720
23721 2010-12-31  Bruno Haible  <bruno@clisp.org>
23722
23723         isnand: Fix mistake.
23724         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23725         __builtin_isnand.
23726
23727 2010-12-31  Bruno Haible  <bruno@clisp.org>
23728
23729         open: Avoid C++ error on HP-UX 11.
23730         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23731
23732 2010-12-31  Bruno Haible  <bruno@clisp.org>
23733
23734         time_r: Add missing declarations on HP-UX 11.
23735         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23736         instead of HAVE_LOCALTIME_R.
23737         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23738         HAVE_LOCALTIME_R always.
23739         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23740         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23741         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23742         HAVE_LOCALTIME_R.
23743         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23744         * doc/posix-functions/localtime_r.texi: Likewise.
23745
23746 2010-12-29  Eric Blake  <eblake@redhat.com>
23747
23748         mountlist: tweak previous commit
23749         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23750         Reported by Paul Eggert.
23751
23752         mountlist: fix local drive detection on cygwin
23753         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23754         that works for cygwin.
23755
23756 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23757
23758         ftoastr, snprintf: ftoastr + snprintf module
23759         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23760         since the snprintf module now should be good enough here.
23761         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23762         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23763         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23764         GNULIB_SNPRINTF only for the test directory, and the latter
23765         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23766         seems to suffice by itself.
23767
23768 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23769
23770         alloca: one step towards thread-safety
23771         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23772         need for a static variable.  All callers changed.  This does not
23773         make the alloca replacement thread-safe, but it's one step.
23774
23775         tests: minor indenting change
23776         * tests/init.sh: Sync from coreutils housekeeping patch
23777         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23778         to keep lines within 80 columns.
23779
23780 2010-12-28  Jim Meyering  <meyering@redhat.com>
23781
23782         regex: don't infloop on persistent failing calloc
23783         * lib/regexec.c (build_trtable): Return failure indication upon
23784         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23785         In glibc, this was fixed for version 2.13:
23786         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23787
23788 2010-12-28  Bruno Haible  <bruno@clisp.org>
23789             Paul Eggert <eggert@cs.ucla.edu>
23790
23791         linkat: Make implementation robust against system behaviour variations.
23792         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23793         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23794         way, and to -2 if it needs a generic runtime test.
23795         * lib/linkat.c (solaris_optimized_link_immediate,
23796         solaris_optimized_link_follow): New functions.
23797         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23798         (check_same_link): Use it.
23799
23800 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23801
23802         New module 'unigbrk/base'.
23803         * modules/unigbrk/base: New file.
23804         * lib/unigbrk.in.h: New file.
23805
23806         New module 'unigbrk/uc-gbrk-prop'.
23807         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23808         * modules/unigbrk/uc-gbrk-prop: New file.
23809         * lib/unigbrk/gbrkprop.h: New file.
23810         * lib/unigbrk/uc-gbrk-prop.c: New file.
23811
23812         New module 'unigbrk/uc-is-grapheme-break'.
23813         * modules/unigbrk/uc-is-grapheme-break: New file.
23814         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23815         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23816         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23817         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23818         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23819
23820         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23821
23822 2010-12-27  Bruno Haible  <bruno@clisp.org>
23823
23824         linkat test: Avoid failure on Solaris 11 2010-11.
23825         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23826
23827 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23828
23829         utimens: work around glibc rounding bug on more platforms
23830         * lib/utimens.c (fdutimens): Work around rounding bug even if
23831         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23832         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23833
23834 2010-12-27  Bruno Haible  <bruno@clisp.org>
23835
23836         select tests: Improve comments.
23837         * tests/test-select.c (do_select): Add comments.
23838
23839 2010-12-27  Bruno Haible  <bruno@clisp.org>
23840
23841         select tests: Safer way of handling timeout.
23842         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23843         at every invocation.
23844
23845 2010-12-27  Bruno Haible  <bruno@clisp.org>
23846
23847         select tests: Use 'bool' where appropriate.
23848         * tests/test-select.c (connect_to_socket): Change argument type to
23849         'bool'.
23850
23851 2010-12-27  Bruno Haible  <bruno@clisp.org>
23852
23853         select tests: Use existing modules.
23854         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23855         (configure.ac): Don't test for unistd.h.
23856         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23857         declared in <unistd.h>.
23858
23859 2010-12-27  Bruno Haible  <bruno@clisp.org>
23860
23861         mbrtowc: Work around a Solaris 7 bug.
23862         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23863         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23864         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23865         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23866         MBRTOWC_NULL_ARG1_BUG.
23867         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23868         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23869         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23870         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23871
23872 2010-12-27  Jim Meyering  <meyering@redhat.com>
23873
23874         read-file.c: tweak syntax
23875         * lib/read-file.c (fread_file): Remove space after "*" in function
23876         definitions.
23877
23878 2010-12-27  Bruno Haible  <bruno@clisp.org>
23879
23880         times test: Avoid gcc warnings on OSF/1.
23881         * tests/test-times.c (main): Cast printf arguments from clock_t to
23882         'long int'.
23883
23884 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23885
23886         utimens: work around glibc rounding bug on older Linux kernels
23887         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23888         on Linux with a glibc whose utimes might not work, then work
23889         around a longstanding glibc bug involving rounding rather than
23890         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23891         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23892
23893 2010-12-26  Bruno Haible  <bruno@clisp.org>
23894
23895         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23896         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23897         _GL_CXXALIAS_SYS.
23898         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23899
23900 2010-12-26  Bruno Haible  <bruno@clisp.org>
23901
23902         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23903         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23904         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23905         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23906         looking for the declaration.
23907         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23908         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23909         problem.
23910         * doc/posix-functions/inet_pton.texi: Likewise.
23911
23912 2010-12-26  Bruno Haible  <bruno@clisp.org>
23913
23914         arpa_inet: Use the common idioms with C++ support.
23915         * lib/arpa_inet.in.h: Include c++defs.h.
23916         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23917         support.
23918         * modules/arpa_inet (Depends-on): Add c++defs.
23919         (Makefile.am): Substitute the contents of c++defs.h.
23920         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23921         * modules/arpa_inet-c++-tests: New file.
23922         * tests/test-arpa_inet-c++.cc: New file.
23923
23924 2010-12-25  Bruno Haible  <bruno@clisp.org>
23925
23926         Fix more C++ link errors on Solaris 8.
23927         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23928         $(LIB_EACCESS).
23929         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23930         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23931         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23932         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23933         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23934
23935 2010-12-25  Bruno Haible  <bruno@clisp.org>
23936
23937         printf-posix: Fix link error when a non-GCC compiler is used.
23938         * lib/stdio.in.h (printf): When not using GCC, override printf
23939         correctly.
23940         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23941
23942 2010-12-25  Bruno Haible  <bruno@clisp.org>
23943
23944         strerror_r-posix: Update doc.
23945         * doc/posix-functions/strerror_r.texi: Update doc about the return
23946         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23947
23948 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23949
23950         utimens: simplify the logic of the previous change
23951         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23952         This should not affect whether the test succeeds or fails.
23953
23954         utimens: configure better on hosts with NFS clock skew
23955         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23956         uses the clock of the local host.  It might use the clock of the
23957         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23958         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23959
23960 2010-12-25  Bruno Haible  <bruno@clisp.org>
23961
23962         ptsname test: Avoid failure on Solaris.
23963         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23964         open a pseudo-terminal; don't use BSD-style ptys.
23965         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23966
23967 2010-12-25  Bruno Haible  <bruno@clisp.org>
23968
23969         ptsname: Avoid ERANGE failure on some systems.
23970         * lib/ptsname.c (buffer): Increase size.
23971
23972 2010-12-25  Bruno Haible  <bruno@clisp.org>
23973
23974         rename, renameat: Avoid test failures at NFS mounted locations.
23975         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23976         so that subsequent mkdir calls succeed.
23977
23978 2010-12-25  Bruno Haible  <bruno@clisp.org>
23979
23980         iswblank: Fix C++ link error on Solaris 8.
23981         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23982         _GL_FUNCDECL_SYS.
23983
23984 2010-12-25  Bruno Haible  <bruno@clisp.org>
23985
23986         unistd: Fix C++ link error on Solaris 8.
23987         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23988
23989 2010-12-25  Bruno Haible  <bruno@clisp.org>
23990
23991         readlink doc: Mention an old glibc bug.
23992         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23993
23994 2010-12-25  Bruno Haible  <bruno@clisp.org>
23995
23996         fcntl-h: Fix for use of C++ on glibc systems.
23997         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23998         also on glibc systems in C++ mode.
23999         Reported by Gary V. Vaughan <gary@gnu.org>.
24000
24001 2010-12-25  Bruno Haible  <bruno@clisp.org>
24002
24003         roundl-ieee: Make it work on OSF/1 5.1 with cc.
24004         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
24005
24006 2010-12-25  Bruno Haible  <bruno@clisp.org>
24007
24008         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24009         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24010         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24011         test whether truncl works according to ISO C 99 with IEC 60559.
24012         * m4/truncl-ieee.m4: New file.
24013         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24014         m4/signbit.m4.
24015         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24016
24017 2010-12-25  Bruno Haible  <bruno@clisp.org>
24018
24019         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24020         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24021         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24022         test whether ceill works according to ISO C 99 with IEC 60559.
24023         * m4/ceill-ieee.m4: New file.
24024         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24025         m4/signbit.m4.
24026         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24027
24028 2010-12-25  Bruno Haible  <bruno@clisp.org>
24029
24030         Ensure all prerequisites of <wchar.h> are included.
24031         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24032         before <wchar.h>.
24033         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24034         gl_MBRLEN_NUL_RETVAL): Likewise.
24035         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24036         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24037         AC_FUNC_MBRTOWC): Likewise.
24038         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24039         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24040         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24041         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24042         Likewise.
24043         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24044         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24045         (gl_WCHAR_H): Improve comments.
24046         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24047
24048 2010-12-25  Bruno Haible  <bruno@clisp.org>
24049
24050         strtok_r: Fix C syntax error in autoconf macro.
24051         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24052         characters in test program.
24053
24054 2010-12-24  Bruno Haible  <bruno@clisp.org>
24055
24056         ceil, trunc, round: Fix gcc warnings.
24057         * lib/ceil.c (MIN): Undefine before redefining.
24058         * lib/trunc.c (MIN): Likewise.
24059         * lib/round.c (MIN): Likewise.
24060         Include <math.h> first.
24061
24062 2010-12-24  Bruno Haible  <bruno@clisp.org>
24063
24064         select tests: Avoid failures on OSF/1 5.1.
24065         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24066         failure of closing the last socket; it may fail with ECONNRESET.
24067
24068 2010-12-24  Eric Blake  <eblake@redhat.com>
24069
24070         stdint: avoid HP-UX 10.20 preprocessor bug
24071         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24072         than #if.
24073         * tests/test-floor2.c (main): Likewise.
24074         Reported by Peter O'Gorman.
24075
24076         pipe: make obsoletion transition easier
24077         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24078         * modules/pipe (Files): Include revived file.
24079         (Include): Drop reference, to mirror getdate's behavior.
24080
24081 2010-12-24  Bruno Haible  <bruno@clisp.org>
24082
24083         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24084         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24085         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24086         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24087
24088 2010-12-24  Bruno Haible  <bruno@clisp.org>
24089
24090         gethostname: Ensure declaration on NonStop Kernel.
24091         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24092         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24093
24094 2010-12-24  Bruno Haible  <bruno@clisp.org>
24095
24096         sys_select: Ensure all necessary types on NonStop Kernel.
24097         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24098         include <sys/time.h>.
24099         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24100         NonStop Kernel.
24101         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24102
24103 2010-12-24  Bruno Haible  <bruno@clisp.org>
24104
24105         sys_select: Remove unneeded include.
24106         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24107         have <sys/select.h>.
24108
24109 2010-12-24  Bruno Haible  <bruno@clisp.org>
24110
24111         gethostname: Provide a fallback for HOST_NAME_MAX.
24112         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24113         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24114         instead.
24115         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24116
24117 2010-12-24  Bruno Haible  <bruno@clisp.org>
24118
24119         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24120         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24121         (SA_RESTART): Likewise.
24122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24123
24124 2010-12-24  Bruno Haible  <bruno@clisp.org>
24125
24126         signal: Define NSIG.
24127         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24128         * tests/test-signal.c (nsig): New variable.
24129         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24130
24131 2010-12-24  Bruno Haible  <bruno@clisp.org>
24132
24133         rename, renameat: Avoid test failures on OSF/1 5.1.
24134         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24135         alternative error codes.
24136         * tests/test-renameat.c (main): Likewise.
24137
24138 2010-12-24  Bruno Haible  <bruno@clisp.org>
24139
24140         *printf: Detect large precisions bug on Solaris 10/SPARC.
24141         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24142         by Paul Eggert.
24143         * tests/test-snprintf-posix.h (test_function): Add this test code here
24144         too.
24145         * tests/test-sprintf-posix.h (test_function): Likewise.
24146         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24147         * tests/test-vasprintf-posix.c (test_function): Likewise.
24148         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24149         around by gnulib.
24150         * doc/posix-functions/printf.texi: Likewise.
24151         * doc/posix-functions/snprintf.texi: Likewise.
24152         * doc/posix-functions/sprintf.texi: Likewise.
24153         * doc/posix-functions/vfprintf.texi: Likewise.
24154         * doc/posix-functions/vprintf.texi: Likewise.
24155         * doc/posix-functions/vsnprintf.texi: Likewise.
24156         * doc/posix-functions/vsprintf.texi: Likewise.
24157         * doc/posix-functions/dprintf.texi: Undo last commit.
24158         * doc/posix-functions/vdprintf.texi: Likewise.
24159
24160 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24161
24162         tests: port test-fdutimensat.c to Solaris 8
24163         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24164         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24165         On Solaris 8, it fails with errno == ENOSYS, because there is no
24166         futimens (so it can't use the fd), and there is no lutimens (so it
24167         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24168
24169         vsnprintf: make more consistent with snprintf; doc fixes
24170
24171         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24172         the byte count return problem was promoted from the snprintf-posix
24173         to the snprintf module.
24174         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24175         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24176         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24177         * tests/test-snprintf.c (main): Check the byte count returned.
24178         * tests/test-vsnprintf.c (main): Likewise.
24179
24180 2010-12-23  Eric Blake  <eblake@redhat.com>
24181
24182         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24183         * modules/sigpipe (License): Relax license.
24184
24185 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24186
24187         doc: document Solaris printf bug with large float precisions
24188         * doc/posix-functions/dprintf.texi (dprintf):
24189         * doc/posix-functions/fprintf.texi (fprintf):
24190         * doc/posix-functions/printf.texi (printf):
24191         * doc/posix-functions/snprintf.texi (snprintf):
24192         * doc/posix-functions/sprintf.texi (sprintf):
24193         * doc/posix-functions/vdprintf.texi (vdprintf):
24194         * doc/posix-functions/vfprintf.texi (vfprintf):
24195         * doc/posix-functions/vprintf.texi (vprintf):
24196         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24197         * doc/posix-functions/vsprintf.texi (vsprintf):
24198         Mention that these functions mishandle large floating point
24199         precisions on Solaris 10.  The same bug is also present in Solaris
24200         8, and I assume earlier.  This causes "cd gnulib-tests; make
24201         check" to fail on Solaris 8 (and I assume, later) when building
24202         the latest coreutils, in test-vasprintf-posix's call to
24203         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24204         the wide flavors (e.g., wprintf) so this patch just updates the
24205         documentation for the narrow ones.
24206
24207         test-posixtm.c: add two tests
24208         * tests/test-posixtm.c: Add two tests, to highlight the
24209         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24210         around this bug; this is merely to document it.
24211
24212 2010-12-22  Bruno Haible  <bruno@clisp.org>
24213
24214         getlogin_r: Work around portability problem on OSF/1.
24215         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24216         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24217         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24218         test for a truncated result.
24219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24220         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24221         * modules/getlogin_r (Depends-on): Add memchr.
24222         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24223
24224 2010-12-22  Bruno Haible  <bruno@clisp.org>
24225
24226         ptsname: Avoid test failure on OSF/1 5.1.
24227         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24228         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24229         (same_slave): New function.
24230         (main): Use it to compare ptsname's result with the expected file name.
24231
24232 2010-12-22  Bruno Haible  <bruno@clisp.org>
24233
24234         Port extended stdio modules to HP NonStop Kernel.
24235         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24236         macros.
24237         * lib/fbufmode.c: Update comments.
24238         * lib/fflush.c: Likewise.
24239         * lib/fpurge.c: Likewise.
24240         * lib/freadable.c: Likewise.
24241         * lib/freadahead.c: Likewise.
24242         * lib/freading.c: Likewise.
24243         * lib/freadptr.c: Likewise.
24244         * lib/freadseek.c: Likewise.
24245         * lib/fseeko.c: Likewise.
24246         * lib/fseterr.c: Likewise.
24247         * lib/fwritable.c: Likewise.
24248         * lib/fwriting.c: Likewise.
24249         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24250
24251 2010-12-22  Bruno Haible  <bruno@clisp.org>
24252
24253         ttyname_r: Work around bug on OSF/1 5.1.
24254         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24255         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24256         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24257         present.
24258         * lib/ttyname_r.c (ttyname_r): Update comments.
24259
24260 2010-12-22  Bruno Haible  <bruno@clisp.org>
24261
24262         round: Implement result sign according to IEEE 754.
24263         * lib/round.c (MIN, MINUS_ZERO): New macros.
24264         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24265         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24266         * tests/test-round-ieee.c (main): Likewise.
24267         * tests/test-roundl-ieee.c (main): Likewise.
24268
24269         trunc: Implement result sign according to IEEE 754.
24270         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24271         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24272         * tests/test-trunc2.c: Include minus-zero.h.
24273         (MINUS_ZERO): New macro.
24274         (trunc_reference): Keep in sync with lib/trunc.c.
24275         * tests/test-truncf2.c: Include minus-zero.h.
24276         (MINUS_ZERO): New macro.
24277         (truncf_reference): Keep in sync with lib/trunc.c.
24278         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24279         * tests/test-trunc-ieee.c (main): Likewise.
24280         * tests/test-truncl-ieee.c (main): Likewise.
24281
24282         ceil: Implement result sign according to IEEE 754.
24283         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24284         (FUNC): Return -0.0 for -1 < x < 0.
24285         * tests/test-ceil2.c: Include minus-zero.h.
24286         (MINUS_ZERO): New macro.
24287         (ceil_reference): Keep in sync with lib/ceil.c.
24288         * tests/test-ceilf2.c: Include minus-zero.h.
24289         (MINUS_ZERO): New macro.
24290         (ceilf_reference): Keep in sync with lib/ceil.c.
24291         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24292         * tests/test-ceil-ieee.c (main): Likewise.
24293         * tests/test-ceill-ieee.c (main): Likewise.
24294
24295         floor: Implement result sign according to IEEE 754.
24296         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24297         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24298         * tests/test-floorf2.c (floorf_reference): Likewise.
24299         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24300         * tests/test-floor-ieee.c (main): Likewise.
24301         * tests/test-floorl-ieee.c (main): Likewise.
24302
24303 2010-12-22  Bruno Haible  <bruno@clisp.org>
24304
24305         getaddrinfo: Update doc.
24306         * doc/posix-functions/gai_strerror.texi: Return type is also different
24307         on AIX and HP-UX.
24308
24309 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24310
24311         getaddrinfo, inet_ntop: Update doc for Solaris.
24312         * doc/posix-functions/gai_strerror.texi: Return type is also an
24313         issue on Solaris 9 and earlier.
24314         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24315         on Solaris 10 and earlier.
24316
24317 2010-12-21  Bruno Haible  <bruno@clisp.org>
24318
24319         New module 'roundl-ieee'.
24320         * modules/roundl-ieee: New file.
24321         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24322         test whether roundl works according to ISO C 99 with IEC 60559.
24323         * m4/roundl-ieee.m4: New file.
24324         * modules/roundl-ieee-tests: New file.
24325         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24326         * tests/test-roundl.c (main): Remove signbit tests.
24327         * modules/roundl-tests (Depends-on): Remove signbit.
24328         * doc/posix-functions/roundl.texi: Mention the new module.
24329
24330 2010-12-21  Bruno Haible  <bruno@clisp.org>
24331
24332         New module 'truncl-ieee'.
24333         * modules/truncl-ieee: New file.
24334         * modules/truncl-ieee-tests: New file.
24335         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24336         * tests/test-truncl.c (main): Remove signbit tests.
24337         * modules/truncl-tests (Depends-on): Remove signbit.
24338         * doc/posix-functions/truncl.texi: Mention the new module.
24339
24340 2010-12-21  Bruno Haible  <bruno@clisp.org>
24341
24342         New module 'ceill-ieee'.
24343         * modules/ceill-ieee: New file.
24344         * modules/ceill-ieee-tests: New file.
24345         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24346         * tests/test-ceill.c (main): Remove signbit tests.
24347         * modules/ceill-tests (Depends-on): Remove signbit.
24348         * doc/posix-functions/ceill.texi: Mention the new module.
24349
24350 2010-12-21  Bruno Haible  <bruno@clisp.org>
24351
24352         New module 'floorl-ieee'.
24353         * modules/floorl-ieee: New file.
24354         * modules/floorl-ieee-tests: New file.
24355         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24356         * tests/test-floorl.c (main): Remove signbit tests.
24357         * modules/floorl-tests (Depends-on): Remove signbit.
24358         * doc/posix-functions/floorl.texi: Mention the new module.
24359
24360 2010-12-21  Bruno Haible  <bruno@clisp.org>
24361
24362         New module 'round-ieee'.
24363         * modules/round-ieee: New file.
24364         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24365         whether round works according to ISO C 99 with IEC 60559.
24366         * m4/round-ieee.m4: New file.
24367         * modules/round-ieee-tests: New file.
24368         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24369         * tests/test-round1.c (main): Remove signbit tests.
24370         * modules/round-tests (Depends-on): Remove 'signbit'.
24371         * doc/posix-functions/round.texi: Mention the new module.
24372
24373 2010-12-21  Bruno Haible  <bruno@clisp.org>
24374
24375         New module 'trunc-ieee'.
24376         * modules/trunc-ieee: New file.
24377         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24378         whether trunc works according to ISO C 99 with IEC 60559.
24379         * m4/trunc-ieee.m4: New file.
24380         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24382         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24383         * modules/trunc-ieee-tests: New file.
24384         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24385         * tests/test-trunc1.c (main): Remove signbit tests.
24386         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24387         * doc/posix-functions/trunc.texi: Mention the new module.
24388
24389 2010-12-21  Bruno Haible  <bruno@clisp.org>
24390
24391         New module 'ceil-ieee'.
24392         * modules/ceil-ieee: New file.
24393         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24394         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24395         ISO C 99 with IEC 60559.
24396         * m4/ceil-ieee.m4: New file.
24397         * modules/ceil (Files): Add lib/ceil.c.
24398         (Depends-on): Add 'float'.
24399         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24400         * lib/math.in.h (ceil): New declaration.
24401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24402         REPLACE_CEIL.
24403         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24404         * modules/ceil-ieee-tests: New file.
24405         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24406         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24407         * doc/posix-functions/ceil.texi: Mention the new module.
24408
24409 2010-12-21  Bruno Haible  <bruno@clisp.org>
24410
24411         New module 'floor-ieee'.
24412         * modules/floor-ieee: New file.
24413         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24414         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24415         ISO C 99 with IEC 60559.
24416         * m4/floor-ieee.m4: New file.
24417         * modules/floor (Files): Add lib/floor.c.
24418         (Depends-on): Add 'float'.
24419         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24420         * lib/math.in.h (floor): New declaration.
24421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24422         REPLACE_FLOOR.
24423         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24424         * modules/floor-ieee-tests: New file.
24425         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24426         * tests/test-math-c++.cc: Check the signature of 'floor'.
24427         * doc/posix-functions/floor.texi: Mention the new module.
24428
24429 2010-12-21  Bruno Haible  <bruno@clisp.org>
24430
24431         New module 'roundf-ieee'.
24432         * modules/roundf-ieee: New file.
24433         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24434         test whether roundf works according to ISO C 99 with IEC 60559.
24435         * m4/roundf-ieee.m4: New file.
24436         * modules/roundf-ieee-tests: New file.
24437         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24438         * tests/test-roundf1.c (main): Remove signbit tests.
24439         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24440         * doc/posix-functions/roundf.texi: Mention the new module.
24441
24442 2010-12-21  Bruno Haible  <bruno@clisp.org>
24443
24444         New module 'truncf-ieee'.
24445         * modules/truncf-ieee: New file.
24446         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24447         test whether truncf works according to ISO C 99 with IEC 60559.
24448         * m4/truncf-ieee.m4: New file.
24449         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24451         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24452         * modules/truncf-ieee-tests: New file.
24453         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24454         * tests/test-truncf1.c (main): Remove signbit tests.
24455         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24456         * doc/posix-functions/truncf.texi: Mention the new module.
24457
24458 2010-12-21  Bruno Haible  <bruno@clisp.org>
24459
24460         New module 'ceilf-ieee'.
24461         * modules/ceilf-ieee: New file.
24462         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24463         test whether ceilf works according to ISO C 99 with IEC 60559.
24464         * m4/ceilf-ieee.m4: New file.
24465         * modules/ceilf-ieee-tests: New file.
24466         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24467         * tests/test-ceilf1.c (main): Remove signbit tests.
24468         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24469         * doc/posix-functions/ceilf.texi: Mention the new module.
24470
24471 2010-12-21  Bruno Haible  <bruno@clisp.org>
24472
24473         New module 'floorf-ieee'.
24474         * modules/floorf-ieee: New file.
24475         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24476         test whether floorf works according to ISO C 99 with IEC 60559.
24477         * m4/floorf-ieee.m4: New file.
24478         * modules/floorf-ieee-tests: New file.
24479         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24480         * tests/test-floorf1.c (main): Remove signbit tests.
24481         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24482         * doc/posix-functions/floorf.texi: Mention the new module.
24483
24484 2010-12-21  Bruno Haible  <bruno@clisp.org>
24485
24486         Support for minus zero in autoconf macros.
24487         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24488         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24489         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24490         * tests/minus-zero.h: Update comments.
24491
24492 2010-12-21  Bruno Haible  <bruno@clisp.org>
24493
24494         Tests for module 'ceil'.
24495         * modules/ceil-tests: New file.
24496         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24497         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24498
24499 2010-12-21  Bruno Haible  <bruno@clisp.org>
24500
24501         Tests for module 'floor'.
24502         * modules/floor-tests: New file.
24503         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24504         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24505
24506 2010-12-21  Bruno Haible  <bruno@clisp.org>
24507
24508         math: Fix indentation.
24509         * lib/math.in.h (floorf): Fix indentation.
24510
24511 2010-12-21  Bruno Haible  <bruno@clisp.org>
24512
24513         Fix cross-compilation guesses on Solaris.
24514         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24515         not match "solaris2.10".
24516         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24517         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24518         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24519
24520 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24521
24522         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24523         This fixes a problem observed with the latest coreutils snapshot
24524         that caused a test to fail on Solaris 8.  src/csplit.c's call
24525         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24526         earlier, instead of returning the number of bytes that would have
24527         been generated; this causes csplit to incorrectly report memory
24528         exhaustion.
24529         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24530         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24531         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24532         comments to match.
24533         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24534         Fix typo in matching older versions of Solaris: "solaris2.10"
24535         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24536         only for guessing while cross-compiling.
24537         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24538
24539 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24540
24541         ftoastr: fix comment again
24542         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24543         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24544         Also, simplify example a bit by using flags = 0.
24545
24546 2010-12-20  Bruno Haible  <bruno@clisp.org>
24547
24548         round*, trunc*: Update documentation regarding glibc.
24549         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24550         * doc/posix-functions/round.texi: Likewise.
24551         * doc/posix-functions/roundl.texi: Likewise.
24552         * doc/posix-functions/truncf.texi: Likewise.
24553         * doc/posix-functions/trunc.texi: Likewise.
24554         * doc/posix-functions/truncl.texi: Likewise.
24555
24556 2010-12-20  Bruno Haible  <bruno@clisp.org>
24557
24558         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24559         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24560         * doc/posix-functions/round.texi: Likewise.
24561         * doc/posix-functions/roundl.texi: Likewise.
24562
24563 2010-12-20  Bruno Haible  <bruno@clisp.org>
24564
24565         ttyname_r: Add missing declaration on HP-UX 11.
24566         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24567         HAVE_TTYNAME_R.
24568         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24569         declared. Set HAVE_TTYNAME_R always.
24570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24571         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24572         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24573         HAVE_TTYNAME_R.
24574         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24575
24576 2010-12-20  Bruno Haible  <bruno@clisp.org>
24577
24578         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24579         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24580         * doc/posix-functions/getlogin_r.texi: Likewise.
24581         * tests/test-getlogin.c: Include <errno.h>.
24582         (main): Avoid test failure on HP-UX 11.11.
24583         * tests/test-getlogin_r.c (main): Likewise.
24584
24585 2010-12-20  Bruno Haible  <bruno@clisp.org>
24586
24587         getlogin_r: Add missing declaration on HP-UX 11.
24588         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24589         declared also when it exists as a function.
24590         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24591
24592 2010-12-20  Bruno Haible  <bruno@clisp.org>
24593
24594         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24595         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24596         through wcrtomb.
24597
24598 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24599
24600         ftoastr: fix comment
24601         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24602         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24603
24604 2010-12-19  Bruno Haible  <bruno@clisp.org>
24605
24606         isnan: Ensure it is a macro.
24607         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24608         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24609         Solaris.
24610
24611 2010-12-19  Bruno Haible  <bruno@clisp.org>
24612
24613         ldexpl test: Fix link error on OSF/1 5.1.
24614         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24615
24616 2010-12-19  Bruno Haible  <bruno@clisp.org>
24617
24618         wctype: Make it work in C++ mode on OSF/1 5.1.
24619         * lib/wctype.in.h (iswblank): Declare but not define here.
24620         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24621         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24622         * modules/wctype (Files): Add lib/iswblank.c.
24623
24624 2010-12-19  Bruno Haible  <bruno@clisp.org>
24625
24626         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24627         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24628         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24629
24630 2010-12-19  Bruno Haible  <bruno@clisp.org>
24631
24632         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24633         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24634         _POSIX_PII_SOCKET.
24635         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24636         * doc/posix-functions/recvfrom.texi: Likewise.
24637         * doc/posix-functions/send.texi: Likewise.
24638         * doc/posix-functions/sendto.texi: Likewise.
24639
24640 2010-12-19  Bruno Haible  <bruno@clisp.org>
24641
24642         tcgetsid: Add missing declaration on OSF/1 5.1.
24643         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24644         HAVE_TCGETSID.
24645         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24646         Don't set HAVE_TCGETSID.
24647         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24648         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24649         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24650         HAVE_TCGETSID.
24651         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24652
24653 2010-12-19  Bruno Haible  <bruno@clisp.org>
24654
24655         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24656         * lib/stdio.in.h: During the include_next statement, let recursive
24657         includes of this file include only the system header file.
24658
24659 2010-12-19  Bruno Haible  <bruno@clisp.org>
24660
24661         iconv_open: Fix regression from 2010-12-04.
24662         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24663         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24664
24665 2010-12-19  Bruno Haible  <bruno@clisp.org>
24666
24667         stdbool test: Avoid a gcc warning.
24668         * tests/test-stdbool.c (main): Fail if e1 is false.
24669         Reported by Jim Meyering.
24670
24671 2010-12-19  Jim Meyering  <meyering@redhat.com>
24672
24673         setenv: restore to working order
24674         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24675         mistakenly removed.
24676         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24677         HAVE_SETENV.
24678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24679         HAVE_SETENV.
24680
24681 2010-12-19  Bruno Haible  <bruno@clisp.org>
24682
24683         Document some different function declarations on OSF/1 5.1.
24684         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24685         * doc/posix-functions/inet_ntop.texi: Likewise.
24686         * doc/posix-functions/gethostname.texi: Likewise.
24687         * lib/unistd.in.h (gethostname): Update comment.
24688
24689 2010-12-19  Bruno Haible  <bruno@clisp.org>
24690
24691         doc: Mention vasprintf-posix module.
24692         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24693         the 'vasprintf-posix' module.
24694         * doc/glibc-functions/vasprintf.texi: Likewise.
24695
24696 2010-12-19  Bruno Haible  <bruno@clisp.org>
24697
24698         unsetenv: Add missing declaration on OSF/1 5.1.
24699         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24700         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24701         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24703         not HAVE_UNSETENV.
24704         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24705         HAVE_UNSETENV.
24706         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24707
24708 2010-12-19  Bruno Haible  <bruno@clisp.org>
24709
24710         setenv: Add missing declaration on OSF/1 5.1.
24711         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24712         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24713         declared. Don't set HAVE_SETENV.
24714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24715         not HAVE_SETENV.
24716         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24717         HAVE_SETENV.
24718         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24719
24720 2010-12-19  Bruno Haible  <bruno@clisp.org>
24721
24722         nl_langinfo tests: Avoid gcc warning.
24723         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24724
24725 2010-12-19  Bruno Haible  <bruno@clisp.org>
24726
24727         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24728         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24729         _GL_CXXALIAS_SYS.
24730
24731 2010-12-19  Bruno Haible  <bruno@clisp.org>
24732
24733         stdbool: Relax test.
24734         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24735         address to 'bool' work in static initializer, for compilers other than
24736         GCC.
24737
24738 2010-12-19  Bruno Haible  <bruno@clisp.org>
24739
24740         ftello: Add missing declaration on OSF/1 5.1.
24741         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24742         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24744         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24745         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24746
24747 2010-12-19  Bruno Haible  <bruno@clisp.org>
24748
24749         fseeko: Add missing declaration on OSF/1 5.1.
24750         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24751         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24753         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24754         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24755
24756 2010-12-19  Bruno Haible  <bruno@clisp.org>
24757
24758         fchdir: Add missing declaration on OSF/1 5.1.
24759         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24760         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24762         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24763         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24764
24765 2010-12-19  Bruno Haible  <bruno@clisp.org>
24766
24767         relocatable-prog-wrapper: Separate from relocatable-prog.
24768         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24769         uninstall-relocwrapper rule here.
24770         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24771         Reported by Ian Beckwith <ianb@erislabs.net>.
24772
24773 2010-12-19  Bruno Haible  <bruno@clisp.org>
24774
24775         unistr/u8-mbsnlen: Add missing dependency.
24776         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24777         Reported by Ian Beckwith <ianb@erislabs.net>.
24778
24779 2010-12-19  Bruno Haible  <bruno@clisp.org>
24780
24781         iconv: Make it possible again to use this module without 'iconv-h'.
24782         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24783         if it is not defined.
24784         Reported by Ian Beckwith <ianb@erislabs.net>.
24785
24786 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24787
24788         acl: port to Solaris 8 when copying from tmpfs to ufs
24789         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24790         error number.  Problem observed on Solaris 8 with latest
24791         coreutils, with "mv A B", where A is on a tmpfs file system and B
24792         is on a ufs file system.  This caused coreutils' mv/part-symlink
24793         test to fail.
24794
24795         tests: set fail=0 at start
24796         * tests/init.sh (setup_): Move fail=0 initialization here ...
24797         (mktempd_): ... from here, so that tests can rely on fail being
24798         set to 0 initially.  This fixes a problem in coreutils; see:
24799         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24800
24801 2010-12-18  Bruno Haible  <bruno@clisp.org>
24802
24803         memmem-simple: Stylistic changes.
24804         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24805         Fix preprocessor directive indentation.
24806
24807 2010-12-15  Pádraig Brady <P@draigBrady.com>
24808
24809         memmem, memmem-simple: reorganize and expand empty needle check
24810         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24811         functional checks to memmem-simple so that one has a fully functional
24812         memmem by using just this module.
24813         Restrict the performance only check to the memmem module.
24814         Also expand the empty needle check to ensure the correct
24815         pointer is returned, not just a non NULL pointer.
24816         * doc/glibc-functions/memmem.texi: Rearrange the portability
24817         documentation to correlate with the rearranged checks.
24818         Clarify exactly how the memmem and memmem-simple modules
24819         relate to each other.
24820
24821 2010-12-15  Pádraig Brady <P@draigBrady.com>
24822             Bruno Haible  <bruno@clisp.org>
24823
24824         Improve cross-compilation guesses for uClibc.
24825         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24826         that uClibc does not have the glibc bug.
24827         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24828         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24829
24830 2010-12-14  Eric Blake  <eblake@redhat.com>
24831
24832         configmake: provide fallbacks for oldest supported autotools
24833         * m4/configmake.m4: New file.
24834         * modules/configmake (Files): Ship it.
24835         (configure.ac): Use it to guarantee fallbacks.
24836
24837 2010-12-13  Pádraig Brady <P@draigBrady.com>
24838
24839         read-file: Improve handling of large files
24840         * lib/read-file.c (fread_file): Minimize realloc()s
24841         for regular files, and better manage sizes around SIZE_MAX.
24842
24843 2010-12-13  Eric Blake  <eblake@redhat.com>
24844
24845         cloexec, fcntl: relax license
24846         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24847         consent from all contributors.
24848         * modules/fcntl (License): Likewise.
24849
24850 2010-12-10  Bruno Haible  <bruno@clisp.org>
24851
24852         Tests for module 'pipe-posix'.
24853         * modules/pipe-posix-tests: New file.
24854         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24855
24856 2010-12-10  Bruno Haible  <bruno@clisp.org>
24857
24858         pipe-posix: Make it work in C++ mode.
24859         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24860         (pipe): Use common idiom, not a macro definition.
24861         * lib/pipe.c: New file.
24862         * m4/pipe.m4: New file.
24863         * modules/pipe-posix (Description): Enhance.
24864         (Files): Add lib/pipe.c, m4/pipe.m4.
24865         (configure.ac): Invoke gl_FUNC_PIPE.
24866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24867         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24868         * tests/test-unistd-c++.cc: Check the signature of pipe.
24869
24870 2010-12-10  Bruno Haible  <bruno@clisp.org>
24871
24872         Rename module 'pipe' to 'spawn-pipe'.
24873         * modules/spawn-pipe: New file, renamed from modules/pipe.
24874         (Files, configure.ac, Makefile.am): Update.
24875         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24876         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24877         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24878         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24879         "spawn-pipe.h" instead of "pipe.h".
24880         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24881         to gl_SPAWN_PIPE.
24882         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24883         (Files, Makefile.am): Update.
24884         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24885         Update.
24886         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24887         Include "spawn-pipe.h" instead of "pipe.h".
24888         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24889         * lib/javacomp.c: Likewise.
24890         * lib/javaversion.c: Likewise.
24891         * lib/pipe-filter-gi.c: Likewise.
24892         * lib/pipe-filter-ii.c: Likewise.
24893         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24894         * modules/javacomp (Depends-on): Likewise.
24895         * modules/javaversion (Depends-on): Likewise.
24896         * modules/pipe-filter-gi (Depends-on): Likewise.
24897         * modules/pipe-filter-ii (Depends-on): Likewise.
24898         * MODULES.html.sh (Executing programs): Update.
24899         * NEWS: Mention the change.
24900
24901 2010-12-10  Eric Blake  <eblake@redhat.com>
24902
24903         pipe-posix: new module
24904         * modules/pipe-posix: New file.
24905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24906         (gl_UNISTD_H): Check for declaration.
24907         * modules/unistd (Makefile.am): Substitute it.
24908         * lib/unistd.in.h (pipe): Provide it for mingw.
24909         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24910         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24911
24912 2010-12-07  Bruno Haible  <bruno@clisp.org>
24913
24914         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24915         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24916         u8_strcmp_gnu.
24917         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24918
24919 2010-12-06  Bruno Haible  <bruno@clisp.org>
24920
24921         Update internal documentation.
24922         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24923
24924 2010-12-04  Bruno Haible  <bruno@clisp.org>
24925
24926         Put more information about failed tests into the test return codes.
24927         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24928         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24929         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24930         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24931         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24932         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24933         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24934         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24935         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24936         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24937         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24938         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24939         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24940         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24941         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24942         returns a bit mask.
24943         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24944         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24945         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24946         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24947         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24948         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24949         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24950         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24951         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24952         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24953         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24954         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24955         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24956         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24957         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24958         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24959         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24960         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24961         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24962         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24963         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24964         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24965         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24966         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24967         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24968         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24969         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24970         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24971         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24972         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24973         gl_PRINTF_PRECISION): Likewise.
24974         * m4/regex.m4 (gl_REGEX): Likewise.
24975         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24976         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24977         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24978         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24979         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24980         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24981         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24982         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24983         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24984         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24985         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24986         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24987         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24988         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24989         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24990         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24991         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24992         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24994         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24995         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24996         enumerated value.
24997         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24998
24999 2010-12-04  Bruno Haible  <bruno@clisp.org>
25000
25001         Update for Solaris 11 2010-11.
25002         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
25003         Express, released in November 2010.
25004
25005 2010-12-04  Bruno Haible  <bruno@clisp.org>
25006
25007         nproc: Relax license.
25008         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25009         and Paul Eggert.
25010         Requested by Ludovic Courtès <ludo@gnu.org>.
25011
25012 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25013
25014         utimecmp: fine-grained src to nearby coarse-grained dest
25015
25016         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25017         and the source is on a file system with higher-resolution time
25018         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25019         not work, and the time stamps are close together, the algorithm to
25020         determine the exact resolution from the read-back mtime was buggy:
25021         it had a "!=" where it should have had an "==".  This bug has been
25022         in the code ever since it was introduced to gnulib.
25023         Problem reported by Dan Jacobson in
25024         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25025
25026 2010-11-30  Bruno Haible  <bruno@clisp.org>
25027
25028         strerror_r-posix: Fix autoconf test.
25029         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25030
25031 2010-11-28  Bruno Haible  <bruno@clisp.org>
25032             Paul Eggert  <eggert@cs.ucla.edu>
25033
25034         Tests for module 'getdomainname'.
25035         * modules/getdomainname-tests: New file.
25036         * tests/test-getdomainname.c: New file, based on
25037         tests/test-gethostname.c.
25038
25039 2010-11-28  Bruno Haible  <bruno@clisp.org>
25040             Paul Eggert  <eggert@cs.ucla.edu>
25041
25042         getdomainname: Use the system function when possible.
25043         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25044         (getdomainname): Replace if needed. Provide the declaration if it is
25045         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25046         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25047         (getdomainname): When the system has getdomainname, call the system
25048         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25049         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25050         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25051         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25052         the function if its second argument is of type 'int' or if it is found
25053         in libnsl.
25054         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25055         <sys/systeminfo.h> and sysinfo().
25056         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25058         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25059         HAVE_GETDOMAINNAME.
25060         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25061         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25062         * doc/glibc-functions/getdomainname.texi: Document the problems with
25063         the getdomainname declaration.
25064
25065 2010-11-28  Bruno Haible  <bruno@clisp.org>
25066
25067         sys_socket: Ensure ss_family field on AIX.
25068         * lib/sys_socket.in.h (ss_family): New macro definition.
25069         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25070         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25071         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25072         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25073         * modules/sys_socket (Makefile.am): Substitute
25074         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25075         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25076
25077 2010-11-27  Bruno Haible  <bruno@clisp.org>
25078
25079         readline: Improve configure output.
25080         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25081         "checking for readline..." result understandable.
25082
25083 2010-11-27  Bruno Haible  <bruno@clisp.org>
25084
25085         *printf-posix: Detect a bug on Solaris 10/x86.
25086         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25087         for floating-point output.
25088         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25089         directive.
25090         * tests/test-snprintf-posix.h (test_function): Likewise.
25091         * tests/test-sprintf-posix.h (test_function): Likewise.
25092         * tests/test-vasprintf-posix.c (test_function): Likewise.
25093         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25094         * doc/posix-functions/printf.texi: Likewise.
25095         * doc/posix-functions/snprintf.texi: Likewise.
25096         * doc/posix-functions/sprintf.texi: Likewise.
25097         * doc/posix-functions/vfprintf.texi: Likewise.
25098         * doc/posix-functions/vprintf.texi: Likewise.
25099         * doc/posix-functions/vsnprintf.texi: Likewise.
25100         * doc/posix-functions/vsprintf.texi: Likewise.
25101         * doc/glibc-functions/obstack_printf.texi: Likewise.
25102         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25103
25104 2010-11-27  Bruno Haible  <bruno@clisp.org>
25105
25106         Fix link error when module libunistring-optional is in use.
25107         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25108         * modules/striconveha-tests (Makefile.am): Likewise.
25109
25110 2010-11-27  Bruno Haible  <bruno@clisp.org>
25111
25112         regex: Mention link dependencies.
25113         * modules/regex (Link): New section.
25114         * modules/rpmatch (Link): Likewise.
25115         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25116
25117 2010-11-27  Bruno Haible  <bruno@clisp.org>
25118
25119         ftoastr: Fix compilation error on Solaris.
25120         * lib/ftoastr.c: Include <config.h>.
25121
25122 2010-11-27  Bruno Haible  <bruno@clisp.org>
25123
25124         getloadavg: Update documentation.
25125         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25126
25127 2010-11-27  Bruno Haible  <bruno@clisp.org>
25128
25129         sys_socket: Fix test whether the functions are declared.
25130         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25131         not <sys/select.h>.
25132
25133 2010-11-27  Bruno Haible  <bruno@clisp.org>
25134
25135         getpass: Make sure to get system declaration on some platforms.
25136         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25137         gl_USE_SYSTEM_EXTENSIONS.
25138         * modules/getpass (Depends-on): Add extensions.
25139
25140 2010-11-26  Bruno Haible  <bruno@clisp.org>
25141
25142         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25143         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25144         'iconv' module is present.
25145         (ICONV_CONST): New macro.
25146         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25147         ICONV_CONST.
25148         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25149         set ICONV_CONST.
25150         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25151         here.
25152         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25153         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25154         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25155         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25156         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25157         present.
25158
25159 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25160
25161         ftoastr: comment fix
25162         * lib/ftoastr.c: "little" -> "little or no" in comment
25163
25164 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25165
25166         stdint: port to GCC 4.3 + OSX + Octave
25167         On this platform, stdint.h is buggy and defines int64_t to long
25168         long int.  The replacement defined it to long int, causing
25169         problems with C++ style name mangling.  Instead, trust the system
25170         definition if INT64_MAX is defined, and likewise for the unsigned
25171         variant.   Problem reported by Jarno Rajahalme in
25172         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25173         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25174         and don't mess with int64_t and INT64_MAX in this case.
25175         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25176
25177 2010-11-24  Bruno Haible  <bruno@clisp.org>
25178
25179         doc: Corrections regarding MacOS X 10.4 and 10.5.
25180         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25181         MacOS X.
25182         Reported by Simon Josefsson.
25183
25184 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25185
25186         Uninstall ".bin" files installed by relocwrapper.
25187         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25188         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25189         unless it is already there.
25190
25191 2010-11-21  Bruno Haible  <bruno@clisp.org>
25192
25193         Update for NetBSD 5.0.
25194         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25195         NetBSD; the test fails on NetBSD 5.0.
25196         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25197         about NetBSD.
25198
25199 2010-11-21  Bruno Haible  <bruno@clisp.org>
25200
25201         Update for HP-UX 11.23 and HP-UX 11.31.
25202         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25203         HP-UX.
25204
25205 2010-11-21  Bruno Haible  <bruno@clisp.org>
25206
25207         Update for MacOS X 10.5.
25208         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25209         MacOS X; the test fails on MacOS X 10.5.8.
25210         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25211         about MacOS X.
25212
25213 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25214
25215         bootstrap: add bootstrap_sync option.
25216         See discussion at
25217         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25218         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25219         * build-aux/bootstrap: Accept --bootstrap-sync to update
25220         bootstrap if it is not identical to the local gnulib's
25221         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25222         enable this by default.  Accept --no-bootstrap-sync to disable
25223         it.
25224
25225 2010-11-20  Bruno Haible  <bruno@clisp.org>
25226
25227         Ensure that <features.h> is included before __GLIBC__ is tested.
25228         * lib/printf-parse.h: Include <features.h>.
25229         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25230         Reported by Mike Frysinger <vapier@gentoo.org>.
25231
25232         Ensure that <features.h> is included before __GLIBC__ is tested.
25233         * lib/wchar.in.h: Include <features.h>.
25234         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25235         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25236         Reported by Mike Frysinger <vapier@gentoo.org>.
25237
25238         Ensure that <features.h> is included before __GLIBC__ is tested.
25239         * lib/arpa_inet.in.h: Include <features.h>.
25240         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25241         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25242         Reported by Mike Frysinger <vapier@gentoo.org>.
25243
25244         Ensure that <features.h> is included before __GLIBC__ is tested.
25245         * build-aux/link-warning.h: Include <features.h>.
25246         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25247         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25248         Reported by Mike Frysinger <vapier@gentoo.org>.
25249
25250         Ensure that <features.h> is included before __GLIBC__ is tested.
25251         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25252         Reported by Mike Frysinger <vapier@gentoo.org>.
25253
25254 2010-11-20  Bruno Haible  <bruno@clisp.org>
25255
25256         memmem: Fix autoconf test.
25257         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25258
25259 2010-11-20  Bruno Haible  <bruno@clisp.org>
25260
25261         Port to uClibc.
25262         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25263         * lib/fcntl.in.h: Likewise.
25264         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25265         * lib/mbrtowc.c (mbrtowc): Likewise.
25266         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25267         * lib/strerror_r.c: Likewise.
25268         * lib/unistr/u8-strnlen.c: Likewise.
25269         * lib/vasnprintf.c (decimal_point_char): Likewise.
25270         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25271         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25272         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25273         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25274         * tests/test-sigaction.c (handler, main): Likewise.
25275         * lib/freading.h: Treat uClibc like a non-glibc platform.
25276         * lib/freading.c: Likewise.
25277         * lib/gettext.h: Likewise.
25278         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25279         Likewise.
25280         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25281         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25282         * lib/propername.c (proper_name_utf8): Likewise.
25283         * lib/spawn.in.h: Likewise.
25284         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25285         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25286         mem_cd_iconveh_internal): Likewise.
25287         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25288         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25289         strstr, strcasestr): Likewise.
25290         * lib/unicodeio.c (unicode_to_mb): Likewise.
25291         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25292         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25293         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25294         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25295         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25296         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25297         * lib/unistr/u8-stpncpy.c: Likewise.
25298         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25299         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25300         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25301         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25302         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25303         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25304         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25305         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25307         Likewise.
25308         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25309         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25310         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25311         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25312         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25313         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25314         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25315         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25316         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25317         * tests/test-striconveha.c (main): Likewise.
25318         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25319         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25320         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25321         * doc/posix-functions/getline.texi: Likewise.
25322         Reported by Mike Frysinger <vapier@gentoo.org>.
25323
25324 2010-11-20  Bruno Haible  <bruno@clisp.org>
25325
25326         nproc: Fix condition.
25327         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25328         HAVE_PTHREAD_AFFINITY_NP.
25329
25330 2010-11-20  Bruno Haible  <bruno@clisp.org>
25331
25332         Fix a comment.
25333         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25334
25335 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25336
25337         ftoastr: don't assume snprintf
25338         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25339         Implement a subset of snprintf here, by using sprintf safely.
25340         * modules/ftoastr (Depends-on): Remove snprintf.
25341
25342 2010-11-19  Jim Meyering  <meyering@redhat.com>
25343
25344         test-rename.h: fix compilation failure
25345         * tests/test-rename.h (test_rename): Add omitted "}".
25346
25347 2010-11-17  Jim Meyering  <meyering@redhat.com>
25348
25349         maint.mk: add a URL discussing the no-@acronym policy
25350         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25351
25352 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25353
25354         ftoastr: depend on snprintf, improve comments
25355         * lib/ftoastr.c: Also mention Loitsch's draft.
25356         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25357         needed in the current implementation, but it might simplify
25358         speeding up the code later.
25359         * modules/ftoastr: Depend on snprintf; this improves portability.
25360         Suggested by Bruno Haible in the same email.
25361
25362         ftoastr: port to hosts lacking strtof and strtold
25363         Problem reported by Bruno Haible in
25364         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25365         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25366         environment and strtold (and presumably strtof) are not available.
25367         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25368         (configure.ac): Require gl_C99_STRTOLD.
25369
25370 2010-11-18  Bruno Haible  <bruno@clisp.org>
25371
25372         c-strtold: Avoid link error on AIX 7.
25373         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25374         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25375         (gl_C_STRTOLD): Test whether strtold_l exists.
25376         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25377
25378 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25379
25380         intprops: new macro INT_BITS_STRLEN_BOUND
25381         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25382         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25383         not exposed.  Also, it uses a slightly tighter bound than before;
25384         though this makes no practical difference, we might as well be as
25385         tight as we easily can.
25386
25387         ftoastr: new module, for lossless conversion of floats to short strings
25388         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25389         * modules/ftoastr: New files.
25390
25391 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25392
25393         bootstrap: port to Solaris sed
25394         * build-aux/bootstrap (get_version): Port to Solaris sed.
25395         See Ralf Wildenhues's note in
25396         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25397
25398 2010-11-14  Jim Meyering  <meyering@redhat.com>
25399
25400         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25401         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25402         and move definition closer to sole use.
25403
25404 2010-11-13  Jim Meyering  <meyering@redhat.com>
25405
25406         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25407         Now we require at least autoconf-2.59, which means the work-around
25408         is no longer needed.
25409         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25410         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25411         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25412         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25413         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25414
25415 2010-11-13  Bruno Haible  <bruno@clisp.org>
25416
25417         rename, renameat: Avoid test failures at NFS mounted locations.
25418         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25419         functions.
25420         (test_rename): Use assert_nonexistent.
25421         * tests/test-rename.c: Include <dirent.h>.
25422         * tests/test-renameat.c: Likewise.
25423         Reported by Gary V. Vaughan <gary@gnu.org>.
25424
25425         rename, renameat: Document Linux bug with NFS
25426         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25427         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25428         * doc/posix-functions/renameat.texi: Likewise.
25429         Suggested by Eric Blake.
25430
25431 2010-11-13  Bruno Haible  <bruno@clisp.org>
25432
25433         rename test: Add comments.
25434         * tests/test-rename.h (test_rename): Add structure and comments.
25435
25436 2010-11-13  Eric Blake  <eblake@redhat.com>
25437
25438         maintainer-makefile: cover a few more files
25439         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25440         scripts generated within C files, for libvirt.
25441
25442 2010-11-13  Bruno Haible  <bruno@clisp.org>
25443
25444         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25445         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25446         character, return the number of bytes that belong together, not always
25447         1.
25448         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25449         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25450         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25451         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25452         number of bytes of an invalid character.
25453         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25454         (main): Invoke it.
25455         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25456         results.
25457         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25458         malformed byte sequences.
25459         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25460         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25461         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25462         Reported by Ben Pfaff and Paolo Bonzini.
25463
25464 2010-11-13  Bruno Haible  <bruno@clisp.org>
25465
25466         openat: Work around glibc bug with fchownat() and empty file names.
25467         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25468         (gl_FUNC_FCHOWNAT): Invoke it.
25469         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25470         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25471         Reported by Gary V. Vaughan <gary@gnu.org>.
25472
25473 2010-11-13  Bruno Haible  <bruno@clisp.org>
25474
25475         openat: Ensure autoconf macro ordering.
25476         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25477         gl_USE_SYSTEM_EXTENSIONS.
25478         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25479
25480 2010-11-13  Bruno Haible  <bruno@clisp.org>
25481
25482         Update comments.
25483         * lib/unistr/u8-check.c: Update file name in comments.
25484         * lib/unistr/u8-mblen.c: Likewise.
25485         * lib/unistr/u8-prev.c: Likewise.
25486         * lib/unistr/u8-strmblen.c: Likewise.
25487         * lib/unistr/u8-strmbtouc.c: Likewise.
25488
25489 2010-11-13  Jim Meyering  <meyering@redhat.com>
25490
25491         tests: avoid test failure on Solaris 10 due to lack of PATH export
25492         * tests/test-update-copyright.sh: Don't forget to export PATH.
25493
25494         init.sh: ensure that IFS is defined, just in case...
25495         * tests/init.sh (setup_): Ensure that IFS is defined,
25496         so that saving and restoring it works as expected.  This
25497         appears to be useful at least for an old version of dash
25498         from a long time ago (RH 6).  See here for details:
25499         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25500
25501         maint.mk: tighten "test a == b" check
25502         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25503         test to files that contain something like #!/bin/sh.
25504         Without this, coreutils would get two false positives in
25505         the comments of C source files.
25506
25507 2010-11-12  Eric Blake  <eblake@redhat.com>
25508
25509         bootstrap: fix typo in previous attempt
25510         * build-aux/bootstrap (buildreq): Correct the grouping.
25511         Reported by Paul Eggert.
25512
25513         maintainer-makefile: prohibit test x == x
25514         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25515         Based on a report by Matthias Bolte.
25516
25517         bootstrap: allow FreeBSD gzip
25518         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25519         which has no '.' and goes to stderr.
25520         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25521         Reported by Matthias Bolte.
25522
25523         maintainer-makefile: check for i18n setup
25524         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25525         will likely work.
25526
25527 2010-11-12  Bruno Haible  <bruno@clisp.org>
25528
25529         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25530         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25531         * lib/nanosleep.c (nanosleep): Likewise.
25532
25533 2010-11-11  Bruno Haible  <bruno@clisp.org>
25534
25535         fcntl-h: Fix for use of C++ on glibc systems.
25536         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25537         also on glibc systems in C++ mode.
25538         Reported by Gary V. Vaughan <gary@gnu.org>.
25539
25540 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25541
25542         mknod: avoid false failure with dash
25543         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25544
25545 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25546
25547         unlink: Fix "is it should" typo in diagnostic.
25548         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25549         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25550
25551 2010-11-11  Bruno Haible  <bruno@clisp.org>
25552
25553         Tests for module 'strerror_r-posix'.
25554         * modules/strerror_r-posix-tests: New file.
25555         * tests/test-strerror_r.c: New file.
25556         * tests/test-string-c++.cc: Check the signature of strerror_r.
25557
25558         New module 'strerror_r-posix'.
25559         * lib/string.in.h (strerror_r): New declaration.
25560         * lib/strerror_r.c: New file.
25561         * m4/strerror_r.m4: New file.
25562         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25563         of strerror_r.
25564         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25565         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25566         * modules/strerror_r-posix: New file.
25567         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25568         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25569         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25570         portability problems.
25571
25572 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25573
25574         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25575         line is also considered for output. Quoted function name in shell
25576         command, so temporary files for functions like MyClass::operator()
25577         are removed correctly without errors.
25578
25579 2010-11-09  Bruno Haible  <bruno@clisp.org>
25580
25581         * doc/posix-functions/strerror.texi: List more failing platforms.
25582
25583         * doc/posix-functions/strerror.texi: Add a comment.
25584
25585 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25586
25587         fdopendir: fix bug on MacOS X when low on file descriptors
25588
25589         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25590         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25591         All callers changed.
25592         (fdopendir): Invoke save_cwd at the top level, not after using
25593         multiple dup() calls to use up file descriptors.  Then retry
25594         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25595         less than the maximum number of open file descriptors, because
25596         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25597         on Mac OS X 10.6.4 for tar 1.24
25598         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25599         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25600         and for tar 1.25
25601         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25602
25603 2010-11-07  Bruno Haible  <bruno@clisp.org>
25604
25605         vasnprintf: Support I flag on glibc systems.
25606         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25607         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25608         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25609         snprintf function.
25610         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25611         glibc systems.
25612         * tests/test-vasnprintf-posix3.c: New file.
25613         * modules/vasnprintf-posix-tests (Files): Add it.
25614         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25615
25616 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25617
25618         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25619         * MODULES.html.sh: For compiler warnings, use name
25620         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25621
25622 2010-11-05  Eric Blake  <eblake@redhat.com>
25623
25624         ceil, floor: avoid spurious failure with icc
25625         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25626         [denormals-as-zero] when optimizing without -mieee-fp option.
25627         * tests/test-floorf2.c (floorf_reference): Likewise.
25628         * tests/test-ceilf1.c (dummy): New function.
25629         (main): Use it to outsmart icc's optimization.
25630         * tests/test-floorf1.c (dummy, main): Likewise.
25631
25632         tests: require working signbit
25633         * modules/ceilf-tests (Depends-on): Add signbit.
25634         * modules/ceill-tests (Depends-on): Likewise.
25635         * modules/floorf-tests (Depends-on): Likewise.
25636         * modules/floorl-tests (Depends-on): Likewise.
25637         * modules/round-tests (Depends-on): Likewise.
25638         * modules/roundf-tests (Depends-on): Likewise.
25639         * modules/roundl-tests (Depends-on): Likewise.
25640         * modules/trunc-tests (Depends-on): Likewise.
25641         * modules/truncf-tests (Depends-on): Likewise.
25642         * modules/truncl-tests (Depends-on): Likewise.
25643
25644         strtod: work around icc bug
25645         * lib/strtod.c (minus_zero): Define to working value.
25646         (strtod): Use it to avoid icc bug.
25647
25648         copysign: enhance tests
25649         * modules/copysign-tests (Files): Add minus-zero.h.
25650         * tests/test-copysign.c (main): Also test zeros.
25651
25652 2010-11-04  Eric Blake  <eblake@redhat.com>
25653
25654         ceil, floor, round, trunc: enhance tests of -0
25655         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25656         * tests/test-ceill.c (main): Likewise.
25657         * tests/test-floorf1.c (main): Likewise.
25658         * tests/test-floorl.c (main): Likewise.
25659         * tests/test-round1.c (main): Likewise.
25660         * tests/test-roundf1.c (main): Likewise.
25661         * tests/test-roundl.c (main): Likewise.
25662         * tests/test-trunc1.c (main): Likewise.
25663         * tests/test-truncf1.c (main): Likewise.
25664         * tests/test-truncl.c (main): Likewise.
25665
25666 2010-11-04  Eric Blake  <eblake@redhat.com>
25667
25668         frexp, tests: work around ICC bug with -zero
25669         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25670         works with more compilers.
25671         * tests/minus-zero.h: New file.
25672         * modules/ceilf-tests (Files): Include it.
25673         * modules/ceill-tests (Files): Likewise.
25674         * modules/floorf-tests (Files): Likewise.
25675         * modules/floorl-tests (Files): Likewise.
25676         * modules/frexp-nolibm-tests (Files): Likewise.
25677         * modules/frexp-tests (Files): Likewise.
25678         * modules/frexpl-nolibm-tests (Files): Likewise.
25679         * modules/frexpl-tests (Files): Likewise.
25680         * modules/isnan-tests (Files): Likewise.
25681         * modules/isnand-nolibm-tests (Files): Likewise.
25682         * modules/isnand-tests (Files): Likewise.
25683         * modules/isnanf-nolibm-tests (Files): Likewise.
25684         * modules/isnanf-tests (Files): Likewise.
25685         * modules/isnanl-nolibm-tests (Files): Likewise.
25686         * modules/isnanl-tests (Files): Likewise.
25687         * modules/round-tests (Files): Likewise.
25688         * modules/roundf-tests (Files): Likewise.
25689         * modules/roundl-tests (Files): Likewise.
25690         * modules/ldexpl-tests (Files): Likewise.
25691         * modules/signbit-tests (Files): Likewise.
25692         * modules/snprintf-posix-tests (Files): Likewise.
25693         * modules/sprintf-posix-tests (Files): Likewise.
25694         * modules/strtod-tests (Files): Likewise.
25695         * modules/trunc-tests (Files): Likewise.
25696         * modules/truncf-tests (Files): Likewise.
25697         * modules/truncl-tests (Files): Likewise.
25698         * modules/vsnprintf-posix-tests (Files): Likewise.
25699         * modules/vsprintf-posix-tests (Files): Likewise.
25700         * modules/vasnprintf-posix-tests (Files): Likewise.
25701         * modules/vasprintf-posix-tests (Files): Likewise.
25702         * tests/test-ceilf1.c (main): Use it.
25703         * tests/test-ceill.c (main): Likewise.
25704         * tests/test-floorf1.c (main): Likewise.
25705         * tests/test-floorl.c (main): Likewise.
25706         * tests/test-frexp.c (main): Likewise.
25707         * tests/test-frexpl.c (main): Likewise.
25708         * tests/test-isnan.c (main): Likewise.
25709         * tests/test-isnand.h (main): Likewise.
25710         * tests/test-isnanf.h (main): Likewise.
25711         * tests/test-isnanl.h (main): Likewise.
25712         * tests/test-ldexpl.c (main): Likewise.
25713         * tests/test-round.c (main): Likewise.
25714         * tests/test-roundf.c (main): Likewise.
25715         * tests/test-roundl.c (main): Likewise.
25716         * tests/test-signbit.c (test_signbitf, test_signbitd)
25717         (test_signbitl): Likewise.
25718         * tests/test-snprintf-posix.h (test_function): Likewise.
25719         * tests/test-sprintf-posix.h (test_function): Likewise.
25720         * tests/test-strtod.c (main): Likewise.
25721         * tests/test-trunc1.c (main): Likewise.
25722         * tests/test-truncf1.c (main): Likewise.
25723         * tests/test-truncl.c (main): Likewise.
25724
25725         isnanl: work around icc bug
25726         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25727
25728 2010-11-03  Eric Blake  <eblake@redhat.com>
25729
25730         tests: fix compiler warnings
25731         * tests/test-getopt.h (test_getopt): Fix condition.
25732         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25733         * tests/test-pipe2.c (main): Likewise.
25734         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25735
25736         utimens: fix broken m4 test
25737         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25738
25739 2010-10-28  Bruno Haible  <bruno@clisp.org>
25740
25741         posix_spawn*, getdtablesize: Relax license.
25742         * modules/posix_spawn (License): Change to LGPLv2+.
25743         * modules/posix_spawnp (License): Likewise.
25744         * modules/posix_spawn-internal (License): Likewise.
25745         * modules/posix_spawnattr_init (License): Likewise.
25746         * modules/posix_spawnattr_getflags (License): Likewise.
25747         * modules/posix_spawnattr_setflags (License): Likewise.
25748         * modules/posix_spawnattr_getpgroup (License): Likewise.
25749         * modules/posix_spawnattr_setpgroup (License): Likewise.
25750         * modules/posix_spawnattr_getschedparam (License): Likewise.
25751         * modules/posix_spawnattr_setschedparam (License): Likewise.
25752         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25753         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25754         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25755         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25756         * modules/posix_spawnattr_getsigmask (License): Likewise.
25757         * modules/posix_spawnattr_setsigmask (License): Likewise.
25758         * modules/posix_spawnattr_destroy (License): Likewise.
25759         * modules/posix_spawn_file_actions_init (License): Likewise.
25760         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25761         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25762         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25763         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25764         * modules/getdtablesize (License): Likewise.
25765         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25766
25767 2010-10-26  Bruno Haible  <bruno@clisp.org>
25768
25769         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25770         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25771         Cygwin and mingw.
25772         Suggested by Eric Blake.
25773
25774 2010-10-26  Bruno Haible  <bruno@clisp.org>
25775
25776         stdio: Work around compilation error due to renameat() on Solaris 10.
25777         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25778         * lib/renameat.c: Don't include <unistd.h> here.
25779         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25780         Reported by Paul Eggert and Eric Blake.
25781
25782 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25783
25784         renameat: port to Solaris 10, which declares renameat in unistd.h
25785
25786         * lib/renameat.c: Include unistd.h before stdio.h, because
25787         Solaris 10 declares renameat in unistd.h.  Problem encountered
25788         when building GNU tar 1.24 on Solaris 10.
25789
25790 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25791
25792         fdopendir: fix C89 compilation
25793         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25794         compilers.
25795
25796 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25797
25798         inttostr: simplify by removing unnecessary redundancy
25799         * lib/anytostr.c: Don't include verify.h.
25800         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25801         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25802         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25803         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25804         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25805         Likewise.
25806         * modules/inttostr (Depends-on): Remove 'verify'.
25807
25808 2010-10-23  Bruno Haible  <bruno@clisp.org>
25809
25810         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25811         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25812         Reported by Eric Blake.
25813
25814 2010-10-23  Bruno Haible  <bruno@clisp.org>
25815
25816         Tests: Fix LOCALE_JA on MirBSD 10.
25817         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25818         to an UTF-8 locale.
25819         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25820         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25821         Reported by Eric Blake.
25822
25823 2010-10-21  Bruno Haible  <bruno@clisp.org>
25824
25825         nl_langinfo test: Avoid test failure on NetBSD 5.
25826         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25827         Reported by Eric Blake.
25828
25829 2010-10-21  Eric Blake  <eblake@redhat.com>
25830
25831         c-stack: work around libsigsegv 2.8 bug
25832         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25833         overflow on at least PowerPC64.
25834
25835 2010-10-17  Bruno Haible  <bruno@clisp.org>
25836
25837         userspec: Drop redundant file.
25838         * modules/userspec (Files): Remove lib/inttostr.h.
25839
25840 2010-10-17  Bruno Haible  <bruno@clisp.org>
25841
25842         nl_langinfo tests: Silence some warnings.
25843         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25844         Reported by Jim Meyering.
25845
25846 2010-10-17  Bruno Haible  <bruno@clisp.org>
25847
25848         Make use of GCC's attribute __alloc_size__.
25849         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25850         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25851         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25852         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25853         __alloc_size__.
25854         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25855         Suggested by Jim Meyering.
25856
25857 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25858
25859         bootstrap: anchor .gitignore entries.
25860         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25861         with...
25862         (insert_vc_ignore): ... this new function, which prepends `/' to
25863         all .gitignore entries before passing them to
25864         insert_sorted_if_absent.
25865
25866 2010-10-16  Bruno Haible  <bruno@clisp.org>
25867
25868         nextafter: Fix configure check.
25869         * modules/nextafter (configure.ac): Correct expected prototype.
25870
25871 2010-10-16  Bruno Haible  <bruno@clisp.org>
25872
25873         termios: Update documentation.
25874         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25875
25876 2010-10-16  Bruno Haible  <bruno@clisp.org>
25877
25878         tests: Make them compile with TinyCC.
25879         * tests/test-strstr.c (main): Remove parentheses around array
25880         initializer.
25881
25882 2010-10-15  Eric Blake  <eblake@redhat.com>
25883
25884         ignore-value: make header idempotent
25885         * lib/ignore-value.h: Add double-inclusion guards.
25886         Reported by Stefan Berger.
25887
25888 2010-10-15  Jim Meyering  <meyering@redhat.com>
25889
25890         GNUmakefile: handle "stable" target, not "major"
25891         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25892         lists in maint.mk and announce-gen.  Without this, "make stable"
25893         would fail to ensure that $(VERSION) is up to date.
25894
25895 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25896
25897         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25898         & co.
25899
25900 2010-10-14  Bruno Haible  <bruno@clisp.org>
25901
25902         vasnprintf: Don't set errno to 0.
25903         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25904         block that sets it to 0.
25905         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25906
25907 2010-10-14  Bruno Haible  <bruno@clisp.org>
25908
25909         socketlib: Fix.
25910         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25911         gl_PREREQ_SYS_H_WINSOCK2.
25912         Reported by Ian Beckwith <ianb@erislabs.net>.
25913
25914 2010-10-13  Jim Meyering  <meyering@redhat.com>
25915
25916         test-select-stdin.c: avoid warn_unused_result warnings
25917         * tests/test-select-stdin.c: Include "macros.h".
25918         ASSERT that read and fflush succeed.
25919
25920 2010-10-13  Jim Meyering  <meyering@redhat.com>
25921
25922         git-version-gen: do require git-VC'd files in cwd
25923         * build-aux/git-version-gen: Reject a git version string
25924         if there are no commits associated with the current directory.
25925         This avoids an unlikely false-positive (unrelated dir whose parent
25926         repository also contains a tag matching v*), as pointed out
25927         by Giuseppe Scrivano in
25928         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25929
25930 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25931
25932         argv-iter: omit nonconforming declaration
25933         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25934         enum arg_iter_err declaration, which doesn't conform to C99.
25935         Solaris 10 cc warns about this.
25936
25937 2010-10-13  Eric Blake  <eblake@redhat.com>
25938
25939         termios: fix compilation on mingw
25940         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25941         (gl_TERMIOS_H): Adjust it on mingw.
25942         * modules/termios (Makefile.am): Substitute new key.
25943         * lib/termios.in.h (includes): Make include_next conditional.
25944         * doc/posix-headers/termios.texi (termios.h): Update
25945         documentation.
25946         Reported by Daniel P. Berrange.
25947
25948 2010-10-13  Jim Meyering  <meyering@redhat.com>
25949
25950         git-version-gen: don't require that .git/ be in the current dir
25951         * build-aux/git-version-gen: Adjust this script so that it works
25952         when run from any working directory beneath the top-level .git/-
25953         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25954         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25955
25956         test-select: avoid warn_unused_result warnings
25957         * tests/test-select.c: Include "macros.h".
25958         ASSERT that each call to read, write, and pipe succeeds.
25959         While not technically required, also check each "close".
25960         * modules/select-tests (Files): Add tests/macros.h.
25961
25962         test-symlinkat: remove declaration of unused local
25963         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25964
25965         test-inttostr: avoid shadowing warnings
25966         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25967         and use malloc rather than the stack for the same reason as
25968         mentioned in the comment justifying the other allocation.
25969
25970 2010-10-11  Bruno Haible  <bruno@clisp.org>
25971
25972         stdlib: Allow multiple gnulib generated replacements to coexist.
25973         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25974         Reported by Sam Steingold <sds@gnu.org>.
25975
25976 2010-10-11  Jim Meyering  <meyering@redhat.com>
25977
25978         fix a documentation typo
25979         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25980
25981 2010-10-11  Eric Blake  <eblake@redhat.com>
25982
25983         futimens: work around Solaris 11 bug
25984         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25985         * tests/test-futimens.h (test_futimens): Enhance, rather than
25986         weaken test.
25987         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25988
25989 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25990
25991         Indentation.
25992         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25993         higher-level operators more to the left.
25994
25995 2010-10-11  Jim Meyering  <meyering@redhat.com>
25996
25997         test-futimens: avoid unwarranted test failure on Solaris 5.11
25998         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25999         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
26000         because it tries to dereference the NULL name argument.
26001
26002 2010-10-11  Bruno Haible  <bruno@clisp.org>
26003
26004         Indentation.
26005         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26006         indentation.
26007
26008 2010-10-11  Jim Meyering  <meyering@redhat.com>
26009
26010         spawn.in.h: make indentation consistent with parentheses
26011         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26012         Make indentation consistent with parentheses.
26013
26014 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26015
26016         Fix mismatched parens in previous commit
26017         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26018         parens.
26019
26020 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26021
26022         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26023
26024         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26025         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26026         * lib/malloca.c: Include "verify.h".
26027         (verify1): Remove, replacing with a verify call.
26028         * lib/relocwrapper.c (verify1): Likewise.
26029         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26030         Likewise.
26031         * modules/malloca (Depends-on): Add 'verify'.
26032         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26033         * modules/vasnprintf (Depends-on): Add 'verify'.
26034         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26035         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26036         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26037         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26038         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26039         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26040         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26041
26042         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26043
26044         Formerly the style was sometimes 2*X - 1, because the C standard
26045         was wrongly thought to disallow ?: in integral constant expressions.
26046         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26047         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26048         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26049         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26050         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26051         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26052         verify that time_t cannot be floating.
26053
26054 2010-10-08  Eric Blake  <eblake@redhat.com>
26055
26056         time: enforce recent POSIX ruling that time_t is integral
26057         * lib/time.in.h (__time_t_must_be_integral): Detect any
26058         problematic systems, allowing the rest of gnulib to assume POSIX.
26059
26060 2010-10-08  Jim Meyering  <meyering@redhat.com>
26061
26062         fdopendir: fix a bug on systems lacking openat and /proc support
26063         OpenBSD 4.7 is one such system.  The most noticeable effect was
26064         failure of any application making nontrivial use of fts: rm, du,
26065         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26066           ./rm: traversal failed: `a': Bad file descriptor
26067         Debugging that, you see that even though FD 6 was closed just
26068         prior to the opendir call in fd_clone_opendir, its resulting
26069         dir->dd_fd was 8, rather than the expected value of 6:
26070
26071         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26072         93                close (fd);
26073         (gdb) n
26074         94                dir = fd_clone_opendir (dupfd);
26075         (gdb) n
26076         95                saved_errno = errno;
26077         (gdb) p dir->dd_fd
26078         $11 = 8
26079
26080         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26081         The problem is that on OpenBSD, fd_clone_opendir has to resort
26082         to using the old-style save/restore CWD mechanism, due to its
26083         lack of openat/proc support, and *that* would steal the FD (6)
26084         that opendir was supposed to use.
26085
26086         The fix is to squirrel away the desired FD so that save_cwd uses a
26087         different one, and then free the dest FD right before calling opendir.
26088         That guarantees opendir will use the required file descriptor.
26089
26090         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26091
26092 2010-10-08  Bruno Haible  <bruno@clisp.org>
26093
26094         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26095         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26096
26097 2010-10-08  Bruno Haible  <bruno@clisp.org>
26098
26099         nanosleep: Make replacement POSIX compliant.
26100         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26101         is out of range.
26102         Reported by Jim Meyering.
26103
26104 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26105
26106         bootstrap: add hook for altering gnulib.mk, for Bison
26107         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26108         the Bison bootstrapping process can rewrite file names and variables
26109         in this file before later parts of 'bootstrap' use the file.
26110         Bison wants to include lib/gnulib.mk from the top-level makefile,
26111         so it needs the file names in this file to be relative to the top
26112         level, not relative to lib; plus it needs variable names to be
26113         rewritten.
26114         (slurp): Use the new function.
26115
26116         bootstrap: reformat for readability
26117         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26118
26119 2010-10-08  Eric Blake  <eblake@redhat.com>
26120
26121         docs: update cygwin progress
26122         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26123         1.7.7.
26124         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26125         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26126         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26127         * doc/posix-functions/carg.texi (carg): Likewise.
26128         * doc/posix-functions/cargf.texi (cargf): Likewise.
26129         * doc/posix-functions/casin.texi (casin): Likewise.
26130         * doc/posix-functions/casinf.texi (casinf): Likewise.
26131         * doc/posix-functions/casinh.texi (casinh): Likewise.
26132         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26133         * doc/posix-functions/catan.texi (catan): Likewise.
26134         * doc/posix-functions/catanf.texi (catanf): Likewise.
26135         * doc/posix-functions/catanh.texi (catanh): Likewise.
26136         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26137         * doc/posix-functions/ccos.texi (ccos): Likewise.
26138         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26139         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26140         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26141         * doc/posix-functions/cexp.texi (cexp): Likewise.
26142         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26143         * doc/posix-functions/cimag.texi (cimag): Likewise.
26144         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26145         * doc/posix-functions/clog.texi (clog): Likewise.
26146         * doc/posix-functions/clogf.texi (clogf): Likewise.
26147         * doc/posix-functions/conj.texi (conj): Likewise.
26148         * doc/posix-functions/conjf.texi (conjf): Likewise.
26149         * doc/posix-functions/cpow.texi (cpow): Likewise.
26150         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26151         * doc/posix-functions/cproj.texi (cproj): Likewise.
26152         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26153         * doc/posix-functions/creal.texi (creal): Likewise.
26154         * doc/posix-functions/crealf.texi (crealf): Likewise.
26155         * doc/posix-functions/csin.texi (csin): Likewise.
26156         * doc/posix-functions/csinf.texi (csinf): Likewise.
26157         * doc/posix-functions/csinh.texi (csinh): Likewise.
26158         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26159         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26160         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26161         * doc/posix-functions/ctan.texi (ctan): Likewise.
26162         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26163         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26164         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26165         * doc/posix-headers/complex.texi (complex.h): Likewise.
26166
26167 2010-10-07  Jim Meyering  <meyering@redhat.com>
26168
26169         parse-datetime: avoid compilation failure on OpenBSD 4.7
26170         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26171         This works around a compilation failure on OpenBSD 4.7:
26172         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26173
26174 2010-10-07  Eric Blake  <eblake@redhat.com>
26175
26176         docs: update cygwin progress
26177         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26178         1.7.6.
26179         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26180         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26181         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26182         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26183         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26184         Likewise.
26185         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26186         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26187         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26188         Likewise.
26189         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26190         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26191         Likewise.
26192         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26193         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26194         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26195         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26196         Likewise.
26197         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26198         Likewise.
26199         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26200
26201         docs: update parse-datetime history
26202         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26203         documentation of this function's history and alternatives.
26204
26205         cygwin: use more robust version check
26206         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26207         exclude an eventual cygwin 1.9.1.
26208         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26210         (gl_FUNC_STRCASESTR): Likewise.
26211         Reported by Bruno Haible.
26212
26213 2010-10-06  Bruno Haible  <bruno@clisp.org>
26214
26215         string, sys_select: Avoid #including large headers unless necessary.
26216         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26217         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26218         OSF/1, BeOS, Haiku.
26219         Reported by Jim Meyering.
26220
26221 2010-10-05  Eric Blake  <eblake@redhat.com>
26222
26223         memmem, strstr, strcasestr: fix bug with long periodic needle
26224         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26225         periodic needle having false positive.
26226         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26227         and cygwin 1.7.7.
26228         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26229         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26230         (gl_FUNC_STRCASESTR): Likewise.
26231         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26232         * tests/test-memmem.c (main): Expose the bug.
26233         * tests/test-strcasestr.c (main): Likewise.
26234         * tests/test-strstr.c (main): Likewise.
26235         * tests/test-c-strcasestr.c (main): Likewise.
26236         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26237         * doc/posix-functions/strstr.texi (strstr): Likewise.
26238         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26239         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26240
26241 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26242
26243         parse-datetime: do some more renaming
26244         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26245         parse_datetime, not get_date.  Mention the renaming.
26246         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26247         in comments.
26248         * m4/bison.m4: Likewise.
26249
26250 2010-10-05  Eric Blake  <eblake@redhat.com>
26251
26252         parse-datetime: better name than get_date
26253         * NEWS: Reword the deprecation notice.
26254         * modules/get_date: Rename to modules/parse-datetime.
26255         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26256         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26257         * lib/get_date.y: Rename to lib/parse-datetime.y.
26258         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26259         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26260         * doc/getdate.texi: Provide fallback wrapper.
26261         * lib/getdate.h: Move guts, and wrap...
26262         * lib/parse-datetime.h: ...new file.
26263         * lib/parse-datetime.y (get_date): Rename...
26264         (parse_datetime): ...to this.
26265         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26266         (gl_PARSE_DATETIME): ...to this.
26267         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26268         documentation.
26269         * modules/getdate (Files): Provide fallback docs and header.
26270         (Notice, Depends-on): Update references.
26271         * tests/test-parse-datetime.c: Likewise.
26272         * DEPENDENCIES: Likewise.
26273         * MODULES.html.sh (Date and time <time.h>): Likewise.
26274         * doc/parse-datetime.texi (Date input formats)
26275         (Authors of parse_datetime): Likewise.
26276         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26277         (Include): Likewise.
26278         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26279         * gnulib-tool: Likewise.
26280         * m4/bison.m4 (gl_BISON): Likewise.
26281         Suggested by Bruno Haible.
26282
26283 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26284
26285         more ports to Solaris tr, which needs [] around ranges
26286         * gnulib-tool: Solaris tr needs [] around ranges.
26287         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26288         * tests/test-pipe-filter-gi1.c (main): Likewise.
26289         * tests/test-pipe-filter-ii1.c (main): Likewise.
26290
26291 2010-10-05  Eric Blake  <eblake@redhat.com>
26292
26293         bootstrap: fix Solaris regression
26294         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26295         around ranges.
26296         Reported by Pádraig Brady.
26297
26298         bootstrap: work with pkg-config
26299         * build-aux/bootstrap (check_versions): Also transliterate - in
26300         prerequisite name.
26301         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26302         prerequisites that were already found, to avoid confusion.
26303         Reported by Justin Clift.
26304
26305         faccessat: remove unused wrappers
26306         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26307         presence of these wrappers dragged in -lgen on Solaris.
26308         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26309
26310 2010-10-05  Jim Meyering  <meyering@redhat.com>
26311
26312         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26313         * Makefile (sc_pragma_columns): New syntax-check rule.
26314
26315 2010-10-04  Bruno Haible  <bruno@clisp.org>
26316
26317         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26318         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26319         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26320         Reported by Bruce Korb and Eric Blake.
26321
26322 2010-10-04  Bruno Haible  <bruno@clisp.org>
26323
26324         threadlib: Make option --with-libpth-prefix work.
26325         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26326         use $LIBPTH, not just -lpth.
26327
26328 2010-10-04  Bruno Haible  <bruno@clisp.org>
26329
26330         Avoid line length limitation from HP NonStop system header files.
26331         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26332         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26333         * lib/ctype.in.h: Likewise.
26334         * lib/dirent.in.h: Likewise.
26335         * lib/errno.in.h: Likewise.
26336         * lib/fcntl.in.h: Likewise.
26337         * lib/float.in.h: Likewise.
26338         * lib/getopt.in.h: Likewise.
26339         * lib/iconv.in.h: Likewise.
26340         * lib/inttypes.in.h: Likewise.
26341         * lib/langinfo.in.h: Likewise.
26342         * lib/locale.in.h: Likewise.
26343         * lib/math.in.h: Likewise.
26344         * lib/netdb.in.h: Likewise.
26345         * lib/netinet_in.in.h: Likewise.
26346         * lib/poll.in.h: Likewise.
26347         * lib/pthread.in.h: Likewise.
26348         * lib/pty.in.h: Likewise.
26349         * lib/sched.in.h: Likewise.
26350         * lib/se-selinux.in.h: Likewise.
26351         * lib/search.in.h: Likewise.
26352         * lib/signal.in.h: Likewise.
26353         * lib/spawn.in.h: Likewise.
26354         * lib/stdarg.in.h: Likewise.
26355         * lib/stddef.in.h: Likewise.
26356         * lib/stdint.in.h: Likewise.
26357         * lib/stdio.in.h: Likewise.
26358         * lib/stdlib.in.h: Likewise.
26359         * lib/string.in.h: Likewise.
26360         * lib/strings.in.h: Likewise.
26361         * lib/sys_file.in.h: Likewise.
26362         * lib/sys_ioctl.in.h: Likewise.
26363         * lib/sys_select.in.h: Likewise.
26364         * lib/sys_socket.in.h: Likewise.
26365         * lib/sys_stat.in.h: Likewise.
26366         * lib/sys_time.in.h: Likewise.
26367         * lib/sys_times.in.h: Likewise.
26368         * lib/sys_utsname.in.h: Likewise.
26369         * lib/sys_wait.in.h: Likewise.
26370         * lib/sysexits.in.h: Likewise.
26371         * lib/termios.in.h: Likewise.
26372         * lib/time.in.h: Likewise.
26373         * lib/unistd.in.h: Likewise.
26374         * lib/wchar.in.h: Likewise.
26375         * lib/wctype.in.h: Likewise.
26376         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26377         * modules/ctype (Makefile.am): Likewise.
26378         * modules/dirent (Makefile.am): Likewise.
26379         * modules/errno (Makefile.am): Likewise.
26380         * modules/fcntl-h (Makefile.am): Likewise.
26381         * modules/float (Makefile.am): Likewise.
26382         * modules/getopt-posix (Makefile.am): Likewise.
26383         * modules/iconv-h (Makefile.am): Likewise.
26384         * modules/inttypes (Makefile.am): Likewise.
26385         * modules/langinfo (Makefile.am): Likewise.
26386         * modules/locale (Makefile.am): Likewise.
26387         * modules/math (Makefile.am): Likewise.
26388         * modules/netdb (Makefile.am): Likewise.
26389         * modules/netinet_in (Makefile.am): Likewise.
26390         * modules/poll-h (Makefile.am): Likewise.
26391         * modules/pthread (Makefile.am): Likewise.
26392         * modules/pty (Makefile.am): Likewise.
26393         * modules/sched (Makefile.am): Likewise.
26394         * modules/search (Makefile.am): Likewise.
26395         * modules/selinux-h (Makefile.am): Likewise.
26396         * modules/signal (Makefile.am): Likewise.
26397         * modules/spawn (Makefile.am): Likewise.
26398         * modules/stdarg (Makefile.am): Likewise.
26399         * modules/stddef (Makefile.am): Likewise.
26400         * modules/stdint (Makefile.am): Likewise.
26401         * modules/stdio (Makefile.am): Likewise.
26402         * modules/stdlib (Makefile.am): Likewise.
26403         * modules/string (Makefile.am): Likewise.
26404         * modules/strings (Makefile.am): Likewise.
26405         * modules/sys_file (Makefile.am): Likewise.
26406         * modules/sys_ioctl (Makefile.am): Likewise.
26407         * modules/sys_select (Makefile.am): Likewise.
26408         * modules/sys_socket (Makefile.am): Likewise.
26409         * modules/sys_stat (Makefile.am): Likewise.
26410         * modules/sys_time (Makefile.am): Likewise.
26411         * modules/sys_times (Makefile.am): Likewise.
26412         * modules/sys_utsname (Makefile.am): Likewise.
26413         * modules/sys_wait (Makefile.am): Likewise.
26414         * modules/sysexits (Makefile.am): Likewise.
26415         * modules/termios (Makefile.am): Likewise.
26416         * modules/time (Makefile.am): Likewise.
26417         * modules/unistd (Makefile.am): Likewise.
26418         * modules/wchar (Makefile.am): Likewise.
26419         * modules/wctype (Makefile.am): Likewise.
26420
26421 2010-10-04  Bruno Haible  <bruno@clisp.org>
26422
26423         read-file tests: Avoid a test failure on NonStop Kernel.
26424         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26425         a regular file.
26426         Reported by Joachim Schmitz <schmitz@hp.com>.
26427
26428 2010-10-03  Bruno Haible  <bruno@clisp.org>
26429
26430         gnulib-tool: Fixes for --create-testdir with --libtool.
26431         * gnulib-tool (func_get_automake_snippet): Don't augment
26432         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26433         an executable.
26434         (func_create_testdir): Handle module 'alloca' like func_import.
26435         Reported by Bruce Korb <bruce.korb@gmail.com>.
26436
26437 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26438
26439         Avoid some lines longer than 80 characters.
26440         * lib/stdint.in.h: Break long comment lines.
26441         * lib/math.in.h: Likewise.
26442         (_GL_NUM_UINT_WORDS): New macro, for readability.
26443         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26444         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26445         * lib/stdlib.in.h: Likewise.
26446         * lib/spawn.in.h: Likewise.
26447         * lib/sys_socket.in.h: Update an URL.
26448         * lib/sys_stat.in.h: Break long line.
26449
26450 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26451
26452         Improve pmccabe2html.
26453         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26454         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26455         when the sources change. Remove the line in the HTML about "Used
26456         ranges" (which implied that there might be other unused ranges),
26457         rename "Resume" to "Summary" (easier to understand for more users).
26458         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26459         styles, and some unnecessary blank lines.
26460
26461 2010-10-03  Bruno Haible  <bruno@clisp.org>
26462             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26463
26464         acl: Add support for ACLs on NonStop Kernel.
26465         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26466         Check whether the function aclsort() exists.
26467         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26468         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26469         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26470         (acl_nontrivial [HAVE_ACLSORT]: New function.
26471         (file_has_acl): Implement for NonStop Kernel.
26472         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26473         (qset_acl): Implement for NonStop Kernel.
26474         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26475         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26476         (main): Implement for NonStop Kernel.
26477         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26478         Kernel. Handle this flavor.
26479         * tests/test-set-mode-acl.sh: Likewise.
26480         * tests/test-copy-acl.sh: Likewise.
26481         * tests/test-copy-file.sh: Likewise.
26482
26483 2010-10-03  Bruno Haible  <bruno@clisp.org>
26484
26485         Info about ACLs on NonStop Kernel.
26486         * doc/acl-resources.txt: Add info about NonStop Kernel.
26487         References by Joachim Schmitz <schmitz@hp.com>.
26488
26489 2010-10-02  Bruno Haible  <bruno@clisp.org>
26490
26491         Define missing EDQUOT on NonStop Kernel.
26492         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26493         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26494         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26495         missing.
26496         * doc/posix-headers/errno.texi: Mention the NSK bug.
26497         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26498         Reported by Joachim Schmitz <schmitz@hp.com>.
26499
26500 2010-10-02  Bruno Haible  <bruno@clisp.org>
26501
26502         Update doc for POSIX:2008.
26503         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26504         Update URL of POSIX specification.
26505
26506 2010-10-02  Bruno Haible  <bruno@clisp.org>
26507
26508         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26509         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26510         from gnulib, not from Automake.
26511
26512 2010-10-02  Bruno Haible  <bruno@clisp.org>
26513
26514         New module 'system-posix'.
26515         * modules/system-posix: New file.
26516         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26517         module is present.
26518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26519         GNULIB_SYSTEM_POSIX.
26520         * modules/stdlib (Depends-on): Remove sys_wait.
26521         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26522         * doc/posix-functions/system.texi: Mention the new module.
26523         * doc/posix-headers/stdlib.texi: Likewise.
26524         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26525         define test_sys_wait_macros to a no-op.
26526         Reported by Sam Steingold <sds@gnu.org>.
26527
26528 2010-09-30  Bruno Haible  <bruno@clisp.org>
26529
26530         More renaming from 'getdate' to 'get_date'.
26531         * doc/get_date.texi: Renamed from doc/getdate.texi.
26532         * modules/get_date (Files): Update.
26533         * MODULES.html.sh (Date and time <time.h>): Update.
26534         * DEPENDENCIES: Update.
26535         * gnulib-tool: Update comment.
26536         * m4/bison.m4 (gl_BISON): Likewise.
26537         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26538
26539 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26540
26541         bootstrap: support ACLOCAL_FLAGS during aclocal
26542         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26543         can add additional -I dir for third-party .m4 files.
26544
26545 2010-09-30  Eric Blake  <eblake@redhat.com>
26546
26547         bootstrap: use glibtoolize on MacOS
26548         * build-aux/bootstrap (check_versions): Convert libtool into
26549         libtoolize.
26550         (tool search): Move libtool check earlier, and look for
26551         glibtoolize for MacOS.
26552         (gnulib_tool_options): Auto-add --libtool when appropriate.
26553         Reported by Justin Clift.
26554
26555         poll: fix typo that broke test on MacOS
26556         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26557         Reported by Justin Clift.
26558
26559         getdate: rename to get_date
26560         Note: getdate.h is not renamed, to minimize client impact.
26561         * modules/getdate: Mark obsolete.  Move old contents...
26562         * modules/get_date: ...to new module name.
26563         * modules/getdate-tests: Move...
26564         * modules/get_date-tests: ...here.
26565         * m4/getdate.m4: Move...
26566         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26567         * lib/getdate.y: Move...
26568         * lib/get_date.y: ...here.
26569         * tests/test-getdate.c: Move...
26570         * tests/test-get_date.c: ...here.
26571         * doc/posix-functions/getdate.texi (getdate): Update name.
26572         * NEWS: Mention the change.
26573
26574 2010-09-29  Bruno Haible  <bruno@clisp.org>
26575
26576         Separate the module 'waitpid' from the module 'sys_wait'.
26577         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26578         present.
26579         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26580         gl_MODULE_INDICATOR_FOR_TESTS.
26581         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26582         * modules/sys_wait (Depends-on): Remove waitpid.
26583         (Makefile.am): Substitute GNULIB_WAITPID.
26584         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26585         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26586         signature only if the 'waitpid' module is present.
26587         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26588         * NEWS: Mention the change.
26589         * modules/grantpt (Depends-on): Add waitpid.
26590         * modules/wait-process (Depends-on): Likewise.
26591
26592 2010-09-29  Bruno Haible  <bruno@clisp.org>
26593
26594         More tests for module 'sys_wait'.
26595         * modules/sys_wait-c++-tests: New file.
26596         * tests/test-sys_wait-c++.cc: New file.
26597         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26598         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26599
26600 2010-09-29  Bruno Haible  <bruno@clisp.org>
26601
26602         New module 'waitpid'.
26603         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26604         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26605         Don't include <process.h>.
26606         (waitpid): Declare only, using modern idiom.
26607         * m4/waitpid.m4: New file.
26608         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26609         * modules/waitpid: New file.
26610         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26611         (Makefile.am): Update.
26612         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26613
26614 2010-09-28  Bruno Haible  <bruno@clisp.org>
26615
26616         poll: Assume ANSI C.
26617         * lib/poll.c (poll): Use an ANSI C declaration.
26618
26619 2010-09-28  Bruno Haible  <bruno@clisp.org>
26620
26621         poll-h: Create poll.h on all platforms.
26622         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26623         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26624         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26625         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26626         (gl_REPLACE_POLL_H): Don't set POLL_H.
26627         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26628         * modules/poll-h (Depends-on): Add include_next.
26629         (Makefile.am): Create poll.h unconditionally. Substitute also
26630         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26631
26632 2010-09-28  Bruno Haible  <bruno@clisp.org>
26633
26634         Tests for module 'poll-h'.
26635         * modules/poll-h-c++-tests: New file.
26636         * tests/test-poll-h-c++.cc: New file.
26637
26638         Tests for module 'poll-h'.
26639         * modules/poll-h-tests: New file.
26640         * tests/test-poll-h.c: New file.
26641
26642 2010-09-28  Bruno Haible  <bruno@clisp.org>
26643
26644         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26645         * modules/poll-h (Depends-on): Add 'extensions'.
26646
26647 2010-09-28  Bruno Haible  <bruno@clisp.org>
26648
26649         New module 'poll-h'.
26650         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26651         (poll): Use modern idiom.
26652         * modules/poll-h: New file.
26653         * modules/poll (Files): Remove lib/poll.in.h.
26654         (Depends-on): Add poll-h.
26655         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26656         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26657         * m4/poll_h.m4: New file.
26658         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26659         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26660         and invoke gl_REPLACE_POLL_H.
26661         * lib/poll.c: Use common idiom.
26662         * tests/test-poll.c: Likewise.
26663         * doc/posix-headers/poll.texi: Mention the poll-h module.
26664         Suggested by Eric Blake.
26665
26666 2010-09-26  Bruno Haible  <bruno@clisp.org>
26667
26668         sys_wait: Implement WSTOPSIG.
26669         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26670         Reported by Simon Josefsson.
26671
26672 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26673
26674         stdlib, sys_wait: Avoid compilation error on mingw.
26675         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26676
26677 2010-09-26  Bruno Haible  <bruno@clisp.org>
26678
26679         stdlib tests: Avoid code duplication.
26680         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26681         * modules/sys_wait-tests (Files): Likewise.
26682         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26683         * tests/test-stdlib.c: Include test-sys_wait.h.
26684         (main): Invoke test_sys_wait_macros.
26685         * tests/test-sys_wait.c: Include test-sys_wait.h.
26686         (main): Invoke test_sys_wait_macros.
26687
26688 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26689
26690         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26691         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26692         sure Windows sockets are working before calling getaddrinfo.
26693         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26694         * doc/gnulib.texi (Windows sockets): Fix typo.
26695
26696 2010-09-25  Bruno Haible  <bruno@clisp.org>
26697
26698         Tests for module 'regex-quote'.
26699         * modules/regex-quote-tests: New file.
26700         * tests/test-regex-quote.c: New file.
26701
26702         New module 'regex-quote'.
26703         * lib/regex-quote.h: New file.
26704         * lib/regex-quote.c: New file.
26705         * modules/regex-quote: New file.
26706         Suggested by Reuben Thomas <rrt@sc3d.org>.
26707
26708 2010-09-24  Bruno Haible  <bruno@clisp.org>
26709
26710         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26711         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26712
26713 2010-09-23  Bruno Haible  <bruno@clisp.org>
26714
26715         setenv: Relax license.
26716         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26717         Blake.
26718         Requested by Eric Blake.
26719
26720 2010-09-22  Bruno Haible  <bruno@clisp.org>
26721
26722         termios: Relax license.
26723         * modules/termios (License): Change to LGPLv2+.
26724         Requested by Eric Blake.
26725
26726 2010-09-22  Bruno Haible  <bruno@clisp.org>
26727
26728         threadlib: Allow the package to change the default to 'no'.
26729         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26730         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26731         Reported by Paul Eggert.
26732
26733 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26734             Bruno Haible  <bruno@clisp.org>
26735
26736         Fix endless loop in mbmemcasecoll.
26737         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26738         byte.
26739         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26740
26741 2010-09-22  Bruno Haible  <bruno@clisp.org>
26742
26743         Tests for module 'memcoll'.
26744         * modules/memcoll-tests: New file.
26745         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26746
26747         memcoll, xmemcoll: Clarify size vs. length.
26748         * modules/memcoll.c (memcoll0): Clarify specification.
26749         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26750         passed to collate_error.
26751
26752 2010-09-22  Bruno Haible  <bruno@clisp.org>
26753
26754         Tests for module 'memcasecmp'.
26755         * modules/memcasecmp-tests: New file.
26756         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26757
26758 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26759
26760         * lib/pthread.in.h: Add split double-inclusion guard, and include
26761         system <pthread.h> if there is one.  Use @@-style as in other
26762         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26763         pthread.h doesn't.
26764         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26765         (pthread_mutexattr_settype, pthread_mutex_trylock):
26766         New static inline functions, if there's no system <pthread.h>.
26767         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26768         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26769         Approximate with mutexes if the system lacks spinlocks, as in
26770         MacOS.
26771         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26772         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26773         @@-style.  Check for spinlocks separately.
26774         (gl_PTHREAD_DEFAULTS): New macro.
26775         * modules/pthread: Redo to use a more typical style for in.h files.
26776
26777 2010-09-21  Eric Blake  <eblake@redhat.com>
26778
26779         net_if: enhance tests
26780         * tests/test-net_if.c (main): Move signature checks earlier.
26781         Print failures to stderr.
26782         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26783         Document the bug that we do not yet fix.
26784
26785 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26786
26787         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26788         about gnulib, not GSS.
26789
26790 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26791
26792         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26793         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26794         for Emacs.
26795         * build-aux/pmccabe2html: Make Makefile.am example code more
26796         cut-and-paste friendly.
26797
26798 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26799
26800         * tests/test-net_if.c: New file.
26801         * modules/net_if-tests: New file.
26802
26803 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26804
26805         pthread: add pthread_spin_destroy
26806         * lib/pthread.in.h (pthread_spin_destroy): New function.
26807
26808 2010-09-19  Bruno Haible  <bruno@clisp.org>
26809
26810         gnulib-tool: Fix --help output.
26811         * gnulib-tool (func_usage): Fix help message.
26812         Reported by Reuben Thomas <rrt@sc3d.org>.
26813
26814 2010-09-18  Jim Meyering  <meyering@redhat.com>
26815
26816         maint.mk: avoid unexpanded \n in two diagnostics
26817         * top/maint.mk (sc_prohibit_always_true_header_tests):
26818         Don't use a literal \n in a halt=... assignment.  It would not be
26819         expanded, and the two \n bytes would appear in the diagnostic output
26820         rather than the desired newline.  Use halt=$$(printf ... instead.
26821         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26822
26823 2010-09-18  Bruno Haible  <bruno@clisp.org>
26824
26825         netinet_in: Doc tweak.
26826         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26827         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26828
26829 2010-09-18  Jim Meyering  <meyering@redhat.com>
26830
26831         init.sh: correct an outdated comment
26832         * tests/init.sh (create_exe_shims_):  s/function/alias/
26833
26834         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26835         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26836         a file named "*.exe" is removed between the glob expansion and the
26837         processing of that oddly named file.
26838
26839 2010-09-17  Eric Blake  <eblake@redhat.com>
26840
26841         mirbsd: add some more support
26842         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26843         in BSD family.
26844         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26845         devices as OpenBSD.
26846         * m4/host-os.m4 (mirbsd): Add MirBSD.
26847
26848         tests: fix unportable assumption on sys/wait.h
26849         * tests/test-sys_wait.c (main): Relax test.
26850         * tests/test-stdlib.c (main): Likewise.
26851
26852         init.sh: accommodate directory with no .exes
26853         * tests/init.sh: Accomodate directory containing only scripts.
26854
26855         tests: avoid compiler warning
26856         * tests/test-stdlib.c (main): Use the variable.
26857
26858         fdutimens, fdutimensat: update signature, again
26859         * lib/utimens.h (gl_futimens): Delete, and move signature...
26860         (fdutimens): ...here.
26861         (fdutimensat): Rearrange signature.
26862         (lutimensat): Rename variable for clarity.
26863         * lib/fdutimensat.c (fdutimensat): Update signature.
26864         * lib/utimens.c (fdutimens): Likewise.
26865         (gl_futimens): Delete.
26866         (utimens, lutimens): Update callers.
26867         * lib/futimens.c (futimens): Likewise.
26868         * tests/test-fdutimensat.c: Likewise.
26869         * tests/test-utimens.c: Likewise.
26870         * tests/test-futimens.h: Update comment.
26871         * NEWS: Mention this.
26872         Suggested by Paul Eggert.
26873
26874 2010-09-17  Bruno Haible  <bruno@clisp.org>
26875
26876         Take over the maintenance of some older macros from Autoconf.
26877         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26878         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26879         GNU Autoconf.
26880         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26881         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26882
26883 2010-09-17  Eric Blake  <eblake@redhat.com>
26884
26885         fdutimensat: drop atflag validation
26886         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26887         with valid fd, to close a race scenario where futimens is
26888         unsupported and FILE was replaced by a symlink.
26889         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26890         accordingly.
26891         Suggested by Paul Eggert.
26892
26893 2010-09-16  Bruno Haible  <bruno@clisp.org>
26894
26895         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26896         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26897
26898 2010-09-16  Bruno Haible  <bruno@clisp.org>
26899
26900         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26901         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26902         login_tty exists.
26903         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26904
26905 2010-09-16  Bruno Haible  <bruno@clisp.org>
26906
26907         login_tty: Make the replacement code work on BSD systems.
26908         * lib/login_tty.c: Include <sys/ioctl.h>.
26909         (login_tty): Use ioctl TIOCSCTTY when available.
26910         * modules/login_tty (Depends-on): Add sys_ioctl.
26911         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26912
26913 2010-09-16  Bruno Haible  <bruno@clisp.org>
26914
26915         login_tty: Stricter unit test.
26916         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26917         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26918         and tcgetsid() after login_tty.
26919         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26920
26921 2010-09-16  Bruno Haible  <bruno@clisp.org>
26922
26923         New module 'tcgetsid'.
26924         * lib/tcgetsid.c: New file.
26925         * m4/tcgetsid.m4: New file.
26926         * modules/tcgetsid: New file.
26927         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26928         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26929         GNULIB_TCGETSID, HAVE_TCGETSID.
26930         * lib/termios.in.h: Include <sys/types.h>.
26931         (tcgetsid): New declaration.
26932         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26933         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26934         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26935         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26936
26937 2010-09-16  Bruno Haible  <bruno@clisp.org>
26938
26939         Tests for module 'termios'.
26940         * modules/termios-c++-tests: New file.
26941         * modules/termios-tests: New file.
26942         * tests/test-termios-c++.cc: New file.
26943         * tests/test-termios.c: New file.
26944
26945         New module 'termios'.
26946         * modules/termios: New file.
26947         * lib/termios.in.h: New file.
26948         * m4/termios_h.m4: New file.
26949         * doc/posix-headers/termios.texi: Mention the new module.
26950
26951 2010-09-16  Eric Blake  <eblake@redhat.com>
26952
26953         fdutimensat: add an atflag parameter
26954         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26955         * lib/utimens.h (fdutimensat): Update prototype.
26956         * tests/test-fdutimensat.c: Adjust test to match.
26957         * NEWS: Document the change.
26958         Suggested by Paul Eggert.
26959
26960 2010-09-16  Bruno Haible  <bruno@clisp.org>
26961
26962         Fix typos in comments.
26963         * lib/striconveh.h: Fix typo in comment.
26964         * lib/login_tty.c (login_tty): Likewise.
26965
26966 2010-09-15  Bruno Haible  <bruno@clisp.org>
26967
26968         stdlib: clarify MirBSD WEXITSTATUS bug
26969         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26970         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26971
26972 2010-09-15  Eric Blake  <eblake@redhat.com>
26973
26974         stdlib: work around MirBSD WEXITSTATUS bug
26975         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26976         * modules/stdlib (Depends-on): Add sys_wait.
26977         * tests/test-sys_wait.c (main): Enhance test.
26978         * tests/test-stdlib.c (main): Likewise.
26979         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26980
26981         docs: mention MacOS issue with WEXITSTATUS(constant)
26982         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26983         issue.
26984         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26985
26986         strnlen: add tests
26987         * modules/strnlen-tests: New file.
26988         * tests/test-strnlen.c: Likewise.
26989
26990 2010-09-14  Bruno Haible  <bruno@clisp.org>
26991
26992         unistr/base: Avoid link errors when module 'libunistring' is also used.
26993         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26994         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26995         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26996         Declare also when HAVE_LIBUNISTRING is set.
26997         Reported by Pádraig Brady <P@draigbrady.com>.
26998
26999 2010-09-14  Eric Blake  <eblake@redhat.com>
27000
27001         test-rawmemchr: make more robust
27002         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
27003         (Depends-on, configure.ac): Add needed prerequisites to use it.
27004         * modules/memchr-tests (Files, Depends-on, configure.ac):
27005         Likewise, to avoid implicit reliance on memchr module prereqs.
27006         * tests/test-memchr.c (main): Ensure proper masking.
27007         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
27008         reads.
27009
27010         memchr: detect glibc Alpha bug
27011         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27012         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27013         Alpha.
27014         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27015         * tests/test-memchr.c (main): Enhance test.
27016         Reported by Nelson H. F. Beebe.
27017
27018 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27019
27020         fts, getcwd, glob: audit for dirfd returning -1
27021         * lib/fts.c (opendir): Remove #define; no longer used.
27022         (opendirat): New arg PDIR_FD.  All callers changed.
27023         (fts_build, _opendir2): Use new opendirat to avoid the need for
27024         dirfd, or for checking whether dirfd returns a negative value.
27025         Don't use opendir; always use openat followed by fdopendir.
27026         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27027         it.
27028         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27029         returns -1 here.
27030         * modules/fts (Depends-on): Remove dirfd.
27031         * modules/getcwd (Depends-on): Likewise.
27032
27033 2010-09-13  Eric Blake  <eblake@redhat.com>
27034
27035         float: fix broken MirBSD header
27036         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27037         * doc/posix-headers/float.texi (float.h): Document it.
27038
27039 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27040
27041         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27042         * lib/fts.c (opendirat): New arg extra_flags.
27043         (__opendir2): Use it to avoid following symlinks when opening
27044         a directory, if symlinks are not supposed to be followed.  See
27045         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27046
27047         fdopendir: preserve argument fd before returning
27048         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27049         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27050         (fdopendir): Use them, arranging for FD to be open to the same
27051         directory that it was when it started.  (It might be temporarily
27052         closed while fdopendir is running, so this not thread- or
27053         signal-safe.)  Be careful to do the right thing even when file
27054         descriptors are scarce and dup fails with errno == EMFILE.  See
27055         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27056
27057 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27058
27059         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27060         * NEWS: Document change.
27061         * m4/regex.m4: Disable test for regoff_t size.
27062
27063 2010-09-13  Jim Meyering  <meyering@redhat.com>
27064
27065         fts: don't operate on an invalid file descriptor after failed dup
27066         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27067         negative file descriptor.
27068
27069 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27070
27071         savedir: add streamsavedir, deprecate fdsavedir
27072         * NEWS: Mention deprecation of fdsavedir.
27073         * lib/savedir.c (streamsavedir): New extern function, whose name
27074         ends in "savedir" to be consistent with the others.  This differs
27075         from savedirstream in that it doesn't close its argument.  The
27076         next version of GNU tar will use this instead of fdsavedir, to
27077         avoid some race conditions and conserve file descriptors.
27078         (savedirstream): Reimplement as a wrapper around streamsavedir.
27079         (fdsavedir): Add a comment deprecating this function.  As far as
27080         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27081         * lib/savedir.h (streamsavedir): New decl.
27082         (fdsavedir): Add a comment deprecating this.
27083
27084 2010-09-10  Bruno Haible  <bruno@clisp.org>
27085
27086         langinfo: Fix last commit.
27087         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27088         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27089         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27090
27091 2010-09-10  Bruno Haible  <bruno@clisp.org>
27092
27093         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27094         * lib/progreloc.c (O_EXEC): Define fallback.
27095
27096 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27097
27098         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27099         * NEWS: Document recent changes to fcntl-h.
27100         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27101         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27102         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27103         Similarly for O_SEARCH; this last was already true, but not documented.
27104         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27105         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27106         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27107         Likewise.
27108         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27109         is zero, not whether it is defined.
27110         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27111         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27112         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27113
27114 2010-09-10  Bruno Haible  <bruno@clisp.org>
27115
27116         langinfo, nl_langinfo: Fix for IRIX 5.3.
27117         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27118         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27119         HAVE_LANGINFO_YESEXPR.
27120         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27121         HAVE_LANGINFO_YESEXPR.
27122         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27123         HAVE_LANGINFO_T_FMT_AMPM is 0.
27124         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27125         HAVE_LANGINFO_YESEXPR is 0.
27126         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27127         NOEXPR.
27128         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27129         * doc/posix-functions/nl_langinfo.texi: Likewise.
27130         Reported by Eric Blake.
27131
27132 2010-09-10  Bruno Haible  <bruno@clisp.org>
27133
27134         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27135         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27136         on FreeBSD 8.0 and OpenBSD 4.6.
27137         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27138         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27139         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27140         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27141         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27142         ac_includes_default.
27143         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27144
27145 2010-09-09  Eric Blake  <eblake@redhat.com>
27146
27147         strsignal: work around NetBSD bug
27148         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27149         * lib/string.in.h (includes): Likewise.
27150         * doc/posix-functions/strsignal.texi (strsignal): Document the
27151         bug.
27152         Reported by Nelson H. F. Beebe.
27153
27154         gnulib-tool: work with NetBSD /bin/sh
27155         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27156         (func_get_description, func_get_comment, func_get_status)
27157         (func_get_notice, func_get_applicability, func_get_filelist)
27158         (func_get_dependencies, func_get_autoconf_early_snippet)
27159         (func_get_autoconf_snippet, func_get_automake_snippet)
27160         (func_get_include_directive, func_get_link_directive)
27161         (func_get_license, func_get_maintainer, func_import): Avoid
27162         shell syntax errors from parsing syntax extensions.
27163
27164 2010-09-09  Bruno Haible  <bruno@clisp.org>
27165
27166         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27167         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27168         a reliable way to determine whether the 'alias' command works.
27169
27170 2010-09-08  Jim Meyering  <meyering@redhat.com>
27171
27172         init.sh: penalize a set-x-impaired shell; don't disqualify it
27173         * tests/init.sh: Too many shells corrupt application stderr when
27174         you set -x, so we can't afford to disqualify them, since at least
27175         on Irix-6.5, that would disqualify all bourne shells.
27176         Instead, use a two-pass approach.
27177         On the first pass, try to find a shell that meets the stricter
27178         condition that set -x does not corrupt stderr.
27179         If no shell meets the stricter condition, retest each candidate
27180         shell, but without that extra condition.  Finally, when
27181         VERBOSE=yes is requested and set -x might cause trouble, simply
27182         issue a warning and refrain from enabling debug output.
27183
27184 2010-09-08  Eric Blake  <eblake@redhat.com>
27185
27186         unsetenv: fix OpenBSD bug
27187         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27188         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27189         documentation.
27190         Reported by Jim Meyering.
27191
27192         strtod: work around IRIX 6.5 bug
27193         * lib/strtod.c (strtod): Reparse number on shorter string if
27194         exponent parse was invalid.
27195         * tests/test-strtod.c (main): Add check for "0x1p 2".
27196         Reported by Tom G. Christensen.
27197
27198         getopt: optimize previous patch
27199         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27200         empty variable.  Speed up awk script.
27201         Reported by Paolo Bonzini.
27202
27203 2010-09-08  Jim Meyering  <meyering@redhat.com>
27204
27205         test.sh: disqualify shells for which set -x corrupts stderr
27206         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27207         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27208         appear in stderr output.  For example, this command:
27209             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27210         prints "P=1" on those two systems:
27211
27212 2010-09-08  Bruno Haible  <bruno@clisp.org>
27213
27214         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27215         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27216         commands, because some shells ignore redirections when there is an
27217         error in the command lookup.
27218         Reported by Eric Blake.
27219
27220 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27221
27222         * lib/regex.h: Fix a mention of `regex_compile' (should be
27223         `re_compile_pattern').
27224         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27225         (re_set_registers): Correct name of parameter in comment.
27226
27227         * doc/regex.texi: Add documentation for missing syntax flags.
27228         Remove commented-out documentation of defunct syntax option
27229         RE_NO_EMPTY_ALTS.
27230         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27231         Add documentation of re_set_registers.
27232         Document trick to re-use a pattern buffer by setting fastmap manually.
27233         Update documentation of struct re_pattern_buffer per public members.
27234         Uncomment documentation of equivalence class operators and
27235         collating symbol operators, since they are now implemented,
27236         Explain leftmost-longest matching in relation to alternatives.
27237         Tidy documentation of substring matching.
27238         Remove POSIX documentation, which is done better in
27239         glibc, and refer the reader there. Keep BSD API documentation, as
27240         that is not readily available elsewhere.
27241
27242 2010-09-07  Eric Blake  <eblake@redhat.com>
27243
27244         getopt: handle POSIXLY_CORRECT set but not exported
27245         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27246         export state of POSIXLY_CORRECT, due to bash set -o posix.
27247         Reported by Dustin J. Mitchell.
27248
27249 2010-09-05  Bruno Haible  <bruno@clisp.org>
27250
27251         gnulib-tool: Highlight the changed options.
27252         * gnulib-tool (func_usage): Display the --import, --add-import,
27253         --remove-import explanations in bold font.
27254
27255 2010-09-06  Karl Berry  <karl@gnu.org>
27256
27257         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27258
27259 2010-09-05  Bruno Haible  <bruno@clisp.org>
27260
27261         uniwidth/width: Update comment.
27262         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27263         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27264
27265 2010-09-05  Bruno Haible  <bruno@clisp.org>
27266
27267         isinf, isnan: Relax license.
27268         * modules/isinf (License): Change from GPL to LGPL, with consent from
27269         Ben Pfaff.
27270         * modules/isnan (License): Likewise.
27271         Requested by Ludovic Courtès.
27272
27273 2010-09-04  Bruno Haible  <bruno@clisp.org>
27274
27275         gnulib-tool: Help migration from --import to --add-import or --update.
27276         * gnulib-tool: Emit a verbose error message when --import is used
27277         without any module name.
27278
27279 2010-09-04  Bruno Haible  <bruno@clisp.org>
27280
27281         Update doc about gnulib-tool.
27282         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27283         'gnulib-tool --update' in more detail.
27284         Reported by Eric Blake.
27285
27286 2010-09-04  Bruno Haible  <bruno@clisp.org>
27287
27288         gnulib-tool: Change --import. New options --add/remove-import.
27289         * gnulib-tool: New options --add-import, --remove-import.
27290         (func_usage): Document them.
27291         (have_associative): Define always.
27292         (func_import): In import mode, don't merge the specified settings with
27293         the cached settings. Implement remove-import mode.
27294         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27295         Explain when to use them versus --import.
27296         (Simple update): Use --add-import instead of --import.
27297         * NEWS: Mention the change.
27298
27299 2010-09-04  Bruno Haible  <bruno@clisp.org>
27300
27301         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27302         separate gnulib.mk.
27303
27304 2010-09-04  Bruno Haible  <bruno@clisp.org>
27305
27306         gnulib-tool: Don't talk about CVS any more.
27307         * gnulib-tool (func_usage, func_import): Write "version control"
27308         instead of CVS.
27309
27310 2010-09-04  Jim Meyering  <meyering@redhat.com>
27311
27312         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27313         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27314         false positives (whose names may be ill-chosen) when searching
27315         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27316         would cause a false-positive.
27317
27318         avoid coreutils "make distcheck" failure
27319         Coreutils tests with an absolute build directory name that contains
27320         a space.  Not quoting this directory name caused a failure.
27321         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27322         * tests/test-vc-list-files-cvs.sh: Likewise.
27323
27324 2010-09-04  Bruno Haible  <bruno@clisp.org>
27325
27326         gnulib-tool: Avoid error when run in a package without Makefile.am.
27327         * gnulib-tool: When collecting the m4dirs in a package that does not
27328         have a Makefile.am, eliminate those directories that contain no
27329         gnulib-cache.m4. Fix expression that counts these directories.
27330
27331 2010-09-04  Bruno Haible  <bruno@clisp.org>
27332
27333         update-copyright test: Improve output when perl is missing or too old.
27334         * tests/test-update-copyright.sh: Move test of Perl version down after
27335         the test whether Perl exists. Provide an explanation relating Perl's
27336         error message to Automake's SKIP: message.
27337
27338 2010-09-04  Bruno Haible  <bruno@clisp.org>
27339
27340         Don't augment PATH in TESTS_ENVIRONMENT.
27341         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27342         set abs_aux_dir instead of augmenting PATH.
27343         * modules/vc-list-files-tests (Makefile.am): Likewise.
27344         * tests/test-update-copyright.sh: Augment PATH here.
27345         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27346         path_prepend_.
27347         * tests/test-vc-list-files-git.sh: Likewise.
27348
27349 2010-09-04  Jim Meyering  <meyering@redhat.com>
27350
27351         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27352         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27353
27354 2010-09-04  Bruno Haible  <bruno@clisp.org>
27355
27356         strdup: Fix compilation error in C++ mode.
27357         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27358         the macro.
27359
27360 2010-09-04  Bruno Haible  <bruno@clisp.org>
27361
27362         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27363         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27364         macro into a function.
27365         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27366
27367 2010-09-04  Bruno Haible  <bruno@clisp.org>
27368
27369         Set PATH_SEPARATOR the same way autoconf does.
27370         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27371         the value of PATH_SEPARATOR the same way autoconf-generated configure
27372         scripts do.
27373         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27374         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27375
27376 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27377
27378         Set PATH_SEPARATOR the same way autoconf does.
27379         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27380         the same way autoconf-generated configure scripts do.
27381         * posix-modules: Likewise.
27382
27383 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27384
27385         hash: fix safe_hasher const typo
27386         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27387         const; otherwise, there is a type error later.
27388
27389 2010-09-02  Jim Meyering  <meyering@redhat.com>
27390
27391         test-update-copyright.sh: require perl 5.8.0
27392         * tests/test-update-copyright.sh: Require 5.8.0,
27393         which Tom G. Christensen has confirmed is adequate,
27394         while 5.6.1 is not.
27395
27396 2010-09-02  Eric Blake  <eblake@redhat.com>
27397
27398         tests: init.sh improvements for re-exec'ing with zsh
27399         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27400         -vx through shell re-exec.
27401         Reported by Tom G. Christensen.
27402
27403         wctype: fix typo in previous commit
27404         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27405         Reported by Ludovic Courtès.
27406
27407 2010-09-02  Jim Meyering  <meyering@redhat.com>
27408
27409         test-update-copyright.sh: skip test if Perl is too old
27410         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27411         Reported by Tom G. Christensen.
27412
27413 2010-09-02  Bruno Haible  <bruno@clisp.org>
27414
27415         wctype: Avoid compilation error on IRIX 6.5.30.
27416         * lib/wctype.in.h (iswblank): Declare with a replacement if
27417         REPLACE_ISWBLANK is set.
27418         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27419         declared. Set REPLACE_ISWBLANK.
27420         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27421         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27422         * doc/posix-headers/wctype.texi: Likewise.
27423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27424
27425 2010-09-01  Bruno Haible  <bruno@clisp.org>
27426
27427         New module 'socketlib'.
27428         * modules/socketlib: New file.
27429         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27430         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27431         * modules/sockets (Depends-on): Add socketlib.
27432         Suggested by Sam Steingold <sds@gnu.org>.
27433
27434 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27435
27436         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27437
27438         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27439         when one needs search access to a directory but not read access.
27440         On systems where it is available, it works in some cases where
27441         O_RDONLY does not, namely on directories that are searchable but
27442         not readable, and which need only to be searchable.  If O_SEARCH
27443         is not available, fall back to the traditional method of using
27444         O_RDONLY.
27445
27446         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27447         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27448         when opening a directory that needs only to be searchable.
27449         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27450         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27451         * lib/openat-proc.c (openat_proc_name): Likewise.
27452         * lib/openat.c (openat_needs_fchdir): Likewise.
27453         * lib/save-cwd.c (save_cwd): Likewise.
27454         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27455
27456 2010-08-28  Bruno Haible  <bruno@clisp.org>
27457
27458         New module 'host-cpu-c-abi'.
27459         * modules/host-cpu-c-abi: New file.
27460         * m4/host-cpu-c-abi.m4: New file, based on part of
27461         clisp/src/m4/general.m4.
27462         Requested by Sam Steingold <sds@gnu.org>.
27463
27464 2010-08-31  Eric Blake  <eblake@redhat.com>
27465         and Jim Meyering  <meyering@redhat.com>
27466
27467         hash: factor, and guard against misbehaving hasher function
27468         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27469         of table->hasher's return value.  Also protect against a hash value
27470         so large that adding it to table->bucket results in a NULL pointer.
27471         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27472         Use it in place of open-coded check-and-abort.
27473
27474 2010-08-30  Bruno Haible  <bruno@clisp.org>
27475
27476         hash: silence spurious clang warning
27477         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27478         Reported by Eric Blake.
27479
27480 2010-08-30  Eric Blake  <eblake@redhat.com>
27481
27482         strstr, memmem, strcasestr: avoid leaked shell message
27483         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27484         FreeBSD.
27485         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27486         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27487
27488         tests: silence clang warning
27489         * tests/test-malloca.c (do_allocation): Avoid dead store.
27490
27491 2010-08-29  Bruno Haible  <bruno@clisp.org>
27492
27493         gettext: Fix recent mistake.
27494         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27495
27496 2010-08-29  Bruno Haible  <bruno@clisp.org>
27497
27498         selinux-h: Offer a --without-selinux option.
27499         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27500         --without-selinux was specified, skip all tests and define
27501         HAVE_SELINUX_SELINUX_H to 0.
27502         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27503         set LIB_SELINUX to empty.
27504         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27505         gl_LIBSELINUX. If --without-selinux was specified, replace
27506         selinux/context.h.
27507         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27508
27509 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27510             Bruno Haible  <bruno@clisp.org>
27511
27512         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27513         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27514         of HAVE_REALLOC.
27515         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27516         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27517         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27518         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27519
27520 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27521             Bruno Haible  <bruno@clisp.org>
27522
27523         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27524         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27525         HAVE_CALLOC.
27526         * lib/xmalloc.c: Update accordingly.
27527         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27528         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27529         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27530
27531 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27532             Bruno Haible  <bruno@clisp.org>
27533
27534         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27535         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27536         HAVE_MALLOC.
27537         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27538         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27539         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27540
27541 2010-08-29  Bruno Haible  <bruno@clisp.org>
27542
27543         Update modules list.
27544         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27545         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27546         (String handling <string.h>): Add astrxfrm.
27547         (File system functions): Add readlinkat.
27548
27549 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27550
27551         Tests for module 'realloc-gnu'.
27552         * modules/realloc-gnu-tests: New file.
27553         * tests/test-realloc-gnu.c: New file.
27554
27555         Tests for module 'calloc-gnu'.
27556         * modules/calloc-gnu-tests: New file.
27557         * tests/test-calloc-gnu.c: New file.
27558
27559         Tests for module 'malloc-gnu'.
27560         * modules/malloc-gnu-tests: New file.
27561         * tests/test-malloc-gnu.c: New file.
27562
27563 2010-08-28  Bruno Haible  <bruno@clisp.org>
27564
27565         Rename module 'realloc' -> 'realloc-gnu'.
27566         * modules/realloc-gnu: New file, copied from modules/realloc.
27567         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27568         obsolete.
27569         * modules/mgetgroups (Depends-on): Update.
27570         * doc/posix-functions/realloc.texi: Update.
27571         * NEWS: Mention the change.
27572
27573         Rename module 'calloc' -> 'calloc-gnu'.
27574         * modules/calloc-gnu: New file, copied from modules/calloc.
27575         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27576         obsolete.
27577         * doc/posix-functions/calloc.texi: Update.
27578         * NEWS: Mention the change.
27579
27580         Rename module 'malloc' -> 'malloc-gnu'.
27581         * modules/malloc-gnu: New file, copied from modules/malloc.
27582         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27583         obsolete.
27584         * modules/argp (Depends-on): Update.
27585         * modules/regex (Depends-on): Update.
27586         * doc/posix-functions/malloc.texi: Update.
27587         * NEWS: Mention the change.
27588
27589 2010-08-28  Eric Blake  <eblake@redhat.com>
27590
27591         pread, pwrite: add missing dependency
27592         * modules/pread (Depends-on): Add extensions.
27593         * modules/pwrite (Depends-on): Likewise.
27594
27595 2010-08-28  Bruno Haible  <bruno@clisp.org>
27596
27597         unistr/u*-strchr: Fix tests dependencies.
27598         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27599         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27600         Reported by Ian Beckwith <ianb@erislabs.net>.
27601
27602 2010-08-28  Bruno Haible  <bruno@clisp.org>
27603
27604         read-file: Don't occupy too much unused memory.
27605         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27606
27607 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27608             Eric Blake  <eblake@redhat.com>
27609             Bruno Haible  <bruno@clisp.org>
27610
27611         read-file: Avoid memory reallocations with regular files.
27612         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27613         (fread_file): With regular files, use the remaining length as the
27614         initial buffer size.  Check against overflow.
27615         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27616         sys_stat.
27617
27618 2010-08-28  Bruno Haible  <bruno@clisp.org>
27619
27620         ftello: Relax license.
27621         * modules/ftello (License): Relax to LGPLv2+.
27622         Reported by Eric Blake.
27623
27624 2010-08-28  Bruno Haible  <bruno@clisp.org>
27625
27626         Avoid relocwrapper link errors due to gnulib replacement functions.
27627         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27628         function.
27629         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27630
27631 2010-08-28  Bruno Haible  <bruno@clisp.org>
27632
27633         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27634         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27635         defined.
27636         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27637         Suggested by Eric Blake.
27638
27639 2010-08-28  Bruno Haible  <bruno@clisp.org>
27640
27641         sys_socket, netdb: Ensure socklen_t gets defined.
27642         * modules/sys_socket (Depends-on): Add socklen.
27643         * modules/netdb (Depends-on): Likewise.
27644         * modules/getaddrinfo (Depends-on): Remove socklen.
27645         * modules/getsockopt (Depends-on): Likewise.
27646         * modules/setsockopt (Depends-on): Likewise.
27647         * tests/test-sys_socket.c: Check that socklen_t is defined.
27648         * tests/test-netdb.c: Likewise.
27649         * m4/socklen.m4: Update comments.
27650         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27651
27652 2010-08-27  Eric Blake  <eblake@redhat.com>
27653
27654         login_tty: add missing dependency
27655         * modules/login_tty (Depends-on): Add pty.
27656
27657 2010-08-26  Eric Blake  <eblake@redhat.com>
27658
27659         lib-symbol-versions: fix m4 quoting
27660         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27661         format for AC_LINK_IFELSE.
27662
27663         glob: fix compile test
27664         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27665
27666         btowc: fix missing file
27667         * modules/btowc (Files): Also ship locale-fr.m4.
27668
27669         lseek: fix link test
27670         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27671         AC_LINK_IFELSE.
27672
27673         include_next: silence autoconf 2.68 warning
27674         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27675         AC_COMPILE_IFELSE as special.
27676         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27677         autoconf < 2.68.
27678
27679         acl: fix compilation test
27680         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27681         AC_COMPILE_IFELSE.
27682
27683 2010-08-26  Bruno Haible  <bruno@clisp.org>
27684
27685         Modernize AC_TRY_RUN invocations.
27686         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27687         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27688         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27689         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27690         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27691         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27692         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27693         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27694         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27695         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27696         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27697         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27698         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27699         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27700         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27701         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27702         gl_MBRLEN_NUL_RETVAL): Likewise.
27703         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27704         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27705         Likewise.
27706         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27707         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27708         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27709         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27710         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27711         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27712         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27713         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27714         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27715         Likewise.
27716         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27717         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27718         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27719         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27720         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27721         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27722         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27723         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27724         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27726
27727 2010-08-26  Bruno Haible  <bruno@clisp.org>
27728
27729         Modernize AC_TRY_LINK invocations.
27730         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27731         AC_TRY_LINK.
27732         * m4/argp.m4 (gl_ARGP): Likewise.
27733         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27734         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27735         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27736         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27737         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27738         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27739         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27740         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27741         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27742         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27743         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27744         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27745         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27746         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27747         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27748         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27749         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27750         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27751         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27752         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27753         Likewise.
27754         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27755         Likewise.
27756         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27757         Likewise.
27758         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27759         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27760         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27761         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27762         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27763         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27764         * m4/servent.m4 (gl_SERVENT): Likewise.
27765         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27766         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27767         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27768         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27769         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27770         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27771         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27772         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27773         * modules/tsearch-tests (configure.ac): Likewise.
27774
27775 2010-08-26  Bruno Haible  <bruno@clisp.org>
27776
27777         Modernize AC_TRY_COMPILE invocations.
27778         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27779         AC_TRY_COMPILE.
27780         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27781         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27782         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27783         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27784         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27785         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27786         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27787         * m4/lock.m4 (gl_LOCK): Likewise.
27788         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27789         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27790         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27791         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27792         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27793         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27794         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27795         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27796         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27797         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27798         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27799         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27800         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27801         extraneous semicolon.
27802
27803 2010-08-26  Jim Meyering  <meyering@redhat.com>
27804
27805         stat-time: relax license LGPL
27806         * modules/stat-time (License): Change from GPL to LGPL,
27807         with consent from all contributors, for use in libguile.
27808         Requested by Ludovic Courtès.
27809
27810 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27811
27812         poll: return immediately on POLLHUP.
27813         * lib/poll.c (poll): Always set timeout before wait_timeout is
27814         computed.
27815
27816 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27817
27818         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27819         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27820         rmdir ("dir/.//"), unlinkat.
27821
27822 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27823
27824         stdbool: avoid spurious failure with modern xlc
27825         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27826
27827 2010-08-24  Bruno Haible  <bruno@clisp.org>
27828
27829         getloadavg: simplify code
27830         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27831         gl_have_func. Update comments.
27832
27833 2010-08-24  Eric Blake  <eblake@redhat.com>
27834
27835         getloadavg: don't define SVR4 on cygwin
27836         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27837         only define SVR4 when -lkvm is required.
27838         Reported by Yaakov Selkowitz.
27839
27840 2010-08-24  Bruno Haible  <bruno@clisp.org>
27841
27842         priv-set: fix comment
27843         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27844
27845 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27846
27847         priv-set: fix comments
27848         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27849         to match code, as suggested by David Bartley in:
27850         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27851
27852 2010-08-23  Eric Blake  <eblake@redhat.com>
27853
27854         stdbool: avoid rejecting clang
27855         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27856         * tests/test-stdbool.c: Enable more tests if using the system
27857         <stdbool.h> instead of the gnulib replacement.
27858         (main): Move xlc bug test to a runtime test for all compilers.
27859         Reported by Anders Kaseorg.
27860
27861         argz: fix shell quoting issue
27862         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27863         Reported by Charles Wilson.
27864
27865 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27866             Erik Faye-Lund <kusmabite@gmail.com>
27867
27868         poll, select: handle ERROR_BROKEN_PIPE.
27869         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27870         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27871         * lib/select.c (win32_compute_revents): Do not mark a pipe
27872         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27873
27874 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27875
27876         fts: allow compilation with C++
27877         * lib/fts_.h: Specify extern "C" linkage with C++.
27878
27879 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27880
27881         Fix gnulib-tool sed script de-commentation for AIX sed.
27882         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27883         sed.
27884
27885 2010-08-17  Eric Blake  <eblake@redhat.com>
27886
27887         test-stddef: test for (some) offsetof bugs
27888         * tests/test-stddef.c: Enhance test to ensure correct type of
27889         offsetof.
27890         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27891         that we are not fixing at this time.
27892
27893 2010-08-15  Bruno Haible  <bruno@clisp.org>
27894
27895         stpncpy: Allow stpncpy to be defined as a macro.
27896         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27897         if it's already correctly declared.
27898         * lib/string.in.h (stpncpy): Undefine before redefining.
27899         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27900
27901 2010-08-14  Bruno Haible  <bruno@clisp.org>
27902
27903         Rename module 'memxfrm' to 'amemxfrm'.
27904         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27905         (amemxfrm): Renamed from memxfrm.
27906         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27907         (amemxfrm): Renamed from memxfrm.
27908         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27909         * NEWS: Mention the change.
27910         * MODULES.html.sh (String handling <string.h>): Update.
27911         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27912         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27913         * lib/unicase/u16-casexfrm.c: Likewise.
27914         * lib/unicase/u32-casexfrm.c: Likewise.
27915         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27916         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27917         * lib/uninorm/u16-normxfrm.c: Likewise.
27918         * lib/uninorm/u32-normxfrm.c: Likewise.
27919         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27920         memxfrm.
27921         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27922         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27923         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27924         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27925         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27926         Suggested by Paul Eggert.
27927
27928 2010-08-14  Bruno Haible  <bruno@clisp.org>
27929
27930         Tests for module 'astrxfrm'.
27931         * modules/astrxfrm-tests: New file.
27932         * tests/test-astrxfrm.c: New file.
27933
27934         New module 'astrxfrm'.
27935         * lib/astrxfrm.h: New file.
27936         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27937         * modules/astrxfrm: New file.
27938
27939 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27940
27941         regex: Tweak doc.
27942         * doc/regex.texi (Overview): Don't mention regex.c.
27943         (GNU Regular Expression Compiling): Likewise.
27944         (Match-end-of-line Operator): Mention 'not_eol'.
27945
27946 2010-08-14  Brian Gough  <bjg@gnu.org>
27947             Bruno Haible  <bruno@clisp.org>
27948
27949         git-merge-changelog: add doc relating to use with bzr and hg.
27950         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27951
27952 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27953
27954         pthread: fix pthread.h creation for srcdir != builddir
27955         * modules/pthread (Makefile.am): Fix the rule to work also in a
27956         non-srcdir build.
27957
27958 2010-08-13  Karl Berry  <karl@gnu.org>
27959
27960         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27961         * doc/posix-*/*: force line break before @url of POSIX
27962         specifications.
27963         Suggested by Werner Lemberg.
27964
27965 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27966
27967         strtod: fix const diagnostic
27968         * lib/strtod.c (strtod): Don't assign const char * to char *,
27969         as this elicits a warning from GCC when warnings are enabled.
27970
27971 2010-08-10  Pádraig Brady <P@draigbrady.com>
27972         and Eric Blake  <eblake@redhat.com>
27973
27974         copy-acl: ignore ENOTSUP on HP-UX
27975         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27976         so that it is available for HP-UX.
27977         * lib/copy-acl.c (qcopy_acl): Use it.
27978         Reported by Patrick M. Callahan.
27979
27980 2010-08-10  Eric Blake  <eblake@redhat.com>
27981
27982         open, chown: relax license
27983         * modules/open (License): Change to LGPLv2+, with consent by all
27984         authors, for use in augeas.
27985         * modules/chown (License): Likewise.
27986         * modules/lchown (Likewise): Likewise.
27987         Requested by Adam Stokes.
27988
27989 2010-08-09  Karl Berry  <karl@gnu.org>
27990
27991         * build-aux/ar-lib: new file, import from Automake.
27992         * config/srclist.txt: autocheck for updates.
27993
27994 2010-08-09  Eric Blake  <eblake@redhat.com>
27995
27996         readlinkat: adjust client modules
27997         * modules/areadlinkat (Depends-on): Use readlinkat, not
27998         symlinkat.
27999         * modules/areadlinkat-with-size (Depends-on): Likewise.
28000
28001         mknod: be more vocal about danger of running tests as root
28002         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
28003         root, since that is just asking for problems.
28004         Suggested by Bruno Haible, based on a report by Rainer Tammer.
28005
28006         readlinkat: split into its own module
28007         * modules/symlinkat: Split readlinkat...
28008         * modules/readlinkat: ...into separate module.
28009         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28010         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28011         * lib/symlinkat.c (readlinkat): Move...
28012         * lib/readlinkat.c: ...into new file.
28013         * modules/symlinkat-tests: Split readlinkat test...
28014         * modules/readlinkat-tests: ...into separate module.
28015         * tests/test-symlinkat.c: Split...
28016         * tests/test-readlinkat.c: ...into new file.
28017         * NEWS: Document the split.
28018         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28019         * lib/unistd.in.h (readlinkat): Likewise.
28020         Suggested by Bruno Haible.
28021
28022 2010-08-08  Bruno Haible  <bruno@clisp.org>
28023
28024         memxfrm: Speed up.
28025         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28026         that usually only one call to strxfrm is necessary for each string
28027         part.
28028         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28029
28030 2010-08-07  Karl Berry  <karl@gnu.org>
28031
28032         * doc/posix-headers/limits.texi,
28033         * doc/posix-functions/malloc.texi,
28034         * doc/posix-functions/strsignal.texi: missing @item.
28035         * doc/ld-version-script.texi: spurious leading i.
28036         * doc/regex.texi (Interval Operators): no commas inside @var.
28037
28038 2010-08-01  Bruno Haible  <bruno@clisp.org>
28039
28040         Integrate the regex documentation.
28041         * doc/gnulib.texi: Define 'cn' index.
28042         (Regular expressions): New a chapter that includes regex.texi and
28043         regexprops-generic.texi.
28044         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28045         syntax.
28046
28047         Whitespace cleanup.
28048         * doc/regex.texi: Remove trailing spaces.
28049
28050         Add regex documentation.
28051         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28052         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28053         Written by Kathy A. Hargreaves and Karl Berry.
28054
28055 2010-08-01  Bruno Haible  <bruno@clisp.org>
28056
28057         link: Update documentation.
28058         * doc/posix-functions/link.texi: Update regarding Solaris.
28059
28060 2010-07-31  Bruno Haible  <bruno@clisp.org>
28061
28062         Update modules list.
28063         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28064         (String handling <string.h>): Add memcmp2, memxfrm.
28065         (Container data structures): Add xlist, xsublist, xoset.
28066         (Core language properties): Add alignof, unused-parameter.
28067         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28068         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28069         (Unibyte characters <ctype.h>): New section.
28070         (String handling <string.h>): New section.
28071         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28072         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28073         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28074         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28075         tan, tanh, tanl, y0, y1, yn.
28076         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28077         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28078         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28079         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28080         unlockpt, vdprintf, vdprintf-posix.
28081         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28082         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28083         xconcat-filename.
28084         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28085         getdtablesize, pipe2, pipe2-safer.
28086         (Security): New section.
28087         (Networking functions): Add accept4.
28088         (Signal handling): Add sigpipe.
28089         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28090         mbmemcasecoll.
28091         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28092         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28093         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28094         pipe-filter-ii.
28095         (Misc): Add argp-version-etc, login_tty, parse-duration.
28096
28097 2010-07-31  Bruno Haible  <bruno@clisp.org>
28098
28099         Improve doc in MODULES.html.
28100         * modules/linkat (Description): Add the word "function".
28101         * modules/mkfifo (Description): Likewise.
28102         * modules/mknod (Description): Likewise.
28103         * modules/remove (Description): Likewise.
28104         * modules/renameat (Description): Likewise.
28105         * modules/stat (Description): Likewise.
28106         * modules/symlink (Description): Likewise.
28107         * modules/unlink (Description): Likewise.
28108
28109 2010-07-31  Bruno Haible  <bruno@clisp.org>
28110
28111         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28112         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28113         option --enable/disable-c++ instead of --enable/disable-cxx.
28114         * NEWS: Mention the change.
28115
28116 2010-07-31  Bruno Haible  <bruno@clisp.org>
28117
28118         readlink, areadlink: Relax test a bit.
28119         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28120         alternative to ENOTDIR.
28121         * tests/test-areadlink.h (test_areadlink): Likewise.
28122         Reported by Rainer Tammer.
28123
28124 2010-07-31  Bruno Haible  <bruno@clisp.org>
28125
28126         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28127         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28128         character, perform the search using U_STRCHR.
28129         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28130         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28131         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28132         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28133         Suggested by Paolo Bonzini.
28134
28135 2010-07-31  Bruno Haible  <bruno@clisp.org>
28136
28137         unistr/u*-strstr: Fix dependencies.
28138         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28139         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28140         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28141
28142 2010-07-31  Bruno Haible  <bruno@clisp.org>
28143
28144         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28145         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28146         the beginning of the loop.
28147         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28148         cases in 'switch' statement.
28149
28150         unistr/u8-strchr: Fix several bugs.
28151         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28152         the string. When not found, return NULL, not a pointer near the end.
28153
28154         More tests for unistr/u8-strchr.
28155         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28156         that the function does not read past the first occurrence of the byte
28157         being searched.
28158         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28159         * tests/unistr/test-u16-strchr.c (main): New function.
28160         * tests/unistr/test-u32-strchr.c (main): New function.
28161
28162 2010-07-31  Bruno Haible  <bruno@clisp.org>
28163
28164         posix-modules: Ignore backup files of documentation files.
28165         * posix-modules: grep only through files named *.texi.
28166
28167 2010-07-31  Bruno Haible  <bruno@clisp.org>
28168
28169         symlinkat: Fix documentation.
28170         * doc/posix-functions/readlinkat.texi: Fix module name.
28171
28172 2010-07-31  Bruno Haible  <bruno@clisp.org>
28173
28174         fchownat: Replace also when chown has the trailing slash bug.
28175         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28176         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28177         introduced on 2010-04-10.
28178         Reported by Rainer Tammer.
28179
28180 2010-07-31  Bruno Haible  <bruno@clisp.org>
28181
28182         linkat: Work around AIX 7.1 bug.
28183         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28184         whether linkat handles trailing slash correctly. If not, replace linkat
28185         and define LINKAT_TRAILING_SLASH_BUG.
28186         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28187         check whether (fd1,file1) points to a directory if file1 or file2 ends
28188         in a slash. Code taken from lib/link.c.
28189         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28190         Reported by Rainer Tammer.
28191
28192 2010-07-31  Bruno Haible  <bruno@clisp.org>
28193
28194         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28195         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28196         This disables an xlc optimization that was causing wrong test results.
28197         Reported by Rainer Tammer.
28198
28199 2010-07-31  Bruno Haible  <bruno@clisp.org>
28200
28201         iconv: Work around AIX 6.1..7.1 bug.
28202         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28203         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28204         cross-compiling, guess no on all versions of AIX.
28205         Reported by Rainer Tammer.
28206
28207 2010-07-31  Bruno Haible  <bruno@clisp.org>
28208
28209         readlink: Relax test a bit.
28210         * tests/test-readlink.h (test_readlink): Allow different errno value
28211         when readlink is called with a file name that ends in / and refers to
28212         a file.
28213         Suggested by Eric Blake.
28214         Reported by Rainer Tammer.
28215
28216 2010-07-31  Bruno Haible  <bruno@clisp.org>
28217
28218         copysign: Does not require -lm on glibc systems.
28219         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28220         gl_COMMON_DOUBLE_MATHFUNC.
28221         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28222
28223 2010-07-31  Bruno Haible  <bruno@clisp.org>
28224
28225         duplocale: Work around AIX 7.1 bug.
28226         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28227         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28228         * lib/duplocale.c (rpl_duplocale): Update comment.
28229         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28230         Reported by Rainer Tammer.
28231
28232 2010-07-30  Bruno Haible  <bruno@clisp.org>
28233
28234         dirfd: Avoid link error on AIX 7.1.
28235         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28236         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28237         exist, set REPLACE_DIRFD.
28238         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28239         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28240         * doc/posix-functions/dirfd.texi: Update.
28241         Reported by Rainer Tammer.
28242
28243 2010-07-30  Eric Blake  <eblake@redhat.com>
28244
28245         strtod: next round of AIX fixes
28246         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28247         exponent.
28248         * tests/test-strtod.c (main): Enhance tests.
28249         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28250         Reported by Rainer Tammer.
28251
28252         futimens: fix configure check
28253         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28254         Reported by Bruno Haible.
28255
28256 2010-07-30  Bruno Haible  <bruno@clisp.org>
28257
28258         getline: Update regarding AIX.
28259         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28260         Reported by Rainer Tammer.
28261
28262 2010-07-30  Bruno Haible  <bruno@clisp.org>
28263
28264         wcwidth: Drop replacement on AIX 7.
28265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28266         AIX 7.
28267         Reported by Rainer Tammer.
28268
28269 2010-07-30  Bruno Haible  <bruno@clisp.org>
28270
28271         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28272         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28273         a 'char *'.
28274         Reported by Rainer Tammer.
28275
28276 2010-07-30  Bruno Haible  <bruno@clisp.org>
28277
28278         unlink: Update regarding AIX.
28279         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28280         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28281         Reported by Rainer Tammer.
28282
28283 2010-07-30  Bruno Haible  <bruno@clisp.org>
28284
28285         symlink: Update regarding AIX.
28286         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28287         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28288         Reported by Rainer Tammer.
28289
28290 2010-07-30  Bruno Haible  <bruno@clisp.org>
28291
28292         strndup: Update regarding AIX.
28293         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28294         AIX 7.
28295         Reported by Rainer Tammer.
28296
28297 2010-07-30  Bruno Haible  <bruno@clisp.org>
28298
28299         stat: Update regarding AIX.
28300         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28301         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28302         Reported by Rainer Tammer.
28303
28304 2010-07-30  Bruno Haible  <bruno@clisp.org>
28305
28306         truncl: Fix autoconf test.
28307         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28308         whether truncl works.
28309         Reported by Rainer Tammer.
28310
28311 2010-07-30  Bruno Haible  <bruno@clisp.org>
28312
28313         round: Update regarding AIX.
28314         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28315         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28316         Reported by Rainer Tammer.
28317
28318 2010-07-30  Bruno Haible  <bruno@clisp.org>
28319
28320         rename: Update regarding AIX.
28321         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28322         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28323         Reported by Rainer Tammer.
28324
28325 2010-07-30  Bruno Haible  <bruno@clisp.org>
28326
28327         printf.m4: Update regarding AIX.
28328         * m4/printf.m4: Update comments regarding AIX.
28329         Reported by Rainer Tammer.
28330
28331 2010-07-30  Bruno Haible  <bruno@clisp.org>
28332
28333         iconv: Update regarding AIX.
28334         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28335         AIX 7.
28336         Reported by Rainer Tammer.
28337
28338 2010-07-30  Bruno Haible  <bruno@clisp.org>
28339
28340         getopt: Update regarding AIX.
28341         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28342         no on AIX.
28343         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28344         Reported by Rainer Tammer.
28345
28346 2010-07-30  Bruno Haible  <bruno@clisp.org>
28347
28348         ldexpl; Update regarding AIX.
28349         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28350         on AIX 7.
28351         Reported by Rainer Tammer.
28352
28353 2010-07-30  Bruno Haible  <bruno@clisp.org>
28354
28355         frexpl: Update regarding AIX.
28356         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28357         on AIX 7.
28358         Reported by Rainer Tammer.
28359
28360 2010-07-30  Bruno Haible  <bruno@clisp.org>
28361
28362         open, fopen: Update regarding AIX.
28363         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28364         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28365         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28366         * doc/posix-functions/fopen.texi: Likewise.
28367         Reported by Rainer Tammer.
28368
28369 2010-07-30  Bruno Haible  <bruno@clisp.org>
28370
28371         chown: Update doc regarding AIX.
28372         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28373         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28374         Reported by Rainer Tammer.
28375
28376 2010-07-30  Eric Blake  <eblake@redhat.com>
28377
28378         strtod: fix bug in replacement function on AIX
28379         * lib/strtod.c (strtod): Special case broken "0x" parse in
28380         underlying strtod.
28381         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28382         * doc/posix-functions/strtod.texi (strtod): Likewise.
28383         Reported by Rainer Tammer.
28384
28385 2010-07-30  Bruno Haible  <bruno@clisp.org>
28386
28387         mbrlen: Fix cross-compilation guess for AIX.
28388         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28389         guess. Leftover from 2008-12-22.
28390
28391 2010-07-30  Bruno Haible  <bruno@clisp.org>
28392
28393         mbrtowc: Fix cross-compilation guess for AIX.
28394         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28395         guess. Leftover from 2008-12-21.
28396
28397 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28398
28399         init.sh: work around trap limitation of some shells
28400         * tests/init.sh (setup_): Move exit trap outside of shell function.
28401
28402 2010-07-29  Eric Blake  <eblake@redhat.com>
28403
28404         strtod: aid debugging
28405         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28406         understanding why strtod is rejected.
28407
28408 2010-07-28  Bruno Haible  <bruno@clisp.org>
28409
28410         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28411         * lib/unistr/u8-chr.c: Include <string.h>.
28412         * tests/unistr/test-u8-chr.c: Likewise.
28413         * tests/unistr/test-u16-chr.c: Likewise.
28414         * tests/unistr/test-u32-chr.c: Likewise.
28415         * tests/unistr/test-u8-strchr.c: Likewise.
28416         * tests/unistr/test-u16-strchr.c: Likewise.
28417         * tests/unistr/test-u32-strchr.c: Likewise.
28418         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28419         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28420         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28421         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28422
28423 2010-07-28  Bruno Haible  <bruno@clisp.org>
28424
28425         Use spaces for indentation, not tabs.
28426         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28427
28428 2010-07-27  Bruno Haible  <bruno@clisp.org>
28429
28430         mbspcasecmp: Fix function specification.
28431         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28432         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28433         Reported by Eric Blake <eblake@redhat.com>.
28434
28435 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28436
28437         timespec: use cast and not conditional, as truncation isn't possible
28438         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28439         instead of a conditional.  Comment about the situation in more detail.
28440         This undoes most of the 2009-10-29 patch.
28441
28442 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28443
28444         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28445         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28446         * lib/unistr/u8-strchr.c: Likewise.
28447         * modules/unistr/u8-chr: Depend on memchr.
28448
28449         unistr/u*-strchr: add tests
28450         * modules/unistr/u8-strchr-tests: New file.
28451         * modules/unistr/u16-strchr-tests: New file.
28452         * modules/unistr/u32-strchr-tests: New file.
28453         * tests/unistr/test-strchr.h: New file.
28454         * tests/unistr/test-u8-strchr.c: New file.
28455         * tests/unistr/test-u16-strchr.c: New file.
28456         * tests/unistr/test-u32-strchr.c: New file.
28457
28458         unistr/u*-chr: test multibyte sequences more
28459         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28460         test vector.
28461         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28462         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28463         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28464
28465         unistr/u*-chr: test multibyte sequences
28466         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28467
28468         unistr/u*-chr: prepare for multibyte tests
28469         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28470         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28471         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28472         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28473         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28474         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28475
28476 2010-07-18  Bruno Haible  <bruno@clisp.org>
28477
28478         unistr/u8-strchr: Optimize non-ASCII argument case.
28479         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28480         because the first byte often matches anyway.
28481         Reported by Pádraig Brady <P@draigbrady.com>.
28482
28483 2010-07-15  Karl Berry  <karl@gnu.org>
28484
28485         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28486
28487 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28488
28489         getcwd: on Solaris, work better if ancestors are inaccessible
28490         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28491         buffer and size, try again with a large buffer.  This works better
28492         on Solaris, since its getcwd succeeds even if the path to the root
28493         is inaccessible, and this is helpful in common cases such as .zfs
28494         hidden directories.  Problem reported by J Chapman Flack in
28495         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28496         Use system getcwd if it's declared, not merely if it's partly
28497         working; use the partly-working test only to avoid needless effort
28498         if the system getcwd fails.
28499         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28500         comment that was already obsolete and is now even more obsolete.
28501         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28502         now might call strdup.
28503
28504 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28505
28506         pthread: Add enough so that coreutils/src/sort.c compiles.
28507         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28508         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28509         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28510         Include <sys/types.h>, in case it defines pthread_t.
28511         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28512         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28513         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28514         (pthread_rwlockattr_t, pthread_spinlock_t):
28515         New typedefs, if HAVE_PTHREAD_T is not defined.
28516         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28517         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28518         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28519         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28520         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28521         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28522         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28523         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28524         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28525         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28526         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28527         New macros.
28528         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28529         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28530         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28531         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28532         (pthread_spin_unlock): New dummy functions.
28533         (pthread_create): Return EAGAIN; don't set errno.
28534         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28535         require AC_C_INLINE.
28536         * modules/pthread (Depends-on): Add sched, time.
28537         (pthread.h): Use AM_V_GEN.
28538
28539 2010-07-13  Bruno Haible  <bruno@clisp.org>
28540
28541         striconveh: Don't malloc memory if the result buffer is sufficient.
28542         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28543         buffer if its size is sufficient.
28544         Reported by Ludovic Courtès <ludo@gnu.org>.
28545
28546 2010-07-13  Bruno Haible  <bruno@clisp.org>
28547
28548         strtod: Add safety check.
28549         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28550
28551 2010-07-12  Bruno Haible  <bruno@clisp.org>
28552
28553         Unify tests that set gl_cv_func_ldexpl_no_libm.
28554         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28555         gl_FUNC_LDEXPL.
28556         (gl_FUNC_LDEXPL): Invoke it.
28557         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28558
28559 2010-07-12  Bruno Haible  <bruno@clisp.org>
28560
28561         Unify tests that set gl_cv_func_ldexp_no_libm.
28562         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28563         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28564         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28565         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28566         * modules/strtod (Files): Add m4/ldexp.m4.
28567
28568 2010-07-12  Bruno Haible  <bruno@clisp.org>
28569
28570         Unify tests that set gl_cv_func_frexpl_no_libm.
28571         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28572         gl_FUNC_FREXPL_NO_LIBM.
28573         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28574         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28575
28576 2010-07-12  Bruno Haible  <bruno@clisp.org>
28577
28578         Unify tests that set gl_cv_func_frexp_no_libm.
28579         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28580         gl_FUNC_FREXP_NO_LIBM.
28581         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28582         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28583
28584 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28585
28586         memcoll: clarify sizes versus lengths, document better, and tweak perf
28587         * lib/memcoll.c (strcoll_loop, memcoll0):
28588         Improve quality of descriptive comments.  Name variables
28589         consistently as to whether they are lengths (which do not include
28590         terminating null) versus sizes (which do).
28591         * lib/xmemcoll.c (xmemcoll0): Likewise.
28592         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28593         returned when s1size == 0; this is easier to compile and saves
28594         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28595
28596 2010-07-12  Bruno Haible  <bruno@clisp.org>
28597
28598         Tests for module '_Exit'.
28599         * modules/_Exit-tests: New file.
28600         * tests/test-_Exit.sh: New file.
28601         * tests/test-_Exit.c: New file.
28602
28603         New module '_Exit'.
28604         * lib/stdlib.in.h (__attribute__): New macro.
28605         (_Exit): New declaration.
28606         * lib/_Exit.c: New file.
28607         * m4/_Exit.m4: New file.
28608         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28609         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28610         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28611         * modules/_Exit: New file.
28612         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28613         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28614
28615 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28616
28617         strtod: make it more-accurate typically, and don't require libm
28618         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28619         Include limits.h.  Don't include string.h.
28620         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28621         (locale_isspace): New function, so that no casts are needed to
28622         check whether *s is a space.
28623         (ldexp): Provide an unused dummy if not available.
28624         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28625         (strtod): Use them.  This implementation prefers to use the
28626         underlying strtod if available, falling back on our own code
28627         only to fix known bugs.  This is more likely to produce an
28628         accurate result.  Also, it avoids the use of libm functions.
28629         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28630         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28631         was absent, but it caused a test failure with coreutils.
28632         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28633         with libm.
28634         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28635         * modules/strtod-tests (Makefile.am): Likewise.
28636
28637 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28638             Bruno Haible  <bruno@clisp.org>
28639
28640         unistr/u8-strchr: Optimize ASCII argument case.
28641         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28642
28643 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28644
28645         (x)memcoll: minor tweaks
28646         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28647         is after the type that it qualifies.
28648         (memcoll0): Likewise.
28649         * lib/memcoll.h (memcoll0): Likewise.
28650         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28651         * lib/xmemcoll.h (xmemcoll0): Likewise.
28652         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28653         differs from memcoll in that the NUL byte is part of the argument.
28654         Omit the abort-checks, as performance is a real issue here.  Plus,
28655         the checks were wrong anyway (an off-by-one error).  Omit local
28656         variable 'diff', as it's a bit clearer that way.
28657         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28658         no longer needed.
28659
28660 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28661
28662         (x)memcoll: speedup when input is known to be NUL delimited
28663         * lib/memcoll.c: Include stdlib.
28664         (memcoll0): New function.
28665         (strcoll_loop): New function, refactored for use in both memcoll
28666         and memcoll0.
28667         * lib/memcoll.h (memcoll0): Add prototype.
28668         * lib/xmemcoll.c (xmemcoll0): New function.
28669         (collate_error): New function, refactored for use in both xmemcoll
28670         and xmemcoll0.
28671         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28672         * m4/memcoll.m4: add inline invocation.
28673
28674 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28675
28676         * build-aux/bootstrap: Remove any local translations
28677         from the translation project synchronization directory,
28678         so that local only translations are not distributed.
28679
28680 2010-07-04  Bruno Haible  <bruno@clisp.org>
28681
28682         fsusage: Clarify which code applies to which platforms.
28683         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28684         platform.
28685         * lib/fsusage.c (get_fs_usage): Likewise.
28686
28687 2010-07-04  Bruno Haible  <bruno@clisp.org>
28688
28689         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28690         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28691         Reported by Martin Lambers <marlam@marlam.de>.
28692
28693 2010-07-04  Jim Meyering  <meyering@redhat.com>
28694
28695         hash: once again explicitly disallow insertion of NULL
28696         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28697         inserting a NULL pointer cannot work with these functions.
28698         Add a comment with details.
28699         This reverts part of the 2010-07-01 commit, 5bef1a35
28700         "hash: extend module to deal with non-pointer keys".
28701
28702 2010-07-01  Bruno Haible  <bruno@clisp.org>
28703
28704         stdbool: Update doc.
28705         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28706         Info from Christian Weisgerber <naddy@mips.inka.de>.
28707
28708 2010-07-01  Jim Meyering  <meyering@redhat.com>
28709
28710         hash: extend module to deal with non-pointer keys
28711         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28712         but that allows insertion of non-pointer entries.
28713         Do not disallow an ENTRY value of NULL.
28714         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28715         * lib/hash.h (hash_insert0): Declare.
28716
28717 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28718
28719         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28720         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28721         not present (i.e. with autoconf 2.59 and when using gettextize, not
28722         gnulib), require AC_GNU_SOURCE instead.
28723
28724 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28725
28726         idpriv-drop: Fix tests.
28727         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28728         not to the test-idpriv-droptemp program.
28729
28730 2010-06-29  Bruno Haible  <bruno@clisp.org>
28731
28732         string: Fix syntax error with g++ 2.96.
28733         * lib/string.in.h (__pure__): Remove definition.
28734         (_GL_ATTRIBUTE_PURE): New macro.
28735         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28736         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28737         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28738
28739 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28740
28741         unitypes: Fix bug introduced on 2010-05-18.
28742         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28743
28744 2010-06-22  Eric Blake  <eblake@redhat.com>
28745
28746         memmem: slight optimization
28747         * lib/str-two-way.h (critical_factorization): Update comments.
28748         Reduce work during factorization phase.
28749         Reported by Carlos Bueno <carlos@bueno.org>.
28750
28751 2010-06-21  Bruno Haible  <bruno@clisp.org>
28752
28753         Fix HAVE_CALLOC_POSIX misnomer.
28754         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28755         !HAVE_CALLOC_POSIX.
28756         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28757         HAVE_CALLOC_POSIX.
28758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28759         instead of HAVE_CALLOC_POSIX.
28760         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28761         HAVE_CALLOC_POSIX.
28762
28763         Use modern idiom for calloc() replacement.
28764         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28765         AC_FUNC_CALLOC.
28766         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28767         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28768         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28769         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28770         (gl_REPLACE_CALLOC): New macro.
28771
28772 2010-06-21  Bruno Haible  <bruno@clisp.org>
28773
28774         Fix HAVE_REALLOC_POSIX misnomer.
28775         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28776         !HAVE_REALLOC_POSIX.
28777         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28778         HAVE_REALLOC_POSIX.
28779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28780         instead of HAVE_REALLOC_POSIX.
28781         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28782         HAVE_REALLOC_POSIX.
28783
28784         Use modern idiom for realloc() replacement.
28785         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28786         AC_FUNC_REALLOC.
28787         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28788         Autoconf's AC_FUNC_REALLOC.
28789         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28790         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28791         (gl_REPLACE_REALLOC): New macro.
28792         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28793
28794 2010-06-21  Bruno Haible  <bruno@clisp.org>
28795
28796         Fix HAVE_MALLOC_POSIX misnomer.
28797         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28798         !HAVE_MALLOC_POSIX.
28799         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28800         HAVE_MALLOC_POSIX.
28801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28802         instead of HAVE_MALLOC_POSIX.
28803         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28804         HAVE_MALLOC_POSIX.
28805
28806         Use modern idiom for malloc() replacement.
28807         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28808         AC_FUNC_MALLOC.
28809         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28810         Autoconf's AC_FUNC_MALLOC.
28811         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28812         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28813         (gl_REPLACE_MALLOC): New macro.
28814         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28815
28816 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28817
28818         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28819         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28820         This macro takes 3 arguments, not 4.
28821
28822 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28823
28824         ipv6: fix detection under mingw
28825         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28826         in6_addr.
28827
28828 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28829
28830         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28831         that strtod() works when cross-compiling to a glibc version known
28832         to work.
28833
28834 2010-06-15  Bruno Haible  <bruno@clisp.org>
28835
28836         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28837
28838 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28839
28840         select: Correct timeout.
28841         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28842
28843 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28844
28845         git-version-gen: init shell var to avoid env var influence
28846         * build-aux/git-version-gen (v): Init shell var to empty.
28847
28848 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28849
28850         priv-set: Don't assume that priv.h exists merely because getppriv does.
28851         See Jan Andersen's bug report about AIX 5L in
28852         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28853         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28854         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28855         * lib/priv-set.h: Likewise.
28856         * tests/test-priv-set.c: Likewise.
28857
28858 2010-06-13  Bruno Haible  <bruno@clisp.org>
28859
28860         relocatable: Make it easier to test whether to install wrappers.
28861         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28862         RELOCATABLE_VIA_WRAPPER.
28863
28864 2010-06-13  Bruno Haible  <bruno@clisp.org>
28865
28866         gnulib-tool: Display specified modules and dependencies differently.
28867         * gnulib-tool (func_show_module_list): New function.
28868         (func_import, func_create_testdir): Invoke it.
28869         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28870
28871 2010-06-13  Bruno Haible  <bruno@clisp.org>
28872
28873         gnulib-tool: Align code of func_import and func_create_testdir.
28874         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28875         specified_modules.
28876
28877 2010-06-12  Jim Meyering  <meyering@redhat.com>
28878
28879         test-inttostr: avoid spurious failure on Solaris 9
28880         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28881         to accept "%ju".  Reported by Bruno Haible.
28882
28883 2010-06-11  Jim Meyering  <meyering@redhat.com>
28884
28885         test-sys_socket: mark variables as used more readably
28886         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28887         as "used" explicitly via (void) statement casts.  This is more
28888         readable than using them in an artificial return expression.
28889         Suggestion from Bruno Haible.
28890
28891 2010-06-11  Bruno Haible  <bruno@clisp.org>
28892
28893         Avoid some more warnings from "gcc -Wwrite-strings".
28894         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28895         to 'const char *'.
28896         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28897         * tests/test-c-strcasestr.c (main): Likewise.
28898         * tests/test-mbscasestr1.c (main): Likewise.
28899         * tests/test-mbscasestr2.c (main): Likewise.
28900         * tests/test-memmem.c (main): Likewise.
28901         * tests/test-strstr.c (main): Likewise.
28902         * tests/test-strcasestr.c (main): Likewise.
28903
28904 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28905
28906         init.sh: change framework_failure_ to fail with status 99, not 1
28907         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28908         automake's parallel-tests rule that this is an unexpected failure,
28909         even if the test is listed in XFAIL_TESTS.
28910
28911 2010-06-11  Jim Meyering  <meyering@redhat.com>
28912
28913         test-inttostr: avoid warnings about 4-6KB literal strings
28914         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28915         Include "macros.h", for its definition of ASSERT.
28916         (CK): s/assert/ASSERT/
28917         * modules/inttostr-tests (Files): Add macros.h.
28918
28919         init.sh: don't use $ME_ or skip_ before they are defined
28920         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28921         their first uses.  Also hoist their companions: warn_, fail_,
28922         framework_failure_, $stderr_fileno.  Prompted by a patch from
28923         Stefano Lattarini.
28924
28925         test-sys_socket: avoid set-but-not-used warnings from gcc
28926         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28927         avoid warning about set-but-not-used variables.
28928
28929         test-xvasprintf: avoid 'const' discard warnings
28930         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28931         "const" when assigning from literal strings.
28932         (test_xasprintf): Add "void" in function argument list to placate
28933         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28934
28935         tests: avoid compilation warnings in argmatch and exclude tests...
28936         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28937         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28938         Since it always exits, declare with the "noreturn" attribute.
28939         * tests/test-argmatch.c: Likewise.
28940
28941         tests: avoid 'const' discard warnings in mbsstr tests
28942         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28943         * tests/test-mbsstr2.c (main): Likewise.
28944
28945         test-verify: avoid warning from gcc's -Wmissing-declarations
28946         * tests/test-verify.c (function): Declare to be static.
28947
28948         test-inttostr.c: include <string.h> for use of strcmp
28949         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28950
28951         test-linkat: avoid failed assertion on "other" architectures
28952         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28953         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28954         sparc: https://bugs.launchpad.net/bugs/591968
28955
28956 2010-06-11  Jim Meyering  <meyering@redhat.com>
28957
28958         printf.m4: avoid autoconf's "Expanded Before Required" warning
28959         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28960         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28961         autoconf warning.
28962
28963 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28964
28965         Replacement header templates are now named with ".in", not "_".
28966         * doc/gnulib-intro.texi: Correct.
28967
28968 2010-06-10  Jim Meyering  <meyering@redhat.com>
28969
28970         inttostr-tests: depend on snprintf, not snprintf-posix
28971         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28972         snprintf-posix, to avoid this aclocal failure:
28973           missing file gnulib-tests/vasnprintf.c
28974           configure.ac:45: error: expected source file, required through \
28975           AC_LIBSOURCES, not found
28976
28977 2010-06-10  Jim Meyering  <meyering@redhat.com>
28978
28979         inttostr: add a new function, inttostr, and tests
28980         The namesake function was not available.  The existence of the
28981         template file, inttostr.c makes its addition nontrivial.
28982         * lib/anytostr.c: Rename from inttostr.c.
28983         (anytostr): Rename from inttostr.
28984         * lib/inttostr.c: New file.
28985         * modules/inttostr (Files): Add anytostr.c.
28986         (Makefile.am): Set lib_SOURCES instead of ...
28987         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28988         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28989         * lib/offtostr.c: Likewise.
28990         * lib/uinttostr.c: Likewise.
28991         * lib/umaxtostr.c: Likewise.
28992         * modules/inttostr-tests: New file.
28993         * tests/test-inttostr.c: New file.  Test these functions.
28994
28995 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28996             Bruno Haible  <bruno@clisp.org>
28997
28998         Add "Extending Gnulib" chapter to manual.
28999         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
29000         chapter.
29001         (Extending Gnulib): New chapter.
29002         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
29003         chapter.
29004
29005 2010-06-09  Bruno Haible  <bruno@clisp.org>
29006
29007         Avoid relocwrapper link errors due to gnulib replacement functions.
29008         * lib/areadlink.c: Use the system's malloc, realloc functions.
29009         (areadlink): Set errno to ENOMEM explicitly.
29010         * modules/areadlink (Depends-on): Remove malloc-posix.
29011         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29012
29013 2010-06-09  Bruno Haible  <bruno@clisp.org>
29014
29015         Avoid relocwrapper link errors due to gnulib replacement functions.
29016         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29017         * lib/malloca.c: Likewise.
29018         * lib/relocatable.c: Likewise.
29019         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29020         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29021         * lib/setenv.c: Use the system's malloc, realloc functions.
29022         * lib/strerror.c: Use the system's sprintf function.
29023         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29024
29025 2010-06-04  Bruno Haible  <bruno@clisp.org>
29026
29027         Prefer documented low-level autoconf macro names.
29028         * m4/lib-link.m4: Use m4_translit instead of translit.
29029         * m4/environ.m4: Likewise.
29030         * m4/mathfunc.m4: Likewise.
29031         * m4/onceonly.m4: Likewise.
29032         * m4/stdint.m4: Likewise.
29033         Suggested by Eric Blake.
29034
29035 2010-06-04  Martin Lambers  <marlam@marlam.de>
29036             Bruno Haible  <bruno@clisp.org>
29037
29038         havelib: Allow library names with '+' characters.
29039         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29040         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29041
29042 2010-06-09  Bruno Haible  <bruno@clisp.org>
29043
29044         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29045         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29046         realloc failed.
29047
29048 2010-06-08  Peter Simons  <simons@cryp.to>
29049
29050         maint.mk: make the news-check rule more configurable
29051         * top/maint.mk (news-check-lines-spec): New variable.
29052         (news-check): Use "sed -n 1,10p" in place of "head".
29053
29054 2010-06-07  Jim Meyering  <meyering@redhat.com>
29055
29056         do-release-commit-and-tag: fix typo in --help
29057         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29058
29059         regex: avoid new dead-code warning with gcc-4.6.0
29060         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29061         if-block containing a while-loop.  It's been unused for at least
29062         5 years.
29063
29064 2010-06-05  Bruno Haible  <bruno@clisp.org>
29065
29066         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29067         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29068
29069 2010-06-04  Bruno Haible  <bruno@clisp.org>
29070
29071         Update to GNU gettext 0.18.1.
29072         * modules/gettext (configure.ac): Require gettext infrastructure from
29073         version 0.18.1.
29074
29075 2010-06-03  Bruno Haible  <bruno@clisp.org>
29076
29077         Don't use AC_LIBOBJ with file names in subdirectories.
29078         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29079         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29080         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29081         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29082         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29083         gl_LIBUNISTRING_LIBSOURCE.
29084         (Makefile.am): Augment lib_SOURCES here, conditionally.
29085         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29086
29087 2010-06-03  Bruno Haible  <bruno@clisp.org>
29088
29089         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29090         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29091         expansion does not end with a newline.
29092         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29093         unnecessary newline.
29094
29095 2010-06-03  Bruno Haible  <bruno@clisp.org>
29096
29097         Reduce dependencies.
29098         * tests/test-quotearg.h: New file, extracted from
29099         tests/test-quotearg.c.
29100         * tests/test-quotearg-simple.c: New file, extracted from
29101         tests/test-quotearg.c.
29102         * tests/test-quotearg.c: Don't include <ctype.h>.
29103         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29104         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29105         use_quote_double_quotes, use_quotearg_colon): Moved to
29106         tests/test-quotearg.h.
29107         (results_g, flag_results, custom_quotes, custom_results): Moved
29108         to tests/test-quotearg-simple.c.
29109         (main): Moved the part that does not depend on gettext to
29110         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29111         performed.
29112         * modules/quotearg-simple: New file.
29113         * modules/quotearg-simple-tests: New file.
29114         * modules/quotearg (Depends-on): Add quotearg-simple.
29115         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29116         (Files): Add tests/test-quotearg.h.
29117         Reported by Paolo Bonzini.
29118
29119 2010-06-03  Bruno Haible  <bruno@clisp.org>
29120
29121         Reduce dependencies.
29122         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29123
29124 2010-06-03  Bruno Haible  <bruno@clisp.org>
29125
29126         time: Undefine more broken macros.
29127         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29128         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29129         Reported by Eric Blake.
29130
29131 2010-06-03  Bruno Haible  <bruno@clisp.org>
29132
29133         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29134         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29135         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29136         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29137         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29138         Reported by Ludovic Courtès <ludo@gnu.org>.
29139
29140 2010-06-02  Eric Blake  <eblake@redhat.com>
29141
29142         time: work with mingw + pthreads-win32 library
29143         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29144         if timespec is defined only in pthread.h.
29145         * modules/time (Makefile.am): Substitute it.
29146         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29147         <pthread.h>, when needed.
29148         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29149         from the library.
29150
29151 2010-05-31  Bruno Haible  <bruno@clisp.org>
29152
29153         Avoid expanding two macros in the wrong order.
29154         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29155         gl_LIBUNISTRING if it is defined.
29156         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29157         autoconf >= 2.64.
29158         Reported by Ludovic Courtès <ludo@gnu.org>.
29159
29160 2010-05-27  Jim Meyering  <meyering@redhat.com>
29161
29162         maint.mk: also prohibit "#undef" of always-defined symbols
29163         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29164         Allow more than one space before the symbol name.
29165         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29166         the regexp uses alternation.
29167
29168 2010-05-26  Eric Blake  <eblake@redhat.com>
29169
29170         maint.mk: avoid echo -e
29171         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29172         Convert all uses of echo -* to printf.
29173         Reported by Matthias Bolte.
29174
29175 2010-05-25  Bruno Haible  <bruno@clisp.org>
29176
29177         Update to GNU gettext 0.18, part 2.
29178         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29179         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29180
29181 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29182
29183         Add missing include in test-pwrite.c.
29184         * tests/test-pwrite.c: Include string.h, for strcmp.
29185
29186 2010-05-24  Bruno Haible  <bruno@clisp.org>
29187
29188         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29189
29190 2010-05-24  Bruno Haible  <bruno@clisp.org>
29191
29192         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29193         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29194         iconveh_error argument.
29195         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29196         U_STRCONV_TO_LOCALE.
29197         * lib/unistr/u16-strcoll.c: Likewise.
29198         * lib/unistr/u32-strcoll.c: Likewise.
29199         * modules/unistr/u8-strcoll (Depends-on): Add
29200         uniconv/u8-strconv-to-enc, localcharset. Remove
29201         uniconv/u8-strconv-to-locale.
29202         (configure.ac): Bump version number.
29203         * modules/unistr/u16-strcoll (Depends-on): Add
29204         uniconv/u16-strconv-to-enc, localcharset. Remove
29205         uniconv/u16-strconv-to-locale.
29206         (configure.ac): Bump version number.
29207         * modules/unistr/u32-strcoll (Depends-on): Add
29208         uniconv/u32-strconv-to-enc, localcharset. Remove
29209         uniconv/u32-strconv-to-locale.
29210         (configure.ac): Bump version number.
29211
29212 2010-05-24  Bruno Haible  <bruno@clisp.org>
29213
29214         Avoid a test failure on NetBSD 5.0.
29215         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29216         an iconv() bug.
29217
29218 2010-05-24  Bruno Haible  <bruno@clisp.org>
29219
29220         Adjust #include directive style.
29221         * modules/regex (Includes): Recommend to write <regex.h>.
29222
29223 2010-05-24  Bruno Haible  <bruno@clisp.org>
29224
29225         regex: Don't require alloca.
29226         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29227         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29228         only inside if (0).
29229
29230 2010-05-23  Jim Meyering  <meyering@redhat.com>
29231
29232         test-renameat.c: include <sys/stat.h>
29233         * tests/test-renameat.c: Include <sys/stat.h>; required for
29234         definition of S_IS* macros.
29235
29236 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29237
29238         Update maintainer documentation for 'relocatable-prog' module.
29239         * doc/relocatable-maint.texi: Update.
29240         Comments by Bruno Haible.
29241
29242 2010-05-23  Bruno Haible  <bruno@clisp.org>
29243
29244         git-merge-changelog: Enable --split-merged-entry by default.
29245         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29246         (usage): Don't mention this option any more.
29247         Reported by Ralf Wildenhues.
29248
29249 2010-05-23  Jim Meyering  <meyering@redhat.com>
29250
29251         test-pwrite: do not leave behind a test file named "out"
29252         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29253         The trivial-looking use of init.sh is really necessary.
29254         It ensures that the temporary file, "out", is created in
29255         a temporary directory, and removed upon termination.
29256         * tests/test-pwrite.sh: Re-add file.
29257         * modules/pwrite-tests: Reference it.
29258
29259 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29260
29261         Fix output redirection buglet in init.sh.
29262         * tests/init.sh: Fix redirection of stderr.
29263
29264 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29265
29266         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29267
29268 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29269
29270         * modules/valgrind-tests: New file.
29271         * m4/valgrind-tests.m4: New file.
29272         * doc/valgrind-tests.texi: New file.
29273         * doc/gnulib.texi (Running self-tests under valgrind): New
29274         section.
29275
29276 2010-05-19  Bruno Haible  <bruno@clisp.org>
29277
29278         Clean up dead code in recent commit.
29279         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29280         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29281         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29282         Suggested by Paolo Bonzini.
29283
29284 2010-05-19  Bruno Haible  <bruno@clisp.org>
29285
29286         Avoid valgrind error reports from libunistring.
29287         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29288         * modules/libunistring (Files): Add it.
29289         * modules/libunistring-optional (Files): Likewise.
29290
29291 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29292             Bruno Haible  <bruno@clisp.org>
29293
29294         New module 'libunistring-optional'.
29295         * modules/libunistring-optional: New file.
29296         * m4/libunistring-base.m4: New file.
29297         * m4/libunistring-optional.m4: New file.
29298         * lib/unicase.in.h: Renamed from lib/unicase.h.
29299         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29300         * lib/unictype.in.h: Renamed from lib/unictype.h.
29301         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29302         * lib/uniname.in.h: Renamed from lib/uniname.h.
29303         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29304         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29305         * lib/unistr.in.h: Renamed from lib/unistr.h.
29306         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29307         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29308         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29309         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29310         gl_LIBUNISTRING. If the library was found, determine the installed
29311         version and set LIBUNISTRING_VERSION.
29312         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29313         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29314         handle a configuration option --with-included-libunistring.
29315         * modules/libunistring (Files): Add m4/absolute-header.m4.
29316         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29317         Add m4/libunistring-base.m4.
29318         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29319         (Makefile.am): Build unicase.h from unicase.in.h.
29320         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29321         Add m4/libunistring-base.m4.
29322         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29323         (Makefile.am): Build uniconv.h from uniconv.in.h.
29324         * modules/unictype/base (Files): Use unictype.in.h instead of
29325         unictype.h. Add m4/libunistring-base.m4.
29326         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29327         (Makefile.am): Build unictype.h from unictype.in.h.
29328         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29329         Add m4/libunistring-base.m4.
29330         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29331         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29332         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29333         Add m4/libunistring-base.m4.
29334         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29335         (Makefile.am): Build uniname.h from uniname.in.h.
29336         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29337         Add m4/libunistring-base.m4.
29338         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29339         (Makefile.am): Build uninorm.h from uninorm.in.h.
29340         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29341         unistdio.h. Add m4/libunistring-base.m4.
29342         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29343         (Makefile.am): Build unistdio.h from unistdio.in.h.
29344         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29345         Add m4/libunistring-base.m4.
29346         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29347         (Makefile.am): Build unistr.h from unistr.in.h.
29348         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29349         Add m4/libunistring-base.m4.
29350         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29351         (Makefile.am): Build unitypes.h from unitypes.in.h.
29352         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29353         Add m4/libunistring-base.m4.
29354         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29355         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29356         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29357         uniwidth.h. Add m4/libunistring-base.m4.
29358         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29359         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29360         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29361         instead of augmenting lib_SOURCES.
29362         * modules/unicase/empty-suffix-context: Likewise.
29363         * modules/unicase/locale-language: Likewise.
29364         * modules/unicase/tolower: Likewise.
29365         * modules/unicase/totitle: Likewise.
29366         * modules/unicase/toupper: Likewise.
29367         * modules/unicase/u8-casecmp: Likewise.
29368         * modules/unicase/u8-casecoll: Likewise.
29369         * modules/unicase/u8-casefold: Likewise.
29370         * modules/unicase/u8-casexfrm: Likewise.
29371         * modules/unicase/u8-ct-casefold: Likewise.
29372         * modules/unicase/u8-ct-tolower: Likewise.
29373         * modules/unicase/u8-ct-totitle: Likewise.
29374         * modules/unicase/u8-ct-toupper: Likewise.
29375         * modules/unicase/u8-is-cased: Likewise.
29376         * modules/unicase/u8-is-casefolded: Likewise.
29377         * modules/unicase/u8-is-lowercase: Likewise.
29378         * modules/unicase/u8-is-titlecase: Likewise.
29379         * modules/unicase/u8-is-uppercase: Likewise.
29380         * modules/unicase/u8-prefix-context: Likewise.
29381         * modules/unicase/u8-suffix-context: Likewise.
29382         * modules/unicase/u8-tolower: Likewise.
29383         * modules/unicase/u8-totitle: Likewise.
29384         * modules/unicase/u8-toupper: Likewise.
29385         * modules/unicase/u16-casecmp: Likewise.
29386         * modules/unicase/u16-casecoll: Likewise.
29387         * modules/unicase/u16-casefold: Likewise.
29388         * modules/unicase/u16-casexfrm: Likewise.
29389         * modules/unicase/u16-ct-casefold: Likewise.
29390         * modules/unicase/u16-ct-tolower: Likewise.
29391         * modules/unicase/u16-ct-totitle: Likewise.
29392         * modules/unicase/u16-ct-toupper: Likewise.
29393         * modules/unicase/u16-is-cased: Likewise.
29394         * modules/unicase/u16-is-casefolded: Likewise.
29395         * modules/unicase/u16-is-lowercase: Likewise.
29396         * modules/unicase/u16-is-titlecase: Likewise.
29397         * modules/unicase/u16-is-uppercase: Likewise.
29398         * modules/unicase/u16-prefix-context: Likewise.
29399         * modules/unicase/u16-suffix-context: Likewise.
29400         * modules/unicase/u16-tolower: Likewise.
29401         * modules/unicase/u16-totitle: Likewise.
29402         * modules/unicase/u16-toupper: Likewise.
29403         * modules/unicase/u32-casecmp: Likewise.
29404         * modules/unicase/u32-casecoll: Likewise.
29405         * modules/unicase/u32-casefold: Likewise.
29406         * modules/unicase/u32-casexfrm: Likewise.
29407         * modules/unicase/u32-ct-casefold: Likewise.
29408         * modules/unicase/u32-ct-tolower: Likewise.
29409         * modules/unicase/u32-ct-totitle: Likewise.
29410         * modules/unicase/u32-ct-toupper: Likewise.
29411         * modules/unicase/u32-is-cased: Likewise.
29412         * modules/unicase/u32-is-casefolded: Likewise.
29413         * modules/unicase/u32-is-lowercase: Likewise.
29414         * modules/unicase/u32-is-titlecase: Likewise.
29415         * modules/unicase/u32-is-uppercase: Likewise.
29416         * modules/unicase/u32-prefix-context: Likewise.
29417         * modules/unicase/u32-suffix-context: Likewise.
29418         * modules/unicase/u32-tolower: Likewise.
29419         * modules/unicase/u32-totitle: Likewise.
29420         * modules/unicase/u32-toupper: Likewise.
29421         * modules/unicase/ulc-casecmp: Likewise.
29422         * modules/unicase/ulc-casecoll: Likewise.
29423         * modules/unicase/ulc-casexfrm: Likewise.
29424         * modules/uniconv/u8-conv-from-enc: Likewise.
29425         * modules/uniconv/u8-conv-to-enc: Likewise.
29426         * modules/uniconv/u8-strconv-from-enc: Likewise.
29427         * modules/uniconv/u8-strconv-from-locale: Likewise.
29428         * modules/uniconv/u8-strconv-to-enc: Likewise.
29429         * modules/uniconv/u8-strconv-to-locale: Likewise.
29430         * modules/uniconv/u16-conv-from-enc: Likewise.
29431         * modules/uniconv/u16-conv-to-enc: Likewise.
29432         * modules/uniconv/u16-strconv-from-enc: Likewise.
29433         * modules/uniconv/u16-strconv-from-locale: Likewise.
29434         * modules/uniconv/u16-strconv-to-enc: Likewise.
29435         * modules/uniconv/u16-strconv-to-locale: Likewise.
29436         * modules/uniconv/u32-conv-from-enc: Likewise.
29437         * modules/uniconv/u32-conv-to-enc: Likewise.
29438         * modules/uniconv/u32-strconv-from-enc: Likewise.
29439         * modules/uniconv/u32-strconv-from-locale: Likewise.
29440         * modules/uniconv/u32-strconv-to-enc: Likewise.
29441         * modules/uniconv/u32-strconv-to-locale: Likewise.
29442         * modules/unictype/bidicategory-byname: Likewise.
29443         * modules/unictype/bidicategory-name: Likewise.
29444         * modules/unictype/bidicategory-of: Likewise.
29445         * modules/unictype/bidicategory-test: Likewise.
29446         * modules/unictype/block-list: Likewise.
29447         * modules/unictype/block-test: Likewise.
29448         * modules/unictype/category-C: Likewise.
29449         * modules/unictype/category-Cc: Likewise.
29450         * modules/unictype/category-Cf: Likewise.
29451         * modules/unictype/category-Cn: Likewise.
29452         * modules/unictype/category-Co: Likewise.
29453         * modules/unictype/category-Cs: Likewise.
29454         * modules/unictype/category-L: Likewise.
29455         * modules/unictype/category-Ll: Likewise.
29456         * modules/unictype/category-Lm: Likewise.
29457         * modules/unictype/category-Lo: Likewise.
29458         * modules/unictype/category-Lt: Likewise.
29459         * modules/unictype/category-Lu: Likewise.
29460         * modules/unictype/category-M: Likewise.
29461         * modules/unictype/category-Mc: Likewise.
29462         * modules/unictype/category-Me: Likewise.
29463         * modules/unictype/category-Mn: Likewise.
29464         * modules/unictype/category-N: Likewise.
29465         * modules/unictype/category-Nd: Likewise.
29466         * modules/unictype/category-Nl: Likewise.
29467         * modules/unictype/category-No: Likewise.
29468         * modules/unictype/category-P: Likewise.
29469         * modules/unictype/category-Pc: Likewise.
29470         * modules/unictype/category-Pd: Likewise.
29471         * modules/unictype/category-Pe: Likewise.
29472         * modules/unictype/category-Pf: Likewise.
29473         * modules/unictype/category-Pi: Likewise.
29474         * modules/unictype/category-Po: Likewise.
29475         * modules/unictype/category-Ps: Likewise.
29476         * modules/unictype/category-S: Likewise.
29477         * modules/unictype/category-Sc: Likewise.
29478         * modules/unictype/category-Sk: Likewise.
29479         * modules/unictype/category-Sm: Likewise.
29480         * modules/unictype/category-So: Likewise.
29481         * modules/unictype/category-Z: Likewise.
29482         * modules/unictype/category-Zl: Likewise.
29483         * modules/unictype/category-Zp: Likewise.
29484         * modules/unictype/category-Zs: Likewise.
29485         * modules/unictype/category-and: Likewise.
29486         * modules/unictype/category-and-not: Likewise.
29487         * modules/unictype/category-byname: Likewise.
29488         * modules/unictype/category-name: Likewise.
29489         * modules/unictype/category-none: Likewise.
29490         * modules/unictype/category-of: Likewise.
29491         * modules/unictype/category-or: Likewise.
29492         * modules/unictype/category-test: Likewise.
29493         * modules/unictype/combining-class: Likewise.
29494         * modules/unictype/ctype-alnum: Likewise.
29495         * modules/unictype/ctype-alpha: Likewise.
29496         * modules/unictype/ctype-blank: Likewise.
29497         * modules/unictype/ctype-cntrl: Likewise.
29498         * modules/unictype/ctype-digit: Likewise.
29499         * modules/unictype/ctype-graph: Likewise.
29500         * modules/unictype/ctype-lower: Likewise.
29501         * modules/unictype/ctype-print: Likewise.
29502         * modules/unictype/ctype-punct: Likewise.
29503         * modules/unictype/ctype-space: Likewise.
29504         * modules/unictype/ctype-upper: Likewise.
29505         * modules/unictype/ctype-xdigit: Likewise.
29506         * modules/unictype/decimal-digit: Likewise.
29507         * modules/unictype/digit: Likewise.
29508         * modules/unictype/mirror: Likewise.
29509         * modules/unictype/numeric: Likewise.
29510         * modules/unictype/property-alphabetic: Likewise.
29511         * modules/unictype/property-ascii-hex-digit: Likewise.
29512         * modules/unictype/property-bidi-arabic-digit: Likewise.
29513         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29514         * modules/unictype/property-bidi-block-separator: Likewise.
29515         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29516         * modules/unictype/property-bidi-common-separator: Likewise.
29517         * modules/unictype/property-bidi-control: Likewise.
29518         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29519         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29520         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29521         * modules/unictype/property-bidi-european-digit: Likewise.
29522         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29523         * modules/unictype/property-bidi-left-to-right: Likewise.
29524         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29525         * modules/unictype/property-bidi-other-neutral: Likewise.
29526         * modules/unictype/property-bidi-pdf: Likewise.
29527         * modules/unictype/property-bidi-segment-separator: Likewise.
29528         * modules/unictype/property-bidi-whitespace: Likewise.
29529         * modules/unictype/property-byname: Likewise.
29530         * modules/unictype/property-combining: Likewise.
29531         * modules/unictype/property-composite: Likewise.
29532         * modules/unictype/property-currency-symbol: Likewise.
29533         * modules/unictype/property-dash: Likewise.
29534         * modules/unictype/property-decimal-digit: Likewise.
29535         * modules/unictype/property-default-ignorable-code-point: Likewise.
29536         * modules/unictype/property-deprecated: Likewise.
29537         * modules/unictype/property-diacritic: Likewise.
29538         * modules/unictype/property-extender: Likewise.
29539         * modules/unictype/property-format-control: Likewise.
29540         * modules/unictype/property-grapheme-base: Likewise.
29541         * modules/unictype/property-grapheme-extend: Likewise.
29542         * modules/unictype/property-grapheme-link: Likewise.
29543         * modules/unictype/property-hex-digit: Likewise.
29544         * modules/unictype/property-hyphen: Likewise.
29545         * modules/unictype/property-id-continue: Likewise.
29546         * modules/unictype/property-id-start: Likewise.
29547         * modules/unictype/property-ideographic: Likewise.
29548         * modules/unictype/property-ids-binary-operator: Likewise.
29549         * modules/unictype/property-ids-trinary-operator: Likewise.
29550         * modules/unictype/property-ignorable-control: Likewise.
29551         * modules/unictype/property-iso-control: Likewise.
29552         * modules/unictype/property-join-control: Likewise.
29553         * modules/unictype/property-left-of-pair: Likewise.
29554         * modules/unictype/property-line-separator: Likewise.
29555         * modules/unictype/property-logical-order-exception: Likewise.
29556         * modules/unictype/property-lowercase: Likewise.
29557         * modules/unictype/property-math: Likewise.
29558         * modules/unictype/property-non-break: Likewise.
29559         * modules/unictype/property-not-a-character: Likewise.
29560         * modules/unictype/property-numeric: Likewise.
29561         * modules/unictype/property-other-alphabetic: Likewise.
29562         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29563         * modules/unictype/property-other-grapheme-extend: Likewise.
29564         * modules/unictype/property-other-id-continue: Likewise.
29565         * modules/unictype/property-other-id-start: Likewise.
29566         * modules/unictype/property-other-lowercase: Likewise.
29567         * modules/unictype/property-other-math: Likewise.
29568         * modules/unictype/property-other-uppercase: Likewise.
29569         * modules/unictype/property-paired-punctuation: Likewise.
29570         * modules/unictype/property-paragraph-separator: Likewise.
29571         * modules/unictype/property-pattern-syntax: Likewise.
29572         * modules/unictype/property-pattern-white-space: Likewise.
29573         * modules/unictype/property-private-use: Likewise.
29574         * modules/unictype/property-punctuation: Likewise.
29575         * modules/unictype/property-quotation-mark: Likewise.
29576         * modules/unictype/property-radical: Likewise.
29577         * modules/unictype/property-sentence-terminal: Likewise.
29578         * modules/unictype/property-soft-dotted: Likewise.
29579         * modules/unictype/property-space: Likewise.
29580         * modules/unictype/property-terminal-punctuation: Likewise.
29581         * modules/unictype/property-test: Likewise.
29582         * modules/unictype/property-titlecase: Likewise.
29583         * modules/unictype/property-unassigned-code-value: Likewise.
29584         * modules/unictype/property-unified-ideograph: Likewise.
29585         * modules/unictype/property-uppercase: Likewise.
29586         * modules/unictype/property-variation-selector: Likewise.
29587         * modules/unictype/property-white-space: Likewise.
29588         * modules/unictype/property-xid-continue: Likewise.
29589         * modules/unictype/property-xid-start: Likewise.
29590         * modules/unictype/property-zero-width: Likewise.
29591         * modules/unictype/scripts: Likewise.
29592         * modules/unictype/syntax-c-ident: Likewise.
29593         * modules/unictype/syntax-c-whitespace: Likewise.
29594         * modules/unictype/syntax-java-ident: Likewise.
29595         * modules/unictype/syntax-java-whitespace: Likewise.
29596         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29597         * modules/unilbrk/u8-width-linebreaks: Likewise.
29598         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29599         * modules/unilbrk/u16-width-linebreaks: Likewise.
29600         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29601         * modules/unilbrk/u32-width-linebreaks: Likewise.
29602         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29603         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29604         * modules/uniname/uniname: Likewise.
29605         * modules/uninorm/canonical-decomposition: Likewise.
29606         * modules/uninorm/composition: Likewise.
29607         * modules/uninorm/decomposing-form: Likewise.
29608         * modules/uninorm/decomposition: Likewise.
29609         * modules/uninorm/filter: Likewise.
29610         * modules/uninorm/nfc: Likewise.
29611         * modules/uninorm/nfd: Likewise.
29612         * modules/uninorm/nfkc: Likewise.
29613         * modules/uninorm/nfkd: Likewise.
29614         * modules/uninorm/u8-normalize: Likewise.
29615         * modules/uninorm/u8-normcmp: Likewise.
29616         * modules/uninorm/u8-normcoll: Likewise.
29617         * modules/uninorm/u8-normxfrm: Likewise.
29618         * modules/uninorm/u16-normalize: Likewise.
29619         * modules/uninorm/u16-normcmp: Likewise.
29620         * modules/uninorm/u16-normcoll: Likewise.
29621         * modules/uninorm/u16-normxfrm: Likewise.
29622         * modules/uninorm/u32-normalize: Likewise.
29623         * modules/uninorm/u32-normcmp: Likewise.
29624         * modules/uninorm/u32-normcoll: Likewise.
29625         * modules/uninorm/u32-normxfrm: Likewise.
29626         * modules/unistdio/u8-asnprintf: Likewise.
29627         * modules/unistdio/u8-asprintf: Likewise.
29628         * modules/unistdio/u8-snprintf: Likewise.
29629         * modules/unistdio/u8-sprintf: Likewise.
29630         * modules/unistdio/u8-u8-asnprintf: Likewise.
29631         * modules/unistdio/u8-u8-asprintf: Likewise.
29632         * modules/unistdio/u8-u8-snprintf: Likewise.
29633         * modules/unistdio/u8-u8-sprintf: Likewise.
29634         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29635         * modules/unistdio/u8-u8-vasprintf: Likewise.
29636         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29637         * modules/unistdio/u8-u8-vsprintf: Likewise.
29638         * modules/unistdio/u8-vasnprintf: Likewise.
29639         * modules/unistdio/u8-vasprintf: Likewise.
29640         * modules/unistdio/u8-vsnprintf: Likewise.
29641         * modules/unistdio/u8-vsprintf: Likewise.
29642         * modules/unistdio/u16-asnprintf: Likewise.
29643         * modules/unistdio/u16-asprintf: Likewise.
29644         * modules/unistdio/u16-snprintf: Likewise.
29645         * modules/unistdio/u16-sprintf: Likewise.
29646         * modules/unistdio/u16-u16-asnprintf: Likewise.
29647         * modules/unistdio/u16-u16-asprintf: Likewise.
29648         * modules/unistdio/u16-u16-snprintf: Likewise.
29649         * modules/unistdio/u16-u16-sprintf: Likewise.
29650         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29651         * modules/unistdio/u16-u16-vasprintf: Likewise.
29652         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29653         * modules/unistdio/u16-u16-vsprintf: Likewise.
29654         * modules/unistdio/u16-vasnprintf: Likewise.
29655         * modules/unistdio/u16-vasprintf: Likewise.
29656         * modules/unistdio/u16-vsnprintf: Likewise.
29657         * modules/unistdio/u16-vsprintf: Likewise.
29658         * modules/unistdio/u32-asnprintf: Likewise.
29659         * modules/unistdio/u32-asprintf: Likewise.
29660         * modules/unistdio/u32-snprintf: Likewise.
29661         * modules/unistdio/u32-sprintf: Likewise.
29662         * modules/unistdio/u32-u32-asnprintf: Likewise.
29663         * modules/unistdio/u32-u32-asprintf: Likewise.
29664         * modules/unistdio/u32-u32-snprintf: Likewise.
29665         * modules/unistdio/u32-u32-sprintf: Likewise.
29666         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29667         * modules/unistdio/u32-u32-vasprintf: Likewise.
29668         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29669         * modules/unistdio/u32-u32-vsprintf: Likewise.
29670         * modules/unistdio/u32-vasnprintf: Likewise.
29671         * modules/unistdio/u32-vasprintf: Likewise.
29672         * modules/unistdio/u32-vsnprintf: Likewise.
29673         * modules/unistdio/u32-vsprintf: Likewise.
29674         * modules/unistdio/ulc-asnprintf: Likewise.
29675         * modules/unistdio/ulc-asprintf: Likewise.
29676         * modules/unistdio/ulc-fprintf: Likewise.
29677         * modules/unistdio/ulc-snprintf: Likewise.
29678         * modules/unistdio/ulc-sprintf: Likewise.
29679         * modules/unistdio/ulc-vasnprintf: Likewise.
29680         * modules/unistdio/ulc-vasprintf: Likewise.
29681         * modules/unistdio/ulc-vfprintf: Likewise.
29682         * modules/unistdio/ulc-vsnprintf: Likewise.
29683         * modules/unistdio/ulc-vsprintf: Likewise.
29684         * modules/unistr/u8-check: Likewise.
29685         * modules/unistr/u8-chr: Likewise.
29686         * modules/unistr/u8-cmp: Likewise.
29687         * modules/unistr/u8-cmp2: Likewise.
29688         * modules/unistr/u8-cpy: Likewise.
29689         * modules/unistr/u8-cpy-alloc: Likewise.
29690         * modules/unistr/u8-endswith: Likewise.
29691         * modules/unistr/u8-mblen: Likewise.
29692         * modules/unistr/u8-mbsnlen: Likewise.
29693         * modules/unistr/u8-mbtouc: Likewise.
29694         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29695         * modules/unistr/u8-mbtoucr: Likewise.
29696         * modules/unistr/u8-move: Likewise.
29697         * modules/unistr/u8-next: Likewise.
29698         * modules/unistr/u8-prev: Likewise.
29699         * modules/unistr/u8-set: Likewise.
29700         * modules/unistr/u8-startswith: Likewise.
29701         * modules/unistr/u8-stpcpy: Likewise.
29702         * modules/unistr/u8-stpncpy: Likewise.
29703         * modules/unistr/u8-strcat: Likewise.
29704         * modules/unistr/u8-strchr: Likewise.
29705         * modules/unistr/u8-strcmp: Likewise.
29706         * modules/unistr/u8-strcoll: Likewise.
29707         * modules/unistr/u8-strcpy: Likewise.
29708         * modules/unistr/u8-strcspn: Likewise.
29709         * modules/unistr/u8-strdup: Likewise.
29710         * modules/unistr/u8-strlen: Likewise.
29711         * modules/unistr/u8-strmblen: Likewise.
29712         * modules/unistr/u8-strmbtouc: Likewise.
29713         * modules/unistr/u8-strncat: Likewise.
29714         * modules/unistr/u8-strncmp: Likewise.
29715         * modules/unistr/u8-strncpy: Likewise.
29716         * modules/unistr/u8-strnlen: Likewise.
29717         * modules/unistr/u8-strpbrk: Likewise.
29718         * modules/unistr/u8-strrchr: Likewise.
29719         * modules/unistr/u8-strspn: Likewise.
29720         * modules/unistr/u8-strstr: Likewise.
29721         * modules/unistr/u8-strtok: Likewise.
29722         * modules/unistr/u8-to-u16: Likewise.
29723         * modules/unistr/u8-to-u32: Likewise.
29724         * modules/unistr/u8-uctomb: Likewise.
29725         * modules/unistr/u16-check: Likewise.
29726         * modules/unistr/u16-chr: Likewise.
29727         * modules/unistr/u16-cmp: Likewise.
29728         * modules/unistr/u16-cmp2: Likewise.
29729         * modules/unistr/u16-cpy: Likewise.
29730         * modules/unistr/u16-cpy-alloc: Likewise.
29731         * modules/unistr/u16-endswith: Likewise.
29732         * modules/unistr/u16-mblen: Likewise.
29733         * modules/unistr/u16-mbsnlen: Likewise.
29734         * modules/unistr/u16-mbtouc: Likewise.
29735         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29736         * modules/unistr/u16-mbtoucr: Likewise.
29737         * modules/unistr/u16-move: Likewise.
29738         * modules/unistr/u16-next: Likewise.
29739         * modules/unistr/u16-prev: Likewise.
29740         * modules/unistr/u16-set: Likewise.
29741         * modules/unistr/u16-startswith: Likewise.
29742         * modules/unistr/u16-stpcpy: Likewise.
29743         * modules/unistr/u16-stpncpy: Likewise.
29744         * modules/unistr/u16-strcat: Likewise.
29745         * modules/unistr/u16-strchr: Likewise.
29746         * modules/unistr/u16-strcmp: Likewise.
29747         * modules/unistr/u16-strcoll: Likewise.
29748         * modules/unistr/u16-strcpy: Likewise.
29749         * modules/unistr/u16-strcspn: Likewise.
29750         * modules/unistr/u16-strdup: Likewise.
29751         * modules/unistr/u16-strlen: Likewise.
29752         * modules/unistr/u16-strmblen: Likewise.
29753         * modules/unistr/u16-strmbtouc: Likewise.
29754         * modules/unistr/u16-strncat: Likewise.
29755         * modules/unistr/u16-strncmp: Likewise.
29756         * modules/unistr/u16-strncpy: Likewise.
29757         * modules/unistr/u16-strnlen: Likewise.
29758         * modules/unistr/u16-strpbrk: Likewise.
29759         * modules/unistr/u16-strrchr: Likewise.
29760         * modules/unistr/u16-strspn: Likewise.
29761         * modules/unistr/u16-strstr: Likewise.
29762         * modules/unistr/u16-strtok: Likewise.
29763         * modules/unistr/u16-to-u32: Likewise.
29764         * modules/unistr/u16-to-u8: Likewise.
29765         * modules/unistr/u16-uctomb: Likewise.
29766         * modules/unistr/u32-check: Likewise.
29767         * modules/unistr/u32-chr: Likewise.
29768         * modules/unistr/u32-cmp: Likewise.
29769         * modules/unistr/u32-cmp2: Likewise.
29770         * modules/unistr/u32-cpy: Likewise.
29771         * modules/unistr/u32-cpy-alloc: Likewise.
29772         * modules/unistr/u32-endswith: Likewise.
29773         * modules/unistr/u32-mblen: Likewise.
29774         * modules/unistr/u32-mbsnlen: Likewise.
29775         * modules/unistr/u32-mbtouc: Likewise.
29776         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29777         * modules/unistr/u32-mbtoucr: Likewise.
29778         * modules/unistr/u32-move: Likewise.
29779         * modules/unistr/u32-next: Likewise.
29780         * modules/unistr/u32-prev: Likewise.
29781         * modules/unistr/u32-set: Likewise.
29782         * modules/unistr/u32-startswith: Likewise.
29783         * modules/unistr/u32-stpcpy: Likewise.
29784         * modules/unistr/u32-stpncpy: Likewise.
29785         * modules/unistr/u32-strcat: Likewise.
29786         * modules/unistr/u32-strchr: Likewise.
29787         * modules/unistr/u32-strcmp: Likewise.
29788         * modules/unistr/u32-strcoll: Likewise.
29789         * modules/unistr/u32-strcpy: Likewise.
29790         * modules/unistr/u32-strcspn: Likewise.
29791         * modules/unistr/u32-strdup: Likewise.
29792         * modules/unistr/u32-strlen: Likewise.
29793         * modules/unistr/u32-strmblen: Likewise.
29794         * modules/unistr/u32-strmbtouc: Likewise.
29795         * modules/unistr/u32-strncat: Likewise.
29796         * modules/unistr/u32-strncmp: Likewise.
29797         * modules/unistr/u32-strncpy: Likewise.
29798         * modules/unistr/u32-strnlen: Likewise.
29799         * modules/unistr/u32-strpbrk: Likewise.
29800         * modules/unistr/u32-strrchr: Likewise.
29801         * modules/unistr/u32-strspn: Likewise.
29802         * modules/unistr/u32-strstr: Likewise.
29803         * modules/unistr/u32-strtok: Likewise.
29804         * modules/unistr/u32-to-u16: Likewise.
29805         * modules/unistr/u32-to-u8: Likewise.
29806         * modules/unistr/u32-uctomb: Likewise.
29807         * modules/uniwbrk/u8-wordbreaks: Likewise.
29808         * modules/uniwbrk/u16-wordbreaks: Likewise.
29809         * modules/uniwbrk/u32-wordbreaks: Likewise.
29810         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29811         * modules/uniwbrk/wordbreak-property: Likewise.
29812         * modules/uniwidth/u8-strwidth: Likewise.
29813         * modules/uniwidth/u8-width: Likewise.
29814         * modules/uniwidth/u16-strwidth: Likewise.
29815         * modules/uniwidth/u16-width: Likewise.
29816         * modules/uniwidth/u32-strwidth: Likewise.
29817         * modules/uniwidth/u32-width: Likewise.
29818         * modules/uniwidth/width: Likewise.
29819         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29820         with $(LIBUNISTRING).
29821         * modules/unicase/ignorable-tests: Likewise.
29822         * modules/unicase/locale-language-tests: Likewise.
29823         * modules/unicase/tolower-tests: Likewise.
29824         * modules/unicase/totitle-tests: Likewise.
29825         * modules/unicase/toupper-tests: Likewise.
29826         * modules/unicase/u8-casecmp-tests: Likewise.
29827         * modules/unicase/u8-casecoll-tests: Likewise.
29828         * modules/unicase/u8-casefold-tests: Likewise.
29829         * modules/unicase/u8-is-cased-tests: Likewise.
29830         * modules/unicase/u8-is-casefolded-tests: Likewise.
29831         * modules/unicase/u8-is-lowercase-tests: Likewise.
29832         * modules/unicase/u8-is-titlecase-tests: Likewise.
29833         * modules/unicase/u8-is-uppercase-tests: Likewise.
29834         * modules/unicase/u8-tolower-tests: Likewise.
29835         * modules/unicase/u8-totitle-tests: Likewise.
29836         * modules/unicase/u8-toupper-tests: Likewise.
29837         * modules/unicase/u16-casecmp-tests: Likewise.
29838         * modules/unicase/u16-casecoll-tests: Likewise.
29839         * modules/unicase/u16-casefold-tests: Likewise.
29840         * modules/unicase/u16-is-cased-tests: Likewise.
29841         * modules/unicase/u16-is-casefolded-tests: Likewise.
29842         * modules/unicase/u16-is-lowercase-tests: Likewise.
29843         * modules/unicase/u16-is-titlecase-tests: Likewise.
29844         * modules/unicase/u16-is-uppercase-tests: Likewise.
29845         * modules/unicase/u16-tolower-tests: Likewise.
29846         * modules/unicase/u16-totitle-tests: Likewise.
29847         * modules/unicase/u16-toupper-tests: Likewise.
29848         * modules/unicase/u32-casecmp-tests: Likewise.
29849         * modules/unicase/u32-casecoll-tests: Likewise.
29850         * modules/unicase/u32-casefold-tests: Likewise.
29851         * modules/unicase/u32-is-cased-tests: Likewise.
29852         * modules/unicase/u32-is-casefolded-tests: Likewise.
29853         * modules/unicase/u32-is-lowercase-tests: Likewise.
29854         * modules/unicase/u32-is-titlecase-tests: Likewise.
29855         * modules/unicase/u32-is-uppercase-tests: Likewise.
29856         * modules/unicase/u32-tolower-tests: Likewise.
29857         * modules/unicase/u32-totitle-tests: Likewise.
29858         * modules/unicase/u32-toupper-tests: Likewise.
29859         * modules/unicase/ulc-casecmp-tests: Likewise.
29860         * modules/unicase/ulc-casecoll-tests: Likewise.
29861         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29862         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29863         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29864         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29865         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29866         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29867         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29868         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29869         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29870         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29871         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29872         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29873         * modules/unictype/bidicategory-byname-tests: Likewise.
29874         * modules/unictype/bidicategory-name-tests: Likewise.
29875         * modules/unictype/bidicategory-of-tests: Likewise.
29876         * modules/unictype/bidicategory-test-tests: Likewise.
29877         * modules/unictype/block-list-tests: Likewise.
29878         * modules/unictype/block-of-tests: Likewise.
29879         * modules/unictype/block-test-tests: Likewise.
29880         * modules/unictype/category-C-tests: Likewise.
29881         * modules/unictype/category-Cc-tests: Likewise.
29882         * modules/unictype/category-Cf-tests: Likewise.
29883         * modules/unictype/category-Cn-tests: Likewise.
29884         * modules/unictype/category-Co-tests: Likewise.
29885         * modules/unictype/category-Cs-tests: Likewise.
29886         * modules/unictype/category-L-tests: Likewise.
29887         * modules/unictype/category-Ll-tests: Likewise.
29888         * modules/unictype/category-Lm-tests: Likewise.
29889         * modules/unictype/category-Lo-tests: Likewise.
29890         * modules/unictype/category-Lt-tests: Likewise.
29891         * modules/unictype/category-Lu-tests: Likewise.
29892         * modules/unictype/category-M-tests: Likewise.
29893         * modules/unictype/category-Mc-tests: Likewise.
29894         * modules/unictype/category-Me-tests: Likewise.
29895         * modules/unictype/category-Mn-tests: Likewise.
29896         * modules/unictype/category-N-tests: Likewise.
29897         * modules/unictype/category-Nd-tests: Likewise.
29898         * modules/unictype/category-Nl-tests: Likewise.
29899         * modules/unictype/category-No-tests: Likewise.
29900         * modules/unictype/category-P-tests: Likewise.
29901         * modules/unictype/category-Pc-tests: Likewise.
29902         * modules/unictype/category-Pd-tests: Likewise.
29903         * modules/unictype/category-Pe-tests: Likewise.
29904         * modules/unictype/category-Pf-tests: Likewise.
29905         * modules/unictype/category-Pi-tests: Likewise.
29906         * modules/unictype/category-Po-tests: Likewise.
29907         * modules/unictype/category-Ps-tests: Likewise.
29908         * modules/unictype/category-S-tests: Likewise.
29909         * modules/unictype/category-Sc-tests: Likewise.
29910         * modules/unictype/category-Sk-tests: Likewise.
29911         * modules/unictype/category-Sm-tests: Likewise.
29912         * modules/unictype/category-So-tests: Likewise.
29913         * modules/unictype/category-Z-tests: Likewise.
29914         * modules/unictype/category-Zl-tests: Likewise.
29915         * modules/unictype/category-Zp-tests: Likewise.
29916         * modules/unictype/category-Zs-tests: Likewise.
29917         * modules/unictype/category-and-not-tests: Likewise.
29918         * modules/unictype/category-and-tests: Likewise.
29919         * modules/unictype/category-byname-tests: Likewise.
29920         * modules/unictype/category-name-tests: Likewise.
29921         * modules/unictype/category-none-tests: Likewise.
29922         * modules/unictype/category-of-tests: Likewise.
29923         * modules/unictype/category-or-tests: Likewise.
29924         * modules/unictype/category-test-withtable-tests: Likewise.
29925         * modules/unictype/combining-class-tests: Likewise.
29926         * modules/unictype/ctype-alnum-tests: Likewise.
29927         * modules/unictype/ctype-alpha-tests: Likewise.
29928         * modules/unictype/ctype-blank-tests: Likewise.
29929         * modules/unictype/ctype-cntrl-tests: Likewise.
29930         * modules/unictype/ctype-digit-tests: Likewise.
29931         * modules/unictype/ctype-graph-tests: Likewise.
29932         * modules/unictype/ctype-lower-tests: Likewise.
29933         * modules/unictype/ctype-print-tests: Likewise.
29934         * modules/unictype/ctype-punct-tests: Likewise.
29935         * modules/unictype/ctype-space-tests: Likewise.
29936         * modules/unictype/ctype-upper-tests: Likewise.
29937         * modules/unictype/ctype-xdigit-tests: Likewise.
29938         * modules/unictype/decimal-digit-tests: Likewise.
29939         * modules/unictype/digit-tests: Likewise.
29940         * modules/unictype/mirror-tests: Likewise.
29941         * modules/unictype/numeric-tests: Likewise.
29942         * modules/unictype/property-alphabetic-tests: Likewise.
29943         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29944         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29945         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29946         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29947         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29948         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29949         * modules/unictype/property-bidi-control-tests: Likewise.
29950         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29951         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29952         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29953         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29954         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29955         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29956         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29957         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29958         * modules/unictype/property-bidi-pdf-tests: Likewise.
29959         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29960         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29961         * modules/unictype/property-byname-tests: Likewise.
29962         * modules/unictype/property-combining-tests: Likewise.
29963         * modules/unictype/property-composite-tests: Likewise.
29964         * modules/unictype/property-currency-symbol-tests: Likewise.
29965         * modules/unictype/property-dash-tests: Likewise.
29966         * modules/unictype/property-decimal-digit-tests: Likewise.
29967         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29968         * modules/unictype/property-deprecated-tests: Likewise.
29969         * modules/unictype/property-diacritic-tests: Likewise.
29970         * modules/unictype/property-extender-tests: Likewise.
29971         * modules/unictype/property-format-control-tests: Likewise.
29972         * modules/unictype/property-grapheme-base-tests: Likewise.
29973         * modules/unictype/property-grapheme-extend-tests: Likewise.
29974         * modules/unictype/property-grapheme-link-tests: Likewise.
29975         * modules/unictype/property-hex-digit-tests: Likewise.
29976         * modules/unictype/property-hyphen-tests: Likewise.
29977         * modules/unictype/property-id-continue-tests: Likewise.
29978         * modules/unictype/property-id-start-tests: Likewise.
29979         * modules/unictype/property-ideographic-tests: Likewise.
29980         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29981         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29982         * modules/unictype/property-ignorable-control-tests: Likewise.
29983         * modules/unictype/property-iso-control-tests: Likewise.
29984         * modules/unictype/property-join-control-tests: Likewise.
29985         * modules/unictype/property-left-of-pair-tests: Likewise.
29986         * modules/unictype/property-line-separator-tests: Likewise.
29987         * modules/unictype/property-logical-order-exception-tests: Likewise.
29988         * modules/unictype/property-lowercase-tests: Likewise.
29989         * modules/unictype/property-math-tests: Likewise.
29990         * modules/unictype/property-non-break-tests: Likewise.
29991         * modules/unictype/property-not-a-character-tests: Likewise.
29992         * modules/unictype/property-numeric-tests: Likewise.
29993         * modules/unictype/property-other-alphabetic-tests: Likewise.
29994         * modules/unictype/property-other-default-ignorable-code-point-tests:
29995         Likewise.
29996         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29997         * modules/unictype/property-other-id-continue-tests: Likewise.
29998         * modules/unictype/property-other-id-start-tests: Likewise.
29999         * modules/unictype/property-other-lowercase-tests: Likewise.
30000         * modules/unictype/property-other-math-tests: Likewise.
30001         * modules/unictype/property-other-uppercase-tests: Likewise.
30002         * modules/unictype/property-paired-punctuation-tests: Likewise.
30003         * modules/unictype/property-paragraph-separator-tests: Likewise.
30004         * modules/unictype/property-pattern-syntax-tests: Likewise.
30005         * modules/unictype/property-pattern-white-space-tests: Likewise.
30006         * modules/unictype/property-private-use-tests: Likewise.
30007         * modules/unictype/property-punctuation-tests: Likewise.
30008         * modules/unictype/property-quotation-mark-tests: Likewise.
30009         * modules/unictype/property-radical-tests: Likewise.
30010         * modules/unictype/property-sentence-terminal-tests: Likewise.
30011         * modules/unictype/property-soft-dotted-tests: Likewise.
30012         * modules/unictype/property-space-tests: Likewise.
30013         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30014         * modules/unictype/property-test-tests: Likewise.
30015         * modules/unictype/property-titlecase-tests: Likewise.
30016         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30017         * modules/unictype/property-unified-ideograph-tests: Likewise.
30018         * modules/unictype/property-uppercase-tests: Likewise.
30019         * modules/unictype/property-variation-selector-tests: Likewise.
30020         * modules/unictype/property-white-space-tests: Likewise.
30021         * modules/unictype/property-xid-continue-tests: Likewise.
30022         * modules/unictype/property-xid-start-tests: Likewise.
30023         * modules/unictype/property-zero-width-tests: Likewise.
30024         * modules/unictype/scripts-tests: Likewise.
30025         * modules/unictype/syntax-c-ident-tests: Likewise.
30026         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30027         * modules/unictype/syntax-java-ident-tests: Likewise.
30028         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30029         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30030         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30031         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30032         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30033         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30034         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30035         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30036         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30037         * modules/uniname/uniname-tests: Likewise.
30038         * modules/uninorm/canonical-decomposition-tests: Likewise.
30039         * modules/uninorm/compat-decomposition-tests: Likewise.
30040         * modules/uninorm/composition-tests: Likewise.
30041         * modules/uninorm/decomposing-form-tests: Likewise.
30042         * modules/uninorm/decomposition-tests: Likewise.
30043         * modules/uninorm/filter-tests: Likewise.
30044         * modules/uninorm/nfc-tests: Likewise.
30045         * modules/uninorm/nfd-tests: Likewise.
30046         * modules/uninorm/nfkc-tests: Likewise.
30047         * modules/uninorm/nfkd-tests: Likewise.
30048         * modules/uninorm/u8-normcmp-tests: Likewise.
30049         * modules/uninorm/u8-normcoll-tests: Likewise.
30050         * modules/uninorm/u16-normcmp-tests: Likewise.
30051         * modules/uninorm/u16-normcoll-tests: Likewise.
30052         * modules/uninorm/u32-normcmp-tests: Likewise.
30053         * modules/uninorm/u32-normcoll-tests: Likewise.
30054         * modules/unistdio/u8-asnprintf-tests: Likewise.
30055         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30056         * modules/unistdio/u8-vasprintf-tests: Likewise.
30057         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30058         * modules/unistdio/u8-vsprintf-tests: Likewise.
30059         * modules/unistdio/u16-asnprintf-tests: Likewise.
30060         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30061         * modules/unistdio/u16-vasprintf-tests: Likewise.
30062         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30063         * modules/unistdio/u16-vsprintf-tests: Likewise.
30064         * modules/unistdio/u32-asnprintf-tests: Likewise.
30065         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30066         * modules/unistdio/u32-vasprintf-tests: Likewise.
30067         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30068         * modules/unistdio/u32-vsprintf-tests: Likewise.
30069         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30070         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30071         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30072         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30073         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30074         * modules/unistr/u8-check-tests: Likewise.
30075         * modules/unistr/u8-chr-tests: Likewise.
30076         * modules/unistr/u8-cmp-tests: Likewise.
30077         * modules/unistr/u8-cmp2-tests: Likewise.
30078         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30079         * modules/unistr/u8-cpy-tests: Likewise.
30080         * modules/unistr/u8-mblen-tests: Likewise.
30081         * modules/unistr/u8-mbsnlen-tests: Likewise.
30082         * modules/unistr/u8-mbtouc-tests: Likewise.
30083         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30084         * modules/unistr/u8-mbtoucr-tests: Likewise.
30085         * modules/unistr/u8-move-tests: Likewise.
30086         * modules/unistr/u8-next-tests: Likewise.
30087         * modules/unistr/u8-prev-tests: Likewise.
30088         * modules/unistr/u8-set-tests: Likewise.
30089         * modules/unistr/u8-stpcpy-tests: Likewise.
30090         * modules/unistr/u8-stpncpy-tests: Likewise.
30091         * modules/unistr/u8-strcat-tests: Likewise.
30092         * modules/unistr/u8-strcmp-tests: Likewise.
30093         * modules/unistr/u8-strcoll-tests: Likewise.
30094         * modules/unistr/u8-strcpy-tests: Likewise.
30095         * modules/unistr/u8-strdup-tests: Likewise.
30096         * modules/unistr/u8-strlen-tests: Likewise.
30097         * modules/unistr/u8-strmblen-tests: Likewise.
30098         * modules/unistr/u8-strmbtouc-tests: Likewise.
30099         * modules/unistr/u8-strncat-tests: Likewise.
30100         * modules/unistr/u8-strncmp-tests: Likewise.
30101         * modules/unistr/u8-strncpy-tests: Likewise.
30102         * modules/unistr/u8-strnlen-tests: Likewise.
30103         * modules/unistr/u8-to-u16-tests: Likewise.
30104         * modules/unistr/u8-to-u32-tests: Likewise.
30105         * modules/unistr/u8-uctomb-tests: Likewise.
30106         * modules/unistr/u16-check-tests: Likewise.
30107         * modules/unistr/u16-chr-tests: Likewise.
30108         * modules/unistr/u16-cmp-tests: Likewise.
30109         * modules/unistr/u16-cmp2-tests: Likewise.
30110         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30111         * modules/unistr/u16-cpy-tests: Likewise.
30112         * modules/unistr/u16-mblen-tests: Likewise.
30113         * modules/unistr/u16-mbsnlen-tests: Likewise.
30114         * modules/unistr/u16-mbtouc-tests: Likewise.
30115         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30116         * modules/unistr/u16-mbtoucr-tests: Likewise.
30117         * modules/unistr/u16-move-tests: Likewise.
30118         * modules/unistr/u16-next-tests: Likewise.
30119         * modules/unistr/u16-prev-tests: Likewise.
30120         * modules/unistr/u16-set-tests: Likewise.
30121         * modules/unistr/u16-stpcpy-tests: Likewise.
30122         * modules/unistr/u16-stpncpy-tests: Likewise.
30123         * modules/unistr/u16-strcat-tests: Likewise.
30124         * modules/unistr/u16-strcmp-tests: Likewise.
30125         * modules/unistr/u16-strcoll-tests: Likewise.
30126         * modules/unistr/u16-strcpy-tests: Likewise.
30127         * modules/unistr/u16-strdup-tests: Likewise.
30128         * modules/unistr/u16-strlen-tests: Likewise.
30129         * modules/unistr/u16-strmblen-tests: Likewise.
30130         * modules/unistr/u16-strmbtouc-tests: Likewise.
30131         * modules/unistr/u16-strncat-tests: Likewise.
30132         * modules/unistr/u16-strncmp-tests: Likewise.
30133         * modules/unistr/u16-strncpy-tests: Likewise.
30134         * modules/unistr/u16-strnlen-tests: Likewise.
30135         * modules/unistr/u16-to-u32-tests: Likewise.
30136         * modules/unistr/u16-to-u8-tests: Likewise.
30137         * modules/unistr/u16-uctomb-tests: Likewise.
30138         * modules/unistr/u32-check-tests: Likewise.
30139         * modules/unistr/u32-chr-tests: Likewise.
30140         * modules/unistr/u32-cmp-tests: Likewise.
30141         * modules/unistr/u32-cmp2-tests: Likewise.
30142         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30143         * modules/unistr/u32-cpy-tests: Likewise.
30144         * modules/unistr/u32-mblen-tests: Likewise.
30145         * modules/unistr/u32-mbsnlen-tests: Likewise.
30146         * modules/unistr/u32-mbtouc-tests: Likewise.
30147         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30148         * modules/unistr/u32-mbtoucr-tests: Likewise.
30149         * modules/unistr/u32-move-tests: Likewise.
30150         * modules/unistr/u32-next-tests: Likewise.
30151         * modules/unistr/u32-prev-tests: Likewise.
30152         * modules/unistr/u32-set-tests: Likewise.
30153         * modules/unistr/u32-stpcpy-tests: Likewise.
30154         * modules/unistr/u32-stpncpy-tests: Likewise.
30155         * modules/unistr/u32-strcat-tests: Likewise.
30156         * modules/unistr/u32-strcmp-tests: Likewise.
30157         * modules/unistr/u32-strcoll-tests: Likewise.
30158         * modules/unistr/u32-strcpy-tests: Likewise.
30159         * modules/unistr/u32-strdup-tests: Likewise.
30160         * modules/unistr/u32-strlen-tests: Likewise.
30161         * modules/unistr/u32-strmblen-tests: Likewise.
30162         * modules/unistr/u32-strmbtouc-tests: Likewise.
30163         * modules/unistr/u32-strncat-tests: Likewise.
30164         * modules/unistr/u32-strncmp-tests: Likewise.
30165         * modules/unistr/u32-strncpy-tests: Likewise.
30166         * modules/unistr/u32-strnlen-tests: Likewise.
30167         * modules/unistr/u32-to-u16-tests: Likewise.
30168         * modules/unistr/u32-to-u8-tests: Likewise.
30169         * modules/unistr/u32-uctomb-tests: Likewise.
30170         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30171         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30172         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30173         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30174         * modules/uniwidth/u8-strwidth-tests: Likewise.
30175         * modules/uniwidth/u8-width-tests: Likewise.
30176         * modules/uniwidth/u16-strwidth-tests: Likewise.
30177         * modules/uniwidth/u16-width-tests: Likewise.
30178         * modules/uniwidth/u32-strwidth-tests: Likewise.
30179         * modules/uniwidth/u32-width-tests: Likewise.
30180         * modules/uniwidth/width-tests: Likewise.
30181
30182 2010-05-18  Richard Jones  <rjones@redhat.com>
30183
30184         doc: users.txt: list hivex
30185         * users.txt: Add hivex.
30186
30187 2010-05-18  Richard Jones  <rjones@redhat.com>
30188
30189         doc: users.txt: list febootstrap
30190         * users.txt: Add febootstrap.
30191
30192 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30193
30194         bootstrap: fix an error when gnulib is not used as a git submodule
30195         * build-aux/bootstrap (gnulib_path): If its length is zero then
30196         assign "gnulib" to it.
30197         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30198
30199 2010-05-16  Bruno Haible  <bruno@clisp.org>
30200
30201         Avoid autoconf warnings about AM_ICONV.
30202         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30203         2.64.
30204
30205 2010-05-16  Bruno Haible  <bruno@clisp.org>
30206
30207         absolute-header: Make the macro usable in more situations.
30208         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30209         from gl_ABSOLUTE_HEADER.
30210         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30211
30212 2010-05-16  James Youngman  <jay@gnu.org>
30213
30214         doc: update users.txt
30215         * users.txt: Add CSSC.
30216
30217 2010-05-16  Jim Meyering  <meyering@redhat.com>
30218
30219         init.sh: fix an error in the previous change; add more comments
30220         * tests/init.sh: Compare exit code in loop against 9, not 2.
30221         Patch by Bruno Haible.
30222         Make the two tests more similar by adding an empty "then" clause.
30223         Add comments.
30224
30225         init.sh: avoid unnecessary shell re-exec
30226         * tests/init.sh: Improve the re-exec-required check to first test the
30227         current shell.  If it passes the test, do not search for a shell that
30228         does pass, and do not re-exec.  This test is particularly contorted to
30229         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30230         of $(...) evokes a syntax error and causes immediate shell exit with
30231         status 2.  Bruno Haible reported that the re-exec made it impossible
30232         to single-step through any init.sh-using script.
30233
30234 2010-05-16  Bruno Haible  <bruno@clisp.org>
30235
30236         Fix collision between gnulib's and libintl's printf replacements.
30237         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30238         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30239         (printf): When using GNU C, map the __printf__ function to rpl_printf
30240         via __asm__. When not using GNU C, define rpl_printf instead of
30241         __printf__.
30242         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30243         commit.
30244         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30245         commit.
30246         * m4/asm-underscore.m4: New file.
30247         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30248         * modules/stdio (Files): Add m4/asm-underscore.m4.
30249         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30250         Reported by Ben Pfaff.
30251
30252 2010-05-16  Bruno Haible  <bruno@clisp.org>
30253
30254         verify: Avoid skipping the test on openSUSE 11.0.
30255         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30256
30257 2010-05-13  Bruno Haible  <bruno@clisp.org>
30258
30259         Avoid useless warnings from G++.
30260         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30261         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30262         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30263
30264 2010-05-11  Jim Meyering  <meyering@redhat.com>
30265
30266         maint.mk: tweak preceding change
30267         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30268         regexps tighter by anchoring at EOL, and make the new group "shy"
30269         for slightly decreased overhead.
30270
30271 2010-05-11  Eric Blake  <eblake@redhat.com>
30272
30273         maint.mk: gnulib doesn't guarantee NSIG
30274         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30275
30276 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30277
30278         test-pwrite.c: Remove unused variable declaration.
30279         * tests/test-pwrite.c (main): Remove read_buf declaration.
30280
30281         Remove useless test-pwrite.sh file.
30282         * tests/test-pwrite.sh: Delete file.
30283         * modules/pwrite-tests: Remove references.
30284         Reported by Bruno Haible.
30285
30286 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30287
30288         init.sh: fix a typo
30289         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30290
30291 2010-05-10  Jim Meyering  <meyering@redhat.com>
30292
30293         maint.mk: avoid using a temporary file in the always-defined-macros check
30294         * top/maint.mk (.re-defmac): Remove rule.
30295         (gl_trap_): Remove definition.
30296         (sc_prohibit_always-defined_macros): Rewrite not to create and
30297         depend on a temporary file.  Instead, depend on GNU grep's ability
30298         to read a list of regular expressions from stdin when given "-f -".
30299
30300 2010-05-09  Bruno Haible  <bruno@clisp.org>
30301
30302         Update to GNU gettext 0.18, part 1.
30303         * m4/gettext.m4: Update to GNU gettext 0.18.
30304         * m4/intl.m4: Likewise.
30305         * m4/po.m4: Likewise.
30306         * modules/gettext (Files): Add m4/fcntl-o.m4.
30307         (configure.ac): Require gettext infrastructure from version 0.18.
30308
30309 2010-05-09  Jim Meyering  <meyering@redhat.com>
30310
30311         init.sh: enable MALLOC_PERTURB_
30312         * tests/init.sh: Enable glibc's malloc-perturbing option.
30313
30314         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30315         With my recent change in init.sh from the two-line form:
30316             -#   : ${srcdir=.}
30317             -#   . "$srcdir/init.sh"; path_prepend_ .
30318             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30319         I noticed that using the one-line form would cause this test
30320         to fail with a false-positive, or to stop working altogether,
30321         depending on whether help-version changed or all the tests did.
30322         * top/maint.mk (_hv_regex): Remove this definition.
30323         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30324         (_hv_regex_strong): Use a stronger regex to check for conformance.
30325         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30326         Give a separate diagnostic for lack of conforming use.
30327
30328         maint.mk: prohibit definition of symbols defined by gnulib
30329         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30330         definition of symbols defined by gnulib.
30331
30332 2010-05-09  Bruno Haible  <bruno@clisp.org>
30333
30334         acl: Avoid test failure on Cygwin-hosted mingw.
30335         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30336
30337 2010-05-09  Bruno Haible  <bruno@clisp.org>
30338
30339         error: Use system's fcntl function.
30340         * lib/error.c (fcntl): Undefine.
30341
30342 2010-05-09  Jim Meyering  <meyering@redhat.com>
30343
30344         verify: adjust formatting to be more consistent
30345         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30346         argument-list '('s, and after one comma.
30347
30348 2010-05-09  Bruno Haible  <bruno@clisp.org>
30349
30350         error: More reliable output on mingw.
30351         * lib/error.c: Include <windows.h>.
30352         (is_open): New function.
30353         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30354         defined.
30355
30356 2010-05-09  Bruno Haible  <bruno@clisp.org>
30357
30358         vasnprintf: Fix syntax errors in libintl build on mingw.
30359         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30360         pad_ourselves and prec_ourselves after use.
30361
30362 2010-05-08  Bruno Haible  <bruno@clisp.org>
30363
30364         * lib/config.charset: Update comments for Cygwin 1.7.
30365         * lib/localcharset.c: Likewise.
30366
30367 2010-05-07  Jim Meyering  <meyering@redhat.com>
30368
30369         init.sh: improve comments
30370         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30371         . "${srcdir=.}/init.sh"; path_prepend_ .
30372         Add a note about path_prepend_ and the alternative of using
30373         TESTS_ENVIRONMENT.
30374
30375 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30376
30377         exclude: Unescape hashed patterns in wildcard mode.
30378         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30379         to the hash list.
30380         * tests/test-exclude8.sh: New test case.
30381         * modules/exclude-tests: Add new test.
30382
30383 2010-05-05  Eric Blake  <eblake@redhat.com>
30384
30385         verify: automate tests
30386         * modules/verify-tests: New module.
30387         * tests/test-verify.sh: New file.
30388         * tests/test-verify.c: Guard each negative test with a unique id.
30389         Also avoid warning about unused left hand of comma expressions.
30390
30391 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30392
30393         Further improvements to verify.h, suggested by Eric Blake.
30394         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30395         the GL_* versions, to avoid collision with OpenGL.
30396         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30397         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30398         than testing merely whether it's defined.
30399
30400         Modify verify.h to pacify gcc -Wredundant_decls.
30401         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30402         These use the prefix "GL_" since they're likely to be useful elsewhere.
30403         We may need to break them out into a different .h file.
30404         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30405         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30406         of verify_function__.
30407
30408 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30409
30410         Tests for module pwrite.
30411         * modules/pwrite-tests: New file.
30412         * tests/test-pwrite.sh: New file.
30413         * tests/test-pwrite.c: New file.
30414
30415         New module pwrite.
30416         * lib/unistd.in.h (pwrite): New declaration.
30417         * lib/pwrite.c: New file, from glibc with modifications.
30418         * m4/pwrite.m4: New file.
30419         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30420         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30421         REPLACE_PWRITE.
30422         * modules/pwrite: New file.
30423         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30424         REPLACE_PWRITE.
30425         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30426         * doc/posix-functions/pwrite.texi: Mention the new module.
30427
30428 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30429
30430         pread: Update documentation.
30431         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30432
30433 2010-05-04  Eric Blake  <eblake@redhat.com>
30434
30435         docs: update cygwin progress
30436         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30437         this bug.
30438         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30439         Added in cygwin 1.7.2.
30440         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30441         Likewise.
30442         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30443         Likewise.
30444         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30445         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30446         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30447         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30448         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30449         Mention nproc module.
30450         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30451         bug in cygwin 1.7.5 addition.
30452         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30453         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30454         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30455         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30456         1.7.5.
30457         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30458         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30459         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30460         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30461         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30462         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30463         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30464         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30465         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30466         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30467         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30468         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30469         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30470         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30471         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30472         Likewise.
30473         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30474         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30475         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30476         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30477         Likewise.
30478         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30479         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30480         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30481         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30482         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30483         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30484         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30485         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30486         Likewise.
30487         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30488         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30489         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30490         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30491         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30492         Likewise.
30493         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30494         Likewise.
30495         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30496         Likewise.
30497         * doc/glibc-functions/xdrrec_endofrecord.texi
30498         (xdrrec_endofrecord): Likewise.
30499         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30500         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30501         Likewise.
30502         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30503         Likewise.
30504
30505 2010-05-04  Jim Meyering  <meyering@redhat.com>
30506
30507         gendocs.sh: make its "-s FILE" option more useful
30508         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30509         $PACKAGE to reflect the probably-different basename of "FILE".
30510
30511 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30512
30513         bootstrap: don't ignore download_po_files failure
30514         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30515         failure.
30516
30517 2010-05-03  Jim Meyering  <meyering@redhat.com>
30518
30519         maint.mk: allow to pass options to gendocs.sh
30520         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30521         (gendocs_options_): New overridable variable.
30522
30523         gnu-web-doc-update: don't ignore configure or build failure
30524         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30525
30526         announce-gen: backslash-escape '@'s in --help output
30527         * build-aux/announce-gen: Fix syntax errors.
30528
30529         maint.mk, announce-gen: allow project-specific announcement mail headers
30530         * top/maint.mk (translation_project_): Define default.
30531         (announcement_Cc_, announcement_mail_headers_): Likewise.
30532         (announcement): Invoke announce-gen with new --mail-headers option.
30533         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30534
30535         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30536         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30537         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30538         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30539         line in the "err2" output file when running "make check" in verbose
30540         mode (i.e., with set -x enabled).
30541
30542 2010-05-03  Bruno Haible  <bruno@clisp.org>
30543
30544         wctob: Fix for weird platforms.
30545         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30546         argument value.
30547
30548 2010-05-03  Jim Meyering  <meyering@redhat.com>
30549
30550         maint.mk: prohibit unwarranted use of <strings.h>
30551         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30552         strings.h in a file that does not also use strcasecmp, strncasecmp,
30553         ffs or ffsll.
30554
30555         maint.mk: remove obsolete comments
30556         * top/maint.mk: Remove stale, commented-out rules.
30557
30558 2010-05-02  Bruno Haible  <bruno@clisp.org>
30559
30560         wcwidth: Declare also when it's aliased.
30561         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30562         macro.
30563
30564 2010-05-02  Bruno Haible  <bruno@clisp.org>
30565
30566         Fix regression from 2010-04-25.
30567         * gnulib-tool (func_modules_transitive_closure): Check the status of
30568         all modules, not only of the tests that are of the form foo-tests where
30569         foo is a module.
30570
30571 2010-05-02  Bruno Haible  <bruno@clisp.org>
30572
30573         wctob: Work around nasty Cygwin 1.7.2 bug.
30574         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30575         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30576
30577 2010-05-01  Bruno Haible  <bruno@clisp.org>
30578
30579         fpurge: Sharper test.
30580         * tests/test-fpurge.c (main): Add one more ftell check.
30581         * modules/fpurge-tests (Depends-on): Add ftell.
30582         Suggested by Eric Blake.
30583
30584 2010-05-01  Bruno Haible  <bruno@clisp.org>
30585
30586         ftello: Another test.
30587         * tests/test-ftello3.c: New file.
30588         * modules/ftello-tests (Files): Add it.
30589         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30590         MOSTLYCLEANFILES.
30591
30592         ftell: Another test.
30593         * tests/test-ftell3.c: New file.
30594         * modules/ftell-tests (Files): Add it.
30595         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30596         MOSTLYCLEANFILES.
30597
30598 2010-05-01  Bruno Haible  <bruno@clisp.org>
30599
30600         ftell, ftello: Work around Solaris bug.
30601         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30602         * lib/ftello.c: Include stdio-impl.h.
30603         (ftello): On Solaris, when _IOWRT is set, compute the result without
30604         looking at _IOREAD.
30605         * modules/ftello (Files): Add lib/stdio-impl.h.
30606         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30607         * doc/posix-functions/ftello.texi: Likewise.
30608         Reported by Eric Blake.
30609
30610 2010-05-01  Bruno Haible  <bruno@clisp.org>
30611
30612         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30613         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30614         the _IOWRT flag is also set.
30615
30616 2010-05-01  Bruno Haible  <bruno@clisp.org>
30617
30618         Fix doc about a HP-UX stdio bug.
30619         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30620         * doc/posix-functions/ftello.texi: Likewise.
30621
30622 2010-05-01  Bruno Haible  <bruno@clisp.org>
30623
30624         lseek test: Fix failure on Solaris.
30625         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30626         output.
30627
30628 2010-04-30  Jim Meyering  <meyering@redhat.com>
30629
30630         bootstrap: don't ignore failure to generate po*/Makevars
30631         * build-aux/bootstrap (with_gettext): Don't ignore failure
30632         to create po/Makevars or runtime-po/Makevars.
30633
30634 2010-04-29  Eric Blake  <eblake@redhat.com>
30635
30636         headers: relax license to LGPLv2+
30637         * modules/fcntl-h (License): Relax license.
30638         * modules/getopt-posix (License): Likewise.
30639         * modules/locale (License): Likewise.
30640         * modules/math (License): Likewise.
30641         * modules/pty (License): Likewise.
30642         * modules/sched (License): Likewise.
30643         * modules/search (License): Likewise.
30644         * modules/spawn (License): Likewise.
30645         * modules/stdarg (License): Likewise.
30646         * modules/sysexits (License): Likewise.
30647
30648 2010-04-29  Jim Meyering  <meyering@redhat.com>
30649
30650         inttypes: relax license to LGPLv2+
30651         * modules/inttypes (License): Relax license.
30652
30653 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30654
30655         * top/maint.mk (indent): Run twice to produce idempotent results.
30656
30657 2010-04-28  Bruno Haible  <bruno@clisp.org>
30658
30659         getdate: Generate getdate.c in the source directory.
30660         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30661         MOSTLYCLEANFILES.
30662         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30663
30664 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30665
30666         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30667         is not declared as a const *; avoid warnings in that case.
30668
30669 2010-04-28  Eric Blake  <eblake@redhat.com>
30670
30671         canonicalize-lgpl: avoid compiler warning
30672         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30673         declaration' / 'extraneous semicolon' warning with some compilers.
30674         Reported by Andreas Gruenbacher.
30675
30676 2010-04-28  Jim Meyering  <meyering@redhat.com>
30677
30678         init.sh: ensure a more reliable exit status when exiting via trap
30679         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30680         Inspired by patches from Dmitry V. Levin.
30681         Also trap on signal 3 (SIGQUIT).
30682
30683 2010-04-27  Bruno Haible  <bruno@clisp.org>
30684
30685         Update doc about utimes().
30686         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30687         'utimens' module.
30688         Reported by Andreas Gruenbacher <agruen@suse.de>.
30689
30690 2010-04-27  Eric Blake  <eblake@redhat.com>
30691
30692         full-read, full-write: relax license
30693         * modules/full-read (License): Drop to LGPLv2+.
30694         * modules/full-write (License): Likewise.
30695         * modules/safe-read (License): Likewise.
30696         * modules/safe-write (License): Likewise.
30697
30698         pthread: mention library for linking
30699         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30700
30701 2010-04-27  Jim Meyering  <meyering@redhat.com>
30702
30703         maint.mk: fix a bug introduced in last change
30704         * top/maint.mk (gl_assured_headers_): Now that all names are on
30705         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30706         is not anchored to end of word, it should be adequate.
30707
30708         maint.mk: avoid side-effect in latest syntax-check
30709         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30710         to run commands via $(shell...), and hence to incur cost only when
30711         the new rule is actually run.
30712
30713         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30714         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30715         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30716         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30717         (gl_assured_headers_, az_, AZ_): Define.
30718         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30719
30720 2010-04-26  Jim Meyering  <jim@meyering.net>
30721             Bruno Haible  <bruno@clisp.org>
30722
30723         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30724         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30725         Prompted by an exchange with Gilles Espinasse.
30726
30727 2010-04-26  Jim Meyering  <meyering@redhat.com>
30728
30729         git-version-gen: aesthetic tweak
30730         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30731         so that the command remains on a single line.
30732
30733 2010-04-26  Eric Blake  <eblake@redhat.com>
30734
30735         git-version-gen: allow use on EBCDIC hosts
30736         * build-aux/git-version-gen (dirty): Use literal rather than tying
30737         ourselves to ascii.
30738         Reported by Steve Goetze.
30739
30740 2010-04-25  Bruno Haible  <bruno@clisp.org>
30741
30742         netdb: Add support for GNULIB_POSIXCHECK.
30743         * lib/netdb.in.h: Include warn-on-use.h.
30744         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30745         functions are used when GNULIB_POSIXCHECK is defined and the
30746         getaddrinfo module is not in use.
30747         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30748         freeaddrinfo, gai_strerror, getnameinfo are declared.
30749         * modules/netdb (Depends-on): Add warn-on-use.
30750         (Makefile.am): Include warn-on-use.h in netdb.h.
30751
30752 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30753
30754         build: avoid "make check" failure without .git/ directory
30755         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30756         there is no .git/ directory.
30757
30758 2010-04-25  Bruno Haible  <bruno@clisp.org>
30759
30760         ptsname: Fix misuse of ttyname_r.
30761         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30762         of errno.
30763
30764 2010-04-25  Bruno Haible  <bruno@clisp.org>
30765
30766         ttyname_r: Make it work on Solaris 10.
30767         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30768         if the system function has the POSIX declaration. Test whether the
30769         function fails if the buffer is less than 128 bytes large.
30770         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30771         system's ttyname_r function. Provide a reasonably large buffer.
30772         * modules/ttyname_r (Depends-on): Add extensions.
30773         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30774
30775 2010-04-25  Bruno Haible  <bruno@clisp.org>
30776
30777         Use the 'extensions' module for some more functions on Solaris.
30778         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30779         module.
30780         * doc/posix-functions/ctime_r.texi: Likewise.
30781         * doc/posix-functions/getgrgid_r.texi: Likewise.
30782         * doc/posix-functions/getgrnam_r.texi: Likewise.
30783         * doc/posix-functions/getpwnam_r.texi: Likewise.
30784         * doc/posix-functions/getpwuid_r.texi: Likewise.
30785         * doc/posix-functions/readdir_r.texi: Likewise.
30786         * doc/posix-functions/sigwait.texi: Likewise.
30787         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30788         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30789
30790 2010-04-25  Bruno Haible  <bruno@clisp.org>
30791
30792         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30793         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30794         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30795         * lib/ttyname_r.c: Include <limits.h>.
30796         (ttyname_r): Define using the system's ttyname_r function, if it exists
30797         and not on Solaris.
30798         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30799         set.
30800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30801         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30802         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30803         Reported by Simon Josefsson.
30804
30805 2010-04-25  Bruno Haible  <bruno@clisp.org>
30806
30807         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30808         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30809         * doc/posix-functions/ctime_r.texi: Likewise.
30810         * doc/posix-functions/getgrgid_r.texi: Likewise.
30811         * doc/posix-functions/getgrnam_r.texi: Likewise.
30812         * doc/posix-functions/getlogin_r.texi: Likewise.
30813         * doc/posix-functions/getpwnam_r.texi: Likewise.
30814         * doc/posix-functions/getpwuid_r.texi: Likewise.
30815         * doc/posix-functions/readdir_r.texi: Likewise.
30816         * doc/posix-functions/sigwait.texi: Likewise.
30817         * doc/posix-functions/ttyname_r.texi: Likewise.
30818         Reported by Simon Josefsson.
30819
30820 2010-04-25  Bruno Haible  <bruno@clisp.org>
30821
30822         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30823         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30824         also to --create-testdir.
30825         (func_acceptable): Don't consider the status of *-tests modules here.
30826         (func_modules_transitive_closure): Consider it here, before including a
30827         test module.
30828         (func_import, func_create_testdir): Set inc_all_direct_tests,
30829         inc_all_indirect_tests.
30830         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30831         --create-testdir and --create-megatestdir.
30832
30833 2010-04-25  Bruno Haible  <bruno@clisp.org>
30834
30835         gnulib-tool: Add --without-*-tests options.
30836         * gnulib-tool (func_usage): Document the --without-*-tests options.
30837         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30838         excl_unportable_tests): New variables.
30839         Fail if they are specified with --import or --update.
30840         (func_acceptable): Respect the excl_*_tests variables.
30841         (func_import): Set the excl_*_tests variables to empty.
30842
30843 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30844             Bruno Haible  <bruno@clisp.org>
30845
30846         Work around a MacOS X 10.4 bug with openpty.
30847         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30848         * tests/test-openpty.c (main): Close the master side explicitly.
30849
30850 2010-04-25  Bruno Haible  <bruno@clisp.org>
30851
30852         strnlen: Fix a C++ test error on MacOS X and Solaris.
30853         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30854         the function is not declared.
30855         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30856         Simon Josefsson.
30857
30858 2010-04-24  Bruno Haible  <bruno@clisp.org>
30859
30860         Avoid a gcc warning.
30861         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30862         of correct type for %08lx directive.
30863         Reported by Eric Blake.
30864
30865 2010-04-24  Bruno Haible  <bruno@clisp.org>
30866
30867         vasnprintf: Correct errno value in case of out-of-memory.
30868         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30869         or sprintf. Use the errno value from SNPRINTF or sprintf.
30870         Reported by Ian Beckwith <ianb@erislabs.net>.
30871
30872 2010-04-24  Bruno Haible  <bruno@clisp.org>
30873
30874         ansi-c++-opt: Find correct compiler when cross-compiling.
30875         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30876         AC_CHECK_PROGS.
30877         Reported by Simon Josefsson.
30878
30879 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30880
30881         vc-list-files: Add support for subversion
30882         * build-aux/vc-list-files: Use "svn list" to generate the list of
30883         files controlled by subversion.
30884
30885 2010-04-23  Jim Meyering  <meyering@redhat.com>
30886
30887         vc-list-files tests: convert to use init.sh
30888         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30889         path_prepend_.
30890         Use Exit, not exit.
30891         Use skip_ rather than open coding it.
30892         Remove trap set-up and compare definitions.
30893         * tests/test-vc-list-files-git.sh: Likewise.
30894         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30895
30896 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30897
30898         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30899         backup files.
30900
30901 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30902
30903         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30904
30905 2010-04-20  Eric Blake  <eblake@redhat.com>
30906
30907         tests: be robust to ignored SIGPIPE
30908         * tests/test-select-in.sh: Consume all output.
30909         * tests/test-lseek.sh: Check correct exit status, while avoiding
30910         EPIPE.
30911
30912 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30913             Bruno Haible  <bruno@clisp.org>
30914
30915         visibility: Don't use -fvisibility if it leads to a warning.
30916         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30917         yes, don't pretend that visibility works if it leads to a warning.
30918         Reported by Mike Gran <spk121@yahoo.com>.
30919
30920 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30921
30922         * build-aux/bootstrap: Use "git -h" for testing for supported options
30923         instead of "git --help".  The short-form option only shows a summary,
30924         and doesn't layout the full man page.  Grep for the full option name
30925         in the summary, too.
30926
30927 2010-04-19  Bruno Haible  <bruno@clisp.org>
30928
30929         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30930         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30931         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30932         mention of RELOCATABLE_STRIP.
30933         Reported by Sylvain Beucler <beuc@beuc.net>.
30934
30935 2010-04-19  Bruno Haible  <bruno@clisp.org>
30936
30937         * lib/diffseq.h: Fix typo in comment.
30938         Reported by Eric Blake.
30939
30940 2010-04-19  Bruno Haible  <bruno@clisp.org>
30941
30942         ioctl: Move autoconf macro to a .m4 file.
30943         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30944         * modules/ioctl (Files): Add it.
30945         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30946         Reported by Ian Beckwith <ianb@erislabs.net>.
30947
30948 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30949             Bruno Haible  <bruno@clisp.org>
30950
30951         diffseq: Accommodate use-case with abstract arrays.
30952         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30953         is not defined.
30954         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30955         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30956
30957 2010-04-18  Bruno Haible  <bruno@clisp.org>
30958
30959         * doc/posix-headers/stdbool.texi: More precise wording.
30960
30961 2010-04-17  Jim Meyering  <meyering@redhat.com>
30962
30963         maint.mk: use gnu-style indentation in an embedded perl script
30964         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30965         Rename variable: s/two/last_two_bytes/
30966
30967 2010-04-16  Eric Blake  <eblake@redhat.com>
30968
30969         test-stdbool: skip test that fails with Solaris CC
30970         * tests/test-stdbool.c (f): Skip test that causes compilation
30971         error under buggy C++ compiler.
30972         * lib/stdbool.in.h: Document the limitation.
30973         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30974
30975         setenv: allow compilation with C++
30976         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30977         register keyword.
30978
30979         stdint: allow test to pass with C++
30980         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30981
30982         getopt: allow compilation with C++
30983         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30984         struct.
30985         * lib/getopt.c (_getopt_internal_r): Use correct type.
30986         Reported by Dagobert Michelson, via Joel E. Denny.
30987
30988 2010-04-16  Bruno Haible  <bruno@clisp.org>
30989
30990         Override netdb.h always.
30991         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30992         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30993         Reported by Ludovic Courtès <ludo@gnu.org>.
30994
30995 2010-04-15  Bruno Haible  <bruno@clisp.org>
30996
30997         openpty: Fix mistake from 2010-03-21.
30998         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30999         Reported by Simon Josefsson.
31000
31001 2010-04-15  Eric Blake  <eblake@redhat.com>
31002
31003         test-forkpty: fix expected signature
31004         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
31005         Reported by Simon Josefsson.
31006
31007 2010-04-15  Jim Meyering  <meyering@redhat.com>
31008
31009         maint.mk: texinfo_suffix_re_: correct the default regexp
31010         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31011
31012         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31013         make it configurable via texinfo_suffix_re_.
31014
31015 2010-04-14  Eric Blake  <eblake@redhat.com>
31016
31017         strtok_r: relax license to LGPLv2+
31018         * modules/strtok_r (License): Relax license.
31019         Reported by Matthias Bolte.
31020
31021 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31022
31023         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31024         version 1.4.4 by default instead of requiring the libgcrypt
31025         version used during build.  This makes it possible to use the
31026         application with older but still binary compatible libgcrypt
31027         versions.
31028
31029 2010-04-13  Eric Blake  <eblake@redhat.com>
31030
31031         getopt-gnu: match recent glibc fixes and posix ruling
31032         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31033         '+' handling, when requesting extensions.
31034         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31035         'W;' handling.
31036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31037         * doc/posix-functions/getopt.texi (getopt): Document this.
31038         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31039         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31040         Likewise.
31041
31042         getopt: merge bug fixes from glibc
31043         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31044         diagnostics.  Honor '+:' correctly.  Reject ';'.
31045
31046         getopt-posix: detect MacOS bug
31047         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31048         optind when missing a required argument.
31049         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31050         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31051         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31052         Likewise.
31053
31054         getopt-posix: avoid spurious failure on Solaris
31055         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31056         an indicator that setting optind=1 is sufficient for reset.
31057
31058         getopt-posix: avoid spurious failure on FreeBSD
31059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31060         in POSIX mode, since the m4 test uses it.
31061
31062         gnulib-tool: silence warning on BSD sh
31063         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31064
31065 2010-04-13  Jim Meyering  <meyering@redhat.com>
31066
31067         doc: users.txt: GNU patch now uses gnulib
31068         * users.txt: Add patch.
31069
31070 2010-04-12  Jim Meyering  <meyering@redhat.com>
31071
31072         maint.mk: generate more concise timing data for syntax-check rules
31073         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31074         " done" from each line that reports a syntax-check test duration.
31075
31076 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31077
31078         git-version-gen: use "git update-index..." rather than "git status"
31079         * build-aux/git-version-gen: Use git update-index --refresh, not
31080         "git status".  With some versions of git, "git status" would fail
31081         to update the index and result in an unwarranted "-dirty" suffix.
31082
31083 2010-04-11  Jim Meyering  <meyering@redhat.com>
31084
31085         openat: correct formatting (no semantic change)
31086         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31087         Suggested by Bruno Haible.
31088
31089 2010-04-11  Bruno Haible  <bruno@clisp.org>
31090
31091         Stricter declaration checking in testdirs.
31092         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31093         If for_tests is true, augment AM_CPPFLAGS to define
31094         GNULIB_STRICT_CHECKING.
31095         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31096         GNULIB_STRICT_CHECKING is defined, verify that the function is
31097         declared.
31098
31099 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31100             Bruno Haible  <bruno@clisp.org>
31101
31102         libunistring: Improve configure output.
31103         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31104         Don't say "consider installing GNU libunistring" when checking again
31105         with libiconv.
31106
31107 2010-04-11  Bruno Haible  <bruno@clisp.org>
31108
31109         libunistring: Correct value of $LTLIBUNISTRING.
31110         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31111         correct the value of $LTLIBUNISTRING.
31112
31113 2010-04-11  Bruno Haible  <bruno@clisp.org>
31114
31115         havelib: Add static libraries to LIBS in the right order.
31116         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31117         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31118
31119 2010-04-11  Bruno Haible  <bruno@clisp.org>
31120
31121         libunistring: Detect libunistring also when it depends on libiconv.
31122         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31123         the second AC_LIB_HAVE_LINKFLAGS invocation.
31124
31125 2010-04-11  James Youngman  <jay@gnu.org>
31126
31127         close-stream: declare local scalars to be "const"
31128         * lib/close-stream.c (close_stream): Make boolean variables const
31129         to document the fact that we set but do not change them.
31130
31131 2010-04-11  Bruno Haible  <bruno@clisp.org>
31132
31133         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31134
31135 2010-04-11  Jim Meyering  <meyering@redhat.com>
31136
31137         maint.mk: don't include dist-check.mk
31138         * top/maint.mk: Remove bogus include directive.
31139
31140         maint.mk: improve empty-line-at-EOF check
31141         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31142         solution, rather than tail+Perl-based one.  The latter would read
31143         a few kilobytes from the end of each file, and did not handle empty
31144         files properly.
31145
31146         maint.mk: print the elapsed time for each syntax-check rule
31147         * top/maint.mk (sc_m_rules_): Save start time in a file.
31148         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31149         (local-check): Interpose the .z rules
31150
31151 2010-04-11  Jim Meyering  <meyering@redhat.com>
31152
31153         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31154         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31155         empty file with one that ends in an empty line.
31156
31157 2010-04-10  Bruno Haible  <bruno@clisp.org>
31158
31159         mkdir: Make it work on mingw64.
31160         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31161         * lib/mkdir.c: Update comment.
31162         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
31163
31164 2010-04-10  Bruno Haible  <bruno@clisp.org>
31165
31166         Don't override improved macro from newer autoconf.
31167         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31168         autoconf >= 2.62.
31169         Reported by Joel E. Denny <jdenny@clemson.edu>.
31170
31171 2010-04-10  Jim Meyering  <meyering@redhat.com>
31172
31173         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31174         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31175
31176         maint.mk: correct a diagnostic
31177         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31178         in diagnostic; now use $prohibit.
31179
31180 2010-04-10  Bruno Haible  <address@hidden>
31181
31182         fchownat: Fix a C++ test error on Solaris 8.
31183         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31184         the function does not exist.
31185
31186 2010-04-10  Bruno Haible  <bruno@clisp.org>
31187
31188         vasnprintf: Add more tests.
31189         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31190         (test_function): Test converting an invalid wide string.
31191
31192         vasnprintf: Correct handling of unconvertible wide string arguments.
31193         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31194         VASNPRINTF.
31195         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31196         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31197         smaller than the expected maximum need for the directive. Set errno to
31198         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31199         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31201         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31202         * modules/vasnprintf (Files): Add m4/printf.m4.
31203         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31204
31205 2010-04-10  Bruno Haible  <bruno@clisp.org>
31206
31207         vasnprintf: Fix crash in %ls directive.
31208         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31209         string is passed as argument to %ls, with no precision and no width.
31210         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31211
31212 2010-04-10  Bruno Haible  <bruno@clisp.org>
31213
31214         vasnprintf: Fix multiple test failures on mingw.
31215         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31216         _snprintf, or snwprintf, not _snwprintf.
31217
31218 2010-04-10  Bruno Haible  <bruno@clisp.org>
31219
31220         write: Fix a C++ test error on mingw.
31221         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31222
31223 2010-04-10  Bruno Haible  <bruno@clisp.org>
31224
31225         vasnprintf test: Reduce code duplication.
31226         * tests/test-vasnprintf.c (test_function): New function, extracted from
31227         test_vasnprintf.
31228         (test_vasnprintf, test_asnprintf): Invoke it.
31229
31230 2010-04-10  Bruno Haible  <bruno@clisp.org>
31231
31232         strnlen: Fix warning in C++ mode on MacOS X.
31233         * lib/string.in.h (strnlen): Use the modern idiom.
31234         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31235         defining strnlen as a macro already in <config.h>.
31236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31237         REPLACE_STRNLEN.
31238         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31239         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31240
31241 2010-04-08  James Youngman  <jay@gnu.org>
31242
31243         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31244         the example.
31245
31246 2010-04-09  Jim Meyering  <meyering@redhat.com>
31247
31248         maint.mk: print better diagnostic when there is no $(_hv_file)
31249         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31250         announce that when $(_hv_file) (aka help-version) does not exist.
31251
31252         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31253         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31254         not try to interpret its random input bytes.  Jarno Rajahalme reported
31255         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31256         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31257         (mktempd_): Likewise, just in case.
31258
31259         ftruncate: add two years to projected module removal date: 2012
31260         * m4/ftruncate.m4: Adjust comments.
31261
31262         ftruncate: mark module as obsolete; even MinGW provides it, now
31263         * modules/ftruncate (Status): Obsolete.
31264         (Notice): Say that.
31265         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31266         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31267
31268 2010-04-08  Bruno Haible  <bruno@clisp.org>
31269
31270         Fix side effects from tests-related modules.
31271         * modules/dprintf-posix (Comment): New section.
31272         * modules/fprintf-posix (Comment): Likewise.
31273         * modules/obstack-printf-posix (Comment): Likewise.
31274         * modules/printf-posix (Comment): Likewise.
31275         * modules/snprintf-posix (Comment): Likewise.
31276         * modules/sprintf-posix (Comment): Likewise.
31277         * modules/vasnprintf-posix (Comment): Likewise.
31278         * modules/vasprintf-posix (Comment): Likewise.
31279         * modules/vdprintf-posix (Comment): Likewise.
31280         * modules/vfprintf-posix (Comment): Likewise.
31281         * modules/vprintf-posix (Comment): Likewise.
31282         * modules/vsnprintf-posix (Comment): Likewise.
31283         * modules/vsprintf-posix (Comment): Likewise.
31284         * modules/xprintf-posix (Comment): Likewise.
31285         * modules/xvasprintf-posix (Comment): Likewise.
31286         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31287         * modules/floorf-tests (Depends-on): Likewise.
31288         * modules/round-tests (Depends-on): Likewise.
31289         * modules/roundf-tests (Depends-on): Likewise.
31290         * modules/trunc-tests (Depends-on): Likewise.
31291         * modules/truncf-tests (Depends-on): Likewise.
31292         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31293         'fprintf-posix' module is not present.
31294         * tests/test-floorf2.c (check): Likewise.
31295         * tests/test-trunc2.c (check): Likewise.
31296         * tests/test-truncf2.c (check): Likewise.
31297         * tests/test-round2.c (equal): Likewise.
31298         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31299
31300 2010-04-07  Karl Berry  <karl@gnu.org>
31301
31302         * config/srclist.txt,
31303         * config/srclistvars.sh,
31304         * config/srclist-update: doc fixes.
31305
31306 2010-04-07  Jim Meyering  <meyering@redhat.com>
31307
31308         maint.mk: add a PATH crosschecking syntax-check rule
31309         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31310         Useful if you use a test like the one in help-version (coreutils,
31311         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31312         printed by prog --version.
31313
31314 2010-04-06  Bruno Haible  <bruno@clisp.org>
31315
31316         Fix link error on mingw.
31317         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31318         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31319
31320 2010-04-06  Bruno Haible  <bruno@clisp.org>
31321
31322         Assume rmdir exists.
31323         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31324
31325 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31326
31327         doc: update users.txt
31328         * users.txt: Add gcal.
31329
31330 2010-04-06  Jim Meyering  <meyering@redhat.com>
31331
31332         init.sh: simply unset TMPDIR rather than risking env -i
31333         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31334         although it probably works fine on all Unix-based systems, some
31335         systems (Cygwin?) cannot tolerate a totally cleared environment.
31336         Suggestion from Eric Blake.
31337
31338 2010-04-06  Jim Meyering  <meyering@redhat.com>
31339
31340         init.sh: portability fix: use env's POSIX-specified -i option not -u
31341         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31342         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31343
31344 2010-04-05  Bruno Haible  <bruno@clisp.org>
31345
31346         btowc: Work around Cygwin 1.7.2 bug.
31347         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31348         does not map NUL to 0.
31349         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31350
31351 2010-04-05  Bruno Haible  <bruno@clisp.org>
31352
31353         Make the multithread modules work on Cygwin 1.7.2.
31354         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31355         imported symbols can be declared weak, so that it returns "no" on
31356         Cygwin 1.7.2.
31357
31358 2010-04-05  Bruno Haible  <bruno@clisp.org>
31359
31360         Use the module 'strncat'.
31361         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31362
31363         Tests for module 'strncat'.
31364         * modules/strncat-tests: New file.
31365         * tests/test-strncat.c: New file.
31366
31367         New module 'strncat'.
31368         * lib/string.in.h (strncat): New declaration.
31369         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31370         * m4/strncat.m4: New file, based on m4/memchr.m4.
31371         * modules/strncat: New file.
31372         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31373         is declared.
31374         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31375         REPLACE_STRNCAT.
31376         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31377         REPLACE_STRNCAT.
31378         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31379         module.
31380         * tests/test-string-c++.cc: Check signature of strncat.
31381
31382 2010-04-05  Jim Meyering  <meyering@redhat.com>
31383
31384         xstrtoumax-tests: convert to use init.sh
31385         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31386         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31387         Use Exit, not exit.
31388         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31389
31390         xstrtoimax-tests: convert to use init.sh
31391         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31392         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31393         Use Exit, not exit.
31394         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31395
31396 2010-04-05  Bruno Haible  <bruno@clisp.org>
31397
31398         sys_socket: Avoid #define replacements in C++ mode.
31399         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31400         warning to the function if possible, rather than #defining the symbol
31401         to a dysfunctional alias.
31402
31403 2010-04-05  Bruno Haible  <bruno@clisp.org>
31404
31405         fseeko: Fix C++ test error on mingw.
31406         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31407         gl_FUNC_FSEEKO.
31408         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31409         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31410         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31411         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31412
31413 2010-04-05  Bruno Haible  <bruno@clisp.org>
31414
31415         duplocale: Improve test output.
31416         * tests/test-duplocale.c (main): Print reason for skipped test.
31417
31418 2010-04-05  Bruno Haible  <bruno@clisp.org>
31419
31420         Assume rmdir exists.
31421         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31422         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31423
31424 2010-04-05  Bruno Haible  <bruno@clisp.org>
31425
31426         Fix link error on Solaris 8 with cc.
31427         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31428
31429 2010-04-05  Bruno Haible  <bruno@clisp.org>
31430
31431         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31432         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31433
31434 2010-04-05  Bruno Haible  <bruno@clisp.org>
31435
31436         vasprintf: Update documentation.
31437         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31438
31439 2010-04-05  Bruno Haible  <bruno@clisp.org>
31440
31441         ptsname: Improve test.
31442         * tests/test-ptsname.c (main): Also try the various master names of BSD
31443         systems.
31444
31445 2010-04-05  Bruno Haible  <bruno@clisp.org>
31446
31447         memchr: Avoid a possible C++ test error.
31448         * lib/string.in.h (memchr): Provide declaration if function is missing.
31449         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31450         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31452         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31453
31454 2010-04-05  Bruno Haible  <bruno@clisp.org>
31455
31456         strtok_r: Improve idiom.
31457         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31458         AC_LIBOBJ is used.
31459
31460 2010-04-05  Bruno Haible  <bruno@clisp.org>
31461
31462         strdup: Improve idiom.
31463         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31464         AC_LIBOBJ is used.
31465         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31466         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31467         when AC_LIBOBJ is used.
31468
31469 2010-04-05  Bruno Haible  <bruno@clisp.org>
31470
31471         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31472         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31473         don't set REPLACE_MBSINIT to 1.
31474         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31475         don't set REPLACE_MBRTOWC to 1.
31476         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31477         exist, don't set REPLACE_MBSRTOWCS to 1.
31478         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31479         exist, don't set REPLACE_MBSNRTOWCS to 1.
31480         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31481         don't set REPLACE_WCRTOMB to 1.
31482         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31483         exist, don't set REPLACE_WCSRTOMBS to 1.
31484         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31485         exist, don't set REPLACE_WCSNRTOMBS to 1.
31486
31487 2010-04-05  Bruno Haible  <bruno@clisp.org>
31488
31489         ldexpl: Improve idiom.
31490         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31491         make sure to set HAVE_DECL_LDEXPL to 0.
31492
31493 2010-04-05  Jim Meyering  <meyering@redhat.com>
31494
31495         xstrtol-tests: convert to use init.sh
31496         * modules/xstrtol-tests (Files): Add tests/init.sh.
31497         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31498         Use Exit, not exit.
31499         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31500
31501         atexit-tests: convert to use init.sh
31502         * modules/atexit-tests (Files): Add tests/init.sh.
31503         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31504         Use Exit, not exit.
31505         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31506
31507         init.sh: fix typo
31508         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31509
31510         init.sh: make it easier for a test script to write to the tty, ...
31511         when using automake's parallel-tests mode.
31512         * tests/init.sh (stderr_fileno_): Define overridable variable.
31513         (warn_): New function, to use it.
31514         (fail_, skip_, framework_failure_): Use warn_.
31515
31516 2010-04-04  Bruno Haible  <bruno@clisp.org>
31517
31518         btowc: Avoid warning.
31519         * lib/btowc.c: Include <stdlib.h>.
31520         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31521
31522 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31523             Bruno Haible  <bruno@clisp.org>
31524
31525         wchar: Port to NetBSD 1.5.
31526         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31527         * lib/wctype.in.h (WEOF): Likewise.
31528
31529 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31530             Bruno Haible  <bruno@clisp.org>
31531
31532         Port extended stdio to NetBSD 1.5.
31533         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31534         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31535         older.
31536
31537 2010-04-04  Bruno Haible  <bruno@clisp.org>
31538
31539         string: Remove unused substitution.
31540         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31541         HAVE_DECL_STRERROR.
31542         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31543
31544 2010-04-04  Bruno Haible  <bruno@clisp.org>
31545
31546         strtod: Avoid a possible C++ test error.
31547         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31548         set REPLACE_STRTOD.
31549
31550 2010-04-04  Bruno Haible  <bruno@clisp.org>
31551
31552         strerror: Update documentation.
31553         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31554
31555 2010-04-04  Bruno Haible  <bruno@clisp.org>
31556
31557         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31558         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31559         _GL_CXXALIAS_SYS_CAST.
31560
31561 2010-04-04  Bruno Haible  <bruno@clisp.org>
31562
31563         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31564         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31565         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31566         REPLACE_FREXPL to 1.
31567         * doc/posix-functions/frexpl.texi: Update documentation.
31568
31569 2010-04-04  Bruno Haible  <bruno@clisp.org>
31570
31571         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31572         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31573
31574 2010-04-04  Bruno Haible  <bruno@clisp.org>
31575
31576         Implement nanosleep for native Windows.
31577         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31578
31579 2010-04-04  Bruno Haible  <bruno@clisp.org>
31580
31581         math: Fix some C++ test errors on Solaris 8.
31582         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31583
31584 2010-04-04  Bruno Haible  <bruno@clisp.org>
31585
31586         math: Fix some C++ test errors on Cygwin.
31587         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31588         truncl): Provide declaration if the system does not have it.
31589         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31590         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31591         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31592         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31593         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31594         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31595         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31596         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31597         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31598         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31599         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31600         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31601         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31602         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31603         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31604         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31606         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31607         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31608         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31609         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31610         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31611
31612 2010-04-04  Bruno Haible  <bruno@clisp.org>
31613
31614         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31615         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31616         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31617         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31618         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31619         * m4/isinf.m4 (gl_ISINF): Likewise.
31620         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31621
31622 2010-04-04  Bruno Haible  <bruno@clisp.org>
31623
31624         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31625         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31626
31627 2010-04-04  Bruno Haible  <bruno@clisp.org>
31628
31629         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31630         * modules/tmpfile (configure.ac): Update.
31631
31632         tmpfile: Fix C++ test error on mingw.
31633         * lib/stdio.in.h (tmpfile): New declaration.
31634         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31635         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31636         * modules/tmpfile (Depends-on): Add stdio.
31637         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31638         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31639         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31640         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31641         REPLACE_TMPFILE.
31642         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31643
31644 2010-04-04  Bruno Haible  <bruno@clisp.org>
31645
31646         ioctl: Fix C++ test error on mingw.
31647         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31648         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31649         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31650
31651 2010-04-03  Bruno Haible  <bruno@clisp.org>
31652
31653         wcwidth: Fix C++ test error on mingw.
31654         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31656         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31657
31658 2010-04-03  Bruno Haible  <bruno@clisp.org>
31659
31660         nanosleep: Fix C++ test error on mingw.
31661         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31662         * lib/time.in.h (nanosleep): Use modern idiom.
31663         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31664         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31665         REPLACE_NANOSLEEP to 1.
31666         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31667         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31668
31669 2010-04-03  Bruno Haible  <bruno@clisp.org>
31670
31671         strptime: Fix C++ test error on mingw.
31672         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31673         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31674         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31675         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31676         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31677         not REPLACE_STRPTIME.
31678         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31679         REPLACE_STRPTIME.
31680
31681 2010-04-03  Bruno Haible  <bruno@clisp.org>
31682
31683         timegm: Fix C++ test error on mingw.
31684         * lib/time.in.h (timegm): Use modern idiom.
31685         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31686         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31687         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31688         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31689
31690 2010-04-03  Bruno Haible  <bruno@clisp.org>
31691
31692         timegm: Assume declaration if function exists.
31693         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31694         if it exists. Don't clobber ac_cv_func_timegm.
31695
31696 2010-04-03  Bruno Haible  <bruno@clisp.org>
31697
31698         time_r: Fix C++ test error on mingw.
31699         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31700         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31701         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31702         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31703         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31704
31705 2010-04-03  Bruno Haible  <bruno@clisp.org>
31706
31707         time_r: Minor updates.
31708         * modules/time_r (Description): Mention the provided functions.
31709         * lib/time_r.c: Don't include <string.h>.
31710         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31711         * doc/posix-functions/localtime_r.texi: Likewise.
31712
31713 2010-04-03  Bruno Haible  <bruno@clisp.org>
31714
31715         time: Fix regression introduced on 2010-03-08.
31716         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31717         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31718
31719 2010-04-03  Jim Meyering  <meyering@redhat.com>
31720
31721         maint.mk: don't silently disable project-specific syntax-check rules
31722         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31723         that they need to convert their project-specific syntax-check rules
31724         to use the new _sc_search_regexp.
31725
31726 2010-04-03  Bruno Haible  <bruno@clisp.org>
31727
31728         fchdir: Fix regression introduced on 2010-03-08.
31729         * lib/unistd.in.h (fchdir): Fix declaration.
31730         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31732         REPLACE_FCHDIR.
31733         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31734         REPLACE_FCHDIR.
31735
31736 2010-04-03  Bruno Haible  <bruno@clisp.org>
31737
31738         getpagesize: Fix C++ test error on mingw.
31739         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31740         system does not declare the function.
31741         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31742         declared.
31743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31744         HAVE_DECL_GETPAGESIZE.
31745         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31746
31747 2010-04-03  Bruno Haible  <bruno@clisp.org>
31748
31749         stdio: Make C++ tests work on mingw.
31750         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31751         does not declare the function.
31752
31753 2010-04-03  Bruno Haible  <bruno@clisp.org>
31754
31755         ftello: Fix C++ test error on mingw.
31756         * lib/stdio.in.h (ftello): Use modern idiom.
31757         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31758         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31759         is missing and that it needs to be replaced.
31760         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31762         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31763
31764 2010-04-03  Bruno Haible  <bruno@clisp.org>
31765
31766         fseeko: Fix C++ test error on mingw.
31767         * lib/stdio.in.h (fseeko): Use modern idiom.
31768         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31769         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31770         is missing and that it needs to be replaced.
31771         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31773         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31774
31775 2010-04-03  Bruno Haible  <bruno@clisp.org>
31776
31777         mkstemp: Fix C++ test error on mingw.
31778         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31779         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31780         function is missing and that it needs to be replaced.
31781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31782         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31783
31784 2010-04-03  Bruno Haible  <bruno@clisp.org>
31785
31786         stpncpy: Fix C++ test error on mingw.
31787         * lib/string.in.h (stpncpy): Use modern idiom.
31788         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31789         function is missing and that it needs to be replaced.
31790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31791         REPLACE_STPNCPY.
31792         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31793
31794 2010-04-03  Bruno Haible  <bruno@clisp.org>
31795
31796         sys_stat: Fix C++ test error on mingw.
31797         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31798         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31799
31800 2010-04-03  Bruno Haible  <bruno@clisp.org>
31801
31802         pty: Update doc.
31803         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31804
31805 2010-04-03  Bruno Haible  <bruno@clisp.org>
31806
31807         unistd: Fix C++ test error on mingw.
31808         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31809
31810 2010-04-03  Bruno Haible  <bruno@clisp.org>
31811
31812         Update doc regarding mingw.
31813         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31814         * doc/glibc-functions/login_tty.texi: Likewise.
31815         * doc/glibc-functions/forkpty.texi: Likewise.
31816
31817 2010-04-03  Bruno Haible  <bruno@clisp.org>
31818
31819         stdlib: Avoid compilation failure of c-strtold on mingw.
31820         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31821
31822 2010-04-03  Bruno Haible  <bruno@clisp.org>
31823
31824         locale: Make C++ tests work on Cygwin and mingw.
31825         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31826         cannot provide the function.
31827         Reported by Simon Josefsson.
31828
31829 2010-04-03  Bruno Haible  <bruno@clisp.org>
31830
31831         localename: Port to MacOS X 10.6.
31832         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31833         memory layout of the locales in MacOS X 10.6 as well.
31834         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31835
31836 2010-04-02  Bruno Haible  <bruno@clisp.org>
31837
31838         gnulib-tool: Ensure that long-running tests are executed last.
31839         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31840         running tests after the one for the other tests.
31841
31842 2010-04-02  Bruno Haible  <bruno@clisp.org>
31843
31844         gnulib-tool: Ensure the tests in the main directory are executed first.
31845         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31846         start with the current directory.
31847
31848 2010-04-02  Bruno Haible  <bruno@clisp.org>
31849
31850         Tests for module 'havelib', moved here from GNU gettext.
31851         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31852         modifications.
31853         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31854         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31855         with modifications.
31856         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31857         modifications.
31858         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31859         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31860         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31861         with modifications.
31862         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31863         with modifications.
31864         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31865         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31866         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31867         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31868         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31869         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31870         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31871         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31872         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31873         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31874         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31875         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31876         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31877         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31878         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31879         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31880         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31881         with modifications.
31882         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31883         with modifications.
31884         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31885         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31886         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31887         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31888         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31889         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31890         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31891         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31892         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31893         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31894         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31895         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31896         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31897         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31898         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31899         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31900         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31901         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31902         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31903         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31904         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31905         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31906         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31907         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31908         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31909         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31910         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31911         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31912         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31913         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31914         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31915         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31916         * tests/havelib/rpathx/rpathx.c: New file, from
31917         gettext/autoconf-lib-link.
31918         * tests/havelib/rpathx/Makefile.am: New file, from
31919         gettext/autoconf-lib-link.
31920         * tests/havelib/rpathx/configure.ac: New file, from
31921         gettext/autoconf-lib-link with modifications.
31922         * tests/havelib/rpathy/rpathy.c: New file, from
31923         gettext/autoconf-lib-link.
31924         * tests/havelib/rpathy/Makefile.am: New file, from
31925         gettext/autoconf-lib-link.
31926         * tests/havelib/rpathy/configure.ac: New file, from
31927         gettext/autoconf-lib-link with modifications.
31928         * tests/havelib/rpathz/rpathz.c: New file, from
31929         gettext/autoconf-lib-link.
31930         * tests/havelib/rpathz/Makefile.am: New file, from
31931         gettext/autoconf-lib-link.
31932         * tests/havelib/rpathz/configure.ac: New file, from
31933         gettext/autoconf-lib-link with modifications.
31934         * tests/havelib/rpathlx/usex.c: New file, from
31935         gettext/autoconf-lib-link.
31936         * tests/havelib/rpathlx/Makefile.am: New file, from
31937         gettext/autoconf-lib-link.
31938         * tests/havelib/rpathlx/configure.ac: New file, from
31939         gettext/autoconf-lib-link with modifications.
31940         * tests/havelib/rpathly/usey.c: New file, from
31941         gettext/autoconf-lib-link.
31942         * tests/havelib/rpathly/Makefile.am: New file, from
31943         gettext/autoconf-lib-link.
31944         * tests/havelib/rpathly/configure.ac: New file, from
31945         gettext/autoconf-lib-link with modifications.
31946         * tests/havelib/rpathlz/usez.c: New file, from
31947         gettext/autoconf-lib-link.
31948         * tests/havelib/rpathlz/Makefile.am: New file, from
31949         gettext/autoconf-lib-link.
31950         * tests/havelib/rpathlz/configure.ac: New file, from
31951         gettext/autoconf-lib-link with modifications.
31952         * tests/havelib/rpathlyx/usey.c: New file, from
31953         gettext/autoconf-lib-link.
31954         * tests/havelib/rpathlyx/Makefile.am: New file, from
31955         gettext/autoconf-lib-link.
31956         * tests/havelib/rpathlyx/configure.ac: New file, from
31957         gettext/autoconf-lib-link with modifications.
31958         * tests/havelib/rpathlzyx/usez.c: New file, from
31959         gettext/autoconf-lib-link.
31960         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31961         gettext/autoconf-lib-link.
31962         * tests/havelib/rpathlzyx/configure.ac: New file, from
31963         gettext/autoconf-lib-link with modifications.
31964         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31965         with modifications.
31966
31967 2010-04-02  Bruno Haible  <bruno@clisp.org>
31968
31969         gnulib-tool: Create distributed built sources also for the tests.
31970         * gnulib-tool (func_create_testdir): Also generate distributed built
31971         sources in the tests directory.
31972
31973 2010-04-02  Bruno Haible  <bruno@clisp.org>
31974
31975         gnulib-tool: Obey user's environment variables.
31976         * gnulib-tool (func_create_testdir): When creating built sources,
31977         respect the environment variables for autoconf, automake, etc. given by
31978         the user.
31979
31980 2010-04-02  Bruno Haible  <bruno@clisp.org>
31981
31982         gnulib-tool: Provide the value of --m4-base to modules.
31983         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31984         of gl_m4_base.
31985
31986 2010-04-02  Eric Blake  <eblake@redhat.com>
31987
31988         maint.mk: fix some fallout
31989         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31990         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31991
31992 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31993
31994         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31995         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31996         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31997         (sc_cast_of_x_alloc_return_value): Likewise.
31998         (sc_cast_of_alloca_return_value): Likewise.
31999         (sc_space_tab): Likewise.
32000         (sc_prohibit_atoi_atof): Likewise.
32001         (sc_prohibit_magic_number_exit): Likewise.
32002         (sc_error_exit_success): Likewise.
32003         (sc_file_system): Likewise.
32004         (sc_prohibit_have_config_h): Likewise.
32005         (sc_require_config_h): Likewise.
32006         (sc_prohibit_HAVE_MBRTOWC): Likewise.
32007         (sc_obsolete_symbols): Likewise.
32008         (sc_changelog): Likewise.
32009         (sc_program_name): Likewise.
32010         (sc_the_the): Likewise.
32011         (sc_trailing_blank): Likewise.
32012         (sc_two_space_separator_in_usage): Likewise.
32013         (sc_useless_cpp_parens): Likewise.
32014         (sc_GPL_version): Likewise.
32015         (sc_GFDL_version): Likewise.
32016         (sc_texinfo_acronym): Likewise.
32017         (sc_prohibit_cvs_keyword): Likewise.
32018         (sc_prohibit_stat_st_blocks): Likewise.
32019         (sc_prohibit_S_IS_definition): Likewise.
32020         (sc_redundant_const): Likewise.
32021         (sc_makefile_TAB_only_indentation): Likewise.
32022         (sc_m4_quote_check): Likewise.
32023         (sc_makefile_path_separator_check): Likewise.
32024         (sc_copyright_check): Likewise.
32025         (sc_Wundef_boolean): Likewise.
32026         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32027
32028         maint.mk: match 0 or more whitespace-before-function-call '('
32029         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32030         that have zero or two-and-more spaces between the function name
32031         and the open parenthesis.
32032         (sc_error_message_warn_fatal): Likewise.
32033         (sc_error_message_uppercase): Likewise.
32034         (sc_error_message_period): Likewise.
32035
32036 2010-03-31  Eric Blake  <eblake@redhat.com>
32037
32038         maint.mk: check for [ as well as test
32039         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32040         Based on a libvirt report by Matthias Bolte.
32041
32042         gnumakefile: don't squelch _version output
32043         * top/GNUmakefile (_version): Create one-shot dependency rather
32044         than using $(shell) when version must be regenerated.
32045         (_autoreconf): Run verbosely, by default.
32046
32047         sys_time: avoid compiler warnings
32048         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32049         unconditional, fixing regression from 2010-03-29.
32050         Reported by Simon Josefsson.
32051
32052 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32053
32054         maint.mk: s/_header_without_use/_sc_header_without_use/
32055         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32056         (sc_prohibit_assert_without_use): Use the new name.
32057         (sc_prohibit_close_stream_without_use): Likewise.
32058         (sc_prohibit_getopt_without_use): Likewise.
32059         (sc_prohibit_quotearg_without_use): Likewise.
32060         (sc_prohibit_quote_without_use): Likewise.
32061         (sc_prohibit_long_options_without_use): Likewise.
32062         (sc_prohibit_inttostr_without_use): Likewise.
32063         (sc_prohibit_ignore_value_without_use): Likewise.
32064         (sc_prohibit_error_without_use): Likewise.
32065         (sc_prohibit_xalloc_without_use): Likewise.
32066         (sc_prohibit_hash_without_use): Likewise.
32067         (sc_prohibit_hash_pjw_without_use): Likewise.
32068         (sc_prohibit_safe_read_without_use): Likewise.
32069         (sc_prohibit_argmatch_without_use): Likewise.
32070         (sc_prohibit_canonicalize_without_use): Likewise.
32071         (sc_prohibit_root_dev_ino_without_use): Likewise.
32072         (sc_prohibit_openat_without_use): Likewise.
32073         (sc_prohibit_c_ctype_without_use): Likewise.
32074         (sc_prohibit_signal_without_use): Likewise.
32075         (sc_prohibit_intprops_without_use): Likewise.
32076
32077 2010-03-30  Eric Blake  <eblake@redhat.com>
32078
32079         maint: improve module indicators
32080         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32081         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32082         columns, and avoid extra macro expansion.
32083
32084         fdopendir: work around FreeBSD bug
32085         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32086         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32087         * modules/dirent (Makefile.am): Substitute it.
32088         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32089         declaration.
32090         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32091         fix.
32092         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32093
32094 2010-03-29  Bruno Haible  <bruno@clisp.org>
32095
32096         Emit #pragma system_header after the inclusion guard, not before.
32097         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32098         guard that spans the entire file, not before. This enables an
32099         optimization in GCC's preprocessor.
32100         * lib/ctype.in.h: Likewise.
32101         * lib/dirent.in.h: Likewise.
32102         * lib/errno.in.h: Likewise.
32103         * lib/float.in.h: Likewise.
32104         * lib/getopt.in.h: Likewise.
32105         * lib/iconv.in.h: Likewise.
32106         * lib/langinfo.in.h: Likewise.
32107         * lib/locale.in.h: Likewise.
32108         * lib/math.in.h: Likewise.
32109         * lib/netdb.in.h: Likewise.
32110         * lib/netinet_in.in.h: Likewise.
32111         * lib/pty.in.h: Likewise.
32112         * lib/sched.in.h: Likewise.
32113         * lib/se-selinux.in.h: Likewise.
32114         * lib/search.in.h: Likewise.
32115         * lib/spawn.in.h: Likewise.
32116         * lib/stdarg.in.h: Likewise.
32117         * lib/stdint.in.h: Likewise.
32118         * lib/string.in.h: Likewise.
32119         * lib/strings.in.h: Likewise.
32120         * lib/sys_file.in.h: Likewise.
32121         * lib/sys_ioctl.in.h: Likewise.
32122         * lib/sys_time.in.h: Likewise.
32123         * lib/sys_times.in.h: Likewise.
32124         * lib/sys_utsname.in.h: Likewise.
32125         * lib/sys_wait.in.h: Likewise.
32126         * lib/sysexits.in.h: Likewise.
32127         * lib/wctype.in.h: Likewise.
32128
32129 2010-03-28  James Youngman  <jay@gnu.org>
32130
32131         save-cwd: don't leak a file descriptor when the caller execs.
32132         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32133         saved file descriptor.
32134         * modules/save-cwd (Depends-on): Depend on cloexec.
32135
32136 2010-03-29  Bruno Haible  <bruno@clisp.org>
32137
32138         Remove vestiges of fts-lgpl module.
32139         * lib/fts_.h: Assume GNULIB_FTS is 1.
32140         * lib/fts.c: Likewise.
32141         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32142
32143 2010-03-28  Bruno Haible  <bruno@clisp.org>
32144
32145         Fix definition of tests witness macro.
32146         * gnulib-tool (func_import): Fix definition of witness macro.
32147
32148 2010-03-28  Bruno Haible  <bruno@clisp.org>
32149
32150         Fix ioctl's protoype on glibc systems.
32151         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32152         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32153         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32154         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32155         signature. If not, arrange to replace the ioctl function.
32156         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32157         REPLACE_IOCTL.
32158         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32159         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32160         Reported by Ludovic Courtès <ludo@gnu.org>.
32161
32162 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32163
32164         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32165         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32166         made it so grep -r --include=GLOB* ... did not work.
32167
32168 2010-03-26  Jim Meyering  <meyering@redhat.com>
32169             Eric Blake  <eblake@redhat.com>
32170
32171         maint.mk: prohibit use of test's -o and -a operators
32172         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32173
32174 2010-03-28  Bruno Haible  <bruno@clisp.org>
32175
32176         Remove unused GNULIB_XYZ macro definitions.
32177         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32178         invocation.
32179
32180 2010-03-28  Bruno Haible  <bruno@clisp.org>
32181
32182         Mark privileged tests modules.
32183         * modules/idpriv-drop-tests (Status): New section.
32184         * modules/idpriv-droptemp-tests (Status): New section.
32185
32186 2010-03-28  Bruno Haible  <bruno@clisp.org>
32187
32188         Split C++ tests into separate tests modules.
32189         * modules/dirent-c++-tests: New file, extracted from
32190         modules/dirent-tests.
32191         * modules/dirent-tests: Depend on it.
32192         * modules/fcntl-h-c++-tests: New file, extracted from
32193         modules/fcntl-h-tests.
32194         * modules/fcntl-h-tests: Depend on it.
32195         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32196         * modules/glob-tests: Depend on it.
32197         * modules/iconv-h-c++-tests: New file, extracted from
32198         modules/iconv-h-tests.
32199         * modules/iconv-h-tests: Depend on it.
32200         * modules/langinfo-c++-tests: New file, extracted from
32201         modules/langinfo-tests.
32202         * modules/langinfo-tests: Depend on it.
32203         * modules/locale-c++-tests: New file, extracted from
32204         modules/locale-tests.
32205         * modules/locale-tests: Depend on it.
32206         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32207         * modules/math-tests: Depend on it.
32208         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32209         * modules/pty-tests: Depend on it.
32210         * modules/search-c++-tests: New file, extracted from
32211         modules/search-tests.
32212         * modules/search-tests: Depend on it.
32213         * modules/signal-c++-tests: New file, extracted from
32214         modules/signal-tests.
32215         * modules/signal-tests: Depend on it.
32216         * modules/spawn-c++-tests: New file, extracted from
32217         modules/spawn-tests.
32218         * modules/spawn-tests: Depend on it.
32219         * modules/stdio-c++-tests: New file, extracted from
32220         modules/stdio-tests.
32221         * modules/stdio-tests: Depend on it.
32222         * modules/stdlib-c++-tests: New file, extracted from
32223         modules/stdlib-tests.
32224         * modules/stdlib-tests: Depend on it.
32225         * modules/string-c++-tests: New file, extracted from
32226         modules/string-tests.
32227         * modules/string-tests: Depend on it.
32228         * modules/sys_ioctl-c++-tests: New file, extracted from
32229         modules/sys_ioctl-tests.
32230         * modules/sys_ioctl-tests: Depend on it.
32231         * modules/sys_select-c++-tests: New file, extracted from
32232         modules/sys_select-tests.
32233         * modules/sys_select-tests: Depend on it.
32234         * modules/sys_socket-c++-tests: New file, extracted from
32235         modules/sys_socket-tests.
32236         * modules/sys_socket-tests: Depend on it.
32237         * modules/sys_stat-c++-tests: New file, extracted from
32238         modules/sys_stat-tests.
32239         * modules/sys_stat-tests: Depend on it.
32240         * modules/sys_time-c++-tests: New file, extracted from
32241         modules/sys_time-tests.
32242         * modules/sys_time-tests: Depend on it.
32243         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32244         * modules/time-tests: Depend on it.
32245         * modules/unistd-c++-tests: New file, extracted from
32246         modules/unistd-tests.
32247         * modules/unistd-tests: Depend on it.
32248         * modules/wchar-c++-tests: New file, extracted from
32249         modules/wchar-tests.
32250         * modules/wchar-tests: Depend on it.
32251         * modules/wctype-c++-tests: New file, extracted from
32252         modules/wctype-tests.
32253         * modules/wctype-tests: Depend on it.
32254         Reported by Simon Josefsson.
32255
32256 2010-03-28  Bruno Haible  <bruno@clisp.org>
32257
32258         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32259         * gnulib-tool (func_exists_module): New function, extracted from
32260         func_verify_module.
32261         (func_verify_module): Use it.
32262         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32263         'foo' only if 'foo' exists.
32264         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32265         module.
32266
32267 2010-03-28  Bruno Haible  <bruno@clisp.org>
32268
32269         gnulib-tool: Add support for special categories of tests.
32270         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32271         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32272         (func_usage): Document them.
32273         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32274         inc_unportable_tests, inc_all_tests): New variables.
32275         (func_acceptable): Consider these variables.
32276         (func_modules_transitive_closure): Make it work when the 'Status' field
32277         consists of multiple words.
32278         (func_import): Store and restore the values of inc_cxx_tests,
32279         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32280         inc_all_tests in gnulib-comp.m4.
32281         (func_create_testdir): Set inc_all_tests to true.
32282         * doc/gnulib.texi (Extra tests modules): New section.
32283         Suggested by Jim Meyering.
32284
32285 2010-03-28  Bruno Haible  <bruno@clisp.org>
32286
32287         ansi-c++-opt: Allow turning off the C++ build by default.
32288         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32289         gl_CXX_CHOICE_DEFAULT_NO is defined.
32290         Requested by Eric Blake.
32291
32292 2010-03-28  Bruno Haible  <bruno@clisp.org>
32293
32294         unistd: Avoid #define replacements in C++ mode.
32295         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32296         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32297         setsockopt, shutdown, select): In C++, attach a warning to the function
32298         if possible, rather than #defining the symbol to a dysfunctional alias.
32299         Reported by John W. Eaton <jwe@gnu.org>.
32300
32301 2010-03-28  Bruno Haible  <bruno@clisp.org>
32302
32303         Fix link errors on mingw.
32304         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32305         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32306         $(LIBSOCKET).
32307         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32308         $(LIBSOCKET).
32309
32310 2010-03-28  Bruno Haible  <bruno@clisp.org>
32311             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32312
32313         lib-ignore: Determine different options for different compilers.
32314         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32315         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32316         Add comments.
32317         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32318         * NEWS: Mention the change.
32319
32320 2010-03-27  Bruno Haible  <bruno@clisp.org>
32321
32322         Remove unused GNULIB_XYZ macro definitions.
32323         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32324         * modules/fseek (configure.ac): Likewise.
32325         * modules/ioctl (configure.ac): Likewise.
32326         * modules/open (configure.ac): Likewise.
32327         * modules/stdlib-safer (configure.ac): Likewise.
32328
32329 2010-03-27  Bruno Haible  <bruno@clisp.org>
32330
32331         Add a remark about certain modules.
32332         * modules/malloc (Comment): New section.
32333         * modules/realloc (Comment): Likewise.
32334         * modules/sigpipe (Comment): Likewise.
32335
32336 2010-03-27  Bruno Haible  <bruno@clisp.org>
32337
32338         Resolve conflict between the two kinds of module indicators.
32339         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32340         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32341         * modules/canonicalize (configure.ac): Invoke
32342         gl_MODULE_INDICATOR_FOR_TESTS.
32343         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32344         GNULIB_XYZ.
32345         * tests/test-dirent-c++.cc: Likewise.
32346         * tests/test-dirent-safer.c: Likewise.
32347         * tests/test-dup2.c: Likewise.
32348         * tests/test-fchdir.c: Likewise.
32349         * tests/test-fcntl-h-c++.cc: Likewise.
32350         * tests/test-getopt.c: Likewise.
32351         * tests/test-getopt.h: Likewise.
32352         * tests/test-langinfo-c++.cc: Likewise.
32353         * tests/test-locale-c++.cc: Likewise.
32354         * tests/test-math-c++.cc: Likewise.
32355         * tests/test-pty-c++.cc: Likewise.
32356         * tests/test-search-c++.cc: Likewise.
32357         * tests/test-signal-c++.cc: Likewise.
32358         * tests/test-spawn-c++.cc: Likewise.
32359         * tests/test-stdio-c++.cc: Likewise.
32360         * tests/test-stdlib-c++.cc: Likewise.
32361         * tests/test-string-c++.cc: Likewise.
32362         * tests/test-sys_ioctl-c++.cc: Likewise.
32363         * tests/test-sys_select-c++.cc: Likewise.
32364         * tests/test-sys_socket-c++.cc: Likewise.
32365         * tests/test-sys_stat-c++.cc: Likewise.
32366         * tests/test-sys_time-c++.cc: Likewise.
32367         * tests/test-time-c++.cc: Likewise.
32368         * tests/test-unistd-c++.cc: Likewise.
32369         * tests/test-wchar-c++.cc: Likewise.
32370         * tests/uninorm/test-u8-nfc.c: Likewise.
32371         * tests/uninorm/test-u8-nfd.c: Likewise.
32372         * tests/uninorm/test-u8-nfkc.c: Likewise.
32373         * tests/uninorm/test-u8-nfkd.c: Likewise.
32374         * tests/uninorm/test-u16-nfc.c: Likewise.
32375         * tests/uninorm/test-u16-nfd.c: Likewise.
32376         * tests/uninorm/test-u16-nfkc.c: Likewise.
32377         * tests/uninorm/test-u16-nfkd.c: Likewise.
32378         * tests/uninorm/test-u32-nfc.c: Likewise.
32379         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32380         * tests/uninorm/test-u32-nfd.c: Likewise.
32381         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32382         * tests/uninorm/test-u32-nfkc.c: Likewise.
32383         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32384         * tests/uninorm/test-u32-nfkd.c: Likewise.
32385         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32386         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32387
32388 2010-03-27  Bruno Haible  <bruno@clisp.org>
32389
32390         Distinguish two kinds of module indicators.
32391         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32392         gl_MODULE_INDICATOR.
32393         (gl_MODULE_INDICATOR): New macro.
32394         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32395         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32396         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32397         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32398         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32399         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32400         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32401         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32402         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32403         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32404         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32405         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32406         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32407         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32408         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32409         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32410         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32411         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32412         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32413         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32414         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32415         * modules/cloexec (configure.ac): Likewise.
32416         * modules/getopt-gnu (configure.ac): Likewise.
32417         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32418         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32419         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32420         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32421
32422 2010-03-27  Bruno Haible  <bruno@clisp.org>
32423
32424         New module description field 'Comment'.
32425         * gnulib-tool: New option --extract-comment.
32426         (func_usage): Document it.
32427         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32428         (func_get_comment): New function.
32429         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32430
32431 2010-03-27  Bruno Haible  <bruno@clisp.org>
32432
32433         Addendum to 2010-02-07 commit.
32434         * gnulib-tool (func_usage): Document --extract-applicability option.
32435
32436 2010-03-27  Bruno Haible  <bruno@clisp.org>
32437
32438         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32439         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32440         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32441         rather than link errors.
32442
32443 2010-03-27  Bruno Haible  <bruno@clisp.org>
32444
32445         Avoid side effects from tests-related modules on the compilation of lib.
32446         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32447         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32448         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32449         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32450         macro.
32451         (func_import): Define a witness macro. Assign it a value that depends
32452         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32453         tests-related modules.
32454         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32455         Reported by Jim Meyering.
32456
32457 2010-03-27  Bruno Haible  <bruno@clisp.org>
32458
32459         Factorize common .m4 code.
32460         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32461         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32462         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32463         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32464         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32465         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32466         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32467         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32468         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32469         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32470         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32471         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32472         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32473         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32474         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32475         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32476         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32477         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32478         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32479         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32480         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32481         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32482         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32483         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32484         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32485         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32486         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32487         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32488         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32489         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32490         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32491         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32492
32493 2010-03-27  Bruno Haible  <bruno@clisp.org>
32494
32495         Fix a compilation error on Cygwin with g++ >= 4.3.
32496         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32497         if it is undefined or if we alias it to chmod.
32498         (lstat): Don't warn about the use of this function if it is undefined
32499         or if we alias it to stat.
32500         Reported by Simon Josefsson.
32501
32502 2010-03-27  Bruno Haible  <bruno@clisp.org>
32503
32504         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32505         * modules/getlogin (configure.ac): Update.
32506
32507         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32508         * modules/getlogin_r (configure.ac): Update.
32509
32510         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32511         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32512         * modules/inet_ntop (configure.ac): Update.
32513
32514         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32515         * modules/inet_pton (configure.ac): Update.
32516
32517         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32518         * modules/mbslen (configure.ac): Update.
32519
32520         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32521         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32522         * modules/forkpty (configure.ac): Update.
32523         * modules/openpty (configure.ac): Update.
32524
32525 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32526
32527         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32528         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32529
32530 2010-03-25  Eric Blake  <eblake@redhat.com>
32531
32532         maint: use pragma consistently across replacement headers
32533         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32534         * lib/dirent.in.h (system_header): Likewise.
32535         * lib/errno.in.h (system_header): Likewise.
32536         * lib/float.in.h (system_header): Likewise.
32537         * lib/getopt.in.h (system_header): Likewise.
32538         * lib/iconv.in.h (system_header): Likewise.
32539         * lib/inttypes.in.h (system_header): Likewise.
32540         * lib/langinfo.in.h (system_header): Likewise.
32541         * lib/locale.in.h (system_header): Likewise.
32542         * lib/math.in.h (system_header): Likewise.
32543         * lib/netdb.in.h (system_header): Likewise.
32544         * lib/netinet_in.in.h (system_header): Likewise.
32545         * lib/pty.in.h (system_header): Likewise.
32546         * lib/sched.in.h (system_header): Likewise.
32547         * lib/se-selinux.in.h (system_header): Likewise.
32548         * lib/search.in.h (system_header): Likewise.
32549         * lib/spawn.in.h (system_header): Likewise.
32550         * lib/stdarg.in.h (system_header): Likewise.
32551         * lib/stdint.in.h (system_header): Likewise.
32552         * lib/string.in.h (system_header): Likewise.
32553         * lib/strings.in.h (system_header): Likewise.
32554         * lib/sys_file.in.h (system_header): Likewise.
32555         * lib/sys_ioctl.in.h (system_header): Likewise.
32556         * lib/sys_socket.in.h (system_header): Likewise.
32557         * lib/sys_times.in.h (system_header): Likewise.
32558         * lib/sys_utsname.in.h (system_header): Likewise.
32559         * lib/sys_wait.in.h (system_header): Likewise.
32560         * lib/sysexits.in.h (system_header): Likewise.
32561         * lib/unistd.in.h (system_header): Likewise.
32562         * lib/wctype.in.h (system_header): Likewise.
32563
32564         arpa/inet: fix mingw compilation warning
32565         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32566         Reported by Matthew Bolte.
32567
32568 2010-03-25  Bruno Haible  <bruno@clisp.org>
32569
32570         Avoid collision between gnulib wrapper and libintl wrapper.
32571         * lib/printf.c (printf): Don't define if a printf wrapper is already
32572         defined in intl/printf.c.
32573         Reported by Michel Boaventura <michel@michelboaventura.com>.
32574
32575 2010-03-25  Bruno Haible  <bruno@clisp.org>
32576
32577         Use ANSI C.
32578         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32579
32580 2010-03-25  Bruno Haible  <bruno@clisp.org>
32581
32582         Minor formatting changes.
32583         * lib/acosl.c: Insert space before function argument list.
32584         * lib/argz.c: Likewise.
32585         * lib/asinl.c: Likewise.
32586         * lib/expl.c: Likewise.
32587         * lib/gen-uni-tables.c: Likewise.
32588         * lib/gettext.h: Likewise.
32589         * lib/glthread/lock.h: Likewise.
32590         * lib/tanl.c: Likewise.
32591         * lib/uniname/uniname.c: Likewise.
32592         * tests/test-idpriv-drop.c: Likewise.
32593         * tests/test-idpriv-droptemp.c: Likewise.
32594         * tests/test-lock.c: Likewise.
32595         * tests/test-tls.c: Likewise.
32596         * lib/argp-help.c: Insert space before function-like macro argument
32597         list.
32598         * lib/memcmp.c: Likewise.
32599         * tests/test-base64.c: Likewise.
32600         * lib/localename.c: Insert space before sizeof's argument list.
32601         * lib/safe-alloc.h: Likewise.
32602         * lib/file-set.h: Insert space before macro argument list.
32603         * tests/test-argp.c: Likewise.
32604         * lib/argp-namefrob.h: Insert space before function parameter list.
32605         * lib/getaddrinfo.c: Likewise.
32606         * lib/netdb.in.h: Likewise.
32607         * lib/parse-duration.h: Likewise.
32608         * lib/parse-duration.c: Likewise.
32609         * lib/poll.c: Likewise.
32610         * lib/select.c: Likewise.
32611         * lib/trim.h: Likewise.
32612         * tests/test-usleep.c: Likewise.
32613         * lib/ldexpl.c: Insert space before function parameter list and before
32614         function argument list.
32615         * lib/logl.c: Likewise.
32616         * lib/sqrtl.c: Likewise.
32617         * lib/trim.c: Likewise.
32618         * lib/cosl.c: Use GNU style indentation. Insert space before function
32619         argument list.
32620         * lib/sinl.c: Likewise.
32621         * lib/tsearch.c: Insert space after 'for'.
32622         Reported by Jim Meyering.
32623
32624 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32625
32626         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32627         config header before grepping, as it's not present before
32628         autoreconf/configure are run.  Reported by Simon Josefsson.
32629
32630 2010-03-23  Bruno Haible  <bruno@clisp.org>
32631
32632         pt_chown: Make it work with automake < 1.11.
32633         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32634         Reported by Simon Josefsson.
32635
32636 2010-03-23  Bruno Haible  <bruno@clisp.org>
32637
32638         pt_chown: Don't depend on GPLed modules.
32639         * lib/pt_chown.c: Don't include idpriv.h.
32640         (main): Don't drop privileges.
32641         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32642         Reported by Simon Josefsson.
32643
32644 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32645
32646         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32647         suggestions from karl@freefriends.org (Karl Berry).
32648
32649 2010-03-22  Eric Blake  <eblake@redhat.com>
32650
32651         gethostname: further tweaks
32652         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32653         are overriding gethostname.
32654         Suggested by Bruno Haible.
32655
32656 2010-03-21  Bruno Haible  <bruno@clisp.org>
32657
32658         Fix comments.
32659         * lib/forkpty.c (rpl_forkpty): Fix comment.
32660         * lib/openpty.c (rpl_openpty): Likewise.
32661         Reported by Eric Blake.
32662
32663 2010-03-22  Eric Blake  <eblake@redhat.com>
32664
32665         gethostname: fix build on mingw
32666         * lib/unistd.in.h (includes): Work around fact that mingw
32667         <winsock2.h> re-includes <unistd.h>, by avoiding any
32668         redeclarations if we are being included by <winsock2.h>.
32669         Reported by Matthias Bolte.
32670
32671 2010-03-21  Bruno Haible  <bruno@clisp.org>
32672
32673         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32674         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32675         modifications.
32676         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32677         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32678         provide the replacement.
32679         * modules/forkpty (Depends-on): Add openpty, login_tty.
32680         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32681         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32682         * doc/glibc-functions/forkpty.texi: More supported platforms.
32683         * config/srclist.txt: Add forkpty.c (commented).
32684
32685 2010-03-21  Bruno Haible  <bruno@clisp.org>
32686
32687         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32688         (Makefile.am): Verify that PTY_LIB is defined.
32689
32690         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32691
32692 2010-03-21  Bruno Haible  <bruno@clisp.org>
32693
32694         Tests for module 'login_tty'.
32695         * modules/login_tty-tests: New file.
32696         * tests/test-login_tty.c: New file.
32697
32698         New module 'login_tty'.
32699         * lib/login_tty.c: New file.
32700         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32701         * modules/login_tty: New file.
32702         * doc/glibc-functions/login_tty.texi: Mention the new module.
32703
32704 2010-03-21  Bruno Haible  <bruno@clisp.org>
32705
32706         login_tty: Documentation.
32707         * doc/glibc-functions/login_tty.texi: New file.
32708         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32709
32710 2010-03-21  Bruno Haible  <bruno@clisp.org>
32711
32712         pty: Consistent macro naming.
32713         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32714         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32715         * modules/pty (configure.ac): Update.
32716
32717 2010-03-21  Bruno Haible  <bruno@clisp.org>
32718
32719         Tests for openpty: Make stricter.
32720         * tests/test-openpty.c (main): Add test of canonical processing and
32721         erase.
32722         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32723
32724         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32725         * lib/openpty.c (openpty): New replacement function.
32726         * lib/pty.in.h: Include <termios.h>.
32727         (openpty): Update declaration. Add comments.
32728         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32729         is not declared, arrange to provide the replacement. Check for _getpty
32730         and posix_openpt.
32731         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32732         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32733         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32734         * modules/pty-tests (test_pty_c___LDADD): New variable.
32735         * doc/glibc-functions/openpty.texi: More supported platforms.
32736
32737 2010-03-21  Bruno Haible  <bruno@clisp.org>
32738
32739         setenv: Tweaks.
32740         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32741         the test program.
32742         * doc/posix-functions/setenv.texi: Update platforms list.
32743
32744 2010-03-21  Bruno Haible  <bruno@clisp.org>
32745
32746         New module 'unlockpt'.
32747         * lib/unlockpt.c: New file, from glibc with modifications.
32748         * m4/unlockpt.m4: New file.
32749         * modules/unlockpt: New file.
32750         * lib/stdlib.in.h (unlockpt): New declaration.
32751         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32752         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32753         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32754         HAVE_UNLOCKPT.
32755         * doc/posix-functions/unlockpt.texi: Mention the new module.
32756         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32757         * config/srclist.txt: Add unlockpt.c (commented).
32758
32759 2010-03-21  Jim Meyering  <meyering@redhat.com>
32760
32761         maint.mk: prohibit inclusion of "intprops.h" without use
32762         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32763
32764 2010-03-21  Bruno Haible  <bruno@clisp.org>
32765
32766         New module 'grantpt'.
32767         * lib/grantpt.c: New file, from glibc with modifications.
32768         * m4/grantpt.m4: New file.
32769         * modules/grantpt: New file.
32770         * lib/stdlib.in.h (grantpt): New declaration.
32771         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32772         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32773         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32774         HAVE_GRANTPT.
32775         * doc/posix-functions/grantpt.texi: Mention the new module.
32776         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32777         * config/srclist.txt: Add grantpt.c (commented).
32778
32779 2010-03-21  Bruno Haible  <bruno@clisp.org>
32780
32781         New module 'pt_chown'.
32782         * lib/pt_chown.c: New file, from glibc with modifications.
32783         * lib/pty-private.h: New file, from glibc with modifications.
32784         * modules/pt_chown: New file.
32785         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32786
32787 2010-03-21  Bruno Haible  <bruno@clisp.org>
32788
32789         Tests for module 'ptsname'.
32790         * modules/ptsname-tests: New file.
32791         * tests/test-ptsname.c: New file.
32792
32793         New module 'ptsname'.
32794         * lib/ptsname.c: New file, from glibc with modifications.
32795         * m4/ptsname.m4: New file.
32796         * modules/ptsname: New file.
32797         * lib/stdlib.in.h (ptsname): New declaration.
32798         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32799         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32800         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32801         HAVE_PTSNAME.
32802         * doc/posix-functions/ptsname.texi: Mention the new module.
32803         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32804         * config/srclist.txt: Add ptsname.c (commented).
32805
32806 2010-03-21  Bruno Haible  <bruno@clisp.org>
32807
32808         Tests for module 'ttyname_r'.
32809         * modules/ttyname_r-tests: New file.
32810         * tests/test-ttyname_r.c: New file.
32811
32812         New module 'ttyname_r'.
32813         * lib/ttyname_r.c: New file.
32814         * m4/ttyname_r.m4: New file.
32815         * modules/ttyname_r: New file.
32816         * lib/unistd.in.h (ttyname_r): New declaration.
32817         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32818         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32819         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32820         HAVE_TTYNAME_R.
32821         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32822         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32823
32824 2010-03-20  Bruno Haible  <bruno@clisp.org>
32825
32826         signal: Undefine macro definitions in C++ mode.
32827         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32828         sigfillset): Undefine macro definitions from the system header in C++
32829         mode.
32830         Reported by John W. Eaton <jwe@gnu.org>.
32831
32832 2010-03-20  Bruno Haible  <bruno@clisp.org>
32833
32834         Ensure no #include statements inside extern "C" { ... }.
32835         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32836         contain #include statements.
32837         * lib/time.in.h: Likewise.
32838
32839 2010-03-20  Bruno Haible  <bruno@clisp.org>
32840
32841         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32842         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32843         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32844         Reported by John W. Eaton <jwe@gnu.org>.
32845
32846 2010-03-20  Bruno Haible  <bruno@clisp.org>
32847
32848         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32849         Reported by Jim Meyering.
32850
32851 2010-03-20  Bruno Haible  <bruno@clisp.org>
32852
32853         pipe: Set errno upon failure.
32854         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32855         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32856         errno value in error message.
32857
32858 2010-03-20  Bruno Haible  <bruno@clisp.org>
32859             Jim Meyering  <meyering@redhat.com>
32860
32861         lchown: Avoid "unused variable" warning.
32862         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32863
32864 2010-03-20  Bruno Haible  <bruno@clisp.org>
32865
32866         Work around unlink() bug on MacOS X 10.5.6.
32867         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32868         attempting to unlink a parent directory.
32869         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32870         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32871         activate for the replacement function.
32872         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32873
32874 2010-03-20  Bruno Haible  <bruno@clisp.org>
32875
32876         Fix link errors on Solaris 8.
32877         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32878         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32879
32880 2010-03-19  Jim Meyering  <meyering@redhat.com>
32881
32882         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32883         The _LIBC implementation of build_range_exp correctly honors the
32884         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32885         However, the non-_LIBC implementation would ignore that syntax-bit
32886         flag and return REG_ERANGE unconditionally.
32887         This change makes it honor that flag.
32888         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32889         Make two pointer parameters "const".
32890         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32891         (parse_bracket_exp): Update caller.
32892
32893         regex.m4: correct the reversed range endpoint ([b-a]) test
32894         * m4/regex.m4: When requiring that [b-a] evoke failure,
32895         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32896         test pass once again for x86-based systems.
32897
32898 2010-03-19  Bruno Haible  <bruno@clisp.org>
32899
32900         scandir: Fix link error on Solaris 8.
32901         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32902         macros.
32903
32904 2010-03-19  Bruno Haible  <bruno@clisp.org>
32905
32906         getusershell: Fix documentation.
32907         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32908         module.
32909         * doc/glibc-functions/setusershell.texi: Likewise.
32910
32911         getusershell: Provide declaration, missing on Solaris 9.
32912         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32913         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32914         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32915         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32917         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32918         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32919         HAVE_GETUSERSHELL.
32920         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32921
32922 2010-03-19  Bruno Haible  <bruno@clisp.org>
32923
32924         wctype: Provide iswblank function.
32925         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32926         exists and is fine.
32927         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32928         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32929         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32930         * doc/posix-functions/iswblank.texi: Update.
32931
32932 2010-03-19  Bruno Haible  <bruno@clisp.org>
32933
32934         Tests of module 'pty' in C++ mode.
32935         * modules/pty-tests: New file.
32936         * tests/test-pty-c++.cc: New file.
32937         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32938
32939 2010-03-19  Eric Blake  <eblake@redhat.com>
32940
32941         logb: fix documentation
32942         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32943         1.5 declaration bug.
32944
32945         forkpty, openpty: prefer glibc's const-safe prototype
32946         * lib/forkpty.c (rpl_forkpty): New file.
32947         * lib/openpty.c (rpl_openpty): Likewise.
32948         * modules/forkpty (Files): Distribute it.
32949         * modules/openpty (Files): Likewise.
32950         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32951         check...
32952         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32953         replacement for for non-const BSD signature.
32954         * modules/pty (Makefile.am): Substitute witnesses.
32955         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32956         * tests/test-forkpty.c: Update signature check.
32957         * tests/test-openpty.c: Likewise.
32958         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32959         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32960
32961         forkpty, openpty: split functions into new modules
32962         * modules/pty (Makefile.am): Substitute new witnesses.
32963         (Libraries): Move library detection...
32964         * modules/forkpty: ...into new module.
32965         * modules/openpty: Another new module.
32966         * modules/pty-tests: Rename and split...
32967         * modules/forkpty-tests: ...to this...
32968         * modules/openpty-tests: ...and this.
32969         * tests/test-pty.c: Rename and split...
32970         * tests/test-forkpty.c: ...to this...
32971         * tests/test-openpty.c: ...and this.
32972         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32973         (gl_PTY): Split library searching...
32974         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32975         (gl_FORKPTY, gl_OPENPTY): New macros.
32976         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32977         * NEWS: Mention the split.
32978         * MODULES.html.sh (Misc): Document the modules.
32979         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32980         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32981
32982         pty: improve replacement header
32983         * lib/pty.in.h: New file.
32984         * modules/pty (Files): Ship it.
32985         (Makefile.am): Always build replacement.
32986         * m4/pty.m4: Rename...
32987         * m4/pty_h.m4: ...to this.
32988         (gl_PTY): Modernize setting of witness macros; update check of
32989         forkpty to take proper advantage of cache.
32990         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32991
32992         getopt: avoid compiler warning
32993         * lib/getopt.c (attribute_hidden): Remove unused macro.
32994
32995 2010-03-18  Bruno Haible  <bruno@clisp.org>
32996
32997         Fix link errors on Solaris 8.
32998         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32999         * modules/search-tests (test_search_c___LDADD): Likewise.
33000         * modules/signal-tests (test_signal_c___LDADD): Likewise.
33001         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
33002         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
33003         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
33004         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
33005         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
33006         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
33007
33008 2010-03-18  Bruno Haible  <bruno@clisp.org>
33009
33010         Fix bug introduced on 2010-03-14.
33011         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33012         (gl_SPAWN_H): Require it.
33013         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33014         Reported by Simon Josefsson.
33015
33016 2010-03-18  Bruno Haible  <bruno@clisp.org>
33017
33018         Fix typo introduced on 2009-12-31.
33019         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33020         posix_spawn_file_actions_adddup2.
33021
33022 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33023         and Eric Blake  <eblake@redhat.com>
33024
33025         test-vc-list-files-git: make more robust
33026         * tests/test-vc-list-files-git.sh: Unset problematic environment
33027         variables.  Chain commands together.
33028
33029 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33030
33031         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33032         `AC_CHECK_DECL' invocation.
33033
33034 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33035
33036         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33037         appears before executable statements. Suggested by Petr Sumbera
33038         <Petr.Sumbera@Sun.COM>.
33039
33040 2010-03-14  Bruno Haible  <bruno@clisp.org>
33041
33042         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33043         portability problems. Instead use a simpler test.
33044         (main): Check that invalid arguments are rejected only on Linux.
33045
33046 2010-03-14  Bruno Haible  <bruno@clisp.org>
33047
33048         Fix bug introduced on 2009-12-31.
33049         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33050         gl_PREREQ_SYS_H_WINSOCK2 always.
33051         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33052         SYS_SOCKET_H variable.
33053         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33054         Update comments.
33055         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33056         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33057         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33058         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33059         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33060
33061 2010-03-14  Bruno Haible  <bruno@clisp.org>
33062
33063         Fix values returned by sinl, cosl.
33064         * lib/trigl.h: Add specification comments.
33065         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33066         that combines the values from the precomputed table with the values of
33067         the Chebyshev polynomials.
33068
33069 2010-03-14  Bruno Haible  <bruno@clisp.org>
33070
33071         Fix compilation error when modules 'posix_spawn[p]' are not used.
33072         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33073         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33074
33075 2010-03-14  Bruno Haible  <bruno@clisp.org>
33076
33077         Fix compilation error on mingw when module 'time_r' is not used.
33078         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33079         is 1.
33080         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33081         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33082         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33083         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33084
33085 2010-03-14  Bruno Haible  <bruno@clisp.org>
33086
33087         Fix compilation error with Sun C.
33088         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33089         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33090         instead of GCC specific ULONG_LONG_MAX.
33091         * lib/xstrtoll.c: Likewise.
33092         * lib/xstrtoull.c: Likewise.
33093
33094 2010-03-13  Bruno Haible  <bruno@clisp.org>
33095
33096         Allow the user to disable C++ code and tests.
33097         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33098         (gl_PROG_ANSI_CXX): Require it.
33099
33100 2010-03-13  Bruno Haible  <bruno@clisp.org>
33101
33102         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33103         cases.
33104
33105 2010-03-13  Bruno Haible  <bruno@clisp.org>
33106
33107         Test that gnulib does not break the standard C++ headers.
33108         * tests/test-locale-c++2.cc: New file.
33109         * modules/locale-tests (Files): Add it.
33110         (Makefile.am): Compile it for test-locale-c++.
33111         * tests/test-math-c++2.cc: New file.
33112         * modules/math-tests (Files): Add it.
33113         (Makefile.am): Compile it for test-math-c++.
33114         * tests/test-signal-c++2.cc: New file.
33115         * modules/signal-tests (Files): Add it.
33116         (Makefile.am): Compile it for test-signal-c++.
33117         * tests/test-stdio-c++2.cc: New file.
33118         * modules/stdio-tests (Files): Add it.
33119         (Makefile.am): Compile it for test-stdio-c++.
33120         * tests/test-stdlib-c++2.cc: New file.
33121         * modules/stdlib-tests (Files): Add it.
33122         (Makefile.am): Compile it for test-stdlib-c++.
33123         * tests/test-string-c++2.cc: New file.
33124         * modules/string-tests (Files): Add it.
33125         (Makefile.am): Compile it for test-string-c++.
33126         * tests/test-time-c++2.cc: New file.
33127         * modules/time-tests (Files): Add it.
33128         (Makefile.am): Compile it for test-time-c++.
33129         Reported by John W. Eaton <jwe@gnu.org>.
33130
33131 2010-03-13  Bruno Haible  <bruno@clisp.org>
33132
33133         * gnulib-tool (func_usage): Clarify which options are available for
33134         --create-testdir and --create-megatestdir.
33135
33136 2010-03-13  Bruno Haible  <bruno@clisp.org>
33137
33138         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33139         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33140         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33141         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33142         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33143         when appropriate.
33144         Reported by Jim Meyering.
33145
33146 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33147
33148         * gnulib-tool (func_import): Explain origin of code.
33149
33150 2010-03-12  Bruno Haible  <bruno@clisp.org>
33151
33152         Fix problem with automake's definition of CXXLINK.
33153         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33154         Reported by Simon Josefsson and Ludovic Courtès.
33155
33156 2010-03-12  Bruno Haible  <bruno@clisp.org>
33157
33158         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33159         stable releases.
33160
33161 2010-03-11  Bruno Haible  <bruno@clisp.org>
33162
33163         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33164         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33165         whether the system provides one variant or multiple variants of the
33166         function.
33167         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33168         C++ compilers.
33169         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33170         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33171         Reported by Jim Meyering.
33172
33173 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33174
33175         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33176
33177 2010-03-08  Bruno Haible  <bruno@clisp.org>
33178
33179         gnulib-tool: Add support for --libtool in --create-testdir.
33180         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33181         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33182
33183 2010-03-08  Eric Blake  <eblake@redhat.com>
33184
33185         gnulib-tool.texi: mention possibility of git submodule
33186         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33187         submodules.
33188         * doc/.gitignore: Ignore another generated file.
33189
33190 2010-03-08  Karl Berry  <karl@gnu.org>
33191
33192         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33193         of committing gnulib files while skipping others.
33194
33195 2010-03-07  Bruno Haible  <bruno@clisp.org>
33196
33197         Tests of module 'wctype' in C++ mode.
33198         * tests/test-wctype-c++.cc: New file.
33199         * modules/wctype-tests (Files): Add it and tests/signature.h.
33200         (Depends-on): Add ansi-c++-opt.
33201         (Makefile.am): Arrange to compile and run test-wctype-c++.
33202
33203         Tests of module 'wchar' in C++ mode.
33204         * tests/test-wchar-c++.cc: New file.
33205         * modules/wchar-tests (Files): Add it and tests/signature.h.
33206         (Depends-on): Add ansi-c++-opt.
33207         (Makefile.am): Arrange to compile and run test-wchar-c++.
33208         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33209         gl_MODULE_INDICATOR.
33210
33211         Tests of module 'unistd' in C++ mode.
33212         * tests/test-unistd-c++.cc: New file.
33213         * modules/unistd-tests (Files): Add it and tests/signature.h.
33214         (Depends-on): Add ansi-c++-opt.
33215         (Makefile.am): Arrange to compile and run test-unistd-c++.
33216         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33217         gl_MODULE_INDICATOR.
33218
33219         Tests of module 'time' in C++ mode.
33220         * tests/test-time-c++.cc: New file.
33221         * modules/time-tests (Files): Add it and tests/signature.h.
33222         (Depends-on): Add ansi-c++-opt.
33223         (Makefile.am): Arrange to compile and run test-time-c++.
33224         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33225
33226         Tests of module 'sys_time' in C++ mode.
33227         * tests/test-sys_time-c++.cc: New file.
33228         * modules/sys_time-tests (Files): Add it and tests/signature.h.
33229         (Depends-on): Add ansi-c++-opt.
33230         (Makefile.am): Arrange to compile and run test-sys_time-c++.
33231         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33232         gl_MODULE_INDICATOR.
33233
33234         Tests of module 'sys_stat' in C++ mode.
33235         * tests/test-sys_stat-c++.cc: New file.
33236         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
33237         (Depends-on): Add ansi-c++-opt.
33238         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
33239         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33240         gl_MODULE_INDICATOR.
33241
33242         Tests of module 'sys_socket' in C++ mode.
33243         * tests/test-sys_socket-c++.cc: New file.
33244         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
33245         (Depends-on): Add ansi-c++-opt.
33246         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
33247         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33248         gl_MODULE_INDICATOR.
33249
33250         Tests of module 'sys_select' in C++ mode.
33251         * tests/test-sys_select-c++.cc: New file.
33252         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33253         (Depends-on): Add ansi-c++-opt.
33254         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33255         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33256         gl_MODULE_INDICATOR.
33257
33258         Tests of module 'sys_ioctl' in C++ mode.
33259         * tests/test-sys_ioctl-c++.cc: New file.
33260         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33261         (Depends-on): Add ansi-c++-opt.
33262         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33263         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33264         gl_MODULE_INDICATOR.
33265
33266         Tests of module 'string' in C++ mode.
33267         * tests/test-string-c++.cc: New file.
33268         * modules/string-tests (Files): Add it and tests/signature.h.
33269         (Depends-on): Add ansi-c++-opt.
33270         (Makefile.am): Arrange to compile and run test-string-c++.
33271         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33272         gl_MODULE_INDICATOR.
33273
33274         Tests of module 'stdlib' in C++ mode.
33275         * tests/test-stdlib-c++.cc: New file.
33276         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33277         (Depends-on): Add ansi-c++-opt.
33278         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33279         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33280         gl_MODULE_INDICATOR.
33281
33282         Tests of module 'stdio' in C++ mode.
33283         * tests/test-stdio-c++.cc: New file.
33284         * modules/stdio-tests (Files): Add it and tests/signature.h.
33285         (Depends-on): Add ansi-c++-opt.
33286         (Makefile.am): Arrange to compile and run test-stdio-c++.
33287         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33288         gl_MODULE_INDICATOR.
33289
33290         Tests of module 'spawn' in C++ mode.
33291         * tests/test-spawn-c++.cc: New file.
33292         * modules/spawn-tests (Files): Add it and tests/signature.h.
33293         (Depends-on): Add ansi-c++-opt.
33294         (Makefile.am): Arrange to compile and run test-spawn-c++.
33295         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33296         gl_MODULE_INDICATOR.
33297
33298         Tests of module 'signal' in C++ mode.
33299         * tests/test-signal-c++.cc: New file.
33300         * modules/signal-tests (Files): Add it and tests/signature.h.
33301         (Depends-on): Add ansi-c++-opt.
33302         (Makefile.am): Arrange to compile and run test-signal-c++.
33303         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33304         gl_MODULE_INDICATOR.
33305
33306         Tests of module 'search' in C++ mode.
33307         * tests/test-search-c++.cc: New file.
33308         * modules/search-tests (Files): Add it and tests/signature.h.
33309         (Depends-on): Add ansi-c++-opt.
33310         (Makefile.am): Arrange to compile and run test-search-c++.
33311         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33312         gl_MODULE_INDICATOR.
33313
33314         Tests of module 'math' in C++ mode.
33315         * tests/test-math-c++.cc: New file.
33316         * modules/math-tests (Files): Add it and tests/signature.h.
33317         (Depends-on): Add ansi-c++-opt.
33318         (Makefile.am): Arrange to compile and run test-math-c++.
33319         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33320
33321         Tests of module 'locale' in C++ mode.
33322         * tests/test-locale-c++.cc: New file.
33323         * modules/locale-tests (Files): Add it and tests/signature.h.
33324         (Depends-on): Add ansi-c++-opt.
33325         (Makefile.am): Arrange to compile and run test-locale-c++.
33326         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33327         gl_MODULE_INDICATOR.
33328
33329         Tests of module 'langinfo' in C++ mode.
33330         * tests/test-langinfo-c++.cc: New file.
33331         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33332         (Depends-on): Add ansi-c++-opt.
33333         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33334         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33335         gl_MODULE_INDICATOR.
33336
33337         Tests of module 'iconv-h' in C++ mode.
33338         * tests/test-iconv-h-c++.cc: New file.
33339         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33340         (Depends-on): Add ansi-c++-opt.
33341         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33342
33343         Tests of module 'glob' in C++ mode.
33344         * tests/test-glob-c++.cc: New file.
33345         * modules/glob-tests (Files): Add it.
33346         (Depends-on): Add ansi-c++-opt.
33347         (Makefile.am): Arrange to compile and run test-glob-c++.
33348
33349         Tests of module 'fcntl-h' in C++ mode.
33350         * tests/test-fcntl-h-c++.cc: New file.
33351         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33352         (Depends-on): Add ansi-c++-opt.
33353         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33354         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33355         gl_MODULE_INDICATOR.
33356
33357         Tests of module 'dirent' in C++ mode.
33358         * tests/test-dirent-c++.cc: New file.
33359         * modules/dirent-tests (Files): Add it and tests/signature.h.
33360         (Depends-on): Add ansi-c++-opt.
33361         (Makefile.am): Arrange to compile and run test-dirent-c++.
33362         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33363         gl_MODULE_INDICATOR.
33364
33365         New module 'ansi-c++-opt'.
33366         * modules/ansi-c++-opt: New file.
33367         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33368
33369         Document C++ namespace mode.
33370         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33371
33372         wctype: Avoid #define replacements in C++ mode.
33373         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33374         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33375         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33376         In C++, define a namespaced alias symbol.
33377         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33378         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33379         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33380         rule.
33381
33382         wchar: Avoid #define replacements in C++ mode.
33383         * lib/wchar.in.h: Include c++defs.h.
33384         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33385         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33386         symbol.
33387         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33388         * modules/wchar (Depends-on): Add c++defs.
33389         (Makefile.am): Update wchar.h rule.
33390
33391         unistd: Avoid #define replacements in C++ mode.
33392         * lib/unistd.in.h: Include c++defs.h.
33393         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33394         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33395         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33396         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33397         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33398         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33399         symbol.
33400         (environ): Update.
33401         * modules/unistd (Depends-on): Add c++defs.
33402         (Makefile.am): Update unistd.h rule.
33403
33404         time: Avoid #define replacements in C++ mode.
33405         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33406         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33407         define a namespaced alias symbol.
33408         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33409         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33410         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33411         * modules/time (Depends-on): Add c++defs, warn-on-use.
33412         (Makefile.am): Update time.h rule.
33413         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33414         * modules/nanosleep (configure.ac): Likewise.
33415         * modules/strptime (configure.ac): Likewise.
33416         * modules/timegm (configure.ac): Likewise.
33417
33418         sys_time: Avoid #define replacements in C++ mode.
33419         * lib/sys_time.in.h: Include c++defs.h.
33420         (gettimeofday): In C++, define a namespaced alias symbol.
33421         * modules/sys_time (Depends-on): Add c++defs.
33422         (Makefile.am): Update sys/time.h rule.
33423
33424         sys_stat: Avoid #define replacements in C++ mode.
33425         * lib/sys_stat.in.h: Include c++defs.h.
33426         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33427         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33428         namespaced alias symbol.
33429         In C++, define a namespaced alias symbol.
33430         * modules/sys_stat (Depends-on): Add c++defs.
33431         (Makefile.am): Update sys/stat.h rule.
33432
33433         sys_socket: Avoid #define replacements in C++ mode.
33434         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33435         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33436         definitions also when the system has a <sys/socket.h>.
33437         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33438         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33439         In C++, define a namespaced alias symbol.
33440         * modules/sys_socket (Depends-on): Add c++defs.
33441         (Makefile.am): Update sys/socket.h rule.
33442
33443         sys_select: Avoid #define replacements in C++ mode.
33444         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33445         definitions also when the system has a <sys/select.h>.
33446         (select): In C++, define a namespaced alias symbol.
33447         * modules/sys_select (Depends-on): Add c++defs.
33448         (Makefile.am): Update sys/select.h rule.
33449
33450         sys_ioctl: Avoid #define replacements in C++ mode.
33451         * lib/sys_ioctl.in.h: Include c++defs.h.
33452         (ioctl): In C++, define a namespaced alias symbol.
33453         * modules/sys_ioctl (Depends-on): Add c++defs.
33454         (Makefile.am): Update sys/ioctl.h rule.
33455
33456         string: Avoid #define replacements in C++ mode.
33457         * lib/string.in.h: Include c++defs.h.
33458         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33459         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33460         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33461         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33462         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33463         * modules/string (Depends-on): Add c++defs.
33464         (Makefile.am): Update string.h rule.
33465
33466         stdlib: Avoid #define replacements in C++ mode.
33467         * lib/stdlib.in.h: Include c++defs.h.
33468         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33469         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33470         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33471         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33472         symbol.
33473         * modules/stdlib (Depends-on): Add c++defs.
33474         (Makefile.am): Update stdlib.h rule.
33475
33476         stdio: Avoid #define replacements in C++ mode.
33477         * lib/stdio.in.h: Include c++defs.h.
33478         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33479         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33480         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33481         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33482         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33483         namespaced alias symbol.
33484         * modules/stdio (Depends-on): Add c++defs.
33485         (Makefile.am): Update stdio.h rule.
33486
33487         spawn: Avoid #define replacements in C++ mode.
33488         * lib/spawn.in.h: Include c++defs.h.
33489         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33490         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33491         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33492         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33493         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33494         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33495         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33496         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33497         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33498         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33499         In C++, define a namespaced alias symbol.
33500         * modules/spawn (Depends-on): Add c++defs.
33501         (Makefile.am): Update spawn.h rule.
33502
33503         signal: Avoid #define replacements in C++ mode.
33504         * lib/signal.in.h: Include c++defs.h.
33505         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33506         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33507         namespaced alias symbol.
33508         * modules/signal (Depends-on): Add c++defs.
33509         (Makefile.am): Update signal.h rule.
33510
33511         search: Avoid #define replacements in C++ mode.
33512         * lib/search.in.h: Include c++defs.h.
33513         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33514         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33515         symbol.
33516         * modules/search (Depends-on): Add c++defs.
33517         (Makefile.am): Update search.h rule.
33518
33519         math: Avoid #define replacements in C++ mode.
33520         * lib/math.in.h: Include c++defs.h.
33521         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33522         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33523         trunc, truncl): In C++, define a namespaced alias symbol.
33524         * modules/math (Depends-on): Add c++defs.
33525         (Makefile.am): Update math.h rule.
33526
33527         locale: Avoid #define replacements in C++ mode.
33528         * lib/locale.in.h: Include c++defs.h.
33529         (duplocale): In C++, define a namespaced alias symbol.
33530         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33531         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33532         * modules/locale (Depends-on): Add c++defs.
33533         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33534
33535         langinfo: Avoid #define replacements in C++ mode.
33536         * lib/langinfo.in.h: Include c++defs.h.
33537         (nl_langinfo): In C++, define a namespaced alias symbol.
33538         * modules/langinfo (Depends-on): Add c++defs.
33539         (Makefile.am): Update langinfo.h rule.
33540
33541         iconv-h: Avoid #define replacements in C++ mode.
33542         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33543         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33544         symbol.
33545         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33546         whenever iconv is present.
33547         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33548         (Makefile.am): Update iconv.h rule.
33549
33550         glob: Avoid #define replacements in C++ mode.
33551         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33552         (_gl_glob_errfunc_fn): New type.
33553         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33554         symbol.
33555         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33556         (Makefile.am): Update glob.h rule.
33557
33558         fcntl-h: Avoid #define replacements in C++ mode.
33559         * lib/fcntl.in.h: Include c++defs.h.
33560         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33561         * modules/fcntl-h (Depends-on): Add c++defs.
33562         (Makefile.am): Update fcntl.h rule.
33563
33564         dirent: Avoid #define replacements in C++ mode.
33565         * lib/dirent.in.h: Include c++defs.h.
33566         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33567         namespaced alias symbol.
33568         (dirfd): Update declaration.
33569         * modules/dirent (Depends-on): Add c++defs.
33570         (Makefile.am): Update dirent.h rule.
33571
33572         ctype: Make it usable in C++ code.
33573         * lib/ctype.in.h: Include c++defs.h.
33574         (isblank): Declare as extern "C".
33575         * modules/ctype (Depends-on): Add c++defs.
33576         (Makefile.am): Update ctype.h rule.
33577
33578         New module 'c++defs'.
33579         * modules/c++defs: New file.
33580         * build-aux/c++defs.h: New file.
33581         Reported by John W. Eaton <jwe@gnu.org>.
33582
33583 2010-03-07  Bruno Haible  <bruno@clisp.org>
33584
33585         logb: Provide missing declaration for Cygwin.
33586         * lib/math.in.h (logb): New declaration.
33587         * m4/logb.m4: New file.
33588         * modules/logb (Files): Add m4/logb.m4.
33589         (Depends-on): Add math.
33590         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33591         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33593         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33594         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33595
33596 2010-03-07  Bruno Haible  <bruno@clisp.org>
33597
33598         Fix test-cond link error.
33599         * tests/test-cond.c: Include <stdio.h>.
33600
33601 2010-03-07  Bruno Haible  <bruno@clisp.org>
33602
33603         Fix test-dirent-safer link error.
33604         * modules/dirent-safer-tests (Makefile.am): Define
33605         test_dirent_safer_LDADD.
33606
33607 2010-03-07  Bruno Haible  <bruno@clisp.org>
33608
33609         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33610         among default module list.
33611
33612 2010-03-07  Bruno Haible  <bruno@clisp.org>
33613
33614         Fix link error on platforms with GNU libiconv.
33615         * modules/unistr/u8-strcoll-tests (Makefile): Define
33616         test_u8_strcoll_LDADD.
33617         * modules/unistr/u16-strcoll-tests (Makefile): Define
33618         test_u16_strcoll_LDADD.
33619         * modules/unistr/u32-strcoll-tests (Makefile): Define
33620         test_u32_strcoll_LDADD.
33621
33622 2010-03-07  Bruno Haible  <bruno@clisp.org>
33623
33624         Use POSIX declarations for socket functions.
33625         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33626         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33627         rpl_sendto): Change declaration to match POSIX.
33628         * lib/connect.c (rpl_connect): Likewise.
33629         * lib/accept.c (rpl_accept): Likewise.
33630         * lib/bind.c (rpl_bind): Likewise.
33631         * lib/getpeername.c (rpl_getpeername): Likewise.
33632         * lib/getsockname.c (rpl_getsockname): Likewise.
33633         * lib/recv.c (rpl_recv): Likewise.
33634         * lib/send.c (rpl_send): Likewise.
33635         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33636         * lib/sendto.c (rpl_sendto): Likewise.
33637
33638 2010-03-06  Bruno Haible  <bruno@clisp.org>
33639
33640         Clarify access, euidaccess, faccessat.
33641         * doc/posix-functions/faccessat.texi: Mention security problem under
33642         "Other problems", not "Portability problems".
33643         * doc/posix-functions/access.texi: Likewise. Mention a related security
33644         problem.
33645         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33646         * lib/euidaccess.c: Add comments about platforms.
33647         * lib/unistd.in.h (access, euidaccess): Add warnings.
33648
33649 2010-03-07  Bruno Haible  <bruno@clisp.org>
33650
33651         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33652         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33653         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33654         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33655         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33656         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33657         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33658         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33659         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33660         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33661         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33662         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33663         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33664         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33665         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33666         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33667         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33668         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33669         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33670         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33671         Likewise.
33672         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33673         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33674         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33675         Likewise.
33676         * tests/test-spawn.c (main): Make it work when
33677         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33678
33679 2010-03-07  Bruno Haible  <bruno@clisp.org>
33680
33681         Fix incorrect Makefile.am generation in German locale.
33682         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33683         Execute sed command with character range in C locale.
33684
33685 2010-03-06  Bruno Haible  <bruno@clisp.org>
33686
33687         Tests for module 'iconv-h'.
33688         * modules/iconv-h-tests: New file.
33689         * tests/test-iconv-h.c: New file.
33690
33691         New module 'iconv-h'.
33692         * modules/iconv-h: New file.
33693         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33694         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33695         (configure.ac): Remove gl_ICONV_H.
33696         (Makefile.am): Remove rule for iconv.h.
33697
33698 2010-03-06  Bruno Haible  <bruno@clisp.org>
33699
33700         More consistent naming of *.m4 files.
33701         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33702         * modules/wctype (Files): Update.
33703
33704         More consistent naming of *.m4 files.
33705         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33706         * modules/wchar (Files): Update.
33707
33708 2010-03-06  Jim Meyering  <meyering@redhat.com>
33709
33710         euidaccess: relax license to LGPLv2+
33711         * modules/euidaccess (License): Relax to LGPLv2+.
33712
33713 2010-03-06  Bruno Haible  <bruno@clisp.org>
33714
33715         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33716         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33717         (Makefile.am): Augment lib_SOURCES instead.
33718
33719 2010-03-04  Jim Meyering  <meyering@redhat.com>
33720
33721         utime: remove obsolete module
33722         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33723         unnecessary for years, and has been marked as obsolete for 10 months.
33724         * modules/utime: Remove file.
33725         * lib/utime.c: Remove file.
33726         * m4/utime.m4: Remove file.
33727         * m4/utimes-null.m4: Remove file.
33728         * doc/posix-functions/utime.texi (utime): Remove reference to
33729         the module.  Move the sole "fixed by gnulib" item into the
33730         "problems not fixed by Gnulib" list.
33731         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33732
33733 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33734
33735         * modules/exit (License): Relax license to LGPLv2+.
33736         (Status): Mark as obsolete.
33737         * NEWS: Mention deprecated 'exit' module.
33738         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33739         of now obsolete 'exit'.
33740
33741 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33742
33743         fts-lgpl: remove unused module
33744         * modules/fts-lgpl: Remove.
33745         * MODULES.html.sh (func_all_modules): Adjust.
33746         * check-module (find_included_lib_files): Adjust.
33747         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33748
33749 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33750
33751         copy-acl: enhance Solaris ACL error handling
33752         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33753         * lib/set-mode-acl.c (qset_acl): Likewise.
33754
33755 2010-03-02  Bruno Haible  <bruno@clisp.org>
33756
33757         spawn: Don't override the system defined values on FreeBSD 8.
33758         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33759         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33760         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33761         if HAVE_POSIX_SPAWN is 1.
33762         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33763
33764 2010-03-01  Bruno Haible  <bruno@clisp.org>
33765
33766         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33767         regarding Automake.
33768
33769 2010-02-25  Bruno Haible  <bruno@clisp.org>
33770
33771         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33772         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33773         setting, not afterwards.
33774         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33775
33776 2010-02-24  Eric Blake  <eblake@redhat.com>
33777
33778         bootstrap, git-version-gen: use timestamp
33779         * build-aux/git-version-gen (scriptversion): Force UTC.
33780         * build-aux/bootstrap (scriptversion): New variable.
33781
33782         bootstrap: allow older git
33783         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33784         older than 1.6.4.  Requested by the libvirt project.
33785
33786 2010-02-23  Eric Blake  <eblake@redhat.com>
33787
33788         warn-on-use: work with old autoconf
33789         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33790         AS_VAR semantics of autoconf 2.60.
33791         Reported by Bruno Haible.
33792
33793         bootstrap: improve some comments
33794         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33795         clarification comments.
33796
33797         gettimeofday: provide correct function
33798         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33799         when replacement is declared, otherwise provide gettimeofday.
33800         Reported by Michael Goffioul.
33801
33802 2010-02-23  Jim Meyering  <meyering@redhat.com>
33803
33804         lib-ignore: relax license to "unlimited", not LGPLv2+
33805         * modules/lib-ignore (License): Relax to "unlimited".
33806
33807 2010-02-23  Jim Meyering  <meyering@redhat.com>
33808
33809         lib-ignore: relax license to LGPLv2+
33810         * modules/lib-ignore (License): Relax to LGPLv2+.
33811
33812 2010-02-22  Eric Blake  <eblake@redhat.com>
33813
33814         lseek: avoid bash 3.2 broken pipe bug
33815         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33816         warning from bash 3.2.
33817         Reported by Ben Pfaff, with analysis from Bruno Haible.
33818
33819         bootstrap: support non-FSF copyright holder
33820         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33821         bootstrap.conf override of COPYRIGHT_HOLDER.
33822         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33823
33824         bootstrap: interoperate with gettext 0.14.1
33825         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33826
33827         bootstrap: allow for alternate submodule location
33828         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33829         hardcoding submodule location.
33830         (gnulib_mk): Allow direct use of Makefile.am.
33831
33832         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33833         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33834         rather than reconfiguring where the submodule points.
33835
33836         gettimeofday: restore support for platforms that lack function
33837         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33838         replacement if function is missing.
33839         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33840         * modules/sys_time (Makefile.am): Substitute it.
33841         * lib/sys_time.in.h (gettimeofday): Check it.
33842         Reported by Michael Goffioul.
33843
33844 2010-02-21  Bruno Haible  <bruno@clisp.org>
33845
33846         * lib/stdio.in.h (obstack_printf): Fix typo.
33847
33848 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33849
33850         vc-list-files: use bzr ls's -R option
33851         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33852         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33853
33854 2010-02-21  Jim Meyering  <meyering@redhat.com>
33855
33856         init.sh: fix EXEEXT shims to work also for names like test-prog
33857         * tests/init.sh: Re-exec a better shell, when needed.
33858         If the current shell lacks support for posix $(...), an init.sh-using
33859         test will now try to find a shell that supports that.  If EXEEXT is
33860         nonempty, we also require support for hyphen-in-alias-name and shell
33861         substitutions like ${var#glob}.  Failure to find such a shell results
33862         in a skipped test.
33863
33864 2010-02-21  Bruno Haible  <bruno@clisp.org>
33865
33866         Really work around around "broken pipe" error message from bash 3.2.
33867         * gnulib-tool (func_reset_sigpipe): Remove function.
33868         (echo): In bash 3.2, define to a function that uses printf.
33869         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33870
33871 2010-02-20  Bruno Haible  <bruno@clisp.org>
33872
33873         Restore support for automake 1.9.6 with autoconf 2.61.
33874         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33875         Reported by James Youngman <jay@gnu.org>.
33876
33877 2010-02-20  Bruno Haible  <bruno@clisp.org>
33878
33879         Improve *printf warning condition.
33880         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33881         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33882         and the function is overridden due to SIGPIPE emulation.
33883
33884 2010-02-20  Bruno Haible  <bruno@clisp.org>
33885
33886         * lib/stdio.in.h: Tweak comments.
33887
33888 2010-02-19  Bruno Haible  <bruno@clisp.org>
33889
33890         Make it easier to find modules. New gnulib-tool option '--find'.
33891         * gnulib-tool: New option --find.
33892         (func_usage): Document it.
33893         (func_sanitize_modulelist): New function, extracted from
33894         func_all_modules.
33895         (func_all_modules): Invoke it.
33896         * doc/gnulib-tool.texi (Which modules?): New node.
33897
33898 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33899
33900         * lib/sys_select.in.h: Provide select replacement even if
33901         sys/select.h exists on a system, for Interix.
33902
33903 2010-02-18  Jim Meyering  <meyering@redhat.com>
33904
33905         init.sh: don't use $(...) just yet
33906         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33907         to accommodate e.g., Solaris' /bin/sh.
33908
33909 2010-02-17  Bruno Haible  <bruno@clisp.org>
33910
33911         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33912         Reported by Ludovic Courtès <ludo@gnu.org>.
33913
33914 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33915
33916         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33917         linking with -lintl.
33918
33919 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33920
33921         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33922         if not provided by the system's netdb.h.  Reported by
33923         ludo@gnu.org (Ludovic Courtès).
33924
33925 2010-02-15  Jim Meyering  <meyering@redhat.com>
33926
33927         init.sh: improve portability and efficiency
33928         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33929         "dummy" in a for loop.
33930         Use '!', not '^' to select the complement of a character set used
33931         in a "case" statement.
33932         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33933         Suggestions from Eric Blake.
33934
33935         init.sh: automatically accommodate programs with the .exe suffix
33936         Automatically arrange for an invocation of "prog" to execute the
33937         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33938         may use the simpler "prog", yet still work when built on a system
33939         that requires specifying the added suffix.
33940         Do this by constructing a function named "prog" that invokes
33941         "prog.exe" for each .exe file in selected directories.
33942         * tests/init.sh (find_exe_basenames_): New function.
33943         (create_exe_shim_functions_): New function.
33944         (path_prepend_): Use it.
33945
33946         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33947         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33948         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33949
33950 2010-02-14  Jim Meyering  <meyering@redhat.com>
33951
33952         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33953         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33954         (sc_prohibit_hash_pjw_without_use): New rule.
33955
33956         maint.mk: allow the default upload destination dir to be overridden
33957         * top/maint.mk (upload_dest_dir_): Define with a default that
33958         preserves the status quo.
33959         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33960         Reported by Peter Simons.
33961
33962         maint.mk: prohibit inclusion of "hash.h" without_use
33963         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33964
33965 2010-02-10  Jim Meyering  <meyering@redhat.com>
33966
33967         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33968         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33969
33970 2010-02-09  Eric Blake  <ebb9@byu.net>
33971         and Bruno Haible  <bruno@clisp.org>
33972
33973         obstack-printf-posix: ensure declaration
33974         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33975         extracted from gl_FUNC_OBSTACK_PRINTF.
33976         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33977         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33978         Likewise.
33979         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33980         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33981         0.
33982
33983 2010-02-08  Bruno Haible  <bruno@clisp.org>
33984
33985         gnulib-tool: Fix typo in 2010-02-07 commit.
33986         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33987         Reported by Eric Blake.
33988
33989 2010-02-07  Bruno Haible  <bruno@clisp.org>
33990
33991         gnulib-tool: Fix up caching patches.
33992         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33993         option --no-cache. Use associative arrays when supported by the shell.
33994         (sed_comments): New variable.
33995         (modcache): Renamed from do_cache.
33996         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33997         abbreviate unnecessarily.
33998         (have_associative): New variable.
33999         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
34000         way also for ksh and zsh.
34001         (func_init_sed_convert_to_cache_statements): New function, extracted
34002         from func_cache_lookup_module. Add support for associative arrays.
34003         Don't set the c_MODULE_cached variable here. Ignore all lines before
34004         the first field header. Remove only the final newline, not all trailing
34005         newlines. Support empty fields correctly. Limit the use of 'eval' to
34006         assignments.
34007         (func_get_description, func_get_status, func_get_notice,
34008         func_get_applicability, func_get_filelist, func_get_dependencies,
34009         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34010         func_get_automake_snippet, func_get_include_directive,
34011         func_get_link_directive, func_get_license, func_get_maintainer):
34012         Update documentation. List the unoptimized code first. Add support for
34013         associative arrays. Limit the use of 'eval' to assignments.
34014         (func_get_applicability): Undo stylistic pessimisations.
34015         (func_get_automake_snippet, func_get_include_directive): Reduce code
34016         duplication.
34017         (func_modules_transitive_closure, func_modules_add_dummy,
34018         func_modules_notice, func_modules_to_filelist, func_add_file,
34019         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34020         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34021         func_create_testdir, func_create_megatestdir): Update documentation.
34022
34023 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34024
34025         * gnulib-tool (func_cache_lookup_module): Store the module name
34026         belonging to the cache variable; error out if two different
34027         module names map to the same cache variable name.
34028
34029 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34030
34031         gnulib-tool: Make caching optional.
34032         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34033         Update matching short versions of --no-changelog.
34034         (func_usage): Update.
34035         (sed_extract_cache_prog): Renamed from ...
34036         (sed_extract_prog): ... this; revert to old extraction script.
34037         (func_get_description, func_get_status)
34038         (func_get_notice, func_get_applicability, func_get_filelist)
34039         (func_get_dependencies, func_get_autoconf_early_snippet)
34040         (func_get_autoconf_snippet, func_get_automake_snippet)
34041         (func_get_include_directive, func_get_link_directive)
34042         (func_get_license, func_get_maintainer): If $do_cache is false,
34043         use old, non-caching extraction scripts.
34044         Suggestion by Bruno Haible.
34045
34046 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34047
34048         gnulib-tool: cache module metainformation.
34049         * gnulib-tool (sed_extract_prog): Match newline before each
34050         header, and rewrite header to a shell variable suffix.
34051         (func_cache_var, func_cache_lookup_module): New functions,
34052         to turn a module name into a cache variable prefix, and to
34053         look up and cache module metainformation.
34054         (func_get_description, func_get_status)
34055         (func_get_notice, func_get_applicability, func_get_filelist)
34056         (func_get_dependencies, func_get_autoconf_early_snippet)
34057         (func_get_autoconf_snippet, func_get_automake_snippet)
34058         (func_get_include_directive, func_get_link_directive)
34059         (func_get_license, func_get_maintainer): Use
34060         func_cache_lookup_module.
34061
34062 2010-02-07  Bruno Haible  <bruno@clisp.org>
34063
34064         fnctl: Fix missing dependency.
34065         * modules/fcntl (Depends-on): Add getdtablesize.
34066         Reported by John W. Eaton <jwe@gnu.org>.
34067
34068 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34069
34070         Argp: fix recognition of short alias options.
34071
34072         * lib/argp-parse.c (convert_options): Fix improper use of
34073         `|' between character values.
34074         * tests/test-argp.c (group1_option): New alias option
34075         --read (-r).
34076         (group1_parser): Special handling for 'r'.
34077         (test15): New test case.
34078         (test_fun): Add test15.
34079         * tests/test-argp-2.sh: Update expected --help and --usage
34080         outputs.
34081
34082 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34083
34084         * tests/test-argp.c: Fix indentation.
34085
34086 2010-02-04  Eric Blake  <ebb9@byu.net>
34087
34088         gettimeofday: expose type of second argument
34089         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34090         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34091         * tests/test-gettimeofday.c: Use it to silence warning.
34092         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34093         the issue.
34094
34095 2010-02-03  Jim Meyering  <meyering@redhat.com>
34096
34097         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34098         * lib/regcomp.c (TYPE_SIGNED): Define.
34099         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34100
34101         regcomp.c: avoid a new -Wshadow warning
34102         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34103
34104 2010-02-01  Jim Meyering  <meyering@redhat.com>
34105
34106         removing useless parentheses in cpp #define directives
34107         For motivation, see commit c0221df4, "define STREQ(a,b)
34108         consistently, removing useless parentheses"
34109         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34110         * lib/mountlist.c (MNT_IGNORE): Likewise.
34111         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34112
34113 2010-02-01  Eric Blake  <ebb9@byu.net>
34114
34115         sys_time: use link-warning
34116         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34117         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34118         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34119         * modules/sys_time (Depends-on): Add warn-on-use.
34120         (Makefile.am): Always build replacement.
34121         (configure.ac): Update substitutions.
34122         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34123         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34124         bother with SYS_TIME_H.
34125         * modules/gettimeofday (configure.ac): Declare indicator.
34126         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34127         in use.
34128
34129         closein-tests: silence compiler warning
34130         * tests/test-closein.c (main): Ignore fread result.
34131         * modules/closein-tests (Depends-on): Add ignore-value.
34132
34133         tests: silence warning about system return
34134         * tests/test-areadlink-with-size.c (main): Ignore system result.
34135         * tests/test-areadlink.c (main): Likewise.
34136         * tests/test-areadlinkat-with-size.c (main): Likewise.
34137         * tests/test-areadlinkat.c (main): Likewise.
34138         * tests/test-canonicalize-lgpl.c (main): Likewise.
34139         * tests/test-canonicalize.c (main): Likewise.
34140         * tests/test-chown.c (main): Likewise.
34141         * tests/test-fchownat.c (main): Likewise.
34142         * tests/test-fdutimensat.c (main): Likewise.
34143         * tests/test-fstatat.c (main): Likewise.
34144         * tests/test-futimens.c (main): Likewise.
34145         * tests/test-lchown.c (main): Likewise.
34146         * tests/test-link.c (main): Likewise.
34147         * tests/test-linkat.c (main): Likewise.
34148         * tests/test-lstat.c (main): Likewise.
34149         * tests/test-mkdir.c (main): Likewise.
34150         * tests/test-mkdirat.c (main): Likewise.
34151         * tests/test-mkfifo.c (main): Likewise.
34152         * tests/test-mkfifoat.c (main): Likewise.
34153         * tests/test-mknod.c (main): Likewise.
34154         * tests/test-readlink.c (main): Likewise.
34155         * tests/test-remove.c (main): Likewise.
34156         * tests/test-rename.c (main): Likewise.
34157         * tests/test-renameat.c (main): Likewise.
34158         * tests/test-rmdir.c (main): Likewise.
34159         * tests/test-symlink.c (main): Likewise.
34160         * tests/test-symlinkat.c (main): Likewise.
34161         * tests/test-unlink.c (main): Likewise.
34162         * tests/test-unlinkat.c (main): Likewise.
34163         * tests/test-utimens.c (main): Likewise.
34164         * tests/test-utimensat.c (main): Likewise.
34165         * modules/areadlink-tests (Depends-on): Add ignore-value.
34166         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34167         * modules/areadlinkat-tests (Depends-on): Likewise.
34168         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34169         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34170         * modules/canonicalize-tests (Depends-on): Likewise.
34171         * modules/chown-tests (Depends-on): Likewise.
34172         * modules/fdutimensat-tests (Depends-on): Likewise.
34173         * modules/futimens-tests (Depends-on): Likewise.
34174         * modules/lchown-tests (Depends-on): Likewise.
34175         * modules/link-tests (Depends-on): Likewise.
34176         * modules/linkat-tests (Depends-on): Likewise.
34177         * modules/lstat-tests (Depends-on): Likewise.
34178         * modules/mkdir-tests (Depends-on): Likewise.
34179         * modules/mkfifo-tests (Depends-on): Likewise.
34180         * modules/mkfifoat-tests (Depends-on): Likewise.
34181         * modules/mknod-tests (Depends-on): Likewise.
34182         * modules/openat-tests (Depends-on): Likewise.
34183         * modules/readlink-tests (Depends-on): Likewise.
34184         * modules/remove-tests (Depends-on): Likewise.
34185         * modules/rename-tests (Depends-on): Likewise.
34186         * modules/renameat-tests (Depends-on): Likewise.
34187         * modules/rmdir-tests (Depends-on): Likewise.
34188         * modules/symlink-tests (Depends-on): Likewise.
34189         * modules/symlinkat-tests (Depends-on): Likewise.
34190         * modules/unlink-tests (Depends-on): Likewise.
34191         * modules/utimens-tests (Depends-on): Likewise.
34192         * modules/utimensat-tests (Depends-on): Likewise.
34193
34194 2010-01-31  Bruno Haible  <bruno@clisp.org>
34195
34196         Perform the same test for many <math.h> functions.
34197         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34198         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34199         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34200         of gl_MATHFUNC.
34201         * modules/acos (configure.ac): Likewise.
34202         * modules/asin (configure.ac): Likewise.
34203         * modules/atan (configure.ac): Likewise.
34204         * modules/atan2 (configure.ac): Likewise.
34205         * modules/cbrt (configure.ac): Likewise.
34206         * modules/copysign (configure.ac): Likewise.
34207         * modules/cos (configure.ac): Likewise.
34208         * modules/cosh (configure.ac): Likewise.
34209         * modules/erf (configure.ac): Likewise.
34210         * modules/erfc (configure.ac): Likewise.
34211         * modules/exp (configure.ac): Likewise.
34212         * modules/fmod (configure.ac): Likewise.
34213         * modules/hypot (configure.ac): Likewise.
34214         * modules/j0 (configure.ac): Likewise.
34215         * modules/j1 (configure.ac): Likewise.
34216         * modules/jn (configure.ac): Likewise.
34217         * modules/lgamma (configure.ac): Likewise.
34218         * modules/log (configure.ac): Likewise.
34219         * modules/log10 (configure.ac): Likewise.
34220         * modules/log1p (configure.ac): Likewise.
34221         * modules/pow (configure.ac): Likewise.
34222         * modules/remainder (configure.ac): Likewise.
34223         * modules/sin (configure.ac): Likewise.
34224         * modules/sinh (configure.ac): Likewise.
34225         * modules/tan (configure.ac): Likewise.
34226         * modules/tanh (configure.ac): Likewise.
34227         * modules/y0 (configure.ac): Likewise.
34228         * modules/y1 (configure.ac): Likewise.
34229         * modules/yn (configure.ac): Likewise.
34230         Suggested by Paolo Bonzini.
34231
34232 2010-01-31  Bruno Haible  <bruno@clisp.org>
34233
34234         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34235
34236 2010-01-31  Bruno Haible  <bruno@clisp.org>
34237
34238         Work around getdelim() bug on FreeBSD 8.0.
34239         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34240         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34241         not work.
34242         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34243         is 1.
34244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34245         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34246         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34247         a non-zero size.
34248         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34249
34250 2010-01-31  Bruno Haible  <bruno@clisp.org>
34251
34252         Work around getline() bug on FreeBSD 8.0.
34253         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34254         and a non-zero size.
34255         * tests/test-getline.c (main): Likewise.
34256         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34257         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34258
34259 2010-01-28  Eric Blake  <ebb9@byu.net>
34260
34261         regex: fix build failure
34262         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34263         platforms.
34264
34265 2010-01-28  Jim Meyering  <meyering@redhat.com>
34266
34267         regex: do not ignore memory allocation failure
34268         * lib/regex_internal.c (create_cd_newstate): Detect
34269         re_node_set_init_copy failure.   Extracted from glibc commit
34270         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34271
34272         regex: sync more white-space changes from libc
34273         * lib/regex_internal.c: White-space only changes.
34274         * lib/regexec.c: Likewise.
34275
34276         regex: add many uses of __attribute_warn_unused_result__
34277         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34278         * lib/regexec.c: Likewise.
34279         Extracted from a messy glibc commit.
34280
34281         regcomp.c: spelling and merge-artifact from glibc
34282         * lib/regcomp.c: Merge remainder of glibc's
34283         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34284
34285         regcomp.c: sync white-space changes from glibc
34286         * lib/regcomp.c: Merge to accommodate white space
34287         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34288
34289         regcomp.c: do not ignore internal return values
34290         * lib/regcomp.c: Do not ignore internal return values.
34291         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34292         but without its white-space changes and spelling fixes.
34293
34294         regex_internal.h: define __attribute_warn_unused_result__
34295         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34296
34297         maint: add a syntax-check rule to check for vulnerable Makefile.in
34298         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34299
34300 2010-01-27  Jim Meyering  <meyering@redhat.com>
34301
34302         ncftpput-ftp: clean up spaces
34303         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34304         Remove trailing blanks.
34305
34306 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34307
34308         * build-aux/git-version-gen: Fix copyright statement.
34309         * build-aux/gnupload: Likewise.
34310         * tests/test-arcfour.c: Likewise.
34311         * tests/test-arctwo.c: Likewise.
34312         * tests/test-count-one-bits.c: Likewise.
34313         * tests/test-crc.c: Likewise.
34314         * tests/test-des.c: Likewise.
34315         * tests/test-gc-arcfour.c: Likewise.
34316         * tests/test-gc-arctwo.c: Likewise.
34317         * tests/test-gc-des.c: Likewise.
34318         * tests/test-gc-hmac-md5.c: Likewise.
34319         * tests/test-gc-hmac-sha1.c: Likewise.
34320         * tests/test-gc-md2.c: Likewise.
34321         * tests/test-gc-md4.c: Likewise.
34322         * tests/test-gc-md5.c: Likewise.
34323         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34324         * tests/test-gc-rijndael.c: Likewise.
34325         * tests/test-gc-sha1.c: Likewise.
34326         * tests/test-gc.c: Likewise.
34327         * tests/test-gethostname.c: Likewise.
34328         * tests/test-gettimeofday.c: Likewise.
34329         * tests/test-hash.c: Likewise.
34330         * tests/test-hmac-md5.c: Likewise.
34331         * tests/test-hmac-sha1.c: Likewise.
34332         * tests/test-md2.c: Likewise.
34333         * tests/test-md4.c: Likewise.
34334         * tests/test-md5.c: Likewise.
34335         * tests/test-memchr.c: Likewise.
34336         * tests/test-memchr2.c: Likewise.
34337         * tests/test-memcmp.c: Likewise.
34338         * tests/test-memmem.c: Likewise.
34339         * tests/test-memrchr.c: Likewise.
34340         * tests/test-rawmemchr.c: Likewise.
34341         * tests/test-read-file.c: Likewise.
34342         * tests/test-rijndael.c: Likewise.
34343         * tests/test-sockets.c: Likewise.
34344         * tests/test-strchrnul.c: Likewise.
34345         * tests/test-strstr.c: Likewise.
34346         * tests/test-strtod.c: Likewise.
34347         * build-aux/ncftpput-ftp: Likewise.
34348
34349 2010-01-26  Eric Blake  <ebb9@byu.net>
34350
34351         ignore-value: update recommended header name
34352         * modules/ignore-value (Include): Only use <> for headers that
34353         exist in glibc.
34354
34355 2010-01-26  Jim Meyering  <meyering@redhat.com>
34356
34357         test-userspec.c: avoid compiler warnings
34358         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34359         and "initialization discards qualifiers..." warnings.
34360         Put the first "uid" in its own scope, and make char* members "const".
34361
34362 2010-01-25  Bruno Haible  <bruno@clisp.org>
34363
34364         gnulib-tool: Make warning diagnostics consistent.
34365         * gnulib-tool (func_warning): New function.
34366         Use it everywhere where gnulib-tool produces output to stderr and it is
34367         not a fatal error.
34368
34369 2010-01-25  Bruno Haible  <bruno@clisp.org>
34370
34371         Fix test dependencies.
34372         * modules/xstrtol-tests (Depends-on): Add inttypes.
34373         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34374
34375 2010-01-25 Pádraig Brady <P@draigBrady.com>
34376
34377         syntax-check: detect incorrect boolean macro values in config.h
34378         * modules/maintainer-makefile (configure.ac): Parameterize the location
34379         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34380         The logic is from Eric Blake and the location indicated by Jim Meyering.
34381         Note the more natural CONFIG_HEADER name is prohibited by automake
34382         for backwards compatibility reasons.
34383         * top/maint.mk (sc_Wundef_boolean): New rule.
34384
34385 2010-01-25  Jim Meyering  <meyering@redhat.com>
34386
34387         bootstrap: detect MacOS 10.6's shasum, too
34388         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34389         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34390
34391 2010-01-23  Jim Meyering  <meyering@redhat.com>
34392
34393         xstrtoll: new module
34394         * modules/xstrtoll: New file.
34395         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34396         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34397         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34398         ./configure fails if you use this module and lack "long long".
34399         * modules/xstrtoll-tests: New module.
34400         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34401         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34402         new init.sh-based test framework.
34403
34404 2010-01-24  Bruno Haible  <bruno@clisp.org>
34405
34406         Tests for module 'yn'.
34407         * modules/yn-tests: New file.
34408         * tests/test-yn.c: New file.
34409
34410         Tests for module 'y1'.
34411         * modules/y1-tests: New file.
34412         * tests/test-y1.c: New file.
34413
34414         Tests for module 'y0'.
34415         * modules/y0-tests: New file.
34416         * tests/test-y0.c: New file.
34417
34418         Tests for module 'tanh'.
34419         * modules/tanh-tests: New file.
34420         * tests/test-tanh.c: New file.
34421
34422         Tests for module 'tan'.
34423         * modules/tan-tests: New file.
34424         * tests/test-tan.c: New file.
34425
34426         Tests for module 'sqrt'.
34427         * modules/sqrt-tests: New file.
34428         * tests/test-sqrt.c: New file.
34429
34430         Tests for module 'sinh'.
34431         * modules/sinh-tests: New file.
34432         * tests/test-sinh.c: New file.
34433
34434         Tests for module 'sin'.
34435         * modules/sin-tests: New file.
34436         * tests/test-sin.c: New file.
34437
34438         Tests for module 'rint'.
34439         * modules/rint-tests: New file.
34440         * tests/test-rint.c: New file.
34441
34442         Tests for module 'remainder'.
34443         * modules/remainder-tests: New file.
34444         * tests/test-remainder.c: New file.
34445
34446         Tests for module 'pow'.
34447         * modules/pow-tests: New file.
34448         * tests/test-pow.c: New file.
34449
34450         Tests for module 'nextafter'.
34451         * modules/nextafter-tests: New file.
34452         * tests/test-nextafter.c: New file.
34453
34454         Tests for module 'modf'.
34455         * modules/modf-tests: New file.
34456         * tests/test-modf.c: New file.
34457
34458         Tests for module 'logb'.
34459         * modules/logb-tests: New file.
34460         * tests/test-logb.c: New file.
34461
34462         Tests for module 'log1p'.
34463         * modules/log1p-tests: New file.
34464         * tests/test-log1p.c: New file.
34465
34466         Tests for module 'log10'.
34467         * modules/log10-tests: New file.
34468         * tests/test-log10.c: New file.
34469
34470         Tests for module 'log'.
34471         * modules/log-tests: New file.
34472         * tests/test-log.c: New file.
34473
34474         Tests for module 'lgamma'.
34475         * modules/lgamma-tests: New file.
34476         * tests/test-lgamma.c: New file.
34477
34478         Tests for module 'ldexp'.
34479         * modules/ldexp-tests: New file.
34480         * tests/test-ldexp.c: New file.
34481
34482         Tests for module 'jn'.
34483         * modules/jn-tests: New file.
34484         * tests/test-jn.c: New file.
34485
34486         Tests for module 'j1'.
34487         * modules/j1-tests: New file.
34488         * tests/test-j1.c: New file.
34489
34490         Tests for module 'j0'.
34491         * modules/j0-tests: New file.
34492         * tests/test-j0.c: New file.
34493
34494         Tests for module 'hypot'.
34495         * modules/hypot-tests: New file.
34496         * tests/test-hypot.c: New file.
34497
34498         Tests for module 'fmod'.
34499         * modules/fmod-tests: New file.
34500         * tests/test-fmod.c: New file.
34501
34502         Tests for module 'fabs'.
34503         * modules/fabs-tests: New file.
34504         * tests/test-fabs.c: New file.
34505
34506         Tests for module 'exp'.
34507         * modules/exp-tests: New file.
34508         * tests/test-exp.c: New file.
34509
34510         Tests for module 'erfc'.
34511         * modules/erfc-tests: New file.
34512         * tests/test-erfc.c: New file.
34513
34514         Tests for module 'erf'.
34515         * modules/erf-tests: New file.
34516         * tests/test-erf.c: New file.
34517
34518         Tests for module 'cosh'.
34519         * modules/cosh-tests: New file.
34520         * tests/test-cosh.c: New file.
34521
34522         Tests for module 'cos'.
34523         * modules/cos-tests: New file.
34524         * tests/test-cos.c: New file.
34525
34526         Tests for module 'copysign'.
34527         * modules/copysign-tests: New file.
34528         * tests/test-copysign.c: New file.
34529
34530         Tests for module 'cbrt'.
34531         * modules/cbrt-tests: New file.
34532         * tests/test-cbrt.c: New file.
34533
34534         Tests for module 'atan2'.
34535         * modules/atan2-tests: New file.
34536         * tests/test-atan2.c: New file.
34537
34538         Tests for module 'atan'.
34539         * modules/atan-tests: New file.
34540         * tests/test-atan.c: New file.
34541
34542         Tests for module 'asin'.
34543         * modules/asin-tests: New file.
34544         * tests/test-asin.c: New file.
34545
34546         Tests for module 'acos'.
34547         * modules/acos-tests: New file.
34548         * tests/test-acos.c: New file.
34549
34550 2010-01-24  Bruno Haible  <bruno@clisp.org>
34551
34552         Fix tests for common <math.h> functions.
34553         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34554         code snippet that references the function pointer, rather than merely
34555         calling the function. Substitute the FUNC_LIBM variable.
34556         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34557         * modules/acos (configure.ac): Likewise.
34558         * modules/asin (configure.ac): Likewise.
34559         * modules/atan (configure.ac): Likewise.
34560         * modules/atan2 (configure.ac): Likewise.
34561         * modules/cbrt (configure.ac): Likewise.
34562         * modules/copysign (configure.ac): Likewise.
34563         * modules/cos (configure.ac): Likewise.
34564         * modules/cosh (configure.ac): Likewise.
34565         * modules/erf (configure.ac): Likewise.
34566         * modules/erfc (configure.ac): Likewise.
34567         * modules/exp (configure.ac): Likewise.
34568         * modules/fabs (configure.ac): Likewise.
34569         * modules/fmod (configure.ac): Likewise.
34570         * modules/hypot (configure.ac): Likewise.
34571         * modules/j0 (configure.ac): Likewise.
34572         * modules/j1 (configure.ac): Likewise.
34573         * modules/jn (configure.ac): Likewise.
34574         * modules/ldexp (configure.ac): Likewise.
34575         * modules/lgamma (configure.ac): Likewise.
34576         * modules/log (configure.ac): Likewise.
34577         * modules/log10 (configure.ac): Likewise.
34578         * modules/log1p (configure.ac): Likewise.
34579         * modules/logb (configure.ac): Likewise.
34580         * modules/modf (configure.ac): Likewise.
34581         * modules/nextafter (configure.ac): Likewise.
34582         * modules/pow (configure.ac): Likewise.
34583         * modules/remainder (configure.ac): Likewise.
34584         * modules/rint (configure.ac): Likewise.
34585         * modules/sin (configure.ac): Likewise.
34586         * modules/sinh (configure.ac): Likewise.
34587         * modules/tan (configure.ac): Likewise.
34588         * modules/tanh (configure.ac): Likewise.
34589         * modules/y0 (configure.ac): Likewise.
34590         * modules/y1 (configure.ac): Likewise.
34591         * modules/yn (configure.ac): Likewise.
34592
34593 2010-01-24  Bruno Haible  <bruno@clisp.org>
34594
34595         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34596         * tests/test-acosl.c (x): New variable.
34597         (main): Store argument in x and fetch it from x.
34598         * tests/test-asinl.c (x): New variable.
34599         (main): Store argument in x and fetch it from x.
34600         * tests/test-atanl.c (x): New variable.
34601         (main): Store argument in x and fetch it from x.
34602         * tests/test-cosl.c (x): New variable.
34603         (main): Store argument in x and fetch it from x.
34604         * tests/test-expl.c (x): New variable.
34605         (main): Store argument in x and fetch it from x.
34606         * tests/test-logl.c (x): New variable.
34607         (main): Store argument in x and fetch it from x.
34608         * tests/test-sinl.c (x): New variable.
34609         (main): Store argument in x and fetch it from x.
34610         * tests/test-sqrtl.c (x): New variable.
34611         (main): Store argument in x and fetch it from x.
34612         * tests/test-tanl.c (x): New variable.
34613         (main): Store argument in x and fetch it from x.
34614
34615 2010-01-24  Bruno Haible  <bruno@clisp.org>
34616
34617         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34618         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34619         assignments to the initial TESTS_ENVIRONMENT.
34620         * doc/gnulib.texi (Unit test modules): Document it.
34621         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34622         TESTS_ENVIRONMENT.
34623         * modules/btowc-tests (Makefile.am): Likewise.
34624         * modules/c-stack-tests (Makefile.am): Likewise.
34625         * modules/c-strcase-tests (Makefile.am): Likewise.
34626         * modules/copy-file-tests (Makefile.am): Likewise.
34627         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34628         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34629         * modules/mbrtowc-tests (Makefile.am): Likewise.
34630         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34631         * modules/mbscasestr-tests (Makefile.am): Likewise.
34632         * modules/mbschr-tests (Makefile.am): Likewise.
34633         * modules/mbscspn-tests (Makefile.am): Likewise.
34634         * modules/mbsinit-tests (Makefile.am): Likewise.
34635         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34636         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34637         * modules/mbspbrk-tests (Makefile.am): Likewise.
34638         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34639         * modules/mbsrchr-tests (Makefile.am): Likewise.
34640         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34641         * modules/mbsspn-tests (Makefile.am): Likewise.
34642         * modules/mbsstr-tests (Makefile.am): Likewise.
34643         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34644         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34645         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34646         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34647         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34648         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34649         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34650         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34651         * modules/wcrtomb-tests (Makefile.am): Likewise.
34652         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34653         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34654         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34655         assignments from TESTS_ENVIRONMENT.
34656         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34657         augmentation.
34658         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34659         * modules/atexit-tests (Makefile.am): Likewise.
34660         * modules/binary-io-tests (Makefile.am): Likewise.
34661         * modules/closein-tests (Makefile.am): Likewise.
34662         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34663         * modules/exclude-tests (Makefile.am): Likewise.
34664         * modules/fflush-tests (Makefile.am): Likewise.
34665         * modules/fpending-tests (Makefile.am): Likewise.
34666         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34667         * modules/freadahead-tests (Makefile.am): Likewise.
34668         * modules/freadptr-tests (Makefile.am): Likewise.
34669         * modules/freadseek-tests (Makefile.am): Likewise.
34670         * modules/fseek-tests (Makefile.am): Likewise.
34671         * modules/fseeko-tests (Makefile.am): Likewise.
34672         * modules/ftell-tests (Makefile.am): Likewise.
34673         * modules/ftello-tests (Makefile.am): Likewise.
34674         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34675         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34676         * modules/lseek-tests (Makefile.am): Likewise.
34677         * modules/parse-duration-tests (Makefile.am): Likewise.
34678         * modules/perror-tests (Makefile.am): Likewise.
34679         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34680         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34681         * modules/pipe-tests (Makefile.am): Likewise.
34682         * modules/pread-tests (Makefile.am): Likewise.
34683         * modules/printf-posix-tests (Makefile.am): Likewise.
34684         * modules/select-tests (Makefile.am): Likewise.
34685         * modules/sigpipe-tests (Makefile.am): Likewise.
34686         * modules/tsearch-tests (Makefile.am): Likewise.
34687         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34688         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34689         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34690         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34691         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34692         * modules/version-etc-tests (Makefile.am): Likewise.
34693         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34694         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34695         * modules/xalloc-die-tests (Makefile.am): Likewise.
34696         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34697         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34698         * modules/xstrtol-tests (Makefile.am): Likewise.
34699         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34700         * modules/yesno-tests (Makefile.am): Likewise.
34701         Suggested by Jim Meyering.
34702
34703 2010-01-24  Bruno Haible  <bruno@clisp.org>
34704
34705         More documentation.
34706         * doc/gnulib.texi (Writing modules): New chapter.
34707         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34708         the new chapter.
34709
34710 2010-01-24  Jim Meyering  <meyering@redhat.com>
34711
34712         maint.mk: do not prepend "./" after filtering
34713         * top/maint.mk (_prepend_srcdir_prefix): New variable
34714         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34715         "./" when $(srcdir) is ".".
34716
34717         define STREQ(a,b) consistently, removing useless parentheses
34718         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34719         since the only risk is that "a" or "b" contains an unparenthesized
34720         comma, but if either did that, STREQ would have 3 or more arguments.
34721         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34722         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34723         * lib/hash-triple.c (STREQ): Likewise.
34724         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34725         * lib/getugroups.c (STREQ): Likewise.
34726
34727 2010-01-23  Jim Meyering  <meyering@redhat.com>
34728
34729         maint.mk: fix syntax-check in a non-srcdir build directory
34730         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34731         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34732
34733 2010-01-22  Jim Meyering  <meyering@redhat.com>
34734
34735         userspec: add unit tests
34736         * tests/test-userspec.c: New file.
34737         * modules/userspec-tests: Likewise.
34738
34739 2010-01-21  Jim Meyering  <meyering@redhat.com>
34740
34741         maint.mk: handle source file names containing "." robustly
34742         * top/maint.mk (_dot_escaped_srcdir): Define.
34743         (VC_LIST): Use it in LHS of sed substitution.
34744
34745 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34746
34747         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34748         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34749         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34750         from a non-srcdir build.
34751
34752 2010-01-20  Eric Blake  <ebb9@byu.net>
34753
34754         warn-on-use: use instead of link-warning
34755         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34756         * modules/unistd (Depends-on, Makefile.am): Likewise.
34757         * modules/arpa_inet (Depends-on): Replace link-warning with
34758         warn-on-use.
34759         (Makefile.am): Update rules accordingly.
34760         * modules/ctype (Depends-on, Makefile.am): Likewise.
34761         * modules/dirent (Depends-on, Makefile.am): Likewise.
34762         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34763         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34764         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34765         * modules/locale (Depends-on, Makefile.am): Likewise.
34766         * modules/math (Depends-on, Makefile.am): Likewise.
34767         * modules/search (Depends-on, Makefile.am): Likewise.
34768         * modules/signal (Depends-on, Makefile.am): Likewise.
34769         * modules/spawn (Depends-on, Makefile.am): Likewise.
34770         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34771         * modules/string (Depends-on, Makefile.am): Likewise.
34772         * modules/strings (Depends-on, Makefile.am): Likewise.
34773         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34774         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34775         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34776         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34777         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34778         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34779         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34780         * modules/wchar (Depends-on, Makefile.am): Likewise.
34781         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34782         should be poisoned.
34783         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34784         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34785         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34786         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34787         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34788         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34789         * m4/math_h.m4 (gl_MATH_H): Likewise.
34790         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34791         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34792         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34793         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34794         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34795         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34796         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34797         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34798         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34799         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34800         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34801         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34802         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34803         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34804         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34805         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34806         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34807         GL_LINK_WARNING.
34808         * lib/ctype.in.h: Likewise.
34809         * lib/dirent.in.h: Likewise.
34810         * lib/fcntl.in.h: Likewise.
34811         * lib/inttypes.in.h: Likewise.
34812         * lib/langinfo.in.h: Likewise.
34813         * lib/locale.in.h: Likewise.
34814         * lib/math.in.h: Likewise.
34815         * lib/search.in.h: Likewise.
34816         * lib/signal.in.h: Likewise.
34817         * lib/spawn.in.h: Likewise.
34818         * lib/stdio.in.h: Likewise.
34819         * lib/stdlib.in.h: Likewise.
34820         * lib/string.in.h: Likewise.
34821         * lib/strings.in.h: Likewise.
34822         * lib/sys_file.in.h: Likewise.
34823         * lib/sys_ioctl.in.h: Likewise.
34824         * lib/sys_select.in.h: Likewise.
34825         * lib/sys_socket.in.h: Likewise.
34826         * lib/sys_stat.in.h: Likewise.
34827         * lib/sys_times.in.h: Likewise.
34828         * lib/sys_utsname.in.h: Likewise.
34829         * lib/unistd.in.h: Likewise.
34830         * lib/wchar.in.h: Likewise.
34831
34832 2010-01-20  Bruno Haible  <bruno@clisp.org>
34833
34834         Avoid duplicate -lm.
34835         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34836         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34837         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34838         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34839         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34840         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34841         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34842         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34843         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34844         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34845         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34846         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34847         Reported by Paolo Bonzini.
34848
34849 2010-01-19  Bruno Haible  <bruno@clisp.org>
34850
34851         langinfo, nl_langinfo: Relicense under LGPLv2+.
34852         * modules/langinfo (License): Change to LGPLv2+.
34853         * modules/nl_langinfo (License): Likewise.
34854         Patch by David Lutterkort <lutter@redhat.com>.
34855
34856 2010-01-19  Bruno Haible  <bruno@clisp.org>
34857
34858         Avoid compilation error with cc on OSF/1 5.1.
34859         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34860         statement, not before.
34861         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34862
34863 2010-01-18  Bruno Haible  <bruno@clisp.org>
34864
34865         Avoid a link error due to the __printf__ symbol.
34866         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34867         and 2.6.x.
34868         (__format__, __printf__): Remove definitions.
34869         * lib/argp-fmtstream.h: Likewise.
34870         * lib/argp.h: Likewise.
34871         * lib/error.h: Likewise.
34872         * lib/vasnprintf.h: Likewise.
34873         * lib/xprintf.h: Likewise.
34874         * lib/xvasprintf.h: Likewise.
34875         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34876
34877 2010-01-18  Bruno Haible  <bruno@clisp.org>
34878
34879         Tests for module 'tanl'.
34880         * modules/tanl-tests: New file.
34881         * tests/test-tanl.c: New file.
34882
34883         Tests for module 'sqrtl'.
34884         * modules/sqrtl-tests: New file.
34885         * tests/test-sqrtl.c: New file.
34886
34887         Tests for module 'sinl'.
34888         * modules/sinl-tests: New file.
34889         * tests/test-sinl.c: New file.
34890
34891         Tests for module 'logl'.
34892         * modules/logl-tests: New file.
34893         * tests/test-logl.c: New file.
34894
34895         Tests for module 'expl'.
34896         * modules/expl-tests: New file.
34897         * tests/test-expl.c: New file.
34898
34899         Tests for module 'cosl'.
34900         * modules/cosl-tests: New file.
34901         * tests/test-cosl.c: New file.
34902
34903         Tests for module 'atanl'.
34904         * modules/atanl-tests: New file.
34905         * tests/test-atanl.c: New file.
34906
34907         Tests for module 'asinl'.
34908         * modules/asinl-tests: New file.
34909         * tests/test-asinl.c: New file.
34910
34911         Tests for module 'acosl'.
34912         * modules/acosl-tests: New file.
34913         * tests/test-acosl.c: New file.
34914
34915         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34916         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34917         tanl): Use the standard gnulib idiom.
34918         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34919         * lib/sinl.c: Likewise.
34920         * lib/tanl.c: Don't include trigl.c.
34921         (kernel_tanl): Make static.
34922         * lib/sincosl.c: Include trigl.h first.
34923         * lib/trigl.c: Likewise.
34924         * m4/acosl.m4: New file.
34925         * m4/asinl.m4: New file.
34926         * m4/atanl.m4: New file.
34927         * m4/cosl.m4: New file.
34928         * m4/expl.m4: New file.
34929         * m4/logl.m4: New file.
34930         * m4/sinl.m4: New file.
34931         * m4/sqrtl.m4: New file.
34932         * m4/tanl.m4: New file.
34933         * m4/mathl.m4: Remove file.
34934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34935         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34936         Don't initialize GNULIB_MATHL.
34937         * modules/acosl: New file.
34938         * modules/asinl: New file.
34939         * modules/atanl: New file.
34940         * modules/cosl: New file.
34941         * modules/expl: New file.
34942         * modules/logl: New file.
34943         * modules/sinl: New file.
34944         * modules/sqrtl: New file.
34945         * modules/tanl: New file.
34946         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34947         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34948         substitute GNULIB_MATHL.
34949         * modules/mathl: Rewritten.
34950         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34951         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34952         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34953         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34954         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34955         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34956         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34957         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34958         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34959
34960 2010-01-18  Bruno Haible  <bruno@clisp.org>
34961
34962         sqrt: Make gl_FUNC_SQRT requirable.
34963         * m4/sqrt.m4: New file.
34964         * modules/sqrt (Files): Add it.
34965         (configure.ac): Invoke gl_FUNC_SQRT.
34966
34967 2010-01-18  Bruno Haible  <bruno@clisp.org>
34968
34969         New modules for common <math.h> functions.
34970         * m4/mathfunc.m4: New file.
34971         * modules/acos: New file.
34972         * modules/asin: New file.
34973         * modules/atan: New file.
34974         * modules/atan2: New file.
34975         * modules/cbrt: New file.
34976         * modules/copysign: New file.
34977         * modules/cos: New file.
34978         * modules/cosh: New file.
34979         * modules/erf: New file.
34980         * modules/erfc: New file.
34981         * modules/exp: New file.
34982         * modules/fabs: New file.
34983         * modules/fmod: New file.
34984         * modules/hypot: New file.
34985         * modules/j0: New file.
34986         * modules/j1: New file.
34987         * modules/jn: New file.
34988         * modules/ldexp: New file.
34989         * modules/lgamma: New file.
34990         * modules/log: New file.
34991         * modules/log10: New file.
34992         * modules/log1p: New file.
34993         * modules/logb: New file.
34994         * modules/modf: New file.
34995         * modules/nextafter: New file.
34996         * modules/pow: New file.
34997         * modules/remainder: New file.
34998         * modules/rint: New file.
34999         * modules/sin: New file.
35000         * modules/sinh: New file.
35001         * modules/sqrt: New file.
35002         * modules/tan: New file.
35003         * modules/tanh: New file.
35004         * modules/y0: New file.
35005         * modules/y1: New file.
35006         * modules/yn: New file.
35007         * doc/posix-functions/acos.texi: Mention the 'acos' module.
35008         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35009         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35010         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35011         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35012         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35013         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35014         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35015         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35016         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35017         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35018         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35019         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35020         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35021         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35022         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35023         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35024         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35025         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35026         * doc/posix-functions/log.texi: Mention the 'log' module.
35027         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35028         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35029         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35030         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35031         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35032         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35033         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35034         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35035         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35036         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35037         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35038         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35039         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35040         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35041         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35042         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35043
35044 2010-01-18  Jim Meyering  <meyering@redhat.com>
35045
35046         ignore-value: relax license to LGPLv2+
35047         * modules/ignore-value (License): Relax to LGPLv2+.
35048
35049         getdate: don't leak when TZ contains two or more '"'s
35050         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35051         double quote in TZ after the first one.
35052
35053         readtokens: do not leak internal token_lengths buffer
35054         * lib/readtokens.c (readtokens): Free the local, lengths,
35055         when the supplied "token_lengths" parameter is NULL.
35056
35057 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35058
35059         Fix a couple of missing LIBTHREAD link failures on AIX.
35060         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35061         $(LIBTHREAD).
35062         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35063
35064         Link test-poll against INET_PTON_LIB.
35065         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35066         for inet_pton on Solaris 10.
35067
35068 2010-01-17  Bruno Haible  <bruno@clisp.org>
35069
35070         unistdio/*-sprintf: Fix typo in module description.
35071         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35072         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35073         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35074         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35075         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35076         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35077         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35078         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35079
35080 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35081
35082         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35083         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35084         variables in shell case patterns, for AIX and HP-UX ksh.
35085
35086         Split large sed scripts, for HP-UX sed.
35087         * modules/stdio: Split sed scripts around 50 sed commands,
35088         to avoid HP-UX limit of 99 commands, in the near future.
35089         * modules/string: Likewise.
35090         * modules/unistd: Likewise.
35091
35092         gnulib-tool: avoid writing in the current directory.
35093         * gnulib-tool (func_emit_lib_Makefile_am)
35094         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35095         not in the current directory, so concurrent gnulib-tool
35096         instances do not interfere.
35097
35098 2010-01-16  Jim Meyering  <meyering@redhat.com>
35099
35100         doc: update users.txt
35101         * users.txt: Add grep.
35102         (diffutils, gzip): Update URLs.
35103
35104 2010-01-12  Bruno Haible  <bruno@clisp.org>
35105
35106         posix_spawn: Avoid test failure on Cygwin.
35107         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35108         characters.
35109         Reported by Simon Josefsson.
35110
35111 2010-01-12  Bruno Haible  <bruno@clisp.org>
35112
35113         * tests/test-cond.c (main): When skipping the test, show the reason.
35114
35115 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35116
35117         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35118
35119 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35120
35121         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35122         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35123
35124 2010-01-12  Eric Blake  <ebb9@byu.net>
35125
35126         build: guarantee AS_VAR_IF
35127         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35128         (gl_AS_VAR_IF): Move...
35129         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35130         Reported by Simon Josefsson.
35131
35132 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35133
35134         * lib/stdio.in.h: Fix typo.
35135
35136 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35137
35138         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35139         libgpg-error.
35140
35141 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35142
35143         * tests/test-xalloc-die.sh: Use $EXEEXT.
35144
35145 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35146             Bruno Haible  <bruno@clisp.org>
35147
35148         getlogin, getlogin_r: Avoid test failure.
35149         * tests/test-getlogin.c: Include <stdio.h>.
35150         (main): Skip the test when the function fails because stdin is not a
35151         tty.
35152         * tests/test-getlogin_r.c: Include <stdio.h>.
35153         (main): Skip the test when the function fails because stdin is not a
35154         tty.
35155
35156 2010-01-11  Eric Blake  <ebb9@byu.net>
35157
35158         tests: avoid more large file warnings
35159         * tests/test-fflush.c: Avoid warning about ftell use.
35160         * tests/test-fseek.c: Avoid warning about fseek use.
35161
35162 2010-01-10  Bruno Haible  <bruno@clisp.org>
35163
35164         nproc: Work better on Linux when /proc and /sys are not mounted.
35165         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35166         as lower bound when, on glibc/Linux systems,
35167         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35168         Suggested by Pádraig Brady <P@draigbrady.com>.
35169         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35170
35171         nproc: Refactor.
35172         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35173         extracted from num_processors.
35174         (num_processors): Call it.
35175
35176 2010-01-11  Jim Meyering  <meyering@redhat.com>
35177
35178         utimecmp: avoid new warning from upcoming gcc-4.5.0
35179         * lib/utimecmp.c (BILLION): Define using #define rather than an
35180         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35181
35182 2010-01-11  Eric Blake  <ebb9@byu.net>
35183
35184         math: add portability warnings for classification macros
35185         * modules/math (Depends-on): Add warn-on-use.
35186         (Makefile.am): Provide new substitutions.
35187         * m4/math_h.m4 (gl_MATH_H): Require inline.
35188         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35189         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35190         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35191         implement warnings.
35192
35193         unistd: warn on use of environ without module
35194         * modules/unistd (Depends-on): Add warn-on-use.
35195         (Makefile.am): Provide new substitutions.
35196         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35197         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35198
35199         stdio: warn on suspicious uses
35200         * modules/stdio (Depends-on): Add warn-on-use.
35201         (Makefile.am): Provide new substitutions.
35202         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35203         fseeko.
35204         * lib/stdio.in.h (gets): Always warn on use.
35205         (fseek, ftell): Adjust when warnings are issued, and honor
35206         _GL_NO_LARGE_FILES as a way to silence the warning.
35207         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35208         any warning about large file offsets.
35209         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35210         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35211         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35212         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35213         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35214         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35215         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35216         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35217
35218         warn-on-use: new module
35219         * modules/warn-on-use: New file.
35220         * build-aux/warn-on-use.h: Likewise.
35221         * m4/warn-on-use.m4: Likewise.
35222         * MODULES.html.sh (Support for building): Mention it.
35223
35224 2010-01-10  Bruno Haible  <bruno@clisp.org>
35225
35226         Tests for module 'unistr/u32-strdup'.
35227         * modules/unistr/u32-strdup-tests: New file.
35228         * tests/unistr/test-u32-strdup.c: New file.
35229
35230         Tests for module 'unistr/u16-strdup'.
35231         * modules/unistr/u16-strdup-tests: New file.
35232         * tests/unistr/test-u16-strdup.c: New file.
35233
35234         Tests for module 'unistr/u8-strdup'.
35235         * modules/unistr/u8-strdup-tests: New file.
35236         * tests/unistr/test-u8-strdup.c: New file.
35237         * tests/unistr/test-strdup.h: New file.
35238
35239         Tests for module 'unistr/u32-strncmp'.
35240         * modules/unistr/u32-strncmp-tests: New file.
35241         * tests/unistr/test-u32-strncmp.c: New file.
35242
35243         Tests for module 'unistr/u16-strncmp'.
35244         * modules/unistr/u16-strncmp-tests: New file.
35245         * tests/unistr/test-u16-strncmp.c: New file.
35246
35247         Tests for module 'unistr/u8-strncmp'.
35248         * modules/unistr/u8-strncmp-tests: New file.
35249         * tests/unistr/test-u8-strncmp.c: New file.
35250         * tests/unistr/test-strncmp.h: New file.
35251
35252         Tests for module 'unistr/u32-strcoll'.
35253         * modules/unistr/u32-strcoll-tests: New file.
35254         * tests/unistr/test-u32-strcoll.c: New file.
35255
35256         Tests for module 'unistr/u16-strcoll'.
35257         * modules/unistr/u16-strcoll-tests: New file.
35258         * tests/unistr/test-u16-strcoll.c: New file.
35259
35260         Tests for module 'unistr/u8-strcoll'.
35261         * modules/unistr/u8-strcoll-tests: New file.
35262         * tests/unistr/test-u8-strcoll.c: New file.
35263
35264         Tests for module 'unistr/u32-strcmp'.
35265         * modules/unistr/u32-strcmp-tests: New file.
35266         * tests/unistr/test-u32-strcmp.c: New file.
35267         * tests/unistr/test-u32-strcmp.h: New file.
35268
35269         Tests for module 'unistr/u16-strcmp'.
35270         * modules/unistr/u16-strcmp-tests: New file.
35271         * tests/unistr/test-u16-strcmp.c: New file.
35272         * tests/unistr/test-u16-strcmp.h: New file.
35273
35274         Tests for module 'unistr/u8-strcmp'.
35275         * modules/unistr/u8-strcmp-tests: New file.
35276         * tests/unistr/test-u8-strcmp.c: New file.
35277         * tests/unistr/test-u8-strcmp.h: New file.
35278         * tests/unistr/test-strcmp.h: New file.
35279
35280         Tests for module 'unistr/u32-strncat'.
35281         * modules/unistr/u32-strncat-tests: New file.
35282         * tests/unistr/test-u32-strncat.c: New file.
35283
35284         Tests for module 'unistr/u16-strncat'.
35285         * modules/unistr/u16-strncat-tests: New file.
35286         * tests/unistr/test-u16-strncat.c: New file.
35287
35288         Tests for module 'unistr/u8-strncat'.
35289         * modules/unistr/u8-strncat-tests: New file.
35290         * tests/unistr/test-u8-strncat.c: New file.
35291         * tests/unistr/test-strncat.h: New file.
35292
35293         Tests for module 'unistr/u32-strcat'.
35294         * modules/unistr/u32-strcat-tests: New file.
35295         * tests/unistr/test-u32-strcat.c: New file.
35296
35297         Tests for module 'unistr/u16-strcat'.
35298         * modules/unistr/u16-strcat-tests: New file.
35299         * tests/unistr/test-u16-strcat.c: New file.
35300
35301         Tests for module 'unistr/u8-strcat'.
35302         * modules/unistr/u8-strcat-tests: New file.
35303         * tests/unistr/test-u8-strcat.c: New file.
35304         * tests/unistr/test-strcat.h: New file.
35305
35306         Tests for module 'unistr/u32-stpncpy'.
35307         * modules/unistr/u32-stpncpy-tests: New file.
35308         * tests/unistr/test-u32-stpncpy.c: New file.
35309
35310         Tests for module 'unistr/u16-stpncpy'.
35311         * modules/unistr/u16-stpncpy-tests: New file.
35312         * tests/unistr/test-u16-stpncpy.c: New file.
35313
35314         Tests for module 'unistr/u8-stpncpy'.
35315         * modules/unistr/u8-stpncpy-tests: New file.
35316         * tests/unistr/test-u8-stpncpy.c: New file.
35317         * tests/unistr/test-stpncpy.h: New file.
35318
35319         Tests for module 'unistr/u32-strncpy'.
35320         * modules/unistr/u32-strncpy-tests: New file.
35321         * tests/unistr/test-u32-strncpy.c: New file.
35322
35323         Tests for module 'unistr/u16-strncpy'.
35324         * modules/unistr/u16-strncpy-tests: New file.
35325         * tests/unistr/test-u16-strncpy.c: New file.
35326
35327         Tests for module 'unistr/u8-strncpy'.
35328         * modules/unistr/u8-strncpy-tests: New file.
35329         * tests/unistr/test-u8-strncpy.c: New file.
35330         * tests/unistr/test-strncpy.h: New file.
35331
35332         Tests for module 'unistr/u32-stpcpy'.
35333         * modules/unistr/u32-stpcpy-tests: New file.
35334         * tests/unistr/test-u32-stpcpy.c: New file.
35335
35336         Tests for module 'unistr/u16-stpcpy'.
35337         * modules/unistr/u16-stpcpy-tests: New file.
35338         * tests/unistr/test-u16-stpcpy.c: New file.
35339
35340         Tests for module 'unistr/u8-stpcpy'.
35341         * modules/unistr/u8-stpcpy-tests: New file.
35342         * tests/unistr/test-u8-stpcpy.c: New file.
35343         * tests/unistr/test-stpcpy.h: New file.
35344
35345         Tests for module 'unistr/u32-strcpy'.
35346         * modules/unistr/u32-strcpy-tests: New file.
35347         * tests/unistr/test-u32-strcpy.c: New file.
35348
35349         Tests for module 'unistr/u16-strcpy'.
35350         * modules/unistr/u16-strcpy-tests: New file.
35351         * tests/unistr/test-u16-strcpy.c: New file.
35352
35353         Tests for module 'unistr/u8-strcpy'.
35354         * modules/unistr/u8-strcpy-tests: New file.
35355         * tests/unistr/test-u8-strcpy.c: New file.
35356         * tests/unistr/test-strcpy.h: New file.
35357
35358         Tests for module 'unistr/u32-strnlen'.
35359         * modules/unistr/u32-strnlen-tests: New file.
35360         * tests/unistr/test-u32-strnlen.c: New file.
35361
35362         Tests for module 'unistr/u16-strnlen'.
35363         * modules/unistr/u16-strnlen-tests: New file.
35364         * tests/unistr/test-u16-strnlen.c: New file.
35365
35366         Tests for module 'unistr/u8-strnlen'.
35367         * modules/unistr/u8-strnlen-tests: New file.
35368         * tests/unistr/test-u8-strnlen.c: New file.
35369         * tests/unistr/test-strnlen.h: New file.
35370
35371         Tests for module 'unistr/u32-strlen'.
35372         * modules/unistr/u32-strlen-tests: New file.
35373         * tests/unistr/test-u32-strlen.c: New file.
35374
35375         Tests for module 'unistr/u16-strlen'.
35376         * modules/unistr/u16-strlen-tests: New file.
35377         * tests/unistr/test-u16-strlen.c: New file.
35378
35379         Tests for module 'unistr/u8-strlen'.
35380         * modules/unistr/u8-strlen-tests: New file.
35381         * tests/unistr/test-u8-strlen.c: New file.
35382
35383         Tests for module 'unistr/u32-prev'.
35384         * modules/unistr/u32-prev-tests: New file.
35385         * tests/unistr/test-u32-prev.c: New file.
35386
35387         Tests for module 'unistr/u16-prev'.
35388         * modules/unistr/u16-prev-tests: New file.
35389         * tests/unistr/test-u16-prev.c: New file.
35390
35391         Tests for module 'unistr/u8-prev'.
35392         * modules/unistr/u8-prev-tests: New file.
35393         * tests/unistr/test-u8-prev.c: New file.
35394
35395         Tests for module 'unistr/u32-next'.
35396         * modules/unistr/u32-next-tests: New file.
35397         * tests/unistr/test-u32-next.c: New file.
35398
35399         Tests for module 'unistr/u16-next'.
35400         * modules/unistr/u16-next-tests: New file.
35401         * tests/unistr/test-u16-next.c: New file.
35402
35403         Tests for module 'unistr/u8-next'.
35404         * modules/unistr/u8-next-tests: New file.
35405         * tests/unistr/test-u8-next.c: New file.
35406
35407         Tests for module 'unistr/u32-strmbtouc'.
35408         * modules/unistr/u32-strmbtouc-tests: New file.
35409         * tests/unistr/test-u32-strmbtouc.c: New file.
35410
35411         Tests for module 'unistr/u16-strmbtouc'.
35412         * modules/unistr/u16-strmbtouc-tests: New file.
35413         * tests/unistr/test-u16-strmbtouc.c: New file.
35414
35415         Tests for module 'unistr/u8-strmbtouc'.
35416         * modules/unistr/u8-strmbtouc-tests: New file.
35417         * tests/unistr/test-u8-strmbtouc.c: New file.
35418
35419         Tests for module 'unistr/u32-strmblen'.
35420         * modules/unistr/u32-strmblen-tests: New file.
35421         * tests/unistr/test-u32-strmblen.c: New file.
35422
35423         Tests for module 'unistr/u16-strmblen'.
35424         * modules/unistr/u16-strmblen-tests: New file.
35425         * tests/unistr/test-u16-strmblen.c: New file.
35426
35427         Tests for module 'unistr/u8-strmblen'.
35428         * modules/unistr/u8-strmblen-tests: New file.
35429         * tests/unistr/test-u8-strmblen.c: New file.
35430
35431         Tests for module 'unistr/u32-cpy-alloc'.
35432         * modules/unistr/u32-cpy-alloc-tests: New file.
35433         * tests/unistr/test-u32-cpy-alloc.c: New file.
35434
35435         Tests for module 'unistr/u16-cpy-alloc'.
35436         * modules/unistr/u16-cpy-alloc-tests: New file.
35437         * tests/unistr/test-u16-cpy-alloc.c: New file.
35438
35439         Tests for module 'unistr/u8-cpy-alloc'.
35440         * modules/unistr/u8-cpy-alloc-tests: New file.
35441         * tests/unistr/test-u8-cpy-alloc.c: New file.
35442         * tests/unistr/test-cpy-alloc.h: New file.
35443
35444         Tests for module 'unistr/u32-mbsnlen'.
35445         * modules/unistr/u32-mbsnlen-tests: New file.
35446         * tests/unistr/test-u32-mbsnlen.c: New file.
35447
35448         Tests for module 'unistr/u16-mbsnlen'.
35449         * modules/unistr/u16-mbsnlen-tests: New file.
35450         * tests/unistr/test-u16-mbsnlen.c: New file.
35451
35452         Tests for module 'unistr/u8-mbsnlen'.
35453         * modules/unistr/u8-mbsnlen-tests: New file.
35454         * tests/unistr/test-u8-mbsnlen.c: New file.
35455
35456         Tests for module 'unistr/u32-chr'.
35457         * modules/unistr/u32-chr-tests: New file.
35458         * tests/unistr/test-u32-chr.c: New file.
35459
35460         Tests for module 'unistr/u16-chr'.
35461         * modules/unistr/u16-chr-tests: New file.
35462         * tests/unistr/test-u16-chr.c: New file.
35463
35464         Tests for module 'unistr/u8-chr'.
35465         * modules/unistr/u8-chr-tests: New file.
35466         * tests/unistr/test-u8-chr.c: New file.
35467         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35468
35469         Tests for module 'unistr/u32-cmp2'.
35470         * modules/unistr/u32-cmp2-tests: New file.
35471         * tests/unistr/test-u32-cmp2.c: New file.
35472
35473         Tests for module 'unistr/u16-cmp2'.
35474         * modules/unistr/u16-cmp2-tests: New file.
35475         * tests/unistr/test-u16-cmp2.c: New file.
35476
35477         Tests for module 'unistr/u8-cmp2'.
35478         * modules/unistr/u8-cmp2-tests: New file.
35479         * tests/unistr/test-u8-cmp2.c: New file.
35480         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35481
35482         Tests for module 'unistr/u32-cmp'.
35483         * modules/unistr/u32-cmp-tests: New file.
35484         * tests/unistr/test-u32-cmp.c: New file.
35485
35486         Tests for module 'unistr/u16-cmp'.
35487         * modules/unistr/u16-cmp-tests: New file.
35488         * tests/unistr/test-u16-cmp.c: New file.
35489
35490         Tests for module 'unistr/u8-cmp'.
35491         * modules/unistr/u8-cmp-tests: New file.
35492         * tests/unistr/test-u8-cmp.c: New file.
35493         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35494
35495         Tests for module 'unistr/u32-set'.
35496         * modules/unistr/u32-set-tests: New file.
35497         * tests/unistr/test-u32-set.c: New file.
35498
35499         Tests for module 'unistr/u16-set'.
35500         * modules/unistr/u16-set-tests: New file.
35501         * tests/unistr/test-u16-set.c: New file.
35502
35503         Tests for module 'unistr/u8-set'.
35504         * modules/unistr/u8-set-tests: New file.
35505         * tests/unistr/test-u8-set.c: New file.
35506         * tests/unistr/test-set.h: New file.
35507
35508         Tests for module 'unistr/u32-move'.
35509         * modules/unistr/u32-move-tests: New file.
35510         * tests/unistr/test-u32-move.c: New file.
35511
35512         Tests for module 'unistr/u16-move'.
35513         * modules/unistr/u16-move-tests: New file.
35514         * tests/unistr/test-u16-move.c: New file.
35515
35516         Tests for module 'unistr/u8-move'.
35517         * modules/unistr/u8-move-tests: New file.
35518         * tests/unistr/test-u8-move.c: New file.
35519         * tests/unistr/test-move.h: New file.
35520
35521         Tests for module 'unistr/u32-cpy'.
35522         * modules/unistr/u32-cpy-tests: New file.
35523         * tests/unistr/test-u32-cpy.c: New file.
35524
35525         Tests for module 'unistr/u16-cpy'.
35526         * modules/unistr/u16-cpy-tests: New file.
35527         * tests/unistr/test-u16-cpy.c: New file.
35528
35529         Tests for module 'unistr/u8-cpy'.
35530         * modules/unistr/u8-cpy-tests: New file.
35531         * tests/unistr/test-u8-cpy.c: New file.
35532         * tests/unistr/test-cpy.h: New file.
35533
35534 2010-01-09  Bruno Haible  <bruno@clisp.org>
35535
35536         Tests for module 'unistr/u32-uctomb'.
35537         * modules/unistr/u32-uctomb-tests: New file.
35538         * tests/unistr/test-u32-uctomb.c: New file.
35539
35540         Tests for module 'unistr/u16-uctomb'.
35541         * modules/unistr/u16-uctomb-tests: New file.
35542         * tests/unistr/test-u16-uctomb.c: New file.
35543
35544         Tests for module 'unistr/u8-uctomb'.
35545         * modules/unistr/u8-uctomb-tests: New file.
35546         * tests/unistr/test-u8-uctomb.c: New file.
35547
35548         Tests for module 'unistr/u32-mbtoucr'.
35549         * modules/unistr/u32-mbtoucr-tests: New file.
35550         * tests/unistr/test-u32-mbtoucr.c: New file.
35551
35552         Tests for module 'unistr/u16-mbtoucr'.
35553         * modules/unistr/u16-mbtoucr-tests: New file.
35554         * tests/unistr/test-u16-mbtoucr.c: New file.
35555
35556         Tests for module 'unistr/u8-mbtoucr'.
35557         * modules/unistr/u8-mbtoucr-tests: New file.
35558         * tests/unistr/test-u8-mbtoucr.c: New file.
35559
35560         Tests for module 'unistr/u32-mbtouc'.
35561         * modules/unistr/u32-mbtouc-tests: New file.
35562         * tests/unistr/test-u32-mbtouc.c: New file.
35563
35564         Tests for module 'unistr/u16-mbtouc'.
35565         * modules/unistr/u16-mbtouc-tests: New file.
35566         * tests/unistr/test-u16-mbtouc.c: New file.
35567
35568         Tests for module 'unistr/u8-mbtouc'.
35569         * modules/unistr/u8-mbtouc-tests: New file.
35570         * tests/unistr/test-u8-mbtouc.c: New file.
35571
35572         Tests for module 'unistr/u32-mbtouc-unsafe'.
35573         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35574         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35575         * tests/unistr/test-u32-mbtouc.h: New file.
35576
35577         Tests for module 'unistr/u16-mbtouc-unsafe'.
35578         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35579         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35580         * tests/unistr/test-u16-mbtouc.h: New file.
35581
35582         Tests for module 'unistr/u8-mbtouc-unsafe'.
35583         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35584         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35585         * tests/unistr/test-u8-mbtouc.h: New file.
35586
35587         Tests for module 'unistr/u32-mblen'.
35588         * modules/unistr/u32-mblen-tests: New file.
35589         * tests/unistr/test-u32-mblen.c: New file.
35590
35591         Tests for module 'unistr/u16-mblen'.
35592         * modules/unistr/u16-mblen-tests: New file.
35593         * tests/unistr/test-u16-mblen.c: New file.
35594
35595         Tests for module 'unistr/u8-mblen'.
35596         * modules/unistr/u8-mblen-tests: New file.
35597         * tests/unistr/test-u8-mblen.c: New file.
35598
35599         Tests for module 'unistr/u32-to-u16'.
35600         * modules/unistr/u32-to-u16-tests: New file.
35601         * tests/unistr/test-u32-to-u16.c: New file.
35602
35603         Tests for module 'unistr/u32-to-u8'.
35604         * modules/unistr/u32-to-u8-tests: New file.
35605         * tests/unistr/test-u32-to-u8.c: New file.
35606
35607         Tests for module 'unistr/u16-to-u32'.
35608         * modules/unistr/u16-to-u32-tests: New file.
35609         * tests/unistr/test-u16-to-u32.c: New file.
35610
35611         Tests for module 'unistr/u16-to-u8'.
35612         * modules/unistr/u16-to-u8-tests: New file.
35613         * tests/unistr/test-u16-to-u8.c: New file.
35614
35615         Tests for module 'unistr/u8-to-u32'.
35616         * modules/unistr/u8-to-u32-tests: New file.
35617         * tests/unistr/test-u8-to-u32.c: New file.
35618
35619         Tests for module 'unistr/u8-to-u16'.
35620         * modules/unistr/u8-to-u16-tests: New file.
35621         * tests/unistr/test-u8-to-u16.c: New file.
35622
35623         Tests for module 'unistr/u32-check'.
35624         * modules/unistr/u32-check-tests: New file.
35625         * tests/unistr/test-u32-check.c: New file.
35626
35627         Tests for module 'unistr/u16-check'.
35628         * modules/unistr/u16-check-tests: New file.
35629         * tests/unistr/test-u16-check.c: New file.
35630
35631         Tests for module 'unistr/u8-check'.
35632         * modules/unistr/u8-check-tests: New file.
35633         * tests/unistr/test-u8-check.c: New file.
35634
35635         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35636         (category_equals): New function.
35637         (main): Add more tests.
35638         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35639
35640         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35641
35642 2010-01-10  Bruno Haible  <bruno@clisp.org>
35643
35644         unistr/u*-strcoll: Try harder to distinguish different strings.
35645         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35646         compare s1 and s2 to see if they are different.
35647
35648 2010-01-10  Bruno Haible  <bruno@clisp.org>
35649
35650         unistr/u*-stpncpy: Fix the return value.
35651         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35652         description of the return value consistent with stpncpy in glibc.
35653         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35654         written non-NUL unit.
35655
35656 2010-01-10  Bruno Haible  <bruno@clisp.org>
35657
35658         unistr/u*-next: Add missing dependencies.
35659         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35660         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35661         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35662
35663 2010-01-10  Bruno Haible  <bruno@clisp.org>
35664
35665         unistr/u8-mbsnlen: Fix return value for incomplete character.
35666         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35667         u8_mblen.
35668         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35669         Remove unistr/u8-mblen.
35670         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35671         u16_mblen.
35672         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35673         Remove unistr/u16-mblen.
35674
35675 2010-01-10  Bruno Haible  <bruno@clisp.org>
35676
35677         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35678         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35679         Reported by Brian Gough <bjg@gnu.org> and
35680         Chris Clayton <chris2553@googlemail.com> via
35681         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35682
35683 2010-01-09  Bruno Haible  <bruno@clisp.org>
35684
35685         unistr/u16-to-u32: Reject invalid input.
35686         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35687         u16_mbtouc.
35688         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35689         Remove unistr/u16-mbtouc.
35690
35691         unistr/u16-to-u8: Reject invalid input.
35692         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35693         u16_mbtouc.
35694         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35695         Remove unistr/u16-mbtouc.
35696
35697         unistr/u8-to-u32: Reject invalid input.
35698         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35699         u8_mbtouc.
35700         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35701         Remove unistr/u8-mbtouc.
35702
35703         unistr/u8-to-u16: Reject invalid input.
35704         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35705         u8_mbtouc.
35706         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35707         Remove unistr/u8-mbtouc.
35708
35709 2010-01-09  Bruno Haible  <bruno@clisp.org>
35710
35711         Tests for module 'getlogin'.
35712         * modules/getlogin-tests: New file.
35713         * tests/test-getlogin.c: New file.
35714
35715         New module 'getlogin'.
35716         * lib/unistd.in.h (getlogin): New declaration.
35717         * lib/getlogin.c: New file.
35718         * m4/getlogin.m4: New file.
35719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35720         HAVE_GETLOGIN.
35721         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35722         HAVE_GETLOGIN.
35723         * modules/getlogin: New file.
35724         * doc/posix-functions/getlogin.texi: Mention the new module.
35725         Reported by John W. Eaton <jwe@gnu.org>.
35726
35727 2010-01-09  Bruno Haible  <bruno@clisp.org>
35728
35729         getlogin_r: Support for native Windows.
35730         * lib/getlogin_r.c: Include <windows.h>
35731         (getlogin_r): Implement for native Windows.
35732         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35733         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35734         via John W. Eaton <jwe@gnu.org>.
35735
35736 2010-01-09  Bruno Haible  <bruno@clisp.org>
35737
35738         getlogin_r: Small fixes.
35739         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35740         succeeds.
35741         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35742         before testing whether getlogin_r is declared. No need to set
35743         HAVE_DECL_GETLOGIN_R to 1.
35744         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35745
35746 2010-01-09  Bruno Haible  <bruno@clisp.org>
35747
35748         * lib/unistd.in.h (getlogin_r): Add comment.
35749
35750 2010-01-09  Bruno Haible  <bruno@clisp.org>
35751
35752         Tests for module 'getlogin_r'.
35753         * modules/getlogin_r-tests: New file.
35754         * tests/test-getlogin_r.c: New file.
35755
35756 2010-01-09  Jim Meyering  <meyering@redhat.com>
35757
35758         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35759         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35760         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35761
35762 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35763
35764         * lib/dup2.c (rpl_dup2): Improve comment.
35765
35766 2010-01-08  Eric Blake  <ebb9@byu.net>
35767
35768         maint.mk: allow packages to add makefile @@ exceptions
35769         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35770         (sc_makefile_check): Rename...
35771         (sc_makefile_at_at_check): ...to this, and use hook.
35772
35773         dup2: work around mingw bug
35774         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35775         Reported by Simon Josefsson.
35776
35777 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35778
35779         glob: Fix C++ compilation.
35780         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35781         C++.
35782
35783 2010-01-07  Bruno Haible  <bruno@clisp.org>
35784
35785         Fix indentation of wctype.in.h, broken since 2007-01-06.
35786         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35787
35788 2010-01-07  Bruno Haible  <bruno@clisp.org>
35789
35790         mbslen: Avoid collision with system function.
35791         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35792         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35793         * m4/mbslen.m4: New file.
35794         * modules/mbslen (Files): Add it.
35795         (configure.ac): Invoke gl_MBSLEN.
35796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35797         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35798         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35799         via Ian Beckwith <ianb@erislabs.net>.
35800
35801 2010-01-07  Bruno Haible  <bruno@clisp.org>
35802
35803         dirent: Document the last fix.
35804         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35805
35806 2010-01-07  Bruno Haible  <bruno@clisp.org>
35807
35808         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35809         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35810         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35811         va_list are defined.
35812         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35813         Reported by Eric Blake.
35814
35815 2010-01-07  Bruno Haible  <bruno@clisp.org>
35816
35817         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35818         * modules/xlist (Depends-on): Add 'list',
35819         * modules/xoset (Depends-on): Add 'oset'.
35820         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35821
35822 2010-01-07  Bruno Haible  <bruno@clisp.org>
35823
35824         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35825         * doc/posix-functions/strncasecmp.texi: Likewise.
35826
35827 2010-01-07  Bruno Haible  <bruno@clisp.org>
35828
35829         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35830
35831 2010-01-07  John W. Eaton  <jwe@octave.org>
35832
35833         wctype: allow C++ use
35834         * lib/wctype.in.h: Add extern "C" block for C++.
35835
35836 2010-01-06  Eric Blake  <ebb9@byu.net>
35837
35838         maint.mk: detect incorrect GFDL usage
35839         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35840
35841 2010-01-06  Jim Meyering  <meyering@redhat.com>
35842         and Eric Blake  <ebb9@byu.net>
35843
35844         maint.mk: ignore multi-line copyright in NEWS
35845         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35846
35847 2010-01-06  Eric Blake  <ebb9@byu.net>
35848
35849         select: add missing dependency
35850         * modules/select-tests (Depends-on): Move sockets dependency...
35851         * modules/select (Depends-on): ...here.
35852         Reported by Ian Beckwith.
35853
35854         doc: regenerate INSTALL
35855         * doc/INSTALL: Reflect recent autoconf update.
35856         * doc/INSTALL.ISO: Likewise.
35857         * doc/INSTALL.UTF-8: Likewise.
35858
35859         pread: fix compilation on glibc
35860         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35861         Reported by Ralf Wildenhues.
35862
35863         dirent: fix test failure
35864         * lib/dirent.in.h (includes): Guarantee ino_t.
35865         Reported by Ralf Wildenhues.
35866
35867 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35868
35869         linkat, renameat: avoid bad free
35870         * lib/at-func2.c (at_func2): Fix typo.
35871         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35872
35873 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35874
35875         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35876         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35877         to avoid failure of symlink test later.
35878
35879 2010-01-06  Eric Blake  <ebb9@byu.net>
35880
35881         stdio, unistd: guarantee ssize_t
35882         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35883         2008 are exposed when needed.
35884         * lib/stdio.in.h (includes): Likewise.
35885         Reported by Ralf Wildenhues.
35886
35887 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35888
35889         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35890         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35891         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35892
35893 2010-01-06  Jim Meyering  <meyering@redhat.com>
35894
35895         readtokens: this module *does* require xalloc.h
35896         It uses only functions that were omitted by the old syntax-check rule.
35897         * lib/readtokens.c: Include "xalloc.h" once again.
35898         * modules/readtokens (Depends-on): Add xalloc.
35899         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35900
35901 2010-01-05  Eric Blake  <ebb9@byu.net>
35902
35903         maint: support 'make announcement' from a VPATH build
35904         * top/maint.mk (announcement): Look for correct NEWS file.
35905
35906 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35907
35908         utimens (fdutimens): ignore a negative FD, per contract
35909         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35910         when we have a valid file descriptor.  Otherwise, using a brand
35911         new glibc (with just-patched futimens that now fails with EBADF)
35912         would cause this function to fail with ENOSYS.
35913         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35914         See also http://bugzilla.redhat.com/552320.
35915
35916 2010-01-05  Eric Blake  <ebb9@byu.net>
35917
35918         strcase: document what it provides
35919         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35920         gnulib module.
35921         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35922         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35923
35924 2010-01-05  Jim Meyering  <meyering@redhat.com>
35925
35926         maint: remove useless inclusions of "xalloc.h"
35927         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35928         * lib/readtokens.c: Likewise.
35929         * lib/same.c: Likewise.
35930         * modules/getloadavg (Depends-on): Remove xalloc.
35931         * modules/readtokens: Likewise.
35932         * modules/same: Likewise.
35933
35934         maint.mk: include 4 more function names in alloca.h-checking regexp
35935         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35936         regexp.  Before, we would give a false-positive (saying alloca.h
35937         is included unnecessarily) when the only uses involved omitted symbols.
35938
35939         xalloc.h: use consistent formatting
35940         * lib/xalloc.h: Move declarations to start in the first column.
35941
35942 2010-01-05  Eric Blake  <ebb9@byu.net>
35943
35944         mkdir: avoid xalloc
35945         * lib/mkdir.c (includes): Drop unused header.
35946         Reported by John W. Eaton.
35947
35948 2010-01-04  Jim Meyering  <meyering@redhat.com>
35949
35950         nl_langinfo: avoid configure-time syntax error
35951         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35952         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35953         the empty string.  Don't let that provoke a shell syntax error.
35954
35955         regcomp, regexec, fnmatch: avoid array bounds read error
35956         * lib/regcomp.c (build_equiv_class): From glibc:
35957         Use only the low 24 bits of a findidx return value as an index
35958         into the weights array.  Patch by Ulrich Drepper:
35959         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35960         * lib/regexec.c (check_node_accept_bytes): Likewise.
35961         * lib/fnmatch_loop.c (FCT): Likewise.
35962
35963         regcomp: skip collseq lookup when there are no rules
35964         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35965         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35966
35967         regcomp: recognize ill-formed { } expressions
35968         * lib/regcomp.c (parse_dup_op): From glibc:
35969         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35970
35971         regcomp: fix typo in comment
35972         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35973         s/satisfy/satisfies/.
35974
35975         regcomp: sync from glibc: remove dead store
35976         * lib/regcomp.c (duplicate_node_closure): Remove useless
35977         search_duplicated_node call and dead store.
35978
35979         regcomp: sync from glibc; always use nl_langinfo
35980         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35981         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35982         * modules/regex (Depends-on): Add nl_langinfo.
35983
35984 2010-01-04  Eric Blake  <ebb9@byu.net>
35985
35986         fdopendir: fix configure test
35987         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35988
35989 2010-01-01  Bruno Haible  <bruno@clisp.org>
35990
35991         wchar: Remove unused configure check.
35992         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35993
35994 2010-01-01  Eric Blake  <ebb9@byu.net>
35995
35996         headers: make check of system header explicit
35997         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35998         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35999         ourselves.
36000         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36001         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36002         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36003         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
36004         internals.
36005         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
36006         missing.
36007         Suggested by Bruno Haible.
36008
36009 2010-01-01  Jim Meyering  <meyering@redhat.com>
36010
36011         ChangeLog: tweak to eliminate unnecessary copyright line
36012         * ChangeLog: Remove a copyright line that was mistakenly updated
36013         by today's update-copyright run.  Reported by Eric Blake.
36014
36015         test-update-copyright: don't let envvar setting cause test failure
36016         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36017
36018 2010-01-01  Bruno Haible  <bruno@clisp.org>
36019
36020         localename: Avoid gcc warning.
36021         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36022         function if it is not used.
36023
36024 2010-01-01  Jim Meyering  <meyering@redhat.com>
36025
36026         update nearly all FSF copyright year lists to include 2010
36027         Use the same procedure as for 2009, outlined in
36028         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36029
36030         version-etc: set COPYRIGHT_YEAR to 2010
36031         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36032
36033 2009-12-31  Eric Blake  <ebb9@byu.net>
36034
36035         doc: correct availability of cygwin 1.5.x getopt
36036         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36037         variables.
36038         * doc/posix-functions/opterr.texi (opterr): Likewise.
36039         * doc/posix-functions/optind.texi (optind): Likewise.
36040         * doc/posix-functions/optopt.texi (optopt): Likewise.
36041         * doc/posix-functions/tzname.texi (tzname): Likewise.
36042
36043         openat: update maintainer
36044         * modules/openat (Maintainer): Add myself.
36045
36046         utimens: avoid shadowing warning
36047         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36048         buffers into one, to avoid shadowing, as well as avoiding a
36049         redundant stat.
36050         Reported by Jim Meyering.
36051
36052         test-dup2: avoid compiler warning
36053         * tests/test-dup2.c (is_inheritable): Only define if used.
36054
36055 2010-01-01  Bruno Haible  <bruno@clisp.org>
36056
36057         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36058         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36059         defined, use wctomb instead of wcrtomb.
36060
36061 2010-01-01  Bruno Haible  <bruno@clisp.org>
36062
36063         iconv: Reject native Solaris iconv.
36064         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36065         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36066
36067 2009-12-31  Bruno Haible  <bruno@clisp.org>
36068
36069         * tests/test-signal.c (main): Remove test of 'SIG'.
36070
36071 2009-12-31  Bruno Haible  <bruno@clisp.org>
36072
36073         spawn: Fix incomplete fix.
36074         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36075         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36076         warnings for GNULIB_POSIXCHECK again.
36077         Reported by Eric Blake.
36078
36079 2009-12-31  Bruno Haible  <bruno@clisp.org>
36080
36081         Avoid namespace pollution on glibc systems.
36082         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36083         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36084         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36085         glibc systems.
36086
36087 2009-12-31  Bruno Haible  <bruno@clisp.org>
36088
36089         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36090         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36091         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36092         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36093         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36094         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36095         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36096
36097 2009-12-31  Bruno Haible  <bruno@clisp.org>
36098
36099         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36100         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36101         afterwards.
36102
36103 2009-12-31  Bruno Haible  <bruno@clisp.org>
36104
36105         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36106         SYS_UTSNAME_H.
36107
36108 2009-12-31  Bruno Haible  <bruno@clisp.org>
36109
36110         spawn: Fix misapplied patch.
36111         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36112         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36113         warnings for GNULIB_POSIXCHECK.
36114
36115 2009-12-31  Bruno Haible  <bruno@clisp.org>
36116
36117         times: Update after sys_times changed.
36118         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36119         * modules/times (Files): Add it.
36120         (configure.ac): Invoke gl_FUNC_TIMES.
36121
36122 2009-12-31  Bruno Haible  <bruno@clisp.org>
36123
36124         Use AC_C_INLINE where necessary.
36125         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36126         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36127         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36128         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36129         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36130         * m4/mbiter.m4 (gl_MBITER): Likewise.
36131         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36132         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36133         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36134         * modules/u64 (configure.ac): Likewise.
36135
36136 2009-12-31  Bruno Haible  <bruno@clisp.org>
36137
36138         Use AC_C_INLINE instead of module 'inline' where possible.
36139         * modules/inline (Description): Clarify purpose.
36140         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36141         * modules/count-one-bits (Depends-on): Remove inline.
36142         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36143         * modules/openat (Depends-on): Remove inline.
36144         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36145         instead of depending on module 'inline'.
36146         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36147         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36148         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36149         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36150         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36151         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36152         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36153         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36154         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36155         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36156         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36157         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36158         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36159         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36160         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36161         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36162         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36163         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36164         Likewise.
36165         * modules/unictype/property-ascii-hex-digit (Depends-on,
36166         configure.ac): Likewise.
36167         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36168         configure.ac): Likewise.
36169         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36170         configure.ac): Likewise.
36171         * modules/unictype/property-bidi-block-separator (Depends-on,
36172         configure.ac): Likewise.
36173         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36174         configure.ac): Likewise.
36175         * modules/unictype/property-bidi-common-separator (Depends-on,
36176         configure.ac): Likewise.
36177         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36178         Likewise.
36179         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36180         configure.ac): Likewise.
36181         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36182         configure.ac): Likewise.
36183         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36184         configure.ac): Likewise.
36185         * modules/unictype/property-bidi-european-digit (Depends-on,
36186         configure.ac): Likewise.
36187         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36188         configure.ac): Likewise.
36189         * modules/unictype/property-bidi-left-to-right (Depends-on,
36190         configure.ac): Likewise.
36191         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36192         configure.ac): Likewise.
36193         * modules/unictype/property-bidi-other-neutral (Depends-on,
36194         configure.ac): Likewise.
36195         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36196         Likewise.
36197         * modules/unictype/property-bidi-segment-separator (Depends-on,
36198         configure.ac): Likewise.
36199         * modules/unictype/property-bidi-whitespace (Depends-on,
36200         configure.ac): Likewise.
36201         * modules/unictype/property-combining (Depends-on, configure.ac):
36202         Likewise.
36203         * modules/unictype/property-composite (Depends-on, configure.ac):
36204         Likewise.
36205         * modules/unictype/property-currency-symbol (Depends-on,
36206         configure.ac): Likewise.
36207         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36208         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36209         Likewise.
36210         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36211         configure.ac): Likewise.
36212         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36213         Likewise.
36214         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36215         Likewise.
36216         * modules/unictype/property-extender (Depends-on, configure.ac):
36217         Likewise.
36218         * modules/unictype/property-format-control (Depends-on, configure.ac):
36219         Likewise.
36220         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36221         Likewise.
36222         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36223         Likewise.
36224         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36225         Likewise.
36226         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36227         Likewise.
36228         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36229         Likewise.
36230         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36231         Likewise.
36232         * modules/unictype/property-id-start (Depends-on, configure.ac):
36233         Likewise.
36234         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36235         Likewise.
36236         * modules/unictype/property-ids-binary-operator (Depends-on,
36237         configure.ac): Likewise.
36238         * modules/unictype/property-ids-trinary-operator (Depends-on,
36239         configure.ac): Likewise.
36240         * modules/unictype/property-ignorable-control (Depends-on,
36241         configure.ac): Likewise.
36242         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36243         Likewise.
36244         * modules/unictype/property-join-control (Depends-on, configure.ac):
36245         Likewise.
36246         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36247         Likewise.
36248         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36249         Likewise.
36250         * modules/unictype/property-logical-order-exception (Depends-on,
36251         configure.ac): Likewise.
36252         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36253         Likewise.
36254         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36255         * modules/unictype/property-non-break (Depends-on, configure.ac):
36256         Likewise.
36257         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36258         Likewise.
36259         * modules/unictype/property-numeric (Depends-on, configure.ac):
36260         Likewise.
36261         * modules/unictype/property-other-alphabetic (Depends-on,
36262         configure.ac): Likewise.
36263         * modules/unictype/property-other-default-ignorable-code-point
36264         (Depends-on, configure.ac): Likewise.
36265         * modules/unictype/property-other-grapheme-extend (Depends-on,
36266         configure.ac): Likewise.
36267         * modules/unictype/property-other-id-continue (Depends-on,
36268         configure.ac): Likewise.
36269         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36270         Likewise.
36271         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36272         Likewise.
36273         * modules/unictype/property-other-math (Depends-on, configure.ac):
36274         Likewise.
36275         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36276         Likewise.
36277         * modules/unictype/property-paired-punctuation (Depends-on,
36278         configure.ac): Likewise.
36279         * modules/unictype/property-paragraph-separator (Depends-on,
36280         configure.ac): Likewise.
36281         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36282         Likewise.
36283         * modules/unictype/property-pattern-white-space (Depends-on,
36284         configure.ac): Likewise.
36285         * modules/unictype/property-private-use (Depends-on, configure.ac):
36286         Likewise.
36287         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36288         Likewise.
36289         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36290         Likewise.
36291         * modules/unictype/property-radical (Depends-on, configure.ac):
36292         Likewise.
36293         * modules/unictype/property-sentence-terminal (Depends-on,
36294         configure.ac): Likewise.
36295         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36296         Likewise.
36297         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36298         * modules/unictype/property-terminal-punctuation (Depends-on,
36299         configure.ac): Likewise.
36300         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36301         Likewise.
36302         * modules/unictype/property-unassigned-code-value (Depends-on,
36303         configure.ac): Likewise.
36304         * modules/unictype/property-unified-ideograph (Depends-on,
36305         configure.ac): Likewise.
36306         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36307         Likewise.
36308         * modules/unictype/property-variation-selector (Depends-on,
36309         configure.ac): Likewise.
36310         * modules/unictype/property-white-space (Depends-on, configure.ac):
36311         Likewise.
36312         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36313         Likewise.
36314         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36315         Likewise.
36316         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36317         Likewise.
36318         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36319         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36320         Likewise.
36321
36322 2009-12-31  Bruno Haible  <bruno@clisp.org>
36323
36324         Remove unnecessary AC_C_INLINE invocation.
36325         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36326         since 2009-08-21.
36327
36328 2009-12-31  Jim Meyering  <meyering@redhat.com>
36329
36330         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36331         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36332         With this change, we can all remove the gpg_key_ID = ... definition
36333         from our respective cfg.mk files.
36334
36335         maint.mk: create announcement template in ~/, not in /tmp
36336         * top/maint.mk (emit_upload_commands): Adjust.
36337         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36338         Remove temporary file, .ci-msg.
36339
36340 2009-12-31  Eric Blake  <ebb9@byu.net>
36341
36342         link-warning: always build headers with link warnings
36343         * modules/arpa_inet (Makefile.am): Always build replacement
36344         header.
36345         * modules/ctype (Makefile.am): Likewise.
36346         * modules/dirent (Makefile.am): Likewise.
36347         * modules/inttypes (Makefile.am): Likewise.
36348         * modules/langinfo (Makefile.am): Likewise.
36349         * modules/locale (Makefile.am): Likewise.
36350         * modules/spawn (Makefile.am): Likewise.
36351         * modules/sys_file (Makefile.am): Likewise.
36352         * modules/sys_ioctl (Makefile.am): Likewise.
36353         * modules/sys_select (Makefile.am): Likewise.
36354         * modules/sys_socket (Makefile.am): Likewise.
36355         * modules/sys_times (Makefile.am): Likewise.
36356         * modules/sys_utsname (Makefile.am): Likewise.
36357         * modules/sys_wait (Makefile.am): Likewise.
36358         * modules/wchar (Makefile.am): Likewise.
36359         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36360         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36361         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36362         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36363         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36364         Likewise.
36365         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36366         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36367         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36368         Likewise.
36369         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36370         Likewise.
36371         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36372         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36373         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36374         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36375         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36376         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36377         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36378         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36379         (gl_WCHAR_H_DEFAULTS): Likewise.
36380
36381 2009-12-31  Eric Blake  <ebb9@byu.net>
36382
36383         signal, spawn: use link warnings
36384         * lib/signal.in.h (sigset_t): Make unconditional.
36385         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36386         (sigpending, sigprocmask, sigaction): Add link warnings.
36387         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36388         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36389         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36390         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36391         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36392         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36393         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36394         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36395         (posix_spawn_file_actions_destroy)
36396         (posix_spawn_file_actions_addopen)
36397         (posix_spawn_file_actions_addclose)
36398         (posix_spawn_file_actions_adddup2): Likewise.
36399         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36400         * tests/test-signal.c (main): Enhance test.
36401
36402         spawn: improve wrapper support
36403         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36404         (gl_SPAWN_H_DEFAULTS): New defaults.
36405         * modules/spawn (Makefile.am): Substitute them.
36406         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36407         Only declare if missing or broken.
36408
36409         sys_times, sys_utsname: use include_next
36410         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36411         header.
36412         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36413         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36414         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36415         * modules/sys_times (Depends-on): Add include_next.
36416         (Makefile.am): Substitute additional values.
36417         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36418         * lib/sys_times.in.h (includes): Include native header, if
36419         available.
36420         * lib/sys_utsname.in.h (includes): Likewise.
36421         * tests/test-sys_times.c (main): Enhance test.
36422
36423         fdutimensat: revert prior patch
36424         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36425         utimens.h.
36426         Reported by Bruno Haible.
36427
36428 2009-12-30  Eric Blake  <ebb9@byu.net>
36429
36430         sys_wait: drop link-warning dependency
36431         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36432         link-warning efforts.
36433         * lib/sys_wait.in.h: Likewise.
36434
36435         fdutimensat: remove bogus dependency
36436         * modules/fdutimensat (Depends-on): Drop inline.
36437
36438         unistd: fix typo
36439         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36440
36441 2009-12-30  Bruno Haible  <bruno@clisp.org>
36442
36443         Fix compilation error with Solaris cc.
36444         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36445         * lib/unicase/u16-is-invariant.c: Likewise.
36446         * lib/unicase/u32-is-invariant.c: Likewise.
36447         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36448
36449 2009-12-30  Bruno Haible  <bruno@clisp.org>
36450
36451         Fix test crash.
36452         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36453         locales.
36454         Reported by Simon Josefsson <simon@josefsson.org>.
36455
36456 2009-12-30  Bruno Haible  <bruno@clisp.org>
36457
36458         Fix compilation error on most platforms.
36459         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36460         Reported by Simon Josefsson <simon@josefsson.org>
36461         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36462
36463 2009-12-30  Eric Blake  <ebb9@byu.net>
36464
36465         futimens, utimensat: work around ntfs-3g bug
36466         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36467         a ctime bug is present, and expand workaround to cover ntfs-3g.
36468         * lib/utimens.c (fdutimens, lutimens): Likewise.
36469         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36470         (validate_timespec): Adjust return value.
36471         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36472         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36473         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36474
36475 2009-12-29  Eric Blake  <ebb9@byu.net>
36476
36477         link-warning: make usage consistent
36478         * modules/ctype (Depends-on): Add link-warning.
36479         (Makefile.am): Update rules accordingly.
36480         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36481         * modules/locale (Depends-on, Makefile.am): Likewise.
36482         * modules/sys_file (Makefile.am): Likewise.
36483         * modules/getopt-posix (Makefile.am): Delete unused link warning
36484         efforts.
36485         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36486         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36487         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36488         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36489
36490         stdio: remove unused variables
36491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36492         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36493         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36494
36495         tests: test more substitute headers
36496         * modules/ctype-tests: New file.
36497         * modules/dirent-tests: Likewise.
36498         * modules/spawn-tests: Likewise.
36499         * modules/sys_file-tests: Likewise.
36500         * modules/sys_ioctl-tests: Likewise.
36501         * modules/sys_wait-tests: Likewise.
36502         * tests/test-ctype.c: Likewise.
36503         * tests/test-dirent.c: Likewise.
36504         * tests/test-spawn.c: Likewise.
36505         * tests/test-sys_file.c: Likewise.
36506         * tests/test-sys_ioctl.c: Likewise.
36507         * tests/test-sys_wait.c: Likewise.
36508         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36509         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36510         whether or not flock is in use.
36511
36512         tests: remove License section from module
36513         * modules/arpa_inet-tests: Remove unneeded section.
36514         * modules/byteswap-tests: Likewise.
36515         * modules/ceilf-tests: Likewise.
36516         * modules/ceill-tests: Likewise.
36517         * modules/crypto/des-tests: Likewise.
36518         * modules/crypto/gc-arcfour-tests: Likewise.
36519         * modules/crypto/gc-arctwo-tests: Likewise.
36520         * modules/crypto/gc-des-tests: Likewise.
36521         * modules/crypto/gc-hmac-md5-tests: Likewise.
36522         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36523         * modules/crypto/gc-md2-tests: Likewise.
36524         * modules/crypto/gc-md4-tests: Likewise.
36525         * modules/crypto/gc-md5-tests: Likewise.
36526         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36527         * modules/crypto/gc-rijndael-tests: Likewise.
36528         * modules/crypto/gc-sha1-tests: Likewise.
36529         * modules/crypto/gc-tests: Likewise.
36530         * modules/crypto/md2-tests: Likewise.
36531         * modules/crypto/md4-tests: Likewise.
36532         * modules/fcntl-h-tests: Likewise.
36533         * modules/floorf-tests: Likewise.
36534         * modules/floorl-tests: Likewise.
36535         * modules/frexp-nolibm-tests: Likewise.
36536         * modules/frexp-tests: Likewise.
36537         * modules/frexpl-nolibm-tests: Likewise.
36538         * modules/frexpl-tests: Likewise.
36539         * modules/getaddrinfo-tests: Likewise.
36540         * modules/inttypes-tests: Likewise.
36541         * modules/isfinite-tests: Likewise.
36542         * modules/isinf-tests: Likewise.
36543         * modules/ldexpl-tests: Likewise.
36544         * modules/locale-tests: Likewise.
36545         * modules/math-tests: Likewise.
36546         * modules/netdb-tests: Likewise.
36547         * modules/netinet_in-tests: Likewise.
36548         * modules/printf-frexp-tests: Likewise.
36549         * modules/printf-frexpl-tests: Likewise.
36550         * modules/priv-set-tests: Likewise.
36551         * modules/random_r-tests: Likewise.
36552         * modules/round-tests: Likewise.
36553         * modules/roundf-tests: Likewise.
36554         * modules/roundl-tests: Likewise.
36555         * modules/search-tests: Likewise.
36556         * modules/select-tests: Likewise.
36557         * modules/signal-tests: Likewise.
36558         * modules/stdbool-tests: Likewise.
36559         * modules/stddef-tests: Likewise.
36560         * modules/stdint-tests: Likewise.
36561         * modules/stdio-tests: Likewise.
36562         * modules/stdlib-tests: Likewise.
36563         * modules/string-tests: Likewise.
36564         * modules/strings-tests: Likewise.
36565         * modules/sys_select-tests: Likewise.
36566         * modules/sys_socket-tests: Likewise.
36567         * modules/sys_stat-tests: Likewise.
36568         * modules/sys_time-tests: Likewise.
36569         * modules/sys_utsname-tests: Likewise.
36570         * modules/sysexits-tests: Likewise.
36571         * modules/time-tests: Likewise.
36572         * modules/trunc-tests: Likewise.
36573         * modules/truncf-tests: Likewise.
36574         * modules/truncl-tests: Likewise.
36575         * modules/tsearch-tests: Likewise.
36576         * modules/unistd-tests: Likewise.
36577         * modules/wchar-tests: Likewise.
36578         * modules/wctype-tests: Likewise.
36579
36580         tests: fix license on several tests
36581         * tests/test-des.c: Update to GPLv3+.
36582         * tests/test-flock.c: Likewise.
36583         * tests/test-fsync.c: Likewise.
36584         * tests/test-futimens.h: Likewise.
36585         * tests/test-gc-arcfour.c: Likewise.
36586         * tests/test-gc-arctwo.c: Likewise.
36587         * tests/test-gc-des.c: Likewise.
36588         * tests/test-gc-hmac-md5.c: Likewise.
36589         * tests/test-gc-hmac-sha1.c: Likewise.
36590         * tests/test-gc-md2.c: Likewise.
36591         * tests/test-gc-md4.c: Likewise.
36592         * tests/test-gc-md5.c: Likewise.
36593         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36594         * tests/test-gc-rijndael.c: Likewise.
36595         * tests/test-gc-sha1.c: Likewise.
36596         * tests/test-gc.c: Likewise.
36597         * tests/test-getcwd.c: Likewise.
36598         * tests/test-link.c: Likewise.
36599         * tests/test-link.h: Likewise.
36600         * tests/test-lutimens.h: Likewise.
36601         * tests/test-md2.c: Likewise.
36602         * tests/test-md4.c: Likewise.
36603         * tests/test-mkdir.h: Likewise.
36604         * tests/test-rename.c: Likewise.
36605         * tests/test-rename.h: Likewise.
36606         * tests/test-safe-alloc.c: Likewise.
36607         * tests/test-utimens-common.h: Likewise.
36608         * tests/test-utimens.h: Likewise.
36609
36610         maint: sync license texts
36611         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36612         * doc/gpl-3.0.texi: Revert copyright year update.
36613         * doc/lgpl-3.0.texi: Likewise.
36614
36615 2009-12-29  Jim Meyering  <meyering@redhat.com>
36616
36617         update nearly all FSF copyright year lists to include 2009
36618         The files named by the following are exempted:
36619             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36620               test -f "$dst" && { echo "$dst"; continue; }
36621               test -d "$dst" || continue
36622               echo "$dst"/$(basename "$src")
36623             done > exempt
36624             git ls-files tests/unictype >> exempt
36625         In the remaining files, convert to all-interval notation if
36626         - there is already at least one year interval like 2000-2003
36627         - the file is maintained by me
36628         - the file is in lib/uni*/, where that style already prevails
36629         Otherwise, use update-copyright's default.
36630
36631 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36632         and Eric Blake  <ebb9@byu.net>
36633
36634         tests: don't require debug system() to pass
36635         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36636         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36637         * tests/test-unlink.h (test_unlink_func): Likewise.
36638         * tests/test-fstatat.c (main): ...into callers.
36639         * tests/test-lstat.c (main): Likewise.
36640         * tests/test-rmdir.c (main): Likewise.
36641         * tests/test-unlink.c (main): Likewise.
36642         * tests/test-unlinkat.c (main): Likewise.
36643         * tests/test-areadlink-with-size.c (main): Don't require a
36644         debug-only system call to pass, aiding cross-testing to mingw.
36645         * tests/test-areadlink.c (main): Likewise.
36646         * tests/test-areadlinkat-with-size.c (main): Likewise.
36647         * tests/test-areadlinkat.c (main): Likewise.
36648         * tests/test-canonicalize-lgpl.c (main): Likewise.
36649         * tests/test-canonicalize.c (main): Likewise.
36650         * tests/test-chown.c (main): Likewise.
36651         * tests/test-fchownat.c (main): Likewise.
36652         * tests/test-lchown.c (main): Likewise.
36653         * tests/test-fdutimensat.c (main): Likewise.
36654         * tests/test-futimens.c (main): Likewise.
36655         * tests/test-link.c (main): Likewise.
36656         * tests/test-linkat.c (main): Likewise.
36657         * tests/test-mkdir.c (main): Likewise.
36658         * tests/test-mkdirat.c (main): Likewise.
36659         * tests/test-mkfifo.c (main): Likewise.
36660         * tests/test-mkfifoat.c (main): Likewise.
36661         * tests/test-mknod.c (main): Likewise.
36662         * tests/test-readlink.c (main): Likewise.
36663         * tests/test-remove.c (main): Likewise.
36664         * tests/test-rename.c (main): Likewise.
36665         * tests/test-renameat.c (main): Likewise.
36666         * tests/test-symlink.c (main): Likewise.
36667         * tests/test-symlinkat.c (main): Likewise.
36668         * tests/test-utimens.c (main): Likewise.
36669         * tests/test-utimensat.c (main): Likewise.
36670
36671 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36672
36673         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36674         on $(UNUSED_PARAMETER_H) to avoid build failure.
36675
36676 2009-12-28  Jim Meyering  <meyering@redhat.com>
36677
36678         update-copyright: you may specify a max. line length other than 72
36679         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36680
36681         maint: use consistent FSF copyright line syntax
36682         * lib/posixtm.c: Add missing comma in FSF copyright line.
36683         * lib/posixtm.h: Likewise.
36684         * lib/getugroups.c: Add missing ", Inc.".
36685
36686         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36687         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36688         FSF copyright line.  Remove trailing blanks.
36689
36690 2009-12-28  Eric Blake  <ebb9@byu.net>
36691
36692         test-dup2: reduce dependencies
36693         * modules/cloexec (Configure.ac): Set witness.
36694         * modules/dup2-tests (Depends-on): Drop cloexec.
36695         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36696         not present.
36697         Suggested by Bruno Haible.
36698
36699 2009-12-26  Bruno Haible  <bruno@clisp.org>
36700
36701         Remove an unneeded dependency.
36702         * modules/fseterr (Depends-on): Remove dup2.
36703
36704 2009-12-26  Eric Blake  <ebb9@byu.net>
36705
36706         tests: use macros.h in more places
36707         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36708         (ASSERT_STREAM): Provide default of stderr.
36709         * tests/test-dirent-safer.c: Include macros.h, using alternate
36710         stream for assertions.
36711         * tests/test-dup-safer.c: Likewise.
36712         * tests/test-freopen-safer.c: Likewise.
36713         * tests/test-getopt.c: Likewise.
36714         * tests/test-openat-safer.c: Likewise.
36715         * tests/test-pipe.c: Likewise.
36716         * tests/test-popen-safer.c: Likewise.
36717         * modules/dirent-safer-tests (Files): Include macros.h.
36718         * modules/unistd-safer-tests (Files): Likewise.
36719         * modules/freopen-safer-tests (Files): Likewise.
36720         * modules/getopt-posix-tests (Files): Likewise.
36721         * modules/openat-safer-tests (Files): Likewise.
36722         * modules/pipe-tests (Files): Likewise.
36723
36724 2009-12-26  Bruno Haible  <bruno@clisp.org>
36725
36726         javacomp: Portability fix.
36727         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36728         that it also works on Solaris.
36729
36730 2009-12-26  Bruno Haible  <bruno@clisp.org>
36731
36732         localename: Fix storage allocation of gl_locale_name_thread's result.
36733         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36734         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36735         all platforms that have 'uselocale'.
36736         (gl_locale_name_thread_unsafe): New function, extracted from
36737         gl_locale_name_thread.
36738         (gl_locale_name_thread): Call struniq on all platforms that have
36739         'uselocale'.
36740         * tests/test-localename.c (test_locale_name_thread): Check that the
36741         resulting strings are permanently allocated.
36742         * modules/localename-tests (Depends-on): Add strdup.
36743
36744 2009-12-26  Bruno Haible  <bruno@clisp.org>
36745
36746         * tests/test-localename.c (categories): Fill in the strings.
36747
36748 2009-12-26  Jim Meyering  <meyering@redhat.com>
36749
36750         isdir: complete the removal of m4/isdir.m4
36751         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36752
36753         isdir: clean up, since at least grep still uses it
36754         * lib/isdir.c: Include "isdir.h".
36755         (S_ISDIR): Remove now-unneeded definition.
36756         * modules/isdir (Files): Add lib/isdir.h.
36757         * lib/isdir.h: New file, with declaration.
36758         * m4/isdir.m4: Remove file -- unneeded.
36759
36760 2009-12-25  Bruno Haible  <bruno@clisp.org>
36761
36762         selinux-h: Make generated .h files standalone.
36763         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36764         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36765         * lib/se-selinux.in.h: Likewise.
36766         * modules/selinux-h (Depends-on): Add unused-parameter.
36767         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36768         selinux/selinux.h and selinux/context.h.
36769         Suggested by Eric Blake.
36770
36771 2009-12-25  Bruno Haible  <bruno@clisp.org>
36772
36773         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36774         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36775         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36776         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36777         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36778
36779 2009-12-24  Bruno Haible  <bruno@clisp.org>
36780
36781         openat: Fix warning.
36782         * lib/openat-proc.c: Include <unistd.h>.
36783
36784 2009-12-24  Bruno Haible  <bruno@clisp.org>
36785
36786         New module 'unused-parameter'.
36787         * build-aux/unused-parameter.h: New file, extracted from earlier
36788         gnulib-common.m4.
36789         * modules/unused-parameter: New file.
36790         * lib/unistr.h: Include unused-parameter.h.
36791         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36792         _GL_UNUSED.
36793         * modules/unistr/base (Depends-on): Add unused-parameter.
36794
36795 2009-12-24  Bruno Haible  <bruno@clisp.org>
36796
36797         Add missing dependencies to 'extensions' module.
36798         * m4/extensions.m4: Add comment.
36799         * modules/accept4 (Depends-on): Add extensions.
36800         * modules/dup3 (Depends-on): Likewise.
36801         * modules/fcntl (Depends-on): Likewise.
36802         * modules/futimens (Depends-on): Likewise.
36803         * modules/mknod (Depends-on): Likewise.
36804         * modules/pipe2 (Depends-on): Likewise.
36805         * modules/stat-time (Depends-on): Likewise.
36806         * modules/strcasestr-simple (Depends-on): Likewise.
36807         * modules/strsignal (Depends-on): Likewise.
36808         * modules/utimensat (Depends-on): Likewise.
36809         * modules/localcharset (Depends-on): Likewise. Needed because of
36810         gl_FCNTL_O_FLAGS.
36811         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36812         AC_TYPE_MBSTATE_T.
36813         * modules/wcsnrtombs (Depends-on): Likewise.
36814         * modules/wcsrtombs (Depends-on): Likewise.
36815
36816 2009-12-24  Bruno Haible  <bruno@clisp.org>
36817
36818         binary-io: Avoid gcc warning due to SET_BINARY.
36819         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36820         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36821
36822 2009-12-24  Bruno Haible  <bruno@clisp.org>
36823
36824         Avoid future namespace pollution on glibc systems.
36825         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36826         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36827         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36828         glibc systems.
36829
36830 2009-12-24  Bruno Haible  <bruno@clisp.org>
36831
36832         Refactor common macros used in tests.
36833         * tests/macros.h: New file.
36834         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36835         and/or <stdlib.h>, if appropriate.
36836         (ASSERT, SIZEOF): Remove macros.
36837         * tests/test-areadlink-with-size.c: Likewise.
36838         * tests/test-areadlinkat.c: Likewise.
36839         * tests/test-areadlinkat-with-size.c: Likewise.
36840         * tests/test-argmatch.c: Likewise.
36841         * tests/test-argv-iter.c: Likewise.
36842         * tests/test-array-mergesort.c: Likewise.
36843         * tests/test-array_list.c: Likewise.
36844         * tests/test-array_oset.c: Likewise.
36845         * tests/test-avltree_list.c: Likewise.
36846         * tests/test-avltree_oset.c: Likewise.
36847         * tests/test-avltreehash_list.c: Likewise.
36848         * tests/test-base64.c: Likewise.
36849         * tests/test-binary-io.c: Likewise.
36850         * tests/test-bitrotate.c: Likewise.
36851         * tests/test-btowc.c: Likewise.
36852         * tests/test-byteswap.c: Likewise.
36853         * tests/test-c-ctype.c: Likewise.
36854         * tests/test-c-stack.c: Likewise.
36855         * tests/test-c-strcasecmp.c: Likewise.
36856         * tests/test-c-strcasestr.c: Likewise.
36857         * tests/test-c-strncasecmp.c: Likewise.
36858         * tests/test-c-strstr.c: Likewise.
36859         * tests/test-canonicalize-lgpl.c: Likewise.
36860         * tests/test-canonicalize.c: Likewise.
36861         * tests/test-carray_list.c: Likewise.
36862         * tests/test-ceilf1.c: Likewise.
36863         * tests/test-ceilf2.c: Likewise.
36864         * tests/test-ceill.c: Likewise.
36865         * tests/test-chown.c: Likewise.
36866         * tests/test-cloexec.c: Likewise.
36867         * tests/test-copy-acl.c: Likewise.
36868         * tests/test-copy-file.c: Likewise.
36869         * tests/test-count-one-bits.c: Likewise.
36870         * tests/test-dprintf-posix.c: Likewise.
36871         * tests/test-dup2.c: Likewise.
36872         * tests/test-dup3.c: Likewise.
36873         * tests/test-duplocale.c: Likewise.
36874         * tests/test-fbufmode.c: Likewise.
36875         * tests/test-fchdir.c: Likewise.
36876         * tests/test-fchownat.c: Likewise.
36877         * tests/test-fcntl-safer.c: Likewise.
36878         * tests/test-fcntl.c: Likewise.
36879         * tests/test-fdopendir.c: Likewise.
36880         * tests/test-fdutimensat.c: Likewise.
36881         * tests/test-fflush2.c: Likewise.
36882         * tests/test-file-has-acl.c: Likewise.
36883         * tests/test-filevercmp.c: Likewise.
36884         * tests/test-flock.c: Likewise.
36885         * tests/test-floorf1.c: Likewise.
36886         * tests/test-floorf2.c: Likewise.
36887         * tests/test-floorl.c: Likewise.
36888         * tests/test-fnmatch.c: Likewise.
36889         * tests/test-fopen.h: Likewise.
36890         * tests/test-fpending.c: Likewise.
36891         * tests/test-fprintf-posix.c: Likewise.
36892         * tests/test-fpurge.c: Likewise.
36893         * tests/test-freadable.c: Likewise.
36894         * tests/test-freadahead.c: Likewise.
36895         * tests/test-freading.c: Likewise.
36896         * tests/test-freadptr.c: Likewise.
36897         * tests/test-freadptr2.c: Likewise.
36898         * tests/test-freadseek.c: Likewise.
36899         * tests/test-freopen.c: Likewise.
36900         * tests/test-frexp.c: Likewise.
36901         * tests/test-frexpl.c: Likewise.
36902         * tests/test-fseek.c: Likewise.
36903         * tests/test-fseeko.c: Likewise.
36904         * tests/test-fstatat.c: Likewise.
36905         * tests/test-fstrcmp.c: Likewise.
36906         * tests/test-fsync.c: Likewise.
36907         * tests/test-ftell.c: Likewise.
36908         * tests/test-ftello.c: Likewise.
36909         * tests/test-func.c: Likewise.
36910         * tests/test-futimens.c: Likewise.
36911         * tests/test-fwritable.c: Likewise.
36912         * tests/test-fwriting.c: Likewise.
36913         * tests/test-getcwd.c: Likewise.
36914         * tests/test-getdate.c: Likewise.
36915         * tests/test-getdelim.c: Likewise.
36916         * tests/test-getdtablesize.c: Likewise.
36917         * tests/test-getgroups.c: Likewise.
36918         * tests/test-getline.c: Likewise.
36919         * tests/test-getndelim2.c: Likewise.
36920         * tests/test-glob.c: Likewise.
36921         * tests/test-hash.c: Likewise.
36922         * tests/test-i-ring.c: Likewise.
36923         * tests/test-iconv-utf.c: Likewise.
36924         * tests/test-iconv.c: Likewise.
36925         * tests/test-idpriv-drop.c: Likewise.
36926         * tests/test-idpriv-droptemp.c: Likewise.
36927         * tests/test-inet_ntop.c: Likewise.
36928         * tests/test-inet_pton.c: Likewise.
36929         * tests/test-isblank.c: Likewise.
36930         * tests/test-isfinite.c: Likewise.
36931         * tests/test-isinf.c: Likewise.
36932         * tests/test-isnan.c: Likewise.
36933         * tests/test-isnand.h: Likewise.
36934         * tests/test-isnanf.h: Likewise.
36935         * tests/test-isnanl.h: Likewise.
36936         * tests/test-lchown.c: Likewise.
36937         * tests/test-ldexpl.c: Likewise.
36938         * tests/test-link.c: Likewise.
36939         * tests/test-linkat.c: Likewise.
36940         * tests/test-linked_list.c: Likewise.
36941         * tests/test-linkedhash_list.c: Likewise.
36942         * tests/test-localename.c: Likewise.
36943         * tests/test-lseek.c: Likewise.
36944         * tests/test-lstat.c: Likewise.
36945         * tests/test-mbmemcasecmp.c: Likewise.
36946         * tests/test-mbmemcasecoll.c: Likewise.
36947         * tests/test-mbrtowc.c: Likewise.
36948         * tests/test-mbscasecmp.c: Likewise.
36949         * tests/test-mbscasestr1.c: Likewise.
36950         * tests/test-mbscasestr2.c: Likewise.
36951         * tests/test-mbscasestr3.c: Likewise.
36952         * tests/test-mbscasestr4.c: Likewise.
36953         * tests/test-mbschr.c: Likewise.
36954         * tests/test-mbscspn.c: Likewise.
36955         * tests/test-mbsinit.c: Likewise.
36956         * tests/test-mbsncasecmp.c: Likewise.
36957         * tests/test-mbsnrtowcs.c: Likewise.
36958         * tests/test-mbspbrk.c: Likewise.
36959         * tests/test-mbspcasecmp.c: Likewise.
36960         * tests/test-mbsrchr.c: Likewise.
36961         * tests/test-mbsrtowcs.c: Likewise.
36962         * tests/test-mbsspn.c: Likewise.
36963         * tests/test-mbsstr1.c: Likewise.
36964         * tests/test-mbsstr2.c: Likewise.
36965         * tests/test-mbsstr3.c: Likewise.
36966         * tests/test-memchr.c: Likewise.
36967         * tests/test-memchr2.c: Likewise.
36968         * tests/test-memcmp.c: Likewise.
36969         * tests/test-memmem.c: Likewise.
36970         * tests/test-memrchr.c: Likewise.
36971         * tests/test-mkdir.c: Likewise.
36972         * tests/test-mkdirat.c: Likewise.
36973         * tests/test-mkfifo.c: Likewise.
36974         * tests/test-mkfifoat.c: Likewise.
36975         * tests/test-mknod.c: Likewise.
36976         * tests/test-nanosleep.c: Likewise.
36977         * tests/test-nl_langinfo.c: Likewise.
36978         * tests/test-obstack-printf.c: Likewise.
36979         * tests/test-open.c: Likewise.
36980         * tests/test-openat.c: Likewise.
36981         * tests/test-pipe-filter-gi1.c: Likewise.
36982         * tests/test-pipe-filter-gi2-main.c: Likewise.
36983         * tests/test-pipe-filter-ii1.c: Likewise.
36984         * tests/test-pipe-filter-ii2-main.c: Likewise.
36985         * tests/test-pipe2.c: Likewise.
36986         * tests/test-popen.h: Likewise.
36987         * tests/test-posixtm.c: Likewise.
36988         * tests/test-pread.c: Likewise.
36989         * tests/test-printf-frexp.c: Likewise.
36990         * tests/test-printf-frexpl.c: Likewise.
36991         * tests/test-printf-posix.c: Likewise.
36992         * tests/test-priv-set.c: Likewise.
36993         * tests/test-quotearg.c: Likewise.
36994         * tests/test-random_r.c: Likewise.
36995         * tests/test-rawmemchr.c: Likewise.
36996         * tests/test-rbtree_list.c: Likewise.
36997         * tests/test-rbtree_oset.c: Likewise.
36998         * tests/test-rbtreehash_list.c: Likewise.
36999         * tests/test-readlink.c: Likewise.
37000         * tests/test-remove.c: Likewise.
37001         * tests/test-rename.c: Likewise.
37002         * tests/test-renameat.c: Likewise.
37003         * tests/test-rmdir.c: Likewise.
37004         * tests/test-round1.c: Likewise.
37005         * tests/test-roundf1.c: Likewise.
37006         * tests/test-roundl.c: Likewise.
37007         * tests/test-safe-alloc.c: Likewise.
37008         * tests/test-sameacls.c: Likewise.
37009         * tests/test-set-mode-acl.c: Likewise.
37010         * tests/test-setenv.c: Likewise.
37011         * tests/test-sigaction.c: Likewise.
37012         * tests/test-signbit.c: Likewise.
37013         * tests/test-sleep.c: Likewise.
37014         * tests/test-snprintf-posix.c: Likewise.
37015         * tests/test-snprintf.c: Likewise.
37016         * tests/test-sprintf-posix.c: Likewise.
37017         * tests/test-stat-time.c: Likewise.
37018         * tests/test-stat.c: Likewise.
37019         * tests/test-strcasestr.c: Likewise.
37020         * tests/test-strchrnul.c: Likewise.
37021         * tests/test-strerror.c: Likewise.
37022         * tests/test-striconv.c: Likewise.
37023         * tests/test-striconveh.c: Likewise.
37024         * tests/test-striconveha.c: Likewise.
37025         * tests/test-strsignal.c: Likewise.
37026         * tests/test-strstr.c: Likewise.
37027         * tests/test-strtod.c: Likewise.
37028         * tests/test-strverscmp.c: Likewise.
37029         * tests/test-symlink.c: Likewise.
37030         * tests/test-symlinkat.c: Likewise.
37031         * tests/test-trunc1.c: Likewise.
37032         * tests/test-trunc2.c: Likewise.
37033         * tests/test-truncf1.c: Likewise.
37034         * tests/test-truncf2.c: Likewise.
37035         * tests/test-truncl.c: Likewise.
37036         * tests/test-uname.c: Likewise.
37037         * tests/test-unlink.c: Likewise.
37038         * tests/test-unlinkat.c: Likewise.
37039         * tests/test-unsetenv.c: Likewise.
37040         * tests/test-usleep.c: Likewise.
37041         * tests/test-utimens.c: Likewise.
37042         * tests/test-utimensat.c: Likewise.
37043         * tests/test-vasnprintf-posix.c: Likewise.
37044         * tests/test-vasnprintf-posix2.c: Likewise.
37045         * tests/test-vasnprintf.c: Likewise.
37046         * tests/test-vasprintf-posix.c: Likewise.
37047         * tests/test-vasprintf.c: Likewise.
37048         * tests/test-vdprintf-posix.c: Likewise.
37049         * tests/test-vfprintf-posix.c: Likewise.
37050         * tests/test-vprintf-posix.c: Likewise.
37051         * tests/test-vsnprintf-posix.c: Likewise.
37052         * tests/test-vsnprintf.c: Likewise.
37053         * tests/test-vsprintf-posix.c: Likewise.
37054         * tests/test-wcrtomb.c: Likewise.
37055         * tests/test-wcsnrtombs.c: Likewise.
37056         * tests/test-wcsrtombs.c: Likewise.
37057         * tests/test-wctype.c: Likewise.
37058         * tests/test-wcwidth.c: Likewise.
37059         * tests/test-xfprintf-posix.c: Likewise.
37060         * tests/test-xmemdup0.c: Likewise.
37061         * tests/test-xprintf-posix.c: Likewise.
37062         * tests/test-xvasprintf.c: Likewise.
37063         * tests/unicase/test-locale-language.c: Likewise.
37064         * tests/unicase/test-mapping-part1.h: Likewise.
37065         * tests/unicase/test-predicate-part1.h: Likewise.
37066         * tests/unicase/test-u8-casecmp.c: Likewise.
37067         * tests/unicase/test-u8-casecoll.c: Likewise.
37068         * tests/unicase/test-u8-casefold.c: Likewise.
37069         * tests/unicase/test-u8-is-cased.c: Likewise.
37070         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37071         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37072         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37073         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37074         * tests/unicase/test-u8-tolower.c: Likewise.
37075         * tests/unicase/test-u8-totitle.c: Likewise.
37076         * tests/unicase/test-u8-toupper.c: Likewise.
37077         * tests/unicase/test-u16-casecmp.c: Likewise.
37078         * tests/unicase/test-u16-casecoll.c: Likewise.
37079         * tests/unicase/test-u16-casefold.c: Likewise.
37080         * tests/unicase/test-u16-is-cased.c: Likewise.
37081         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37082         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37083         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37084         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37085         * tests/unicase/test-u16-tolower.c: Likewise.
37086         * tests/unicase/test-u16-totitle.c: Likewise.
37087         * tests/unicase/test-u16-toupper.c: Likewise.
37088         * tests/unicase/test-u32-casecmp.c: Likewise.
37089         * tests/unicase/test-u32-casecoll.c: Likewise.
37090         * tests/unicase/test-u32-casefold.c: Likewise.
37091         * tests/unicase/test-u32-is-cased.c: Likewise.
37092         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37093         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37094         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37095         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37096         * tests/unicase/test-u32-tolower.c: Likewise.
37097         * tests/unicase/test-u32-totitle.c: Likewise.
37098         * tests/unicase/test-u32-toupper.c: Likewise.
37099         * tests/unicase/test-ulc-casecmp.c: Likewise.
37100         * tests/unicase/test-ulc-casecoll.c: Likewise.
37101         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37102         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37103         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37104         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37105         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37106         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37107         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37108         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37109         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37110         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37111         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37112         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37113         * tests/unictype/test-bidi_byname.c: Likewise.
37114         * tests/unictype/test-bidi_name.c: Likewise.
37115         * tests/unictype/test-bidi_of.c: Likewise.
37116         * tests/unictype/test-bidi_test.c: Likewise.
37117         * tests/unictype/test-block_list.c: Likewise.
37118         * tests/unictype/test-block_of.c: Likewise.
37119         * tests/unictype/test-block_test.c: Likewise.
37120         * tests/unictype/test-categ_and.c: Likewise.
37121         * tests/unictype/test-categ_and_not.c: Likewise.
37122         * tests/unictype/test-categ_byname.c: Likewise.
37123         * tests/unictype/test-categ_name.c: Likewise.
37124         * tests/unictype/test-categ_none.c: Likewise.
37125         * tests/unictype/test-categ_of.c: Likewise.
37126         * tests/unictype/test-categ_or.c: Likewise.
37127         * tests/unictype/test-categ_test_withtable.c: Likewise.
37128         * tests/unictype/test-combining.c: Likewise.
37129         * tests/unictype/test-decdigit.c: Likewise.
37130         * tests/unictype/test-digit.c: Likewise.
37131         * tests/unictype/test-mirror.c: Likewise.
37132         * tests/unictype/test-numeric.c: Likewise.
37133         * tests/unictype/test-pr_byname.c: Likewise.
37134         * tests/unictype/test-pr_test.c: Likewise.
37135         * tests/unictype/test-predicate-part1.h: Likewise.
37136         * tests/unictype/test-scripts.c: Likewise.
37137         * tests/unictype/test-sy_c_ident.c: Likewise.
37138         * tests/unictype/test-sy_java_ident.c: Likewise.
37139         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37140         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37141         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37142         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37143         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37144         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37145         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37146         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37147         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37148         * tests/uninorm/test-compat-decomposition.c: Likewise.
37149         * tests/uninorm/test-composition.c: Likewise.
37150         * tests/uninorm/test-decomposing-form.c: Likewise.
37151         * tests/uninorm/test-decomposition.c: Likewise.
37152         * tests/uninorm/test-u8-nfc.c: Likewise.
37153         * tests/uninorm/test-u8-nfd.c: Likewise.
37154         * tests/uninorm/test-u8-nfkc.c: Likewise.
37155         * tests/uninorm/test-u8-nfkd.c: Likewise.
37156         * tests/uninorm/test-u8-normcmp.c: Likewise.
37157         * tests/uninorm/test-u8-normcoll.c: Likewise.
37158         * tests/uninorm/test-u16-nfc.c: Likewise.
37159         * tests/uninorm/test-u16-nfd.c: Likewise.
37160         * tests/uninorm/test-u16-nfkc.c: Likewise.
37161         * tests/uninorm/test-u16-nfkd.c: Likewise.
37162         * tests/uninorm/test-u16-normcmp.c: Likewise.
37163         * tests/uninorm/test-u16-normcoll.c: Likewise.
37164         * tests/uninorm/test-u32-nfc.c: Likewise.
37165         * tests/uninorm/test-u32-nfd.c: Likewise.
37166         * tests/uninorm/test-u32-nfkc.c: Likewise.
37167         * tests/uninorm/test-u32-nfkd.c: Likewise.
37168         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37169         * tests/uninorm/test-u32-normcmp.c: Likewise.
37170         * tests/uninorm/test-u32-normcoll.c: Likewise.
37171         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37172         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37173         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37174         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37175         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37176         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37177         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37178         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37179         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37180         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37181         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37182         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37183         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37184         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37185         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37186         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37187         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37188         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37189         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37190         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37191         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37192         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37193         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37194         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37195         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37196         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37197         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37198         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37199         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37200         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37201         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37202         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37203         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37204         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37205         * tests/uniwidth/test-u8-width.c: Likewise.
37206         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37207         * tests/uniwidth/test-u16-width.c: Likewise.
37208         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37209         * tests/uniwidth/test-u32-width.c: Likewise.
37210         * tests/uniwidth/test-uc_width.c: Likewise.
37211         * tests/uniwidth/test-uc_width2.c: Likewise.
37212         * modules/acl-tests (Files): Add tests/macros.h.
37213         * modules/areadlink-tests (Files): Likewise.
37214         * modules/areadlink-with-size-tests (Files): Likewise.
37215         * modules/areadlinkat-tests (Files): Likewise.
37216         * modules/areadlinkat-with-size-tests (Files): Likewise.
37217         * modules/argmatch-tests (Files): Likewise.
37218         * modules/argv-iter-tests (Files): Likewise.
37219         * modules/array-list-tests (Files): Likewise.
37220         * modules/array-mergesort-tests (Files): Likewise.
37221         * modules/array-oset-tests (Files): Likewise.
37222         * modules/avltree-list-tests (Files): Likewise.
37223         * modules/avltree-oset-tests (Files): Likewise.
37224         * modules/avltreehash-list-tests (Files): Likewise.
37225         * modules/base64-tests (Files): Likewise.
37226         * modules/binary-io-tests (Files): Likewise.
37227         * modules/bitrotate-tests (Files): Likewise.
37228         * modules/btowc-tests (Files): Likewise.
37229         * modules/byteswap-tests (Files): Likewise.
37230         * modules/c-ctype-tests (Files): Likewise.
37231         * modules/c-stack-tests (Files): Likewise.
37232         * modules/c-strcase-tests (Files): Likewise.
37233         * modules/c-strcasestr-tests (Files): Likewise.
37234         * modules/c-strstr-tests (Files): Likewise.
37235         * modules/canonicalize-lgpl-tests (Files): Likewise.
37236         * modules/canonicalize-tests (Files): Likewise.
37237         * modules/carray-list-tests (Files): Likewise.
37238         * modules/ceilf-tests (Files): Likewise.
37239         * modules/ceill-tests (Files): Likewise.
37240         * modules/chown-tests (Files): Likewise.
37241         * modules/cloexec-tests (Files): Likewise.
37242         * modules/copy-file-tests (Files): Likewise.
37243         * modules/count-one-bits-tests (Files): Likewise.
37244         * modules/dprintf-posix-tests (Files): Likewise.
37245         * modules/dup2-tests (Files): Likewise.
37246         * modules/dup3-tests (Files): Likewise.
37247         * modules/duplocale-tests (Files): Likewise.
37248         * modules/fbufmode-tests (Files): Likewise.
37249         * modules/fchdir-tests (Files): Likewise.
37250         * modules/fcntl-safer-tests (Files): Likewise.
37251         * modules/fcntl-tests (Files): Likewise.
37252         * modules/fdopendir-tests (Files): Likewise.
37253         * modules/fdutimensat-tests (Files): Likewise.
37254         * modules/fflush-tests (Files): Likewise.
37255         * modules/filevercmp-tests (Files): Likewise.
37256         * modules/flock-tests (Files): Likewise.
37257         * modules/floorf-tests (Files): Likewise.
37258         * modules/floorl-tests (Files): Likewise.
37259         * modules/fnmatch-tests (Files): Likewise.
37260         * modules/fopen-safer-tests (Files): Likewise.
37261         * modules/fopen-tests (Files): Likewise.
37262         * modules/fpending-tests (Files): Likewise.
37263         * modules/fprintf-posix-tests (Files): Likewise.
37264         * modules/fpurge-tests (Files): Likewise.
37265         * modules/freadable-tests (Files): Likewise.
37266         * modules/freadahead-tests (Files): Likewise.
37267         * modules/freading-tests (Files): Likewise.
37268         * modules/freadptr-tests (Files): Likewise.
37269         * modules/freadseek-tests (Files): Likewise.
37270         * modules/freopen-tests (Files): Likewise.
37271         * modules/frexp-nolibm-tests (Files): Likewise.
37272         * modules/frexp-tests (Files): Likewise.
37273         * modules/frexpl-nolibm-tests (Files): Likewise.
37274         * modules/frexpl-tests (Files): Likewise.
37275         * modules/fseek-tests (Files): Likewise.
37276         * modules/fseeko-tests (Files): Likewise.
37277         * modules/fstrcmp-tests (Files): Likewise.
37278         * modules/fsync-tests (Files): Likewise.
37279         * modules/ftell-tests (Files): Likewise.
37280         * modules/ftello-tests (Files): Likewise.
37281         * modules/func-tests (Files): Likewise.
37282         * modules/futimens-tests (Files): Likewise.
37283         * modules/fwritable-tests (Files): Likewise.
37284         * modules/fwriting-tests (Files): Likewise.
37285         * modules/getcwd-tests (Files): Likewise.
37286         * modules/getdate-tests (Files): Likewise.
37287         * modules/getdelim-tests (Files): Likewise.
37288         * modules/getdtablesize-tests (Files): Likewise.
37289         * modules/getgroups-tests (Files): Likewise.
37290         * modules/getline-tests (Files): Likewise.
37291         * modules/getndelim2-tests (Files): Likewise.
37292         * modules/glob-tests (Files): Likewise.
37293         * modules/hash-tests (Files): Likewise.
37294         * modules/i-ring-tests (Files): Likewise.
37295         * modules/iconv-tests (Files): Likewise.
37296         * modules/iconv_open-utf-tests (Files): Likewise.
37297         * modules/idpriv-drop-tests (Files): Likewise.
37298         * modules/idpriv-droptemp-tests (Files): Likewise.
37299         * modules/inet_ntop-tests (Files): Likewise.
37300         * modules/inet_pton-tests (Files): Likewise.
37301         * modules/isblank-tests (Files): Likewise.
37302         * modules/isfinite-tests (Files): Likewise.
37303         * modules/isinf-tests (Files): Likewise.
37304         * modules/isnan-tests (Files): Likewise.
37305         * modules/isnand-nolibm-tests (Files): Likewise.
37306         * modules/isnand-tests (Files): Likewise.
37307         * modules/isnanf-nolibm-tests (Files): Likewise.
37308         * modules/isnanf-tests (Files): Likewise.
37309         * modules/isnanl-nolibm-tests (Files): Likewise.
37310         * modules/isnanl-tests (Files): Likewise.
37311         * modules/lchown-tests (Files): Likewise.
37312         * modules/ldexpl-tests (Files): Likewise.
37313         * modules/link-tests (Files): Likewise.
37314         * modules/linkat-tests (Files): Likewise.
37315         * modules/linked-list-tests (Files): Likewise.
37316         * modules/linkedhash-list-tests (Files): Likewise.
37317         * modules/localename-tests (Files): Likewise.
37318         * modules/lseek-tests (Files): Likewise.
37319         * modules/lstat-tests (Files): Likewise.
37320         * modules/mbmemcasecmp-tests (Files): Likewise.
37321         * modules/mbmemcasecoll-tests (Files): Likewise.
37322         * modules/mbrtowc-tests (Files): Likewise.
37323         * modules/mbscasecmp-tests (Files): Likewise.
37324         * modules/mbscasestr-tests (Files): Likewise.
37325         * modules/mbschr-tests (Files): Likewise.
37326         * modules/mbscspn-tests (Files): Likewise.
37327         * modules/mbsinit-tests (Files): Likewise.
37328         * modules/mbsncasecmp-tests (Files): Likewise.
37329         * modules/mbsnrtowcs-tests (Files): Likewise.
37330         * modules/mbspbrk-tests (Files): Likewise.
37331         * modules/mbspcasecmp-tests (Files): Likewise.
37332         * modules/mbsrchr-tests (Files): Likewise.
37333         * modules/mbsrtowcs-tests (Files): Likewise.
37334         * modules/mbsspn-tests (Files): Likewise.
37335         * modules/mbsstr-tests (Files): Likewise.
37336         * modules/memchr-tests (Files): Likewise.
37337         * modules/memchr2-tests (Files): Likewise.
37338         * modules/memcmp-tests (Files): Likewise.
37339         * modules/memmem-tests (Files): Likewise.
37340         * modules/memrchr-tests (Files): Likewise.
37341         * modules/mkdir-tests (Files): Likewise.
37342         * modules/mkfifo-tests (Files): Likewise.
37343         * modules/mkfifoat-tests (Files): Likewise.
37344         * modules/mknod-tests (Files): Likewise.
37345         * modules/nanosleep-tests (Files): Likewise.
37346         * modules/nl_langinfo-tests (Files): Likewise.
37347         * modules/obstack-printf-tests (Files): Likewise.
37348         * modules/open-tests (Files): Likewise.
37349         * modules/openat-tests (Files): Likewise.
37350         * modules/pipe-filter-gi-tests (Files): Likewise.
37351         * modules/pipe-filter-ii-tests (Files): Likewise.
37352         * modules/pipe2-tests (Files): Likewise.
37353         * modules/popen-safer-tests (Files): Likewise.
37354         * modules/popen-tests (Files): Likewise.
37355         * modules/posixtm-tests (Files): Likewise.
37356         * modules/pread-tests (Files): Likewise.
37357         * modules/printf-frexp-tests (Files): Likewise.
37358         * modules/printf-frexpl-tests (Files): Likewise.
37359         * modules/printf-posix-tests (Files): Likewise.
37360         * modules/priv-set-tests (Files): Likewise.
37361         * modules/quotearg-tests (Files): Likewise.
37362         * modules/random_r-tests (Files): Likewise.
37363         * modules/rawmemchr-tests (Files): Likewise.
37364         * modules/rbtree-list-tests (Files): Likewise.
37365         * modules/rbtree-oset-tests (Files): Likewise.
37366         * modules/rbtreehash-list-tests (Files): Likewise.
37367         * modules/readlink-tests (Files): Likewise.
37368         * modules/remove-tests (Files): Likewise.
37369         * modules/rename-tests (Files): Likewise.
37370         * modules/renameat-tests (Files): Likewise.
37371         * modules/rmdir-tests (Files): Likewise.
37372         * modules/round-tests (Files): Likewise.
37373         * modules/roundf-tests (Files): Likewise.
37374         * modules/roundl-tests (Files): Likewise.
37375         * modules/safe-alloc-tests (Files): Likewise.
37376         * modules/setenv-tests (Files): Likewise.
37377         * modules/sigaction-tests (Files): Likewise.
37378         * modules/signbit-tests (Files): Likewise.
37379         * modules/sleep-tests (Files): Likewise.
37380         * modules/snprintf-posix-tests (Files): Likewise.
37381         * modules/snprintf-tests (Files): Likewise.
37382         * modules/sprintf-posix-tests (Files): Likewise.
37383         * modules/stat-tests (Files): Likewise.
37384         * modules/stat-time-tests (Files): Likewise.
37385         * modules/strcasestr-tests (Files): Likewise.
37386         * modules/strchrnul-tests (Files): Likewise.
37387         * modules/strerror-tests (Files): Likewise.
37388         * modules/striconv-tests (Files): Likewise.
37389         * modules/striconveh-tests (Files): Likewise.
37390         * modules/striconveha-tests (Files): Likewise.
37391         * modules/strsignal-tests (Files): Likewise.
37392         * modules/strstr-tests (Files): Likewise.
37393         * modules/strtod-tests (Files): Likewise.
37394         * modules/strverscmp-tests (Files): Likewise.
37395         * modules/symlink-tests (Files): Likewise.
37396         * modules/symlinkat-tests (Files): Likewise.
37397         * modules/trunc-tests (Files): Likewise.
37398         * modules/truncf-tests (Files): Likewise.
37399         * modules/truncl-tests (Files): Likewise.
37400         * modules/uname-tests (Files): Likewise.
37401         * modules/unicase/cased-tests (Files): Likewise.
37402         * modules/unicase/ignorable-tests (Files): Likewise.
37403         * modules/unicase/locale-language-tests (Files): Likewise.
37404         * modules/unicase/tolower-tests (Files): Likewise.
37405         * modules/unicase/totitle-tests (Files): Likewise.
37406         * modules/unicase/toupper-tests (Files): Likewise.
37407         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37408         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37409         * modules/unicase/u8-casefold-tests (Files): Likewise.
37410         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37411         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37412         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37413         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37414         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37415         * modules/unicase/u8-tolower-tests (Files): Likewise.
37416         * modules/unicase/u8-totitle-tests (Files): Likewise.
37417         * modules/unicase/u8-toupper-tests (Files): Likewise.
37418         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37419         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37420         * modules/unicase/u16-casefold-tests (Files): Likewise.
37421         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37422         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37423         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37424         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37425         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37426         * modules/unicase/u16-tolower-tests (Files): Likewise.
37427         * modules/unicase/u16-totitle-tests (Files): Likewise.
37428         * modules/unicase/u16-toupper-tests (Files): Likewise.
37429         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37430         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37431         * modules/unicase/u32-casefold-tests (Files): Likewise.
37432         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37433         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37434         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37435         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37436         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37437         * modules/unicase/u32-tolower-tests (Files): Likewise.
37438         * modules/unicase/u32-totitle-tests (Files): Likewise.
37439         * modules/unicase/u32-toupper-tests (Files): Likewise.
37440         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37441         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37442         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37443         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37444         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37445         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37446         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37447         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37448         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37449         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37450         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37451         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37452         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37453         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37454         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37455         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37456         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37457         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37458         * modules/unictype/block-list-tests (Files): Likewise.
37459         * modules/unictype/block-of-tests (Files): Likewise.
37460         * modules/unictype/block-test-tests (Files): Likewise.
37461         * modules/unictype/category-C-tests (Files): Likewise.
37462         * modules/unictype/category-Cc-tests (Files): Likewise.
37463         * modules/unictype/category-Cf-tests (Files): Likewise.
37464         * modules/unictype/category-Cn-tests (Files): Likewise.
37465         * modules/unictype/category-Co-tests (Files): Likewise.
37466         * modules/unictype/category-Cs-tests (Files): Likewise.
37467         * modules/unictype/category-L-tests (Files): Likewise.
37468         * modules/unictype/category-Ll-tests (Files): Likewise.
37469         * modules/unictype/category-Lm-tests (Files): Likewise.
37470         * modules/unictype/category-Lo-tests (Files): Likewise.
37471         * modules/unictype/category-Lt-tests (Files): Likewise.
37472         * modules/unictype/category-Lu-tests (Files): Likewise.
37473         * modules/unictype/category-M-tests (Files): Likewise.
37474         * modules/unictype/category-Mc-tests (Files): Likewise.
37475         * modules/unictype/category-Me-tests (Files): Likewise.
37476         * modules/unictype/category-Mn-tests (Files): Likewise.
37477         * modules/unictype/category-N-tests (Files): Likewise.
37478         * modules/unictype/category-Nd-tests (Files): Likewise.
37479         * modules/unictype/category-Nl-tests (Files): Likewise.
37480         * modules/unictype/category-No-tests (Files): Likewise.
37481         * modules/unictype/category-P-tests (Files): Likewise.
37482         * modules/unictype/category-Pc-tests (Files): Likewise.
37483         * modules/unictype/category-Pd-tests (Files): Likewise.
37484         * modules/unictype/category-Pe-tests (Files): Likewise.
37485         * modules/unictype/category-Pf-tests (Files): Likewise.
37486         * modules/unictype/category-Pi-tests (Files): Likewise.
37487         * modules/unictype/category-Po-tests (Files): Likewise.
37488         * modules/unictype/category-Ps-tests (Files): Likewise.
37489         * modules/unictype/category-S-tests (Files): Likewise.
37490         * modules/unictype/category-Sc-tests (Files): Likewise.
37491         * modules/unictype/category-Sk-tests (Files): Likewise.
37492         * modules/unictype/category-Sm-tests (Files): Likewise.
37493         * modules/unictype/category-So-tests (Files): Likewise.
37494         * modules/unictype/category-Z-tests (Files): Likewise.
37495         * modules/unictype/category-Zl-tests (Files): Likewise.
37496         * modules/unictype/category-Zp-tests (Files): Likewise.
37497         * modules/unictype/category-Zs-tests (Files): Likewise.
37498         * modules/unictype/category-and-not-tests (Files): Likewise.
37499         * modules/unictype/category-and-tests (Files): Likewise.
37500         * modules/unictype/category-byname-tests (Files): Likewise.
37501         * modules/unictype/category-name-tests (Files): Likewise.
37502         * modules/unictype/category-none-tests (Files): Likewise.
37503         * modules/unictype/category-of-tests (Files): Likewise.
37504         * modules/unictype/category-or-tests (Files): Likewise.
37505         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37506         * modules/unictype/combining-class-tests (Files): Likewise.
37507         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37508         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37509         * modules/unictype/ctype-blank-tests (Files): Likewise.
37510         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37511         * modules/unictype/ctype-digit-tests (Files): Likewise.
37512         * modules/unictype/ctype-graph-tests (Files): Likewise.
37513         * modules/unictype/ctype-lower-tests (Files): Likewise.
37514         * modules/unictype/ctype-print-tests (Files): Likewise.
37515         * modules/unictype/ctype-punct-tests (Files): Likewise.
37516         * modules/unictype/ctype-space-tests (Files): Likewise.
37517         * modules/unictype/ctype-upper-tests (Files): Likewise.
37518         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37519         * modules/unictype/decimal-digit-tests (Files): Likewise.
37520         * modules/unictype/digit-tests (Files): Likewise.
37521         * modules/unictype/mirror-tests (Files): Likewise.
37522         * modules/unictype/numeric-tests (Files): Likewise.
37523         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37524         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37525         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37526         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37527         Likewise.
37528         * modules/unictype/property-bidi-block-separator-tests (Files):
37529         Likewise.
37530         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37531         Likewise.
37532         * modules/unictype/property-bidi-common-separator-tests (Files):
37533         Likewise.
37534         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37535         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37536         Likewise.
37537         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37538         Likewise.
37539         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37540         Likewise.
37541         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37542         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37543         Likewise.
37544         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37545         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37546         Likewise.
37547         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37548         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37549         * modules/unictype/property-bidi-segment-separator-tests (Files):
37550         Likewise.
37551         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37552         * modules/unictype/property-byname-tests (Files): Likewise.
37553         * modules/unictype/property-combining-tests (Files): Likewise.
37554         * modules/unictype/property-composite-tests (Files): Likewise.
37555         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37556         * modules/unictype/property-dash-tests (Files): Likewise.
37557         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37558         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37559         Likewise.
37560         * modules/unictype/property-deprecated-tests (Files): Likewise.
37561         * modules/unictype/property-diacritic-tests (Files): Likewise.
37562         * modules/unictype/property-extender-tests (Files): Likewise.
37563         * modules/unictype/property-format-control-tests (Files): Likewise.
37564         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37565         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37566         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37567         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37568         * modules/unictype/property-hyphen-tests (Files): Likewise.
37569         * modules/unictype/property-id-continue-tests (Files): Likewise.
37570         * modules/unictype/property-id-start-tests (Files): Likewise.
37571         * modules/unictype/property-ideographic-tests (Files): Likewise.
37572         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37573         * modules/unictype/property-ids-trinary-operator-tests (Files):
37574         Likewise.
37575         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37576         * modules/unictype/property-iso-control-tests (Files): Likewise.
37577         * modules/unictype/property-join-control-tests (Files): Likewise.
37578         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37579         * modules/unictype/property-line-separator-tests (Files): Likewise.
37580         * modules/unictype/property-logical-order-exception-tests (Files):
37581         Likewise.
37582         * modules/unictype/property-lowercase-tests (Files): Likewise.
37583         * modules/unictype/property-math-tests (Files): Likewise.
37584         * modules/unictype/property-non-break-tests (Files): Likewise.
37585         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37586         * modules/unictype/property-numeric-tests (Files): Likewise.
37587         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37588         * modules/unictype/property-other-default-ignorable-code-point-tests
37589         (Files): Likewise.
37590         * modules/unictype/property-other-grapheme-extend-tests (Files):
37591         Likewise.
37592         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37593         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37594         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37595         * modules/unictype/property-other-math-tests (Files): Likewise.
37596         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37597         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37598         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37599         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37600         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37601         * modules/unictype/property-private-use-tests (Files): Likewise.
37602         * modules/unictype/property-punctuation-tests (Files): Likewise.
37603         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37604         * modules/unictype/property-radical-tests (Files): Likewise.
37605         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37606         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37607         * modules/unictype/property-space-tests (Files): Likewise.
37608         * modules/unictype/property-terminal-punctuation-tests (Files):
37609         Likewise.
37610         * modules/unictype/property-test-tests (Files): Likewise.
37611         * modules/unictype/property-titlecase-tests (Files): Likewise.
37612         * modules/unictype/property-unassigned-code-value-tests (Files):
37613         Likewise.
37614         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37615         * modules/unictype/property-uppercase-tests (Files): Likewise.
37616         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37617         * modules/unictype/property-white-space-tests (Files): Likewise.
37618         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37619         * modules/unictype/property-xid-start-tests (Files): Likewise.
37620         * modules/unictype/property-zero-width-tests (Files): Likewise.
37621         * modules/unictype/scripts-tests (Files): Likewise.
37622         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37623         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37624         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37625         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37626         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37627         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37628         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37629         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37630         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37631         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37632         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37633         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37634         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37635         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37636         * modules/uninorm/composition-tests (Files): Likewise.
37637         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37638         * modules/uninorm/decomposition-tests (Files): Likewise.
37639         * modules/uninorm/filter-tests (Files): Likewise.
37640         * modules/uninorm/nfc-tests (Files): Likewise.
37641         * modules/uninorm/nfd-tests (Files): Likewise.
37642         * modules/uninorm/nfkc-tests (Files): Likewise.
37643         * modules/uninorm/nfkd-tests (Files): Likewise.
37644         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37645         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37646         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37647         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37648         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37649         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37650         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37651         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37652         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37653         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37654         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37655         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37656         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37657         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37658         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37659         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37660         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37661         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37662         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37663         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37664         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37665         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37666         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37667         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37668         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37669         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37670         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37671         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37672         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37673         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37674         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37675         * modules/uniwidth/u8-width-tests (Files): Likewise.
37676         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37677         * modules/uniwidth/u16-width-tests (Files): Likewise.
37678         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37679         * modules/uniwidth/u32-width-tests (Files): Likewise.
37680         * modules/uniwidth/width-tests (Files): Likewise.
37681         * modules/unlink-tests (Files): Likewise.
37682         * modules/unsetenv-tests (Files): Likewise.
37683         * modules/usleep-tests (Files): Likewise.
37684         * modules/utimens-tests (Files): Likewise.
37685         * modules/utimensat-tests (Files): Likewise.
37686         * modules/vasnprintf-posix-tests (Files): Likewise.
37687         * modules/vasnprintf-tests (Files): Likewise.
37688         * modules/vasprintf-posix-tests (Files): Likewise.
37689         * modules/vasprintf-tests (Files): Likewise.
37690         * modules/vdprintf-posix-tests (Files): Likewise.
37691         * modules/vfprintf-posix-tests (Files): Likewise.
37692         * modules/vprintf-posix-tests (Files): Likewise.
37693         * modules/vsnprintf-posix-tests (Files): Likewise.
37694         * modules/vsnprintf-tests (Files): Likewise.
37695         * modules/vsprintf-posix-tests (Files): Likewise.
37696         * modules/wcrtomb-tests (Files): Likewise.
37697         * modules/wcsnrtombs-tests (Files): Likewise.
37698         * modules/wcsrtombs-tests (Files): Likewise.
37699         * modules/wctype-tests (Files): Likewise.
37700         * modules/wcwidth-tests (Files): Likewise.
37701         * modules/xmemdup0-tests (Files): Likewise.
37702         * modules/xprintf-posix-tests (Files): Likewise.
37703         * modules/xvasprintf-tests (Files): Likewise.
37704
37705 2009-12-24  Eric Blake  <ebb9@byu.net>
37706
37707         test-nanosleep: fix typo
37708         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37709         patch.
37710         Reported by Bruno Haible.
37711
37712 2009-12-24  Bruno Haible  <bruno@clisp.org>
37713
37714         Reduce namespace pollution on glibc systems.
37715         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37716         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37717         systems.
37718         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37719         <getopt.h> on glibc systems.
37720         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37721         systems.
37722         * lib/fcntl.c: Include <unistd.h> here instead.
37723
37724 2009-12-24  Bruno Haible  <bruno@clisp.org>
37725
37726         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37727
37728 2009-12-24  Eric Blake  <ebb9@byu.net>
37729
37730         tests: add signature checks
37731         * tests/signature.h (SIGNATURE_CHECK): New file.
37732         * modules/atexit-tests (Files): Use it.
37733         * modules/btowc-tests (Files): Likewise.
37734         * modules/canonicalize-lgpl-tests (Files): Likewise.
37735         * modules/ceilf-tests (Files): Likewise.
37736         * modules/ceill-tests (Files): Likewise.
37737         * modules/chown-tests (Files): Likewise.
37738         * modules/dprintf-posix-tests (Files): Likewise.
37739         * modules/dup2-tests (Files): Likewise.
37740         * modules/dup3-tests (Files): Likewise.
37741         * modules/duplocale-tests (Files): Likewise.
37742         * modules/fchdir-tests (Files): Likewise.
37743         * modules/fcntl-tests (Files): Likewise.
37744         * modules/fdopendir-tests (Files): Likewise.
37745         * modules/fflush-tests (Files): Likewise.
37746         * modules/flock-tests (Files): Likewise.
37747         * modules/floorf-tests (Files): Likewise.
37748         * modules/floorl-tests (Files): Likewise.
37749         * modules/fnmatch-tests (Files): Likewise.
37750         * modules/fopen-tests (Files): Likewise.
37751         * modules/fprintf-posix-tests (Files): Likewise.
37752         * modules/freopen-tests (Files): Likewise.
37753         * modules/frexp-nolibm-tests (Files): Likewise.
37754         * modules/frexp-tests (Files): Likewise.
37755         * modules/frexpl-nolibm-tests (Files): Likewise.
37756         * modules/frexpl-tests (Files): Likewise.
37757         * modules/fseek-tests (Files): Likewise.
37758         * modules/fseeko-tests (Files): Likewise.
37759         * modules/fsync-tests (Files): Likewise.
37760         * modules/ftell-tests (Files): Likewise.
37761         * modules/ftello-tests (Files): Likewise.
37762         * modules/futimens-tests (Files): Likewise.
37763         * modules/getaddrinfo-tests (Files): Likewise.
37764         * modules/getcwd-tests (Files): Likewise.
37765         * modules/getdelim-tests (Files): Likewise.
37766         * modules/getdtablesize-tests (Files): Likewise.
37767         * modules/getgroups-tests (Files): Likewise.
37768         * modules/gethostname-tests (Files): Likewise.
37769         * modules/getline-tests (Files): Likewise.
37770         * modules/getopt-posix-tests (Files): Likewise.
37771         * modules/gettimeofday-tests (Files): Likewise.
37772         * modules/glob-tests (Files): Likewise.
37773         * modules/iconv-tests (Files): Likewise.
37774         * modules/inet_ntop-tests (Files): Likewise.
37775         * modules/inet_pton-tests (Files): Likewise.
37776         * modules/isblank-tests (Files): Likewise.
37777         * modules/lchown-tests (Files): Likewise.
37778         * modules/ldexpl-tests (Files): Likewise.
37779         * modules/link-tests (Files): Likewise.
37780         * modules/linkat-tests (Files): Likewise.
37781         * modules/lseek-tests (Files): Likewise.
37782         * modules/lstat-tests (Files): Likewise.
37783         * modules/mbrtowc-tests (Files): Likewise.
37784         * modules/mbsinit-tests (Files): Likewise.
37785         * modules/mbsnrtowcs-tests (Files): Likewise.
37786         * modules/mbsrtowcs-tests (Files): Likewise.
37787         * modules/memchr-tests (Files): Likewise.
37788         * modules/memcmp-tests (Files): Likewise.
37789         * modules/memmem-tests (Files): Likewise.
37790         * modules/memrchr-tests (Files): Likewise.
37791         * modules/mkdir-tests (Files): Likewise.
37792         * modules/mkfifo-tests (Files): Likewise.
37793         * modules/mkfifoat-tests (Files): Likewise.
37794         * modules/mknod-tests (Files): Likewise.
37795         * modules/nanosleep-tests (Files): Likewise.
37796         * modules/nl_langinfo-tests (Files): Likewise.
37797         * modules/obstack-printf-tests (Files): Likewise.
37798         * modules/open-tests (Files): Likewise.
37799         * modules/openat-tests (Files): Likewise.
37800         * modules/perror-tests (Files): Likewise.
37801         * modules/pipe2-tests (Files): Likewise.
37802         * modules/poll-tests (Files): Likewise.
37803         * modules/popen-tests (Files): Likewise.
37804         * modules/posix_spawn-tests (Files): Likewise.
37805         * modules/posix_spawnp-tests (Files): Likewise.
37806         * modules/pread-tests (Files): Likewise.
37807         * modules/printf-posix-tests (Files): Likewise.
37808         * modules/pty-tests (Files): Likewise.
37809         * modules/random_r-tests (Files): Likewise.
37810         * modules/rawmemchr-tests (Files): Likewise.
37811         * modules/readlink-tests (Files): Likewise.
37812         * modules/remove-tests (Files): Likewise.
37813         * modules/rename-tests (Files): Likewise.
37814         * modules/renameat-tests (Files): Likewise.
37815         * modules/rmdir-tests (Files): Likewise.
37816         * modules/round-tests (Files): Likewise.
37817         * modules/roundf-tests (Files): Likewise.
37818         * modules/roundl-tests (Files): Likewise.
37819         * modules/select-tests (Files): Likewise.
37820         * modules/setenv-tests (Files): Likewise.
37821         * modules/sigaction-tests (Files): Likewise.
37822         * modules/sleep-tests (Files): Likewise.
37823         * modules/snprintf-posix-tests (Files): Likewise.
37824         * modules/snprintf-tests (Files): Likewise.
37825         * modules/sprintf-posix-tests (Files): Likewise.
37826         * modules/stat-tests (Files): Likewise.
37827         * modules/strcasestr-tests (Files): Likewise.
37828         * modules/strchrnul-tests (Files): Likewise.
37829         * modules/strerror-tests (Files): Likewise.
37830         * modules/strsignal-tests (Files): Likewise.
37831         * modules/strstr-tests (Files): Likewise.
37832         * modules/strtod-tests (Files): Likewise.
37833         * modules/strverscmp-tests (Files): Likewise.
37834         * modules/symlink-tests (Files): Likewise.
37835         * modules/symlinkat-tests (Files): Likewise.
37836         * modules/times-tests (Files): Likewise.
37837         * modules/trunc-tests (Files): Likewise.
37838         * modules/truncf-tests (Files): Likewise.
37839         * modules/truncl-tests (Files): Likewise.
37840         * modules/tsearch-tests (Files): Likewise.
37841         * modules/uname-tests (Files): Likewise.
37842         * modules/unlink-tests (Files): Likewise.
37843         * modules/unsetenv-tests (Files): Likewise.
37844         * modules/usleep-tests (Files): Likewise.
37845         * modules/utimensat-tests (Files): Likewise.
37846         * modules/vasprintf-tests (Files): Likewise.
37847         * modules/vdprintf-posix-tests (Files): Likewise.
37848         * modules/vfprintf-posix-tests (Files): Likewise.
37849         * modules/vprintf-posix-tests (Files): Likewise.
37850         * modules/vsnprintf-posix-tests (Files): Likewise.
37851         * modules/vsnprintf-tests (Files): Likewise.
37852         * modules/vsprintf-posix-tests (Files): Likewise.
37853         * modules/wcrtomb-tests (Files): Likewise.
37854         * modules/wcsnrtombs-tests (Files): Likewise.
37855         * modules/wcsrtombs-tests (Files): Likewise.
37856         * modules/wcwidth-tests (Files): Likewise.
37857         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37858         * tests/test-isinf.c (isinf): Likewise.
37859         * tests/test-isnan.c (isnan): Likewise.
37860         * tests/test-signbit.c (signbit): Likewise.
37861         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37862         declaration, either as macro or with correct signature.
37863         (select): Ensure function under test is declared with correct
37864         signature in correct header.
37865         * tests/test-atexit.c (atexit): Likewise.
37866         * tests/test-btowc.c (btowc): Likewise.
37867         * tests/test-canonicalize-lgpl.c (realpath)
37868         (canonicalize_file_name): Likewise.
37869         * tests/test-ceilf1.c (ceilf): Likewise.
37870         * tests/test-ceill.c (ceill): Likewise.
37871         * tests/test-chown.c (chown): Likewise.
37872         * tests/test-dprintf-posix.c (dprintf): Likewise.
37873         * tests/test-dup2.c (dup2): Likewise.
37874         * tests/test-dup3.c (dup3): Likewise.
37875         * tests/test-duplocale.c (duplocale): Likewise.
37876         * tests/test-fchdir.c (fchdir): Likewise.
37877         * tests/test-fchownat.c (fchownat): Likewise.
37878         * tests/test-fcntl.c (fcntl): Likewise.
37879         * tests/test-fdopendir.c (fdopendir): Likewise.
37880         * tests/test-fflush.c (fflush): Likewise.
37881         * tests/test-flock.c (flock): Likewise.
37882         * tests/test-floorf1.c (floorf): Likewise.
37883         * tests/test-floorl.c (floorl): Likewise.
37884         * tests/test-fnmatch.c (fnmatch): Likewise.
37885         * tests/test-fopen.c (fopen): Likewise.
37886         * tests/test-fprintf-posix.c (fprintf): Likewise.
37887         * tests/test-freopen.c (freopen): Likewise.
37888         * tests/test-frexp.c (frexp): Likewise.
37889         * tests/test-frexpl.c (frexpl): Likewise.
37890         * tests/test-fseek.c (fseek): Likewise.
37891         * tests/test-fseeko.c (fseeko): Likewise.
37892         * tests/test-fstatat.c (fstatat): Likewise.
37893         * tests/test-fsync.c (fsync): Likewise.
37894         * tests/test-ftell.c (ftell): Likewise.
37895         * tests/test-ftello.c (ftello): Likewise.
37896         * tests/test-futimens.c (futimens): Likewise.
37897         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37898         (gai_strerror): Likewise.
37899         * tests/test-getcwd.c (getcwd): Likewise.
37900         * tests/test-getdelim.c (getdelim): Likewise.
37901         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37902         * tests/test-getgroups.c (getgroups): Likewise.
37903         * tests/test-gethostname.c (gethostname): Likewise.
37904         * tests/test-getline.c (getline): Likewise.
37905         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37906         Likewise.
37907         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37908         * tests/test-glob.c (glob, globfree): Likewise.
37909         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37910         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37911         * tests/test-inet_pton.c (inet_pton): Likewise.
37912         * tests/test-isblank.c (isblank): Likewise.
37913         * tests/test-lchown.c (lchown): Likewise.
37914         * tests/test-ldexpl.c (ldexpl): Likewise.
37915         * tests/test-link.c (link): Likewise.
37916         * tests/test-linkat.c (linkat): Likewise.
37917         * tests/test-lseek.c (lseek): Likewise.
37918         * tests/test-lstat.c (lstat): Likewise.
37919         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37920         * tests/test-mbsinit.c (mbsinit): Likewise.
37921         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37922         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37923         * tests/test-memchr.c (memchr): Likewise.
37924         * tests/test-memcmp.c (memcmp): Likewise.
37925         * tests/test-memmem.c (memmem): Likewise.
37926         * tests/test-memrchr.c (memrchr): Likewise.
37927         * tests/test-mkdir.c (mkdir): Likewise.
37928         * tests/test-mkdirat.c (mkdirat): Likewise.
37929         * tests/test-mkfifo.c (mkfifo): Likewise.
37930         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37931         * tests/test-mknod.c (mknod): Likewise.
37932         * tests/test-nanosleep.c (nanosleep): Likewise.
37933         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37934         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37935         Likewise.
37936         * tests/test-open.c (open): Likewise.
37937         * tests/test-openat.c (openat): Likewise.
37938         * tests/test-perror.c (perror): Likewise.
37939         * tests/test-pipe2.c (pipe2): Likewise.
37940         * tests/test-poll.c (poll): Likewise.
37941         * tests/test-popen.c (popen, pclose): Likewise.
37942         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37943         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37944         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37945         (posix_spawn_file_actions_destroy)
37946         (posix_spawn_file_actions_addclose)
37947         (posix_spawn_file_actions_addopen)
37948         (posix_spawn_file_actions_adddup2): Likewise.
37949         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37950         * tests/test-pread.c (pread): Likewise.
37951         * tests/test-printf-posix.c (printf): Likewise.
37952         * tests/test-pty.c (openpty, forkpty): Likewise.
37953         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37954         (random_r): Likewise.
37955         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37956         * tests/test-readlink.c (readlink): Likewise.
37957         * tests/test-remove.c (remove): Likewise.
37958         * tests/test-rename.c (rename): Likewise.
37959         * tests/test-renameat.c (renameat): Likewise.
37960         * tests/test-rmdir.c (rmdir): Likewise.
37961         * tests/test-round1.c (round): Likewise.
37962         * tests/test-roundf1.c (roundf): Likewise.
37963         * tests/test-roundl.c (roundl): Likewise.
37964         * tests/test-setenv.c (setenv): Likewise.
37965         * tests/test-sigaction.c (sigaction): Likewise.
37966         * tests/test-sleep.c (sleep): Likewise.
37967         * tests/test-snprintf.c (snprintf): Likewise.
37968         * tests/test-sprintf-posix.c (sprintf): Likewise.
37969         * tests/test-stat.c (stat): Likewise.
37970         * tests/test-stpncpy.c (stpncpy): Likewise.
37971         * tests/test-strcasestr.c (strcasestr): Likewise.
37972         * tests/test-strchrnul.c (strchrnul): Likewise.
37973         * tests/test-strerror.c (strerror): Likewise.
37974         * tests/test-strsignal.c (strsignal): Likewise.
37975         * tests/test-strstr.c (strstr): Likewise.
37976         * tests/test-strtod.c (strtod): Likewise.
37977         * tests/test-strverscmp.c (strverscmp): Likewise.
37978         * tests/test-symlink.c (symlink): Likewise.
37979         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37980         * tests/test-times.c (times): Likewise.
37981         * tests/test-trunc1.c (trunc): Likewise.
37982         * tests/test-truncf1.c (truncf): Likewise.
37983         * tests/test-truncl.c (truncl): Likewise.
37984         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37985         Likewise.
37986         * tests/test-uname.c (uname): Likewise.
37987         * tests/test-unlink.c (unlink): Likewise.
37988         * tests/test-unlinkat.c (unlinkat): Likewise.
37989         * tests/test-unsetenv.c (unsetenv): Likewise.
37990         * tests/test-usleep.c (usleep): Likewise.
37991         * tests/test-utimensat.c (utimensat): Likewise.
37992         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37993         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37994         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37995         * tests/test-vprintf-posix.c (vprintf): Likewise.
37996         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37997         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37998         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37999         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
38000         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
38001         * tests/test-wcwidth.c (wcwidth): Likewise.
38002
38003         build: pull in conditional headers during GNULIB_POSIXCHECK
38004         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
38005         definitions from any conditionally-included headers.
38006         * lib/stdlib.in.h (includes): Likewise.
38007         * lib/unistd.in.h (includes): Likewise.
38008
38009 2009-12-24  Bruno Haible  <bruno@clisp.org>
38010
38011         * tests/test-argv-iter.c: Include header file being tested immediately
38012         after config.h.
38013         * tests/test-base64.c: Likewise.
38014         * tests/test-flock.c: Likewise.
38015         * tests/test-fsync.c: Likewise.
38016         * tests/test-getdate.c: Likewise.
38017         * tests/test-getndelim2.c: Likewise.
38018         * tests/test-isfinite.c: Likewise.
38019         * tests/test-isinf.c: Likewise.
38020         * tests/test-strerror.c: Likewise.
38021         * tests/test-strsignal.c: Likewise.
38022
38023 2009-12-23  Eric Blake  <ebb9@byu.net>
38024
38025         unistd: work around cygwin bug
38026         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38027         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38028         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38029
38030 2009-12-23  Bruno Haible  <bruno@clisp.org>
38031
38032         localename: More tests.
38033         * tests/test-localename.c (SIZEOF): New macro.
38034         (categories): New variable.
38035         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38036         test_locale_name_default): Add test w.r.t. thread locale.
38037         (test_locale_name_thread): New function.
38038         (main): Invoke it.
38039
38040         localename: Make aware of thread locale.
38041         * lib/localename.h (gl_locale_name_thread): New declaration.
38042         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38043         behaviour with respect to thread locale.
38044         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38045         <langinfo.h>, glthread/lock.h.
38046         (SIZE_BITS): New macro.
38047         (string_hash): New function.
38048         (struct hash_node): New type.
38049         (HASH_TABLE_SIZE): New macro.
38050         (struniq_hash_table, struniq_lock): New variables.
38051         (struniq): New function.
38052         (gl_locale_name_thread): New function.
38053         (gl_locale_name): Invoke it.
38054         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38055         * modules/localename (Depends-on): Add lock.
38056         Reported by Mike Gran <spk121@yahoo.com>.
38057
38058 2009-12-23  Eric Blake  <ebb9@byu.net>
38059
38060         va-args: new module
38061         * modules/va-args: New file.
38062         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38063         * MODULES.html.sh (Core language properties): Mention it.
38064
38065         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38066         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38067         named alias for __attribute__((__unused__)).
38068         * lib/chown.c: Update client.
38069         * lib/fchmodat.c: Likewise.
38070         * lib/fts.c: Likewise.
38071         * lib/getdate.y: Likewise.
38072         * lib/getgroups.c: Likewise.
38073         * lib/getopt.c: Likewise.
38074         * lib/getugroups.c: Likewise.
38075         * lib/mkdir.c: Likewise.
38076         * lib/mkfifo.c: Likewise.
38077         * lib/mkfifoat.c: Likewise.
38078         * lib/mknod.c: Likewise.
38079         * lib/mknodat.c: Likewise.
38080         * lib/readlink.c: Likewise.
38081         * lib/se-context.in.h: Likewise.
38082         * lib/se-selinux.in.h: Likewise.
38083         * lib/sockets.c: Likewise.
38084         * lib/symlink.c: Likewise.
38085         * lib/symlinkat.c: Likewise.
38086         * lib/unicodeio.c: Likewise.
38087         * lib/unistr.h: Likewise.
38088         * tests/test-areadlink.c: Likewise.
38089         * tests/test-areadlinkat.c: Likewise.
38090         * tests/test-filenamecat.c: Likewise.
38091         * tests/test-fseeko.c: Likewise.
38092         * tests/test-ftello.c: Likewise.
38093         * tests/test-getdate.c: Likewise.
38094         * tests/test-getgroups.c: Likewise.
38095         * tests/test-gethostname.c: Likewise.
38096         * tests/test-quotearg.c: Likewise.
38097         * tests/test-version-etc.c: Likewise.
38098         * tests/test-xalloc-die.c: Likewise.
38099         * tests/test-xfprintf-posix.c: Likewise.
38100         * tests/test-xprintf-posix.c: Likewise.
38101         * tests/test-xvasprintf.c: Likewise.
38102
38103         tests: avoid compiler warnings
38104         * tests/test-fcntl.c (main): Delete unused parameters.
38105         * tests/test-freopen-safer.c (main): Likewise.
38106         * tests/test-xalloc-die.c (main): Mark unused parameters.
38107         * tests/test-fseeko.c (main): Likewise.
38108         * tests/test-ftello.c (main): Likewise.
38109         * tests/test-nanosleep.c (main): Avoid declaration warning.
38110         * tests/test-sleep.c (main): Likewise.
38111         * tests/test-unsetenv.c (main): Silence warning about string
38112         literal.
38113         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38114
38115 2009-12-23  Bruno Haible  <bruno@clisp.org>
38116
38117         * tests/test-localename.c (test_locale_name): New function, extracted
38118         from main. Also test mixed situations.
38119         (test_locale_name_posix, test_locale_name_environ,
38120         test_locale_name_default): New functions.
38121         (main): Invoke them all.
38122         * modules/localename-tests (configure.ac): Test for newlocale.
38123
38124 2009-12-23  Bruno Haible  <bruno@clisp.org>
38125
38126         unistd: Ensure getcwd gets declared before being overridden.
38127         * lib/unistd.in.h: Conditionally include <io.h>.
38128
38129 2009-12-22  Bruno Haible  <bruno@clisp.org>
38130
38131         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38132         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38133         (gl_WCHAR_H): Invoke it.
38134         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38135         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38136         Reported by Karl Berry <karl@freefriends.org>.
38137
38138 2009-12-22  Eric Blake  <ebb9@byu.net>
38139
38140         math, unistd: avoid redundant includes
38141         * lib/math.in.h (isnan): No need to re-include <math.h>.
38142         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38143
38144         getsubopt: work around cygwin bug
38145         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38146         avoid conflicting with system getsubopt.
38147         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38148         bug.
38149
38150         getopt: synchronize from glibc
38151         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38152         parameter order.  Adjust all callers.
38153         (_getopt_internal_r, main): Adjust quoting in error messages.
38154         Drop considerations for outdated POSIX 1003.2 error message.
38155         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38156         callers.
38157         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38158
38159         test-getopt: test stderr behavior
38160         * modules/getopt-posix-tests (Depends-on): Add dup2.
38161         * tests/test-getopt.c (ASSERT): Avoid stderr.
38162         (main): Move stderr to a temporary file.
38163         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38164         Instead, add parameter to inform caller if output occurred.
38165         (test_getopt): Adjust all existing tests to expect silence, and
38166         add new tests of leading ":".
38167         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38168         glibc shortcomings with leading "-:" or "+:" in optstring.
38169         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38170         Likewise.
38171         * doc/posix-functions/getopt.texi (getopt): Likewise.
38172
38173         test-getopt: enhance test
38174         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38175         supports optind=0.
38176         * tests/test-getopt.c (OPTIND_MIN): Move...
38177         * tests/test-getopt.h (OPTIND_MIN): ...here.
38178         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38179         Require that optind=0 works, since modern BSD supports it in
38180         addition to optreset, and since coreutils expects it.
38181         (test_getopt_long_only): New test.
38182         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38183         glibc shortcomings with 'W;', and enforcement of optind=0.
38184         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38185         Likewise.
38186
38187 2009-12-21  Bruno Haible  <bruno@clisp.org>
38188
38189         localename: Improvements for MacOS X and Cygwin.
38190         * lib/localename.h (gl_locale_name_environ): New declaration.
38191         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38192         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38193         (gl_locale_name_posix): Invoke it.
38194         (gl_locale_name_default): Add comments. Use Windows native API also on
38195         Cygwin.
38196
38197 2009-12-21  Bruno Haible  <bruno@clisp.org>
38198
38199         Update list of Win32 locale ids.
38200         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38201         (LANG_SAMI): Renamed from LANG_SAAMI.
38202         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38203         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38204         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38205         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38206         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38207         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38208         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38209         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38210         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38211         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38212         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38213         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38214         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38215         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38216         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38217         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38218         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38219         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38220         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38221         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38222         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38223         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38224         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38225         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38226         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38227         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38228         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38229         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38230         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38231         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38232         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38233         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38234         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38235         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38236         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38237         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38238         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38239         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38240         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38241         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38242         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38243         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38244         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38245         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38246         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38247         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38248         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38249         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38250         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38251         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38252         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38253         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38254         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38255         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38256         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38257         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38258         Add more languages and countries for Sami, Sorbian. Add more countries
38259         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38260         for Pashto. Change country for Syriac, Tswana.
38261
38262 2009-12-21  Eric Blake  <ebb9@byu.net>
38263
38264         test-utimens: avoid spurious failure
38265         * tests/test-chown.h (nap): Factor...
38266         * tests/nap.h: ...into new file.
38267         * tests/test-lchown.h (nap): Avoid duplication.
38268         * tests/test-utimens-common.h (nap): Use shared implementation,
38269         necessary on file systems with 1-second resolution.
38270         * modules/chown-tests (Files): Include new file.
38271         * modules/fdutimensat-tests (Files): Likewise.
38272         * modules/futimens-tests (Files): Likewise.
38273         * modules/lchown-tests (Files): Likewise.
38274         * modules/openat-tests (Files): Likewise.
38275         * modules/utimens-tests (Files): Likewise.
38276         * modules/utimensat-tests (Files): Likewise.
38277
38278 2009-12-19  Eric Blake  <ebb9@byu.net>
38279
38280         futimens, utimensat: work around Linux bug
38281         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38282         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38283         * lib/utimensat.c (rpl_utimensat): Work around it.
38284         * lib/futimens.c (rpl_futimens): Adjust comment.
38285
38286         utimens: work around Linux ctime bug
38287         * lib/utimens.c (detect_ctime_bug): New helper function.
38288         (update_timespec): Differentiate between workaround needed for
38289         this bug vs. what is needed for systems that lack utimensat.
38290         (fdutimens, lutimens): Work around bug.
38291
38292         utimens: check for ctime update
38293         * tests/test-utimens-common.h (check_ctime): Define.
38294         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38295         * tests/test-futimens.h (test_futimens): Likewise.
38296         * tests/test-lutimens.h (test_lutimens): Likewise.
38297         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38298         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38299
38300 2009-12-19  Bruno Haible  <bruno@clisp.org>
38301
38302         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38303         * tests/test-dprintf-posix2.sh: New file.
38304         * tests/test-dprintf-posix2.c: New file.
38305         * modules/dprintf-posix-tests (Files): Add them.
38306         (configure.ac): Check for getrlimit and setrlimit.
38307         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38308
38309 2009-12-19  Bruno Haible  <bruno@clisp.org>
38310
38311         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38312         * tests/test-fprintf-posix3.sh: New file.
38313         * tests/test-fprintf-posix3.c: New file.
38314         * modules/fprintf-posix-tests (Files): Add them.
38315         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38316
38317 2009-12-19  Eric Blake  <ebb9@byu.net>
38318
38319         dirfd: fix prototype
38320         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38321         * lib/dirfd.c (dirfd): Likewise.
38322
38323         canonicalize: reduce memory usage
38324         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38325         allocation to size.
38326         Reported by Solar Designer <solar@openwall.com>.
38327
38328 2009-12-19  Bruno Haible  <bruno@clisp.org>
38329
38330         New module attribute 'Applicability'.
38331         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38332         * gnulib-tool: New option --extract-applicability.
38333         (func_usage): Document it.
38334         (sed_extract_prog): Recognize it.
38335         (func_get_applicability): New function.
38336         (func_import): Generalize handling of 'link-warning' module.
38337         * modules/link-warning (Applicability): New section.
38338         * modules/arg-nonnull (Applicability): New section.
38339         Repoted by Simon Josefsson <simon@josefsson.org>.
38340
38341 2009-12-19  Bruno Haible  <bruno@clisp.org>
38342
38343         fflush: tweak
38344         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38345         * lib/fseeko.c (rpl_fseeko): Likewise.
38346
38347 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38348
38349         * lib/gl_list.h: Fix typo in comment.
38350
38351 2009-12-16  Eric Blake  <ebb9@byu.net>
38352
38353         fcntl: use to simplify other modules
38354         * modules/cloexec (Depends-on): Add fcntl.
38355         * modules/fchdir (Depends-on): Likewise.
38356         * modules/fd-safer-flag (Depends-on): Likewise.
38357         * modules/unistd-safer (Depends-on): Likewise.
38358         * modules/dup3 (configure.ac): Set module indicator.
38359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38360         missing.
38361         * lib/fchdir.c (_gl_register_dup): Fix comment.
38362         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38363         * lib/dup-safer.c (dup_safer): Likewise.
38364         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38365         * lib/dup3.c (dup3): Likewise.
38366         * tests/test-fchdir.c (main): Enhance test.
38367         Fixes a dup_cloexec bug reported by Ondřej Vašík.
38368
38369         fcntl: port portions of fcntl to mingw
38370         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38371         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38372         replacement for mingw.
38373         * modules/fcntl (Description): Update.
38374         (Depends-on): Add dup2.
38375         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38376         * modules/fcntl-h (Makefile.am): Substitute it.
38377         * lib/fcntl.in.h (fcntl): Update declaration.
38378         (F_DUPFD, F_GETFD): New macros, when needed.
38379         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38380         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38381         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38382         we now guarantee.
38383
38384         fcntl: work around cygwin bug in F_DUPFD
38385         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38386         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38387         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38388         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38389         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38390
38391         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38392         * modules/fcntl (Files): List new files.
38393         (configure.ac): Run a test.
38394         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38395         * lib/fcntl.c (rpl_fcntl): Likewise.
38396         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38397         (gl_FCNTL_H): Always replace fcntl.h.
38398         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38399         * lib/fcntl.in.h (fcntl): Declare replacement.
38400         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38401         needed, plus a witness.
38402         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38403         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38404         * tests/test-fcntl.c: New file.
38405         * modules/fcntl-tests: Likewise.
38406
38407         binary-io: avoid potential compilation warning
38408         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38409         directives.
38410
38411         fflush: avoid compilation error on NetBSD
38412         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38413         between off_t and fpos_t, since the latter is sometimes a struct.
38414         * lib/fseeko.c (rpl_fseeko): Likewise.
38415         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38416
38417 2009-12-15  Eric Blake  <ebb9@byu.net>
38418
38419         fcntl-h, stdio, sys_ioctl: fix declarations
38420         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38421         function must not take arguments.
38422         * lib/sys_ioctl.in.h (ioctl): Likewise.
38423         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38424         (open): Add a link warning.
38425
38426 2009-12-15  Jim Meyering  <meyering@redhat.com>
38427
38428         areadlink, areadlink-with-size: relax license to LGPLv2+
38429         * modules/areadlink (License): Relax to LGPLv2+.
38430         * modules/areadlink-with-size (License): Likewise.
38431
38432 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38433             Bruno Haible  <bruno@clisp.org>
38434
38435         *printf: Fix memory leak.
38436         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38437         * lib/vfprintf.c (vfprintf): Likewise.
38438         * lib/dprintf.c (dprintf): Likewise.
38439         * lib/vdprintf.c (vdprintf): Likewise.
38440
38441 2009-12-14  Eric Blake  <ebb9@byu.net>
38442
38443         accept4: adjust module dependencies
38444         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38445
38446         utimens: one more try at avoiding compiler warning
38447         * lib/utimens.c (lutimens): Lower scope of result.
38448
38449 2009-12-13  Bruno Haible  <bruno@clisp.org>
38450
38451         Move the malloc checking from module 'list' to new module 'xlist'.
38452         * modules/xlist: New file.
38453         * lib/gl_xlist.h: New file.
38454         * lib/gl_xlist.c: New file.
38455         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38456         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38457         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38458         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38459         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38460         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38461         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38462         gl_sortedlist_nx_add): New declarations.
38463         (struct gl_list_implementation): Rename and change methods accordingly.
38464         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38465         (gl_list_nx_create): Renamed from gl_list_create.
38466         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38467         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38468         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38469         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38470         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38471         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38472         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38473         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38474         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38475         gl_list_create_empty.
38476         (gl_list_nx_create): Renamed from gl_list_create.
38477         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38478         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38479         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38480         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38481         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38482         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38483         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38484         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38485         * lib/gl_array_list.c: Don't include xalloc.h.
38486         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38487         NULL upon out-of-memory.
38488         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38489         out-of-memory.
38490         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38491         Change return type to 'int'.
38492         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38493         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38494         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38495         upon out-of-memory.
38496         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38497         upon out-of-memory.
38498         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38499         upon out-of-memory.
38500         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38501         upon out-of-memory.
38502         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38503         out-of-memory.
38504         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38505         Update.
38506         (gl_array_list_implementation): Update.
38507         * lib/gl_carray_list.c: Don't include xalloc.h.
38508         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38509         Return NULL upon out-of-memory.
38510         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38511         out-of-memory.
38512         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38513         Change return type to 'int'.
38514         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38515         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38516         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38517         upon out-of-memory.
38518         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38519         upon out-of-memory.
38520         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38521         out-of-memory.
38522         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38523         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38524         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38525         Update.
38526         (gl_carray_list_implementation): Update.
38527         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38528         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38529         gl_linked_create_empty. Return NULL upon out-of-memory.
38530         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38531         out-of-memory.
38532         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38533         Change return type to 'int'. Return -1 upon out-of-memory.
38534         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38535         out-of-memory.
38536         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38537         upon out-of-memory.
38538         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38539         upon out-of-memory.
38540         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38541         NULL upon out-of-memory.
38542         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38543         upon out-of-memory.
38544         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38545         out-of-memory.
38546         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38547         Update.
38548         * lib/gl_linked_list.c: Don't include xalloc.h.
38549         (gl_linked_list_implementation): Update.
38550         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38551         (add_to_bucket): Change return type to 'int'.
38552         (gl_linkedhash_list_implementation): Update.
38553         * lib/gl_anytree_list1.h (free_subtree): New function.
38554         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38555         gl_tree_create_empty. Return NULL upon out-of-memory.
38556         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38557         Change return type to 'int'. Return -1 upon out-of-memory.
38558         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38559         out-of-memory.
38560         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38561         (gl_tree_remove_node): New function, moved here from
38562         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38563         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38564         Update.
38565         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38566         malloc, not xmalloc. Return NULL upon out-of-memory.
38567         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38568         out-of-memory.
38569         (gl_tree_remove_node_from_tree): New function, extracted from
38570         gl_tree_remove_node.
38571         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38572         upon out-of-memory.
38573         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38574         out-of-memory.
38575         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38576         upon out-of-memory.
38577         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38578         upon out-of-memory.
38579         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38580         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38581         not xmalloc. Return NULL upon out-of-memory.
38582         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38583         out-of-memory.
38584         (gl_tree_remove_node_from_tree): New function, extracted from
38585         gl_tree_remove_node.
38586         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38587         upon out-of-memory.
38588         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38589         out-of-memory.
38590         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38591         upon out-of-memory.
38592         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38593         upon out-of-memory.
38594         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38595         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38596         gl_anytree_list1.h before gl_anyavltree_list2.h.
38597         (gl_avltree_list_implementation): Update.
38598         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38599         gl_anytree_list1.h before gl_anyavltree_list2.h.
38600         (gl_rbtree_list_implementation): Update.
38601         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38602         Change return type to 'int'. Return -1 upon out-of-memory. Use
38603         __builtin_expect.
38604         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38605         (gl_avltreehash_list_implementation): Update.
38606         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38607         (gl_rbtreehash_list_implementation): Update.
38608         * modules/array-list (Depends-on): Remove xalloc.
38609         * modules/carray-list (Depends-on): Likewise.
38610         * modules/linked-list (Depends-on): Likewise.
38611         * modules/linkedhash-list (Depends-on): Likewise.
38612         * modules/avltree-list (Depends-on): Likewise.
38613         * modules/rbtree-list (Depends-on): Likewise.
38614         * modules/avltreehash-list (Depends-on): Likewise.
38615         * modules/rbtreehash-list (Depends-on): Likewise.
38616
38617         * modules/xsublist: New file.
38618         * lib/gl_xsublist.h: New file.
38619         * lib/gl_xsublist.c: New file.
38620         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38621         (gl_sublist_nx_create): New declaration.
38622         * lib/gl_sublist.c: Don't include xalloc.h.
38623         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38624         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38625         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38626         Change return type to 'int'. Return -1 upon out-of-memory.
38627         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38628         upon out-of-memory.
38629         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38630         NULL upon out-of-memory.
38631         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38632         upon out-of-memory.
38633         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38634         NULL upon out-of-memory.
38635         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38636         NULL upon out-of-memory.
38637         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38638         upon out-of-memory.
38639         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38640         (gl_sublist_list_implementation): Update.
38641         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38642         upon out-of-memory.
38643         * modules/sublist (Depends-on): Remove xalloc.
38644
38645         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38646         * tests/test-carray_list.c: Likewise.
38647         * tests/test-linked_list.c: Likewise.
38648         * tests/test-linkedhash_list.c: Likewise.
38649         * tests/test-avltree_list.c: Likewise.
38650         * tests/test-rbtree_list.c: Likewise.
38651         * tests/test-avltreehash_list.c: Likewise.
38652         * tests/test-rbtreehash_list.c: Likewise.
38653         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38654         * modules/carray-list-tests (Makefile.am): Likewise.
38655         * modules/linked-list-tests (Makefile.am): Likewise.
38656         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38657         * modules/avltree-list-tests (Makefile.am): Likewise.
38658         * modules/rbtree-list-tests (Makefile.am): Likewise.
38659         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38660         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38661
38662         * NEWS: Mention the changes.
38663
38664         * lib/clean-temp.c: Include gl_xlist.h.
38665         * modules/clean-temp (Depends-on): Add xlist.
38666
38667         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38668         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38669
38670         * tests/test-array_oset.c: Include gl_xlist.h.
38671         * modules/array-oset-tests (Depends-on): Add xlist.
38672
38673         Reported by José E. Marchesi <jemarch@gnu.org>.
38674
38675 2009-12-13  Bruno Haible  <bruno@clisp.org>
38676
38677         Move the malloc checking from module 'oset' to new module 'xoset'.
38678         * modules/xoset: New file.
38679         * lib/gl_xoset.h: New file.
38680         * lib/gl_xoset.c: New file.
38681         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38682         declarations.
38683         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38684         (struct gl_oset_implementation): Rename and change methods accordingly.
38685         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38686         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38687         'int'. Mark as __warn_unused_result__.
38688         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38689         gl_oset_create_empty.
38690         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38691         'int'.
38692         * lib/gl_array_oset.c: Don't include xalloc.h.
38693         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38694         malloc, not xmalloc.
38695         (grow): Change return type to 'int'. Don't call xalloc_die.
38696         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38697         to 'int'.
38698         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38699         'int'.
38700         (gl_array_oset_implementation): Update.
38701         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38702         gl_tree_create_empty.
38703         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38704         'int'.
38705         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38706         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38707         xmalloc.
38708         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38709         not xmalloc.
38710         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38711         xmalloc.
38712         (gl_avltree_oset_implementation): Update.
38713         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38714         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38715         xmalloc.
38716         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38717         not xmalloc.
38718         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38719         xmalloc.
38720         (gl_rbtree_oset_implementation): Update.
38721         * modules/array-oset (Depends-on): Remove xalloc.
38722         * modules/avltree-oset (Depends-on): Likewise.
38723         * modules/rbtree-oset (Depends-on): Likewise.
38724         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38725         * tests/test-avltree_oset.c: Likewise.
38726         * tests/test-rbtree_oset.c: Likewise.
38727         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38728         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38729         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38730         * NEWS: Mention the change.
38731
38732 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38733
38734         maint.mk: allow a project to override release-prep commands
38735         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38736         commands into a new rule.
38737         (release-prep): New rule.
38738         (release-prep-hook): New overridable variable.
38739
38740 2009-12-13  Bruno Haible  <bruno@clisp.org>
38741
38742         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38743
38744 2009-12-13  Jim Meyering  <meyering@redhat.com>
38745
38746         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38747         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38748
38749 2009-12-12  Bruno Haible  <bruno@clisp.org>
38750
38751         duplocale: Tweak.
38752         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38753
38754 2009-12-12  Karl Berry  <karl@gnu.org>
38755
38756         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38757
38758 2009-12-12  Bruno Haible  <bruno@clisp.org>
38759
38760         * m4/po.m4: Undo incorrect untabification.
38761
38762 2009-12-12  Bruno Haible  <bruno@clisp.org>
38763
38764         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38765         * modules/c-strtod (Depends-on): Add locale.
38766         * modules/c-strtold (Depends-on): Likewise.
38767
38768 2009-12-12  Bruno Haible  <bruno@clisp.org>
38769
38770         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38771
38772 2009-12-11  Eric Blake  <ebb9@byu.net>
38773
38774         setenv: relax requirement in light of POSIX ruling
38775         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38776         not NULL.
38777         * tests/test-setenv.c (main): Relax test.
38778         * tests/test-unsetenv.c (main): Likewise.
38779         * doc/posix-functions/setenv.texi (setenv): Document this.
38780         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38781
38782 2009-12-11  Bruno Haible  <bruno@clisp.org>
38783
38784         New module 'fd-safer-flag'.
38785         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38786         * lib/dup-safer.c (dup_safer_flag): Remove function.
38787         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38788         * lib/fd-safer.c (fd_safer_flag): Remove function.
38789         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38790         * modules/cloexec (configure.ac): Drop indicator macro.
38791         * modules/fd-safer-flag: New file.
38792         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38793         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38794         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38795
38796 2009-12-11  Bruno Haible  <bruno@clisp.org>
38797
38798         Tests for module 'nl_langinfo'.
38799         * modules/nl_langinfo-tests: New file.
38800         * tests/test-nl_langinfo.sh: New file.
38801         * tests/test-nl_langinfo.c: New file.
38802
38803         New module 'nl_langinfo'.
38804         * lib/nl_langinfo.c: New file.
38805         * m4/nl_langinfo.m4: New file.
38806         * modules/nl_langinfo: New file.
38807         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38808
38809 2009-12-11  Bruno Haible  <bruno@clisp.org>
38810
38811         Tests for module 'langinfo'.
38812         * modules/langinfo-tests: New file.
38813         * tests/test-langinfo.c: New file.
38814
38815         New module 'langinfo'.
38816         * lib/langinfo.in.h: New file.
38817         * m4/langinfo_h.m4: New file.
38818         * modules/langinfo: New file.
38819         * doc/posix-headers/langinfo.texi: Mention the new module.
38820
38821 2009-12-11  Bruno Haible  <bruno@clisp.org>
38822
38823         * lib/config.charset: Untabify.
38824
38825 2009-12-11  Bruno Haible  <bruno@clisp.org>
38826
38827         * modules/unistd-safer (configure.ac): Drop indicator macro.
38828
38829 2009-12-11  Bruno Haible  <bruno@clisp.org>
38830
38831         Move pipe2-safer code to its own file.
38832         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38833         * lib/pipe-safer.c (pipe2_safer): Remove function.
38834         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38835         (Makefile.am): Add it to lib_SOURCES.
38836
38837 2009-12-10  Bruno Haible  <bruno@clisp.org>
38838
38839         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38840
38841 2009-12-10  Bruno Haible  <bruno@clisp.org>
38842
38843         Declare which arguments expect non-NULL values, for GCC and clang.
38844         * build-aux/arg-nonnull.h: New file.
38845         * modules/arg-nonnull: New file.
38846         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38847         (inet_ntop, inet_pton): Use it.
38848         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38849         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38850         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38851         (open, openat): Use it.
38852         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38853         (fnmatch): Use it.
38854         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38855         (getopt, getopt_long, getopt_long_only): Use it.
38856         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38857         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38858         Use it.
38859         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38860         (iconv_open): Use it.
38861         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38862         (strtoimax, strtoumax): Use it.
38863         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38864         (duplocale): Use it.
38865         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38866         (frexp, frexpl): Use it.
38867         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38868         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38869         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38870         (tsearch, tfind, tdelete, twalk): Use it.
38871         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38872         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38873         sigpending): Use it.
38874         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38875         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38876         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38877         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38878         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38879         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38880         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38881         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38882         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38883         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38884         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38885         Use it.
38886         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38887         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38888         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38889         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38890         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38891         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38892         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38893         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38894         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38895         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38896         strtoull, unsetenv): Use it.
38897         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38898         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38899         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38900         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38901         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38902         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38903         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38904         (strcasecmp, strncasecmp): Use it.
38905         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38906         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38907         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38908         rpl_setsockopt): Use it.
38909         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38910         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38911         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38912         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38913         (gettimeofday): Use it.
38914         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38915         (times): Use it.
38916         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38917         (uname): Use it.
38918         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38919         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38920         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38921         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38922         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38923         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38924         unlinkat, write): Use it.
38925         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38926         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38927         * lib/argv-iter.h: Include arg-nonnull.h.
38928         (_ATTRIBUTE_NONNULL_): Remove macro.
38929         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38930         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38931         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38932         optimization.
38933         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38934         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38935         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38936         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38937         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38938         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38939         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38940         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38941         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38942         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38943         * modules/dirent (Depends-on): Add arg-nonnull.
38944         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38945         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38946         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38947         * modules/fnmatch (Depends-on): Add arg-nonnull.
38948         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38949         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38950         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38951         * modules/glob (Depends-on): Add arg-nonnull.
38952         (Makefile.am): Insert arg-nonnull.h into glob.h.
38953         * modules/iconv_open (Depends-on): Add arg-nonnull.
38954         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38955         * modules/inttypes (Depends-on): Add arg-nonnull.
38956         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38957         * modules/locale (Depends-on): Add arg-nonnull.
38958         (Makefile.am): Insert arg-nonnull.h into locale.h.
38959         * modules/math (Depends-on): Add arg-nonnull.
38960         (Makefile.am): Insert arg-nonnull.h into math.h.
38961         * modules/netdb (Depends-on): Add arg-nonnull.
38962         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38963         * modules/search (Depends-on): Add arg-nonnull.
38964         (Makefile.am): Insert arg-nonnull.h into search.h.
38965         * modules/signal (Depends-on): Add arg-nonnull.
38966         (Makefile.am): Insert arg-nonnull.h into signal.h.
38967         * modules/spawn (Depends-on): Add arg-nonnull.
38968         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38969         * modules/stdio (Depends-on): Add arg-nonnull.
38970         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38971         * modules/stdlib (Depends-on): Add arg-nonnull.
38972         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38973         * modules/string (Depends-on): Add arg-nonnull.
38974         (Makefile.am): Insert arg-nonnull.h into string.h.
38975         * modules/strings (Depends-on): Add arg-nonnull.
38976         (Makefile.am): Insert arg-nonnull.h into strings.h.
38977         * modules/sys_socket (Depends-on): Add arg-nonnull.
38978         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38979         * modules/sys_stat (Depends-on): Add arg-nonnull.
38980         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38981         * modules/sys_time (Depends-on): Add arg-nonnull.
38982         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38983         * modules/sys_times (Depends-on): Add arg-nonnull.
38984         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38985         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38986         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38987         * modules/time (Depends-on): Add arg-nonnull.
38988         (Makefile.am): Insert arg-nonnull.h into time.h.
38989         * modules/unistd (Depends-on): Add arg-nonnull.
38990         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38991         * modules/wchar (Depends-on): Add arg-nonnull.
38992         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38993         * modules/argv-iter (Depends-on): Add arg-nonnull.
38994         * tests/test-canonicalize.c (null_ptr): New function.
38995         (main): Use it.
38996         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38997         (main): Use it.
38998         * tests/test-memmem.c (null_ptr): New function.
38999         (main): Use it.
39000         Reported by Jim Meyering.
39001
39002 2009-12-10  Bruno Haible  <bruno@clisp.org>
39003
39004         Use spaces for indentation, not tabs.
39005         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
39006         * m4/*.m4: Untabify.
39007         * build-aux/*.h: Untabify.
39008         * tests/**/*.[hc]: Untabify.
39009         * README: New section "Indent with spaces, not TABs", based on
39010         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39011         * NEWS: Mention the change.
39012
39013 2009-12-10  Bruno Haible  <bruno@clisp.org>
39014
39015         pty test: Fix link error.
39016         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39017         test_pty_LDADD.
39018
39019 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39020
39021         * modules/pty: New file.
39022         * modules/pty-tests: New file.
39023         * m4/pty.m4: New file.
39024         * tests/test-pty.c: New file.
39025         * doc/glibc-headers/pty.texi: Modified.
39026         * doc/glibc-functions/forkpty.texi: Modified.
39027         * doc/glibc-functions/openpty.texi: Modified.
39028
39029 2009-12-10  Bruno Haible  <bruno@clisp.org>
39030
39031         Avoid syntax error in C++ mode.
39032         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39033
39034 2009-12-10  Bruno Haible  <bruno@clisp.org>
39035
39036         Use sed with option -e.
39037         * gnulib-tool (func_version, func_emit_copyright_notice,
39038         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39039         option -e to sed.
39040         * modules/link-warning (Makefile.am): Likewise.
39041
39042 2009-12-10  Jim Meyering  <meyering@redhat.com>
39043
39044         mgetgroups: do not write bytes beyond end of malloc'd buffer
39045         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39046         username, we call getgroups with a one-element-shorter buffer,
39047         but still told it the length was original, max_n_groups.
39048
39049 2009-12-09  Eric Blake  <ebb9@byu.net>
39050
39051         cloexec: relax license
39052         * modules/cloexec (Maintainer): Add myself.
39053         (License): Use LGPL, not GPL.
39054
39055         link-warning: optimize generation
39056         * modules/link-warning (Makefile.am): Reduce process usage.
39057
39058 2009-12-09  Bruno Haible  <bruno@clisp.org>
39059
39060         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39061         workaround was added on 2009-11-17.
39062
39063 2009-12-09  Jim Meyering  <meyering@redhat.com>
39064             Bruno Haible  <bruno@clisp.org>
39065
39066         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39067         * modules/link-warning (Makefile.am): Make the comment-removing sed
39068         command more robust in the face of bootstrap-prepended comment lines.
39069
39070 2009-12-09  Bruno Haible  <bruno@clisp.org>
39071
39072         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39073         most one group.
39074
39075 2009-12-09  Simon Josefsson <simon@josefsson.org>
39076             Bruno Haible  <bruno@clisp.org>
39077
39078         * build-aux/link-warning.h: Add copyright notice.
39079         * modules/link-warning (Makefile.am): Generate link-warning.h from
39080         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39081         * NEWS: Mention change in link-warning module.
39082         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39083         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39084         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39085         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39086         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39087         * modules/math (Makefile.am): Add dependency to math.h.
39088         * modules/search (Makefile.am): Add dependency to search.h.
39089         * modules/signal (Makefile.am): Add dependency to signal.h.
39090         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39091         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39092         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39093         * modules/string (Makefile.am): Add dependency to string.h.
39094         * modules/strings (Makefile.am): Add dependency to strings.h.
39095         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39096         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39097         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39098         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39099         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39100         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39101         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39102         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39103         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39104
39105 2009-12-09  Bruno Haible  <bruno@clisp.org>
39106
39107         fchdir: Optimize away rpl_fstat when possible.
39108         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39109         REPLACE_OPEN_DIRECTORY.
39110         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39111
39112 2009-12-09  Bruno Haible  <bruno@clisp.org>
39113
39114         * lib/fchdir.c: Update comment.
39115
39116 2009-12-09  Bruno Haible  <bruno@clisp.org>
39117
39118         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39119
39120 2009-12-08  Eric Blake  <ebb9@byu.net>
39121
39122         fchdir: avoid memory leak on re-registration.
39123         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39124
39125 2009-12-08  Jim Meyering  <meyering@redhat.com>
39126
39127         init.sh: avoid Solaris 10 /bin/sh portability problem
39128         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39129         sourced script:
39130           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39131           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39132           bar
39133         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39134         and two tests used that idiom.
39135         * tests/init.sh: Update suggested usage comments.
39136         (path_prepend_): New function, to be used in place
39137         of the --src-path=DIR option.
39138         (setup_): Move PATH-prepending code into path_prepend_.
39139         * tests/test-pread.sh: Adapt to new usage.
39140         * tests/test-xalloc-die.sh: Likewise.
39141
39142 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39143
39144         * doc/gnulib.texi (Glibc pty.h): Add.
39145         * doc/glibc-functions/forkpty.texi: Add.
39146         * doc/glibc-functions/openpty.texi: Add.
39147         Suggested by Bruno Haible.
39148
39149 2009-12-08  Eric Blake  <ebb9@byu.net>
39150
39151         fchdir: fix logic bugs
39152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39153         * tests/test-fchdir.c (main): Enhance test.
39154         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39155         is in use.
39156
39157         dup2: fix logic bugs
39158         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39159         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39160         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39161         exists.
39162         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39163
39164 2009-12-07  Eric Blake  <ebb9@byu.net>
39165
39166         unlink: fix m4 detection
39167         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39168
39169         unistd-safer: add unit test
39170         * modules/unistd-safer-tests: New file.
39171         * tests/test-dup-safer.c: Likewise.
39172         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39173         * tests/test-dup2.c (setmode): Likewise.
39174         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39175
39176         cloexec: preserve text vs. binary across dup_cloexec
39177         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39178         mode.
39179         * modules/dup2-tests (Depends-on): Add binary-io.
39180         * modules/cloexec-tests (Depends-on): Likewise.
39181         * tests/test-dup2.c (setmode, is_mode): New helpers.
39182         (main): Add tests that translation mode is preserved.
39183         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39184         Reported by Bruno Haible.
39185
39186         mgetgroups: reduce duplicate listings
39187         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39188         resulting array.
39189         * tests/test-chown.h (test_chown): Simplify client.
39190         * tests/test-lchown.h (test_lchown): Likewise.
39191
39192 2009-12-06  Bruno Haible  <bruno@clisp.org>
39193
39194         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39195         value.
39196
39197 2009-12-06  Bruno Haible  <bruno@clisp.org>
39198
39199         * lib/progname.c: Include stdio.h, stdlib.h.
39200         (set_program_name): Reject a NULL argument.
39201
39202 2009-12-05  Eric Blake  <ebb9@byu.net>
39203
39204         pipe2-safer: new module
39205         * modules/pipe2-safer: New file.
39206         * lib/unistd-safer.h (pipe2_safer): New prototype.
39207         * lib/unistd--.h (pipe2): New wrapper.
39208         * lib/pipe-safer.c (pipe2_safer): New function.
39209         * modules/pipe (Depends-on): Add pipe2-safer.
39210         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39211
39212         stdlib-safer: preserve cloexec flag for mkostemp[s]
39213         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39214         fd_safer_flag.
39215
39216         unistd-safer: allow preservation of cloexec status via flag
39217         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39218         prototypes.
39219         * lib/dup-safer.c (dup_safer_flag): New function.
39220         * lib/fd-safer.c (fd_safer_flag): Likewise.
39221         * modules/cloexec (configure.ac): Set witness.
39222
39223         test-dup2: enhance test
39224         * modules/dup2-tests (Depends-on): Add cloexec.
39225         * tests/test-dup2.c (main): Enhance test.
39226
39227         cloexec: add dup_cloexec
39228         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39229         header and comments.
39230         * lib/cloexec.c (set_cloexec_flag): Add comments.
39231         (dup_cloexec): New function, with mingw implementation borrowed
39232         from...
39233         * lib/w32spawn.h (dup_noinherit): ...here.
39234         * modules/execute (Depends-on): Add cloexec.
39235         * modules/pipe (Depends-on): Likewise.
39236         * modules/cloexec (Depends-on): Add dup2.
39237         * modules/cloexec-tests (Files): New file.
39238         * tests/test-cloexec.c: Likewise.
39239
39240         test-xalloc-die: fix test for mingw
39241         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39242         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39243         directory and .exe suffix off argv[0] output.
39244
39245         test-fseeko: fix test for mingw
39246         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39247         than undefining fseek, so test will pass on mingw.
39248
39249 2009-12-05  Bruno Haible  <bruno@clisp.org>
39250
39251         * lib/progname.h (set_program_name): Clarify specification.
39252         * lib/progname.c (set_program_name): Likewise.
39253         Reported by Jim Meyering.
39254
39255 2009-12-05  Jim Meyering  <meyering@redhat.com>
39256
39257         maint.mk: backslash-escape parens in default regexp
39258         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39259         backslash-escape the literal parentheses.
39260
39261         maint.mk: news-date-check: use grep -E
39262         * top/maint.mk (today): Define a Make variable, not a...
39263         (news-date-check): ...shell variable.
39264         (news-date-regexp): Use the Make variable.
39265         Use grep's -E option.  Change the failing diagnostic to mention
39266         the variable, $(news-date-regexp).
39267
39268 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39269
39270         maintainer-makefile: allow customization of NEWS entry format
39271         * top/maint.mk (news-date-regexp): New overridable variable.
39272         (news-date-check): Use it.
39273
39274 2009-12-04  Eric Blake  <ebb9@byu.net>
39275
39276         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39277         * lib/mgetgroups.h (xgetgroups): New prototype.
39278         * lib/mgetgroups.c (xgetgroups): New wrapper.
39279         (mgetgroups): Handle ENOSYS.
39280         * modules/mgetgroups (Depends-on): Add realloc.
39281         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39282
39283         mgetgroups: avoid argument promotion issues with -1
39284         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39285         for invalid gid_t.
39286         * tests/test-chown.h (getegid, test_chown): Likewise.
39287         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39288
39289 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39290
39291         exclude: Fix header file problems.
39292         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39293
39294 2009-12-01  Jim Meyering  <meyering@redhat.com>
39295
39296         fts: fts_open: do not let an empty string cause immediate failure
39297         This is required in support of GNU rm, for which the command
39298         "rm A '' B" must process and remove both A and B, in spite of
39299         the empty string argument.
39300         * lib/fts.c (fts_open): Do not let the presence of an empty string
39301         cause fts_open to fail immediately.  Most fts-using tools must be
39302         able to process all arguments, in order, and can be expected to
39303         diagnose such arguments themselves.
39304
39305 2009-11-30  Eric Blake  <ebb9@byu.net>
39306
39307         utimens: fix compilation error
39308         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39309         Declare variable at right scope.
39310
39311 2009-11-29  Jim Meyering  <meyering@redhat.com>
39312
39313         bootstrap: handle perl-5.11's changed --version output
39314         * build-aux/bootstrap (get_version): Handle perl separately,
39315         since perl-5.11's --version output is different.
39316
39317 2009-11-28  Jim Meyering  <meyering@redhat.com>
39318
39319         userspec: depend on the inttostr module, too
39320         * modules/userspec (Depends-on): Add inttostr.
39321
39322         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39323         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39324         number of MAXUID when it evaluates to (uid_t) -1.
39325         Likewise for group ID.  Reported by Matt McCutchen in
39326         <http://savannah.gnu.org/bugs/?28113>
39327
39328         userspec: reformat to use spaces, not TABs
39329         * lib/userspec.c: Expand TABs to spaces.
39330         Add Emacs' "indent-tabs-mode: nil" hint.
39331
39332 2009-11-27  Eric Blake  <ebb9@byu.net>
39333
39334         getopt-gnu: flush out another BSD bug
39335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39336         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39337         flush out BSD bug.
39338         * tests/test-getopt.h (test_getopt): End lists with NULL.
39339         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39340         (test_getopt_long_posix): Enhance test.
39341         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39342         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39343         getopt-gnu.
39344         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39345         Likewise.
39346
39347 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39348
39349         * modules/idpriv-droptemp-tests (Notice): Fix text.
39350
39351 2009-11-27  Jim Meyering  <meyering@redhat.com>
39352
39353         test-xalloc-die: avoid spurious failure due to libtool argv difference
39354         In a libtool-enabled project, this test would fail due to a difference
39355         in the emitted program name, e.g.,
39356         -test-xalloc-die: memory exhausted
39357         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39358         Use program to avoid that.
39359         * modules/xalloc-die-tests (Depends-on): Add progname.
39360         * tests/test-xalloc-die.c: Include progname.h".
39361         (program_name): Remove decl.
39362         (main): Call set_program_name.
39363         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39364
39365 2009-11-26  Richard Jones  <rjones@redhat.com>
39366
39367         w32sock: leave win32 error in place.
39368         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39369
39370 2009-11-26  Eric Blake  <ebb9@byu.net>
39371
39372         init.sh: suggest to use skip_ and fail_ functions in comments
39373         * tests/init.sh: Add a sentence.
39374
39375 2009-11-25  Bruno Haible  <bruno@clisp.org>
39376
39377         init.sh: add documentation in comments
39378         * tests/init.sh: Add some developer and user documentation.
39379
39380 2009-11-26  Jim Meyering  <meyering@redhat.com>
39381
39382         init.sh: accommodate even those who specify bogus srcdir manually
39383         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39384         configure-time tests to be sanitized, so that there is no need to
39385         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39386         (with no double quotes) suffices.  However, since tests may be
39387         invoked manually, and since you may explicitly set srcdir to the
39388         name of a directory containing spaces, do quote its uses here.
39389         * tests/test-pread.sh: Likewise.
39390         Suggested by Bruno Haible.
39391
39392         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39393         * tests/test-pread.sh: Write no data into the pipe, because
39394         test-pread actually reads none.  This avoids a diagnostic,
39395         "bash: echo: write error: Broken pipe", that arises in the unusual
39396         event something is ignoring SIGPIPE, and might be interpreted
39397         as some sort of failure.  Reported by Bruno Haible.
39398
39399 2009-11-25  Jim Meyering  <meyering@redhat.com>
39400
39401         test-pread: cover failure with ESPIPE and EINVAL
39402         * tests/test-pread.c (main): Test for failure, too.
39403         * tests/test-pread.sh: Invoke with stdin on a pipe.
39404         Suggested by Eric Blake.
39405
39406         pread: improvement and fix
39407         * modules/pread (Depends-on): Depend on lseek, for portability to
39408         e.g., mingw.  Suggested by Eric Blake.
39409         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39410
39411         unistd.in.h: correct declaration of pread
39412         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39413         Reported by Richard W.M. Jones.
39414
39415         test-pread.sh: distribute the test script
39416         * modules/pread-tests (Files): Include test-pread.sh.
39417
39418         test-pread.sh: clean up
39419         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39420         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39421         That is unnecessary, since it's always ".".
39422         Suggestion from Eric Blake.
39423
39424         test-pread.sh: make executable
39425         * tests/test-pread.sh: Set executable bit.
39426         Reported by Eric Blake.
39427
39428         correct typo in test-pread.sh
39429         * tests/test-pread.sh: Add #! line.
39430
39431         test pread
39432         * tests/test-pread.c: New file.
39433         * tests/test-pread.sh: Likewise.
39434         * modules/pread-tests: Likewise.
39435
39436         pread: new module
39437         * modules/pread: New file.
39438         * lib/unistd.in.h (pread): Define/declare.
39439         * lib/pread.c (pread): New file.
39440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39441         * modules/unistd (Makefile.am): Substitute witnesses.
39442         * doc/posix-functions/pread.texi (pread): Update.
39443         * MODULES.html.sh: Add pread.
39444
39445 2009-11-25  Jim Meyering  <meyering@redhat.com>
39446
39447         tests/init.sh: new file to be used via most *.sh tests
39448         * tests/init.sh: New file.
39449
39450 2009-11-25  Eric Blake  <ebb9@byu.net>
39451
39452         utimens: work around older Linux failure with symlinks
39453         * lib/utimens.c (lutimensat_works_really): New variable.
39454         (fdutimens, lutimens): Use it to manage kernels that support
39455         nanosecond times on files, but not on symlinks.
39456         Reported by Ondřej Vašík.
39457
39458         utimes: fix configure grammar
39459         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39460
39461 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39462
39463         regex: Fix fastmap for multibyte character ranges.
39464         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39465         characters when a multibyte character range is included.
39466
39467 2009-11-22  Andy Wingo  <wingo@pobox.com>
39468
39469         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39470         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39471
39472 2009-11-24  Bruno Haible  <bruno@clisp.org>
39473
39474         doc: Most *_l functions exist in MacOS X 10.5.
39475         * doc/posix-functions/duplocale.texi: Update platforms list.
39476         * doc/posix-functions/freelocale.texi: Likewise.
39477         * doc/posix-functions/newlocale.texi: Likewise.
39478         * doc/posix-functions/uselocale.texi: Likewise.
39479         * doc/posix-functions/isalnum_l.texi: Likewise.
39480         * doc/posix-functions/isalpha_l.texi: Likewise.
39481         * doc/posix-functions/isblank_l.texi: Likewise.
39482         * doc/posix-functions/iscntrl_l.texi: Likewise.
39483         * doc/posix-functions/isdigit_l.texi: Likewise.
39484         * doc/posix-functions/isgraph_l.texi: Likewise.
39485         * doc/posix-functions/islower_l.texi: Likewise.
39486         * doc/posix-functions/isprint_l.texi: Likewise.
39487         * doc/posix-functions/ispunct_l.texi: Likewise.
39488         * doc/posix-functions/isspace_l.texi: Likewise.
39489         * doc/posix-functions/isupper_l.texi: Likewise.
39490         * doc/posix-functions/iswalnum_l.texi: Likewise.
39491         * doc/posix-functions/iswalpha_l.texi: Likewise.
39492         * doc/posix-functions/iswblank_l.texi: Likewise.
39493         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39494         * doc/posix-functions/iswctype_l.texi: Likewise.
39495         * doc/posix-functions/iswdigit_l.texi: Likewise.
39496         * doc/posix-functions/iswgraph_l.texi: Likewise.
39497         * doc/posix-functions/iswlower_l.texi: Likewise.
39498         * doc/posix-functions/iswprint_l.texi: Likewise.
39499         * doc/posix-functions/iswpunct_l.texi: Likewise.
39500         * doc/posix-functions/iswspace_l.texi: Likewise.
39501         * doc/posix-functions/iswupper_l.texi: Likewise.
39502         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39503         * doc/posix-functions/isxdigit_l.texi: Likewise.
39504         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39505         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39506         * doc/posix-functions/strcoll_l.texi: Likewise.
39507         * doc/posix-functions/strfmon_l.texi: Likewise.
39508         * doc/posix-functions/strftime_l.texi: Likewise.
39509         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39510         * doc/posix-functions/strxfrm_l.texi: Likewise.
39511         * doc/posix-functions/tolower_l.texi: Likewise.
39512         * doc/posix-functions/toupper_l.texi: Likewise.
39513         * doc/posix-functions/towctrans_l.texi: Likewise.
39514         * doc/posix-functions/towlower_l.texi: Likewise.
39515         * doc/posix-functions/towupper_l.texi: Likewise.
39516         * doc/posix-functions/wcscoll_l.texi: Likewise.
39517         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39518         * doc/posix-functions/wctrans_l.texi: Likewise.
39519         * doc/posix-functions/wctype_l.texi: Likewise.
39520         * doc/glibc-functions/strptime_l.texi: Likewise.
39521         * doc/glibc-functions/strtod_l.texi: Likewise.
39522         * doc/glibc-functions/strtof_l.texi: Likewise.
39523         * doc/glibc-functions/strtol_l.texi: Likewise.
39524         * doc/glibc-functions/strtold_l.texi: Likewise.
39525         * doc/glibc-functions/strtoll_l.texi: Likewise.
39526         * doc/glibc-functions/strtoul_l.texi: Likewise.
39527         * doc/glibc-functions/strtoull_l.texi: Likewise.
39528         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39529         * doc/glibc-functions/wcstod_l.texi: Likewise.
39530         * doc/glibc-functions/wcstof_l.texi: Likewise.
39531         * doc/glibc-functions/wcstol_l.texi: Likewise.
39532         * doc/glibc-functions/wcstold_l.texi: Likewise.
39533         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39534         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39535         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39536
39537 2009-11-24  Bruno Haible  <bruno@clisp.org>
39538
39539         duplocale: Fix logic bug.
39540         * lib/duplocale.c: Don't include <langinfo.h>.
39541         (_NL_LOCALE_NAME): Remove macro.
39542         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39543         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39544
39545 2009-11-23  Jim Meyering  <meyering@redhat.com>
39546
39547         test-update-copyright: don't hard-code /usr/bin/perl
39548         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39549         perl to print the current year.  Gilles Espinasse reported that
39550         the replaced use of perl was hard-coded as /usr/bin/perl.
39551
39552 2009-11-23  Bruno Haible  <bruno@clisp.org>
39553
39554         duplocale: Add support for glibc 2.3.x.
39555         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39556
39557 2009-11-22  Bruno Haible  <bruno@clisp.org>
39558
39559         vasnprintf: Tiny optimization.
39560         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39561         MacOS X.
39562
39563 2009-11-22  Bruno Haible  <bruno@clisp.org>
39564
39565         Tests for module 'duplocale'.
39566         * modules/duplocale-tests: New file.
39567         * tests/test-duplocale.c: New file.
39568
39569         New module 'duplocale'.
39570         * m4/duplocale.m4: New file.
39571         * lib/locale.in.h (duplocale): New declaration.
39572         * lib/duplocale.c: New file.
39573         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39574         gl_LOCALE_H_DEFAULTS): New macros.
39575         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39576         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39577         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39578         REPLACE_DUPLOCALE.
39579         * modules/duplocale: New file.
39580         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39581
39582 2009-11-22  Bruno Haible  <bruno@clisp.org>
39583
39584         * modules/locale-tests (configure.ac): Test for newlocale function.
39585         * tests/test-locale.c: When the system has extended locale functions,
39586         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39587
39588         locale: Make locale_t available when possible.
39589         * lib/locale.in.h: Include <xlocale.h> when it exists.
39590         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39591         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39592         * modules/locale (Depends-on): Add extensions.
39593         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39594         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39595
39596 2009-11-22  Bruno Haible  <bruno@clisp.org>
39597
39598         Add comments.
39599         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39600         invocation.
39601         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39602         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39603         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39604
39605 2009-11-22  Bruno Haible  <bruno@clisp.org>
39606
39607         error: account for the possibility of freopen (stdout).
39608         * lib/error.c: Include <unistd.h>.
39609         (flush_stdout): New function, extracted from error and error_at_line.
39610         Determine stdout's fd dynamically.
39611         (error, error_at_line): Invoke flush_stdout.
39612         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39613         * modules/error (Depends-on): Add unistd.
39614
39615 2009-11-22  Bruno Haible  <bruno@clisp.org>
39616
39617         diffseq: Add comment.
39618         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39619
39620 2009-11-22  Jim Meyering  <meyering@redhat.com>
39621
39622         c-stack: avoid defining an unused static function
39623         * lib/c-stack.c (find_stack_direction): Do not define this function
39624         when it will not be used.
39625
39626         diffseq: avoid spurious gcc warnings
39627         * lib/diffseq.h (IF_LINT2): Define.
39628         (compareseq): Use it to initialize two members of "part".
39629         This avoids two used-uninitialized warnings.
39630
39631 2009-11-21  Jim Meyering  <meyering@redhat.com>
39632
39633         c-stack: avoid "ignoring return value of `write'" warning
39634         * lib/c-stack.c: Include "ignore-value.h".
39635         (die): Explicitly ignore each write return value.
39636         * modules/c-stack (Depends-on): Add ignore-value.
39637
39638 2009-11-21  Bruno Haible  <bruno@clisp.org>
39639
39640         diffseq: reduce scope of variable 'best'.
39641         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39642         variable, earlier used for two different purposes.
39643
39644 2009-11-21  Jim Meyering  <meyering@redhat.com>
39645
39646         diffseq: remove useless assignment to "best"
39647         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39648         assignment.  At that point "best" is already guaranteed to be zero.
39649
39650 2009-11-20  Eric Blake  <ebb9@byu.net>
39651
39652         build: mention ftp redirector in release announcements
39653         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39654         values that used to come from cfg.mk; mention FTP redirect URL.
39655         * build-aux/announce-gen: Mention the mirror list.
39656         Suggested by Karl Berry.
39657
39658         nanosleep: improve port to mingw
39659         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39661         LIB_NANOSLEEP, but only when needed.
39662         * modules/select (Link): Document LIBSOCKET.
39663         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39664         enough.
39665
39666         nanosleep: work around cygwin bug
39667         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39668         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39669         bug.
39670         (getnow): Delete, not needed.
39671         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39672         LIB_CLOCK_GETTIME.
39673         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39674         clock-time, gettime.
39675         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39676         bug.
39677         * modules/nanosleep-tests: New test.
39678         * tests/test-nanosleep.c: New file.
39679
39680         sleep: work around cygwin bug
39681         * lib/sleep.c (rpl_sleep): Work around the bug.
39682         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39683         (gl_PREREQ_SLEEP): Delete unused macro.
39684         * modules/sleep (Depends-on): Add verify.
39685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39686         * modules/unistd (Makefile.am): Substitute witness.
39687         * lib/unistd.in.h (sleep): Update prototype.
39688         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39689         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39690         * modules/sleep-tests (Depends-on): Check for alarm.
39691
39692 2009-11-20  Jim Meyering  <meyering@redhat.com>
39693
39694         maint.mk: improve sc_prohibit_magic_number_exit
39695         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39696         so it does not match uses like System.exit(1).
39697         Add comments showing how to correct all offenders.
39698
39699 2009-11-19  Eric Blake  <ebb9@byu.net>
39700
39701         xalloc-die-tests: add missing library
39702         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39703
39704         test-xvasprintf: silence compiler warnings
39705         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39706         empty string from gcc.
39707
39708 2009-11-19  Jim Meyering  <meyering@redhat.com>
39709
39710         xfreopen: new module, from coreutils
39711         * modules/xfreopen: New module.
39712         * lib/xfreopen.c: New file.
39713         * lib/xfreopen.h: New file.
39714         * MODULES.html.sh (File stream based Input/Output"): Add it.
39715
39716 2009-11-19  Eric Blake  <ebb9@byu.net>
39717
39718         manywarnings: depend on warnings
39719         * modules/manywarnings (Depends-on): Add warnings.
39720
39721         build: avoid compiler warnings
39722         * lib/select.c (rpl_select): Delete unused variable.
39723         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39724
39725 2009-11-18  Eric Blake  <ebb9@byu.net>
39726
39727         tests: avoid false negative with --with-packager
39728         * tests/test-version-etc.sh: Discard packager information.
39729         * tests/test-argp-version-etc-1.sh: Likewise.
39730         Reported by Mike Frysinger.
39731
39732         utimens: fix regression on Solaris
39733         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39734         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39735         can only change fd timestamps via futimesat.  Instead, use an
39736         additional witness macro to avoid BSD bug.
39737         Reported by Jim Meyering.
39738
39739 2009-11-17  Eric Blake  <ebb9@byu.net>
39740
39741         usleep: use it to simplify tests
39742         * modules/stat-time-tests (Depends-on): Add usleep.
39743         (configure.ac): Drop usleep check.
39744         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39745         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39746         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39747         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39748         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39749         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39750         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39751         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39752         Likewise.
39753         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39754         * tests/test-lchown.h (nap): Likewise.
39755         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39756         * tests/test-stat-time.c (nap): Likewise.
39757         * tests/test-utimens-common.h (nap): Update comments.
39758
39759         usleep: new module
39760         * modules/usleep: New file.
39761         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39762         * lib/usleep.c (usleep): Likewise.
39763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39764         * modules/unistd (Makefile.am): Substitute witnesses.
39765         * lib/unistd.in.h (usleep): Add declaration.
39766         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39767         * MODULES.html.sh (Date and time): Likewise.
39768         * modules/usleep-tests (Depends-on): New test.
39769         * tests/test-usleep.c: New file.
39770
39771         chown: work around OpenBSD bug
39772         * lib/chown.c (rpl_chown): Work around the bug.
39773         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39774         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39775         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39776         * modules/chown (Depends-on): Add stdbool.
39777         * modules/lchown (Depends-on): Likewise.
39778         * doc/posix-functions/chown.texi (chown): Document the bug.
39779         * doc/posix-functions/lchown.texi (lchown): Likewise.
39780         * tests/test-lchown.h (test_chown): Relax test.
39781
39782         mkstemp: avoid conflict with C++ keyword template
39783         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39784         * lib/mkostemp.c (mkostemp): Likewise.
39785         * lib/mkostemps.c (mkostemps): Likewise.
39786         * lib/mkstemp.c (mkstemp): Likewise.
39787         * lib/mkstemps.c (mkstemps): Likewise.
39788
39789         xalloc-die-tests: optimize
39790         * tests/test-xalloc-die.sh: Reduce number of processes.
39791
39792 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39793
39794         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39795         patch from ludo@gnu.org (Ludovic Courtès).
39796
39797 2009-11-17  Jim Meyering  <meyering@redhat.com>
39798
39799         version-etc: use proper license string
39800         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39801         * modules/version-etc-fsf: Likewise.
39802
39803 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39804
39805         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39806         printed to stdout.  Deal with EOL differences.
39807
39808 2009-11-17  Eric Blake  <ebb9@byu.net>
39809
39810         unsetenv: work around Solaris bug
39811         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39812         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39813         Reported by Jim Meyering.
39814
39815         vasnprintf: avoid compiler warnings
39816         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39817         variables.
39818         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39819
39820 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39821
39822         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39823         settings since xalloc-die is no longer the self test,
39824         xalloc-die.sh is.
39825
39826 2009-11-17  Jim Meyering  <meyering@redhat.com>
39827
39828         test-xalloc-die.sh: make the code agree with the commit log
39829         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39830         at the end, just in case you happen to have a test-xalloc-die
39831         program in some other PATH directory.
39832
39833         test-xalloc-die.sh: fix a portability bug
39834         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39835         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39836         Otherwise, argv[0] (as often seen in diagnostics) would be too
39837         system-dependent, sometimes with, and sometimes without the leading "./".
39838
39839         version-etc-fsf: relax license to LGPLv3+
39840         * modules/version-etc-fsf (License): Relax license.
39841
39842 2009-11-16  Eric Blake  <ebb9@byu.net>
39843
39844         xalloc-die-tests: avoid printing null pointer
39845         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39846         shell script.
39847         * tests/test-xalloc-die.c (program_name): Declare.
39848         * tests/test-xalloc-die.sh (tmpfiles): New file.
39849
39850         setenv, unsetenv: work around various bugs
39851         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39852         (setenv) [HAVE_SETENV]: Work around bugs.
39853         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39854         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39855         for bugs.
39856         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39857         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39859         * modules/stdlib (Makefile.am): Update substitutions.
39860         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39861         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39862         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39863         * modules/setenv-tests: New test.
39864         * modules/unsetenv-tests: Likewise.
39865         * tests/test-setenv.c: New file.
39866         * tests/test-unsetenv.c: Likewise.
39867
39868 2009-11-16  Jim Meyering  <meyering@redhat.com>
39869
39870         version-etc: relax license to LGPLv3+
39871         * modules/version-etc (License): Relax license.
39872
39873         better AC_REQUIRE expanded-before-required-warning avoidance
39874         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39875         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39876         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39877         which is no longer needed.
39878
39879 2009-11-16  Eric Blake  <ebb9@byu.net>
39880
39881         test-freading: clean up temporary file
39882         * tests/test-freading.c (main): Remove file on success, and use
39883         ASSERT more liberally.
39884         Reported by Jim Meyering.
39885
39886 2009-11-16  Jim Meyering  <meyering@redhat.com>
39887
39888         avoid new AC_REQUIRE expanded-before-required warnings
39889         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39890         merely using it.
39891         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39892         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39893
39894 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39895
39896         * tests/test-xalloc-die.c: New file.
39897         * modules/xalloc-die-tests: New file.
39898         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39899         XFAIL_TESTS so it can be appended by modules.
39900
39901 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39902
39903         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39904         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39905
39906 2009-11-14  Eric Blake  <ebb9@byu.net>
39907
39908         fnmatch: avoid compiler warning
39909         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39910         to silence compiler warning about mismatch signedness in ?:.
39911         Reported by Robert Millan.
39912
39913         intprops: add double-inclusion guard
39914         * lib/intprops.h: Allow idempotent includes.
39915         Suggested by Bruce Korb.
39916
39917         openat: detect Solaris fchownat bug
39918         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39919         penalizing glibc chownat when only lchownat is broken.
39920         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39921         trailing slash bugs.
39922         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39923         * modules/openat-tests (Files): Include more files.
39924         (Depends-on): Add mgetgroups, sleep, stat-time.
39925         (configure.ac): Add additional checks.
39926         (Makefile.am): Build new test.
39927         * tests/test-fchownat.c: New file.
39928
39929         lchown: detect Solaris and FreeBSD bug
39930         * lib/lchown.c (rpl_lchown): Work around bug.
39931         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39933         * modules/unistd (Makefile.am): Populate it.
39934         * lib/unistd.in.h (lchown): Update declaration.
39935         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39936         * modules/lchown-tests: New file.
39937         * tests/test-lchown.h (test_lchown): Likewise.
39938         * tests/test-lchown.c (main): Likewise.
39939
39940         chown: detect Solaris and FreeBSD bug
39941         * lib/chown.c (rpl_chown): Work around bug.
39942         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39943         (gl_PREREQ_CHOWN): Delete.
39944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39945         * modules/unistd (Makefile.am): Populate it.
39946         * lib/unistd.in.h (chown): Update declaration.
39947         * lib/lchown.c (chown): Update client.
39948         * modules/lchown (Depends-on): Add lstat.
39949         * doc/posix-functions/chown.texi (chown): Document the bug.
39950         * doc/posix-functions/getgroups.texi (getgroups): Document
39951         getgroups pitfall.
39952         * modules/chown-tests: New file.
39953         * tests/test-chown.h (test_chown): Likewise.
39954         * tests/test-chown.c (main): Likewise.
39955
39956 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39957
39958         gnulib-tool: correctly detect absence of m4 directories
39959         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39960
39961 2009-11-14  Jim Meyering  <meyering@redhat.com>
39962
39963         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39964         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39965
39966 2009-11-14  John W. Eaton  <jwe@gnu.org>
39967
39968         strftime.h: wrap function declaration in extern "C" block
39969         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39970
39971 2009-11-13  Eric Blake  <ebb9@byu.net>
39972
39973         getgroups: avoid compiler warning
39974         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39975
39976         getgroups: work around FreeBSD bug
39977         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39978         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39979         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39980         * tests/test-getgroups.c (main): Fix buffer overrun.
39981
39982         getgroups: avoid compilation failure
39983         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39984         * modules/getgroups (Depends-on): Add stdint.
39985
39986 2009-11-13  Jim Meyering  <meyering@redhat.com>
39987
39988         test-getgroups: avoid compilation failure
39989         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39990
39991 2009-11-13  Eric Blake  <ebb9@byu.net>
39992
39993         mgetgroups: new module, taken from coreutils
39994         * modules/mgetgroups: New file.
39995         * lib/mgetgroups.h: Likewise.
39996         * lib/mgetgroups.c (mgetgroups): Likewise.
39997         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39998         * MODULES.html.sh (Users and groups): Mention it.
39999
40000         getgroups: don't expose GETGROUPS_T to user
40001         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
40002         an element at a time if GETGROUPS_T is wrong size.
40003         * lib/getugroups.h (getugroups): Change signature.
40004         * lib/unistd.in.h (getgroups): Likewise.
40005         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
40006         signature needs fixing.
40007         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
40008         AC_TYPE_GETGROUPS.
40009         * modules/group-member (Depends-on): Add getgroups.
40010         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40011         (group_member): Rely on getgroups replacement.
40012         * lib/getugroups.c (getugroups): Use gid_t.
40013         * tests/test-getgroups.c (main): Likewise.
40014         * NEWS: Mention the signature change.
40015         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40016         problem with signature.
40017         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40018         GETGROUPS_T is still useful for setgroups.
40019
40020         getgroups, getugroups: provide stubs for mingw
40021         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40022         * lib/getugroups.c (getugroups): Likewise.
40023         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40024         function.  Modernize replacement scheme.
40025         (gl_PREREQ_GETGROUPS): Delete.
40026         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40027         * modules/getgroups (configure.ac): Declare witness.
40028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40029         * modules/unistd (Depends-on): Substitute witness.
40030         * lib/unistd.in.h (getgroups): Declare replacement.
40031
40032         getgroups: avoid calling exit
40033         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40034         drop xalloc.
40035         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40036         dependencies.
40037         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40038         exiting, in the rare case of malloc failure.
40039
40040         getgroups: fix logic error
40041         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40042         has more than 20 groups.
40043         * modules/getgroups-tests: New test.
40044         * tests/test-getgroups.c: New file.
40045
40046 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40047
40048         * tests/test-base64.c: Improve.
40049
40050 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40051
40052         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40053         Blake <ebb9@byu.net>.
40054
40055 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40056
40057         * tests/test-xvasprintf.c: Add %s%s related checks.
40058
40059 2009-11-12  Eric Blake  <ebb9@byu.net>
40060
40061         version-etc: match standards.texi style
40062         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40063         and use <> only for URLs.
40064
40065 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40066
40067         fts: do not fail on a submount during traversal
40068         * lib/fts.c (fts_build): Read the stat info again after opening
40069         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40070         Original report at http://bugzilla.redhat.com/501848.
40071
40072 2009-11-12  Jim Meyering  <meyering@redhat.com>
40073
40074         bootstrap: sync from coreutils
40075         * build-aux/bootstrap (bootstrap_epilogue): New function.
40076         Use git_modules_config in one more place.  This make bootstrap's
40077         --gnulib-srcdir option more useful for testing.
40078
40079         bootstrap: generalize autoheader check
40080         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40081         AC_CONFIG_HEADERS.
40082
40083 2009-11-11  Eric Blake  <ebb9@byu.net>
40084
40085         mkfifoat: use new modules for Solaris and BSD bugs
40086         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40087         * lib/mkfifoat.c (mknodat): Split...
40088         * lib/mknodat.c (mknodat): ...into new file.
40089         * modules/mkfifoat (Files): Ship new file.
40090         (Depends-on): Add mkfifo, mknod.
40091         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40092         (Depends-on): Add symlink.
40093         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40094         redundant with test_mkfifo.h.
40095         (do_mkfifoat, do_mknodat): New helpers.
40096
40097         mknod: new module
40098         * modules/mknod: New file.
40099         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40100         * lib/mknod.c (mknod): Likewise.
40101         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40102         defaults.
40103         * modules/sys_stat (Makefile.am): Substitute them.
40104         * lib/sys_stat.in.h (mknod): Declare replacement.
40105         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40106         Document it.
40107         * doc/posix-functions/mknod.texi (mknod): Likewise.
40108         * modules/mknod-tests: New test.
40109         * tests/test-mknod.c: Likewise.
40110
40111         mkfifo: new module
40112         * modules/mkfifo: New file.
40113         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40114         * lib/mkfifo.c (mkfifo): Likewise.
40115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40116         defaults.
40117         * modules/sys_stat (Makefile.am): Substitute them.
40118         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40119         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40120         Document it.
40121         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40122         * modules/mkfifo-tests: New test.
40123         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40124         from test-mkfifoat.c.
40125         * tests/test-mkfifo.c: New file.
40126
40127         readlink: detect FreeBSD bug
40128         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40129         slash on symlink.
40130         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40131         * tests/test-readlink.h (test_readlink): Enhance test.
40132
40133         symlink: detect FreeBSD bug
40134         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40135         slash on symlink.
40136         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40137         * tests/test-symlink.h (test_symlink): Enhance test.
40138
40139 2009-11-10  Eric Blake  <ebb9@byu.net>
40140
40141         link: detect FreeBSD bug
40142         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40143         symlink.
40144         * doc/posix-functions/link.texi (link): Document the bug.
40145         * tests/test-link.h (test_link): Enhance test.
40146         * tests/test-linkat.c (main): Update caller.
40147
40148         unlink, remove: detect FreeBSD bug
40149         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40150         slash on symlink.
40151         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40152         * doc/posix-functions/remove.texi (remove): Likewise.
40153         * tests/test-unlink.h (test_unlink): Enhance test.
40154         * tests/test-remove.c (main): Likewise.
40155
40156 2009-11-09  Eric Blake  <ebb9@byu.net>
40157
40158         rename: detect FreeBSD bug
40159         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40160         slash on symlink.
40161         * modules/renameat-tests (Depends-on): Add filenamecat.
40162         * tests/test-rename.h (test_rename): Allow one more errno.
40163         * tests/test-renameat.c (main): Likewise.
40164         * doc/posix-functions/rename.texi (rename): Document the bug.
40165
40166         open: detect FreeBSD bug
40167         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40168         symlink.
40169         * doc/posix-functions/open.texi (open): Document the bug.
40170         * doc/posix-functions/utimes.texi (utimes): Likewise.
40171         * tests/test-open.h (test_open): Add parameters, and test symlink
40172         handling.
40173         * tests/test-open.c (main): Adjust caller.
40174         * tests/test-fcntl-safer.c (main): Likewise.
40175         * modules/open-tests (Depends-on): Add stdbool, symlink.
40176         * modules/fcntl-safer-tests (Depends-on): Likewise.
40177         * tests/test-openat.c (main): Add test-open tests.
40178
40179         stat: detect FreeBSD bug
40180         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40181         symlink.
40182         * doc/posix-functions/stat.texi (stat): Document the bug.
40183         * tests/test-stat.h (test_stat_func): Add argument.
40184         * tests/test-stat.c (main): Adjust caller.
40185         * tests/test-fstatat.c (main): Likewise.
40186         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40187         Reported by Jim Meyering.
40188
40189 2009-11-09  James Youngman  <jay@gnu.org>
40190
40191         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40192         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40193
40194 2009-11-08  Jim Meyering  <meyering@redhat.com>
40195
40196         utimens: remove invalid futimesat call
40197         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40198         It used the file descriptor of the target file as the DIR_FD
40199         parameter and NULL as the file name.  That caused failure with
40200         errno == EFAULT on FreeBSD-8.0-rc2
40201
40202 2009-11-07  Eric Blake  <ebb9@byu.net>
40203
40204         fflush, freadseek: use fseeko, not fseek
40205         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40206         (clear_ungetc_buffer): Avoid potential problems on large files.
40207         * lib/freadseek.c (freadseek): Likewise.
40208         * modules/freadseek (Depends-on): Add fseeko.
40209         * modules/fseek (configure.ac): Set a witness.
40210         * tests/test-fflush.c (main): Use fseeko.
40211         * tests/test-fpurge.c (fseek): Disable link warning.
40212         * tests/test-freadable.c (fseek): Likewise.
40213         * tests/test-freading.c (fseek): Likewise.
40214         * tests/test-fseeko.c (fseek): Likewise.
40215         * tests/test-ftell.c (fseek): Likewise.
40216         * tests/test-ftello.c (fseek): Likewise.
40217         * tests/test-fwritable.c (fseek): Likewise.
40218         * tests/test-fwriting.c (fseek): Likewise.
40219
40220 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40221
40222         * modules/memchr (Depends-on): Drop getpagesize dependency.
40223
40224 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40225
40226         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40227         Reported by Ludovic Courtès.
40228         * build-aux/pmccabe2html: Improve example usage.
40229         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40230
40231 2009-11-06  Jim Meyering  <meyering@redhat.com>
40232
40233         do-release-commit-and-tag: New module.
40234         Automate the release-commit and tag process.
40235         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40236         * modules/do-release-commit-and-tag: New file.
40237         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40238
40239 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40240
40241         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40242         because test-select.c uses inet_pton.
40243
40244 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40245
40246         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40247         GETADDRINFO_LIB.  Bump serial number.
40248         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40249         Suggested by Eric Blake <ebb9@byu.net>.
40250
40251 2009-11-05  Eric Blake  <ebb9@byu.net>
40252
40253         strtod: detect darwin bug
40254         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40255         Reported by Leo Davis.
40256
40257         freopen-safer: new module
40258         * modules/freopen-safer: New module.
40259         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40260         * lib/freopen-safer.c (freopen_safer): New file.
40261         * lib/stdio-safer.h (freopen_safer): New declaration.
40262         * lib/stdio--.h (freopen): New override.
40263         * MODULES.html.sh (File stream based Input/Output): Mention it.
40264         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40265         freopen-safer module.
40266         * doc/posix-functions/stderr.texi (stderr): Likewise.
40267         * doc/posix-functions/stdin.texi (stdin): Likewise.
40268         * doc/posix-functions/stdout.texi (stdout): Likewise.
40269         * modules/freopen-safer-tests: New test.
40270         * tests/test-reopen-safer.c: New file.
40271
40272 2009-11-05  Jim Meyering  <meyering@redhat.com>
40273
40274         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40275         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40276
40277 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40278
40279         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40280
40281 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40282
40283         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40284
40285 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40286
40287         Fix link error.
40288         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40289         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40290
40291 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40292
40293         * tests/test-func.c: Also test value of __func__.
40294
40295 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40296
40297         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40298         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40299
40300 2009-11-05  Bruno Haible  <bruno@clisp.org>
40301
40302         Fix link error.
40303         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40304         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40305         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40306
40307 2009-11-05  Bruno Haible  <bruno@clisp.org>
40308
40309         Tests for module 'inet_pton'.
40310         * modules/inet_pton-tests: New file.
40311         * tests/test-inet_pton.c: New file.
40312
40313 2009-11-05  Bruno Haible  <bruno@clisp.org>
40314
40315         Tests for module 'inet_ntop'.
40316         * modules/inet_ntop-tests: New file.
40317         * tests/test-inet_ntop.c: New file.
40318
40319 2009-11-04  Eric Blake  <ebb9@byu.net>
40320
40321         stdlib-safer: wrap all mkstemp variants
40322         * modules/mkostemp (configure.ac): Set witness.
40323         * modules/mkostemps (configure.ac): Likewise.
40324         * modules/mkstemps (configure.ac): Likewise.
40325         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40326         (mkstemps_safer): Wrap more functions.
40327         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40328         wrapping.
40329         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40330         (mkstemps_safer): Implement the wrappers.
40331
40332         mkstemps, mkostemps: new modules
40333         * modules/mkostemps: New module.
40334         * modules/mkstemps: Likewise.
40335         * lib/mkostemps.c (mkostemps): New file.
40336         * lib/mkstemps.c (mkstemps): Likewise.
40337         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40338         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40340         * modules/stdlib (Makefile.am): Substitute them.
40341         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40342         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40343         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40344         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40345         * MODULES.html.sh (File system functions): Mention them.
40346
40347         tempname: resync from glibc
40348         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40349         same values for __GT_FILE as glibc.  Abort even when assertions
40350         are disabled.
40351         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40352         match its value otherwise.  Allow idempotent inclusion.
40353         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40354         * lib/mkostemp.c (mkostemp): Likewise.
40355         * lib/mkstemp.c (mkstemp): Likewise.
40356         * lib/tmpfile.c (tmpfile): Likewise.
40357         * NEWS: Document this.
40358
40359         utimens: fix use of futimens on older Linux
40360         * lib/utimens.c (fdutimens): Use updated, rather than original,
40361         timespec to avoid bug in older Linux kernel.
40362         Reported by Simon Josefsson.
40363
40364 2009-11-04  Bruno Haible  <bruno@clisp.org>
40365
40366         Make num_processors more flexible and consistent.
40367         * lib/nproc.h (enum nproc_query): New type.
40368         (num_processors): Add a 'query' argument.
40369         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40370         (num_processors): Add a 'query' argument. Test the value of the
40371         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40372         mingw, count the number of CPUs available for the current process.
40373         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40374         Check for sched_getaffinity and sched_getaffinity_np.
40375         * modules/nproc (Depends-on): Add c-ctype, extensions.
40376         * NEWS: Mention the change.
40377
40378 2009-11-03  Bruno Haible  <bruno@clisp.org>
40379
40380         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40381
40382 2009-11-03  Jim Meyering  <meyering@redhat.com>
40383
40384         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40385         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40386         if it is defined.
40387
40388 2009-11-02  Eric Blake  <ebb9@byu.net>
40389
40390         mktime, timegm: share common declaration
40391         * lib/mktime-internal.h: New file.
40392         * lib/mktime.c: Use it rather than open-coding a declaration.
40393         * lib/timegm.c: Likewise.
40394         * modules/mktime (Files): Ship it.
40395         * modules/timegm (Files): Likewise.
40396         Suggested by Bruno Haible.
40397
40398         test-update-copyright: update test to match script changes
40399         * tests/test-update-copyright.sh: Avoid hard-coding perl
40400         location.  Don't update *.bak created by earlier runs.
40401
40402 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40403             Simon Josefsson  <simon@josefsson.org>
40404             Bruno Haible  <bruno@clisp.org>
40405
40406         Fix link error on Solaris 8.
40407         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40408         also in libnsl. Define also INET_PTON_LIB.
40409         * modules/inet_pton (Link): New section.
40410
40411 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40412             Bruno Haible  <bruno@clisp.org>
40413
40414         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40415         * modules/inet_ntop (Link): New section.
40416         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40417
40418 2009-11-02  Eric Blake  <ebb9@byu.net>
40419
40420         maint: avoid compiler warnings in m4 macros
40421         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40422         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40423
40424 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40425
40426         * m4/pmccabe2html.m4: Remove file.
40427         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40428         function.  Change maintainer.
40429         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40430         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40431         Courtès).
40432
40433 2009-10-31  Eric Blake  <ebb9@byu.net>
40434
40435         fseeko: fix m4 regression
40436         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40437         regression from 2009-10-27.
40438         Reported by Ralf Wildenhues.
40439
40440 2009-10-31  Jim Meyering  <meyering@redhat.com>
40441
40442         inttostr: aesthetics and improved (compile-time) safety
40443         Define inttype_is_signed rather than inttype_is_unsigned,
40444         since the sole use is via "#if inttype_is_signed".
40445         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40446         inttype_is_unsigned.
40447         * lib/offtostr.c (inttype_is_signed): Likewise.
40448         * lib/uinttostr.c (inttype_is_signed): Likewise.
40449         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40450         * lib/inttostr.c (inttostr): Use verify to cross-check the
40451         inttype_is_signed value and the signedness of the actual type.
40452         * modules/inttostr (Depends-on): Add verify.
40453
40454 2009-10-30  Eric Blake  <ebb9@byu.net>
40455
40456         build: avoid compiler warnings
40457         * lib/fchmodat.c (lchmod): Mark unused variables.
40458         * lib/getopt.c (_getopt_initialize): Likewise.
40459         * lib/mktime.c (__mktime_internal): Provide prototype.
40460         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40461         older gcc that do not understand #pragma GCC diagnostic.
40462         * lib/uinttostr.c (inttype_is_unsigned): Define.
40463         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40464
40465 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40466
40467         stat: fix compilation on AIX
40468         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40469         only see struct stat64.
40470
40471 2009-10-30  Eric Blake  <ebb9@byu.net>
40472
40473         exclude: make more robust
40474         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40475         rather than masking a coding bug.
40476         Suggested by Bruno Haible.
40477
40478 2009-10-30  Jim Meyering  <meyering@redhat.com>
40479
40480         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40481         Rather than putting #!/usr/bin/perl on the first line,
40482         start with a variant of what's recommended by "man perlrun" that
40483         invokes the first "perl" program from your shell's search path.
40484         * build-aux/gitlog-to-changelog: Replace #!... as above.
40485         Add a "Local Variables" perl mode setting.
40486         Prompted by a patch from Ludovic Courtès.
40487         Improved by Eric Blake.
40488         * build-aux/useless-if-before-free: Likewise.
40489         * build-aux/announce-gen: Likewise.
40490         * build-aux/update-copyright: Likewise.
40491
40492 2009-10-29  Eric Blake  <ebb9@byu.net>
40493
40494         filenamecat-lgpl: adjust clients
40495         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40496         filenamecat.
40497         * modules/renameat (Depends-on): Likewise.
40498
40499         filenamecat: split into filenamecat-lgpl
40500         * modules/filenamecat-lgpl: New module.
40501         * modules/filenamecat (Files): Move library-safe files into
40502         filenamecat-lgpl.
40503         (Depends-on): Add filenamecat-lgpl.
40504         (configure.ac): Declare witness.
40505         * lib/filenamecat.h (file_name_concat): Only declare when using
40506         GPL module.
40507         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40508         Move...
40509         * lib/filenamecat-lgpl.c: ...into new file.
40510         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40511         (gl_FILE_NAME_CONCAT): Use it.
40512         * MODULES.html.sh (File system functions): Mention new module.
40513
40514         argp: avoid memory leak
40515         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40516         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40517         base_name, since the latter malloc()s and can call exit().
40518         Leak introduced 2006-07-03.
40519
40520         dirname-lgpl: adjust clients that don't need full dirname
40521         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40522         * modules/filenamecat (Depends-on): Likewise.
40523         * modules/linkat (Depends-on): Likewise.
40524         * modules/mkancesdirs (Depends-on): Likewise.
40525         * modules/mkdir (Depends-on): Likewise.
40526         * modules/openat (Depends-on): Likewise.
40527         * modules/savewd (Depends-on): Likewise.
40528         * modules/rename (Depends-on): Likewise.
40529         (License): Relax license.
40530         * modules/mkdir-tests (Depends-on): Drop progname.
40531         (Makefile.am): Delete unneeded LDADD.
40532         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40533
40534         dirname: split into dirname-lgpl
40535         * modules/dirname-lgpl: New module.
40536         * modules/dirname (Files): Move library-safe files into
40537         dirname-lgpl.
40538         (Depends-on): Add dirname-lgpl.
40539         (configure.ac): Declare witness.
40540         * modules/double-slash-root (License): Relax license.
40541         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40542         module.
40543         * lib/dirname.c (dir_len, mdir_name): Move...
40544         * lib/dirname-lgpl.c: ...into new file.
40545         * lib/basename.c (last_component, base_len): Move...
40546         * lib/basename-lgpl.c: ...into new file.
40547         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40548         (gl_DIRNAME): Use it.
40549         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40550         Mention new module.
40551         * modules/dirname-tests (Depends-on): Add progname.
40552         * tests/test-dirname.c (program_name): Delete.
40553
40554         mkdir: make safe for libraries
40555         * modules/mkdir (Depends-on): Drop xalloc.
40556         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40557         exit.
40558
40559         tests: avoid some compiler warnings
40560         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40561         literals.
40562         * tests/test-memchr.c (main): Avoid type mismatch.
40563         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40564         * tests/test-base64.c (main): Likewise.
40565         * tests/test-getdelim.c (main): Likewise.
40566         * tests/test-gethostname.c (main): Likewise.
40567         * tests/test-getline.c (main): Likewise.
40568         * tests/test-netinet_in.c (main): Likewise.
40569         * tests/test-select.c (open_server_socket, main): Likewise.
40570         * tests/test-select-stdin.c (main): Likewise.
40571         * tests/test-sockets.c (main): Likewise.
40572         * tests/test-strsignal.c (main): Likewise.
40573         * tests/test-sys_select.c (main): Likewise.
40574         * tests/test-sys_socket.c (main): Likewise.
40575         * tests/test-u64.c (main): Likewise.
40576         * tests/test-xfprintf-posix.c (main): Likewise.
40577         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40578
40579         sockets: avoid compiler warning
40580         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40581
40582         maint: detect usage(1) and other suspicious exits
40583         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40584
40585 2009-10-29  Jim Meyering  <meyering@redhat.com>
40586
40587         timespec: long-to-int truncation could make timespec_cmp malfunction
40588         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40589         a multiple of 2^32 nanoseconds as no difference.
40590
40591 2009-10-28  Jim Meyering  <meyering@redhat.com>
40592
40593         fprintftime: wrap macro code argument in "do {...} while(0)"
40594         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40595         cpy macro must be a statement that can be followed by a semicolon.
40596         Now that the else clause contains a comment and is hence longer
40597         than one line, I require curly braces.  That in turn requires
40598         that we wrap this code block in the standard do...while(0).
40599
40600         fprintftime: remove stray semicolon from previous change
40601         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40602
40603         fprintftime: avoid a warning about ignored fwrite return value
40604         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40605         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40606         that is unsafe.
40607         * modules/fprintftime (Depends-on): Add ignore-value.
40608
40609         exclude: avoid an unwarranted warning
40610         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40611
40612 2009-10-27  Eric Blake  <ebb9@byu.net>
40613
40614         fseek: avoid compilation failure when fflush is replaced
40615         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40616         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40617         module is in use.
40618         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40619         module is not in use; since REPLACE_FSEEK worked otherwise.
40620         (GNULIB_FTELLO): Likewise for ftell.
40621         Reported by Ian Beckwith and others.
40622
40623 2009-10-27  Bruno Haible  <bruno@clisp.org>
40624
40625         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40626         Reported by Jim Meyering.
40627
40628 2009-10-27  Jim Meyering  <jim@meyering.net>
40629             Bruno Haible  <bruno@clisp.org>
40630
40631         Avoid warning despite dropping the return value of fwrite.
40632         * lib/unicodeio.c: Include ignore-value.h.
40633         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40634         * modules/unicodeio (Depends-on): Add ignore-value.
40635
40636 2009-10-26  Eric Blake  <ebb9@byu.net>
40637
40638         areadlinkat: fix fallback path
40639         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40640         pointer and zero.
40641
40642 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40643
40644         Use a better IO block size for modern systems
40645         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40646         * lib/md2.c: Likewise.
40647         * lib/md4.c: Likewise.
40648         * lib/md5.c: Likewise.
40649         * lib/sha1.c: Likewise.
40650         * lib/sha256.c: Likewise.
40651         * lib/sha512.c: Likewise.
40652
40653 2009-10-22  Eric Blake  <ebb9@byu.net>
40654
40655         tests: avoid several compiler warnings
40656         * tests/test-getcwd.c (main): Avoid buffer underflow.
40657         * tests/test-getdate.c (main): String literals are not safe with
40658         putenv, so use setenv.  Declare unused argument.
40659         * modules/getdate-tests (Depends-on): Add setenv.
40660         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40661         problems with string literals in char *.
40662         * tests/test-hash.c (main): Avoid shadowing declaration.
40663         (insert_new): Treat string literals as char const *.
40664         * tests/test-getopt.h (test_getopt): Likewise.
40665         (getopt_loop): Alter types to minimize casting elsewhere.
40666         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40667         (test_getopt_long_posix): Likewise.
40668         (do_getopt_long): Add wrapper to minimize casting.
40669         * tests/test-atexit.c (clear_temp_file): Use void.
40670         * tests/test-areadlink-with-size.c (main): Declare unused
40671         arguments.
40672         * tests/test-areadlink.c (main): Likewise.
40673         * tests/test-areadlinkat-with-size.c (main): Likewise.
40674         * tests/test-areadlinkat.c (main): Likewise.
40675         * tests/test-canonicalize-lgpl.c (main): Likewise.
40676         * tests/test-canonicalize.c (main): Likewise.
40677         * tests/test-dirent-safer.c (main): Likewise.
40678         * tests/test-dirname.c (main): Likewise.
40679         * tests/test-dup2.c (main): Likewise.
40680         * tests/test-fchdir.c (main): Likewise.
40681         * tests/test-fcntl-h.c (main): Likewise.
40682         * tests/test-fcntl-safer.c (main): Likewise.
40683         * tests/test-fdopendir.c (main): Likewise.
40684         * tests/test-fdutimensat.c (main): Likewise.
40685         * tests/test-fflush.c (main): Likewise.
40686         * tests/test-filenamecat.c (main): Likewise.
40687         * tests/test-filevercmp.c (main): Likewise.
40688         * tests/test-fopen-safer.c (main): Likewise.
40689         * tests/test-fopen.c (main): Likewise.
40690         * tests/test-fpending.c (main): Likewise.
40691         * tests/test-fpurge.c (main): Likewise.
40692         * tests/test-freading.c (main): Likewise.
40693         * tests/test-fstatat.c (main): Likewise.
40694         * tests/test-fsync.c (main): Likewise.
40695         * tests/test-futimens.c (main): Likewise.
40696         * tests/test-getndelim2.c (main): Likewise.
40697         * tests/test-gettimeofday.c (main): Likewise.
40698         * tests/test-getopt.c (main): Likewise.
40699         * tests/test-i-ring.c (main): Likewise.
40700         * tests/test-inttypes.c (main): Likewise.
40701         * tests/test-link.c (main): Likewise.
40702         * tests/test-lstat.c (main): Likewise.
40703         * tests/test-math.c (main): Likewise.
40704         * tests/test-md5.c (main): Likewise.
40705         * tests/test-memchr2.c (main): Likewise.
40706         * tests/test-memrchr.c (main): Likewise.
40707         * tests/test-mkdir.c (main): Likewise.
40708         * tests/test-mkdirat.c (main): Likewise.
40709         * tests/test-mkfifoat.c (main): Likewise.
40710         * tests/test-open.c (main): Likewise.
40711         * tests/test-openat-safer.c (main): Likewise.
40712         * tests/test-openat.c (main): Likewise.
40713         * tests/test-quotearg.c (main): Likewise.
40714         * tests/test-rawmemchr.c (main): Likewise.
40715         * tests/test-readlink.c (main): Likewise.
40716         * tests/test-remove.c (main): Likewise.
40717         * tests/test-rename.c (main): Likewise.
40718         * tests/test-renameat.c (main): Likewise.
40719         * tests/test-rmdir.c (main): Likewise.
40720         * tests/test-sha1.c (main): Likewise.
40721         * tests/test-signal.c (main): Likewise.
40722         * tests/test-sigaction.c (main): Likewise.
40723         * tests/test-stat.c (main): Likewise.
40724         * tests/test-stat-time.c (main): Likewise.
40725         * tests/test-stddef.c (main): Likewise.
40726         * tests/test-stdint.c (main): Likewise.
40727         * tests/test-stdio.c (main): Likewise.
40728         * tests/test-stdlib.c (main): Likewise.
40729         * tests/test-strchrnul.c (main): Likewise.
40730         * tests/test-strerror.c (main): Likewise.
40731         * tests/test-string.c (main): Likewise.
40732         * tests/test-strtod.c (main): Likewise.
40733         * tests/test-strverscmp.c (main): Likewise.
40734         * tests/test-symlink.c (main): Likewise.
40735         * tests/test-symlinkat.c (main): Likewise.
40736         * tests/test-sys_stat.c (main): Likewise.
40737         * tests/test-sys_time.c (main): Likewise.
40738         * tests/test-time.c (main): Likewise.
40739         * tests/test-unistd.c (main): Likewise.
40740         * tests/test-unlink.c (main): Likewise.
40741         * tests/test-unlinkat.c (main): Likewise.
40742         * tests/test-utimens.c (main): Likewise.
40743         * tests/test-utimensat.c (main): Likewise.
40744         * tests/test-version-etc.c (main): Likewise.
40745         * tests/test-wchar.c (main): Likewise.
40746         * tests/test-wctype.c (main): Likewise.
40747         * tests/test-xprintf-posix.c (main): Likewise.
40748         * tests/test-posixtm.c (main): Likewise.
40749         (STREQ): Delete unused macro.
40750         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40751         shadowed variables.
40752         * tests/test-memchr.c (main): Likewise.
40753
40754 2009-10-21  Eric Blake  <ebb9@byu.net>
40755
40756         areadlinkat: avoid failure on older glibc
40757         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40758         rather than mis-comparing 0 against FUNC_RESULT of char*.
40759
40760 2009-10-21  Bruno Haible  <bruno@clisp.org>
40761
40762         * modules/stpncpy (License): Relicense under LGPLv2+.
40763         Reported by David Lutterkort <lutter@redhat.com>.
40764
40765 2009-10-20  Eric Blake  <ebb9@byu.net>
40766
40767         utimensat: work around Solaris 9 bug
40768         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40769         has trailing slash bugs.
40770         * tests/test-lutimens.h (test_lutimens): Enhance test.
40771         * tests/test-utimens.h (test_utimens): Likewise.
40772         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40773         * doc/posix-functions/utimes.texi (utimes): Likewise.
40774         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40775         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40776         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40777         * doc/posix-functions/futimens.texi (futimens): Likewise.
40778
40779         fdutimensat: new module
40780         * modules/fdutimensat: New file.
40781         * lib/fdutimensat.c (fdutimensat): Likewise.
40782         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40783         * MODULES.html.sh (File system functions): Mention module.
40784         * modules/fdutimensat-tests: New test.
40785         * tests/test-fdutimensat.c: Likewise.
40786
40787         doc: regenerate INSTALL
40788         * doc/INSTALL: Reflect recent autoconf update.
40789         * doc/INSTALL.ISO: Likewise.
40790         * doc/INSTALL.UTF-8: Likewise.
40791
40792 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40793
40794         acl: warn if ACL support is not detected
40795         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40796
40797 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40798
40799         * lib/nproc.h: Add extern "C" block for C++.
40800
40801 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40802             Bruno Haible  <bruno@clisp.org>
40803
40804         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40805         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40806         * doc/posix-functions/isalpha.texi: Likewise.
40807         * doc/posix-functions/isblank.texi: Likewise.
40808         * doc/posix-functions/iscntrl.texi: Likewise.
40809         * doc/posix-functions/isdigit.texi: Likewise.
40810         * doc/posix-functions/isgraph.texi: Likewise.
40811         * doc/posix-functions/islower.texi: Likewise.
40812         * doc/posix-functions/isprint.texi: Likewise.
40813         * doc/posix-functions/ispunct.texi: Likewise.
40814         * doc/posix-functions/isspace.texi: Likewise.
40815         * doc/posix-functions/isupper.texi: Likewise.
40816         * doc/posix-functions/isxdigit.texi: Likewise.
40817
40818 2009-10-18  Bruno Haible  <bruno@clisp.org>
40819
40820         Tests for module 'isblank'.
40821         * modules/isblank-tests: New file.
40822         * tests/test-isblank.c: New file.
40823
40824         New module 'isblank'.
40825         * lib/isblank.c: New file.
40826         * m4/isblank.m4: New file.
40827         * modules/isblank: New file.
40828         * doc/posix-functions/isblank.texi: Mention the new module.
40829
40830 2009-10-18  Bruno Haible  <bruno@clisp.org>
40831
40832         New module 'ctype'.
40833         * lib/ctype.in.h: New file.
40834         * m4/ctype.m4: New file.
40835         * modules/ctype: New file.
40836         * doc/posix-headers/ctype.texi: Mention the new module.
40837
40838 2009-10-18  Jim Meyering  <meyering@redhat.com>
40839
40840         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40841         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40842         right after its initialization, rather than farther down.
40843         Keeping these in close proximity makes it easier to ensure
40844         that each such variable is initialized.  E.g.,
40845
40846             LIB_CLOCK_GETTIME=
40847             AC_SUBST([LIB_CLOCK_GETTIME])
40848
40849         This change also increments these serial numbers.
40850         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40851         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40853
40854 2009-10-18  Bruno Haible  <bruno@clisp.org>
40855
40856         Don't let environment variables perturb build.
40857         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40858         (gl_PREREQ_GETHRXTIME): ... not here.
40859
40860 2009-10-18  Bruno Haible  <bruno@clisp.org>
40861
40862         Avoid symlink attack in localcharset module.
40863         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40864         (O_NOFOLLOW): Define fallback.
40865         (get_charset_aliases): Don't open the file if it is a symbolic link.
40866         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40867         gl_FCNTL_H.
40868         (gl_FCNTL_H): Require it.
40869         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40870         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40871         Reported by Fergal Glynn <fglynn@veracode.com>.
40872
40873 2009-10-18  Bruno Haible  <bruno@clisp.org>
40874
40875         Implement nproc for mingw.
40876         * lib/nproc.c: Include <windows.h>
40877         (num_processors): On native Windows platforms, try GetSystemInfo.
40878
40879 2009-10-18  Bruno Haible  <bruno@clisp.org>
40880
40881         Implement nproc for IRIX.
40882         * lib/nproc.c: Include <sys/sysmp.h>.
40883         (num_processors): On IRIX systems, try sysmp.
40884         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40885
40886 2009-10-18  Bruno Haible  <bruno@clisp.org>
40887
40888         Implement nproc for HP-UX.
40889         * lib/nproc.c: Include <sys/pstat.h>
40890         (num_processors): On HP-UX systems, try pstat_getdynamic.
40891         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40892         pstat_getdynamic.
40893
40894 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40895             Bruno Haible  <bruno@clisp.org>
40896
40897         Implement nproc for NetBSD, OpenBSD.
40898         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40899         (ARRAY_SIZE): New macro.
40900         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40901         * m4/nproc.m4: New file.
40902         * modules/nproc (Files): Add m4/nproc.m4.
40903         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40904         (Makefile.am): Instead, augment lib_SOURCES.
40905
40906 2009-10-18  Bruno Haible  <bruno@clisp.org>
40907
40908         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40909         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40910         sys/param.h.
40911
40912 2009-10-16  Eric Blake  <ebb9@byu.net>
40913
40914         utimensat: new module
40915         * modules/utimensat: New file.
40916         * lib/utimensat.c (utimensat): Likewise.
40917         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40918         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40919         so we can work around Linux bugs.
40920         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40921         * modules/sys_stat (Makefile.am): Substitute them.
40922         * lib/sys_stat.in.h (utimensat): Declare it.
40923         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40924         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40925         * modules/utimensat-tests: New test.
40926         * tests/test-utimensat.c: Likewise.
40927
40928         utimens: let lutimens work on non-symlinks
40929         * lib/utimens.c (lutimens): Fall back to utimens rather than
40930         failing with ENOSYS, when file is not a symlink.
40931         (utimens): Reduce redirection.
40932         * tests/test-lutimens.h (test_lutimens): Update test to cover
40933         non-symlinks.
40934         * tests/test-utimens.h (test_utimens): Update test to cover
40935         symlinks.
40936         * tests/test-utimens.c (main): Update caller.
40937
40938         utimens: cache whether utimensat syscall works
40939         * lib/utimens.c (utimensat_works_really): New cache variable.
40940         (fdutimens, lutimens): Use it to avoid failing syscall.
40941
40942         test-stat-time, test-utimens: improve portability
40943         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40944         ext4 on alpha, and for cygwin.
40945         * tests/test-utimens-common.h: New file.
40946         (nap): Factor delays into single function.
40947         * tests/test-lutimens.h (test_lutimens): Use new header.
40948         * tests/test-futimens.h (test_futimens): Likewise.
40949         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40950         timestamps to occur from same machine, as was done previously for
40951         test_utimens.
40952         * modules/utimens-tests (Files): Ship new file.
40953         * modules/futimens-tests (Files): Likewise.
40954         Reported in part by Jim Meyering.
40955
40956         sys_stat: sort replacement declarations
40957         * lib/sys_stat.in.h: Sort declarations.
40958         * lib/futimens.c (futimens): Fix typo.
40959
40960 2009-10-15  Jim Meyering  <meyering@redhat.com>
40961
40962         don't let environment settings perturb build
40963         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40964         could cause a configure-time and/or build-time malfunction.
40965         Typically, a configure-time function-in-library test is performed
40966         via code like this:
40967
40968           LIB_VAR=
40969           AC_SUBST([LIB_VAR])
40970           prefix_saved_LIBS=$LIBS
40971             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40972                        [test "$ac_cv_search_FUNC" = "none required" ||
40973                         LIB_VAR=$ac_cv_search_FUNC])
40974           LIBS=$prefix_saved_LIBS
40975
40976         However, in each of the files affected by this change, the LIB_VAR=
40977         initialization was omitted.  Thus, when set in the environment, its
40978         value would propagate into generated Makefiles when FUNC is not found
40979         in LIB_NAME.
40980         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40981         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40983
40984 2009-10-14  Eric Blake  <ebb9@byu.net>
40985
40986         fchdir: avoid infinite recursion in mingw
40987         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40988         recursing.
40989
40990         test-stat-time: port to mingw
40991         * tests/test-stat-time.c (force_unlink): Return a value.
40992         (test_ctime) [W32]: Fix compilation error.
40993         (nap): Don't call usleep with too large an argument.  Use
40994         force_unlink.
40995         * doc/pastposix-functions/usleep.texi (usleep): Document the
40996         portability issue.
40997
40998 2009-10-13  Jim Meyering  <meyering@redhat.com>
40999
41000         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
41001         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
41002         * modules/pipe-filter-ii: Likewise.
41003         * modules/sys_socket-tests: Likewise.
41004         * modules/tsearch-tests: Likewise.
41005         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
41006         (check): Depend on it.
41007
41008 2009-10-12  Eric Blake  <ebb9@byu.net>
41009
41010         utimens-tests: port to NFS file systems
41011         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41012         comparisons to avoid spurious failures from timestamp drift
41013         between NFS machines.
41014
41015 2009-10-12  Eric Blake  <ebb9@byu.net>
41016
41017         stat-time-tests: minor cleanups
41018         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41019         * tests/test-stat-time.c (nap): Separate assignment from call.
41020         Suggested by Paolo Bonzini and Bruno Haible.
41021
41022         sys_stat: guarantee struct timespec
41023         * lib/sys_stat.in.h (includes): Always include <time.h>
41024         * modules/sys_stat (Depends-on): Add time.
41025         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41026         mode_t permission values.
41027         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41028         get at subsecond timestamps.
41029
41030 2009-10-10  Eric Blake  <ebb9@byu.net>
41031
41032         futimens: new module
41033         * modules/futimens: New file.
41034         * lib/futimens.c (futimens): Likewise.
41035         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41036         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41037         we can work around Linux bugs.
41038         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41039         * modules/sys_stat (Makefile.am): Substitute them.
41040         * lib/sys_stat.in.h (futimens): Declare it.
41041         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41042         * doc/posix-functions/futimens.texi (futimens): Likewise.
41043         * modules/futimens-tests: New test.
41044         * tests/test-futimens.c: Likewise.
41045
41046         utimens: introduce fdutimens
41047         * lib/utimens.h (fdutimens): New prototype.
41048         * lib/utimens.c (gl_futimens): Move guts...
41049         (fdutimens): ...to new interface.
41050         * tests/test-utimens.c (do_fdutimens): Use it.
41051
41052         utimens: add UTIME_NOW and UTIME_OMIT support
41053         * lib/utimens.c (validate_timespec, update_timespec): New helper
41054         functions.
41055         (gl_futimens, lutimens): Use them.
41056         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41057         stdbool, sys_stat.
41058         (Link): Mention resulting library dependency.
41059         * modules/utimecmp (Link): Likewise.
41060         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41061         (Makefile.am): Pick up library dependency.
41062         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41063         definition.
41064         * tests/test-sys_stat.c: Test the definitions.
41065         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41066         * NEWS: Document library dependency.
41067
41068         utimecmp: support symlink timestamps
41069         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41070         hashing when possible.  Use pathconf when available.
41071         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41072         * modules/utimecmp (Depends-on): Add lstat.
41073
41074         utimens: add lutimens interface
41075         * lib/utimens.c (lutimens): New function.
41076         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41077         * lib/utimens.h (lutimens): Declare new interface.
41078         * tests/test-utimens.c (main): Enhance test.
41079         * tests/test-lutimens.h (test_lutimens): New file.
41080         * modules/utimens-tests (Files): Distribute it.
41081         (Depends-on): Add symlink.
41082         (configure.ac): Check for usleep.
41083
41084         utimens: validate futimens usage
41085         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41086         fewer syscalls on failure later on.  Avoid compiler warning on
41087         mingw.
41088         * modules/utimens (Depends-on): Add dup2.
41089
41090         utimens: add test
41091         * modules/utimens-tests: New test.
41092         * tests/test-utimens.h: New file.
41093         * tests/test-futimens.h: Likewise.
41094         * tests/test-utimens.c: Likewise.
41095
41096         doc: mention timestamp portability issues
41097         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41098         instead.
41099         * doc/posix-functions/utime.texi (utime): Likewise.
41100         * doc/posix-functions/utimes.texi (utimes): Likewise.
41101         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41102         instead.
41103         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41104         module.
41105         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41106         Mention weakness with symlink timestamps.
41107         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41108         to utimensat/futimens instead.
41109         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41110
41111         test-dup2: enhance test
41112         * tests/test-dup2.c (main): Also check AT_FDCWD.
41113
41114         test-stat-time: avoid more spurious failures
41115         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41116         xfs; and avoid race if the two timestamps cross quantization edge.
41117
41118         relocatable: prefer 'file system' over 'filesystem'
41119         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41120         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41121         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41122         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41123         * lib/relocatable.c (compute_curr_prefix): Likewise.
41124
41125 2009-10-10  Jim Meyering  <meyering@redhat.com>
41126
41127         stat-time-tests: check for the usleep function
41128         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41129
41130 2009-10-10  Bruno Haible  <bruno@clisp.org>
41131
41132         * modules/xnanosleep: Put the Link section after the Include section.
41133
41134 2009-10-09  Eric Blake  <ebb9@byu.net>
41135
41136         dup2: work around FreeBSD 6.1 bug
41137         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41138         * doc/posix-functions/dup2.texi (dup2): Document it.
41139         Reported by Nelson H. F. Beebe and Jim Meyering.
41140
41141         test-stat-time: port to buggy NFS clients
41142         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41143         (test_ctime): Also skip test if mtime and ctime are skewed.
41144
41145         maint: prefer 'file system' over 'filesystem'
41146         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41147         * doc/posix-functions/lstat.texi (lstat): Likewise.
41148         * lib/file-has-acl.c (file_has_acl): Likewise.
41149         * lib/fwriteerror.c [TEST]: Likewise.
41150         * tests/test-areadlink.h (test_areadlink): Likewise.
41151         * tests/test-areadlinkat-with-size.c (main): Likewise.
41152         * tests/test-areadlinkat.c (main): Likewise.
41153         * tests/test-canonicalize-lgpl.c (main): Likewise.
41154         * tests/test-canonicalize.c (main): Likewise.
41155         * tests/test-fstatat.c (main): Likewise.
41156         * tests/test-linkat.c (main): Likewise.
41157         * tests/test-lstat.h (test_lstat_func): Likewise.
41158         * tests/test-mkdir.h (test_mkdir): Likewise.
41159         * tests/test-readlink.h (test_readlink): Likewise.
41160         * tests/test-remove.c (main): Likewise.
41161         * tests/test-rename.h (test_rename): Likewise.
41162         * tests/test-renameat.c (main): Likewise.
41163         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41164         * tests/test-symlink.h (test_symlink): Likewise.
41165         * tests/test-symlinkat.c (main): Likewise.
41166         * tests/test-unlink.h (test_unlink_func): Likewise.
41167         * tests/test-unlinkat.c (main): Likewise.
41168
41169         maint: make realtime library usage explicit
41170         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41171         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41172         * modules/settime (Link): Likewise.
41173         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41174
41175         test-stat-time: speed up execution
41176         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41177         warning on mingw.
41178         (nap): New helper function.
41179         (prepare_test): Use it to reduce sleep time.
41180         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41181         execution.
41182         * modules/stat-time-tests (configure.ac): Check for usleep.
41183
41184 2009-10-09  Jim Meyering  <meyering@redhat.com>
41185
41186         selinux-h: always use getfilecon wrappers
41187         * lib/getfilecon.c: New file.
41188         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41189         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41190         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41191         (fgetfilecon): Provide a stub.
41192         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41193         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41194         file unconditionally.
41195         When <selinux/selinux.h> is found, arrange to use wrappers.
41196         * modules/selinux-h (Files): Add getfilecon.c.
41197         (Makefile.am): Substitute include-next-related bits
41198         into the now-always-generated selinux/selinux.h file.
41199         * doc/glibc-functions/lgetfilecon.texi: New file.
41200         * doc/glibc-functions/fgetfilecon.texi: New file.
41201         * doc/glibc-functions/getfilecon.texi: New file.
41202         * doc/glibc-functions/getfilecon-desc.texi: New file.
41203         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41204         which to pull in the new files.
41205         * MODULES.html.sh (Misc): Add selinux-h.
41206
41207 2009-10-08  Jim Meyering  <meyering@redhat.com>
41208
41209         unistd: fix comment typo
41210         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41211
41212 2009-10-08  Eric Blake  <ebb9@byu.net>
41213
41214         areadlink: use SIZE_MAX consistently
41215         * modules/areadlink (Depends-on): Add stdint.
41216         * modules/areadlink-with-size (Depends-on): Likewise.
41217         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41218         gives NULL; drop sys/types, since unistd gives size_t; and add
41219         stdint for SIZE_MAX.
41220         (SIZE_MAX): Rely on headers.
41221         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41222         and add stdint.
41223         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41224         (SIZE_MAX): Likewise.
41225         (INITIAL_BUF_SIZE): Turn into enum.
41226         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41227
41228 2009-10-08  Jim Meyering  <meyering@redhat.com>
41229
41230         areadlinkat: avoid compilation failure
41231         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41232         Fix typo in comment.
41233
41234 2009-10-07  Eric Blake  <ebb9@byu.net>
41235
41236         areadlinkat-with-size: new module
41237         * modules/areadlinkat-with-size: New module.
41238         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41239         * lib/areadlink.h (areadlinkat): Declare it.
41240         * MODULES.html.sh (File system functions): Mention it.
41241         * modules/areadlinkat-with-size-tests: New test.
41242         * tests/test-areadlinkat-with-size.c: New file.
41243
41244         xreadlinkat: new module
41245         * modules/xreadlinkat: New module.
41246         * lib/xreadlinkat.c (xreadlinkat): New file.
41247         * lib/xreadlink.h (xreadlinkat): Declare it.
41248         * MODULES.html.sh (File system functions): Mention it.
41249
41250         areadlinkat: new module
41251         * lib/at-func.c (FUNC_FAIL): New define.
41252         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41253         * modules/areadlinkat: New module.
41254         * lib/linkat.c (areadlinkat): Move...
41255         * lib/areadlinkat.c (areadlinkat): ...to new file.
41256         * lib/areadlink.h (areadlinkat): Declare it.
41257         * modules/linkat (Depends-on): Add areadlinkat.
41258         * MODULES.html.sh (File system functions): Mention it.
41259         * modules/areadlinkat-tests: New test.
41260         * tests/test-areadlinkat.c: New file.
41261
41262         areadlink, areadlink-with-size: add tests
41263         * modules/areadlink-tests: New test.
41264         * modules/areadlink-with-size-tests: Likewise.
41265         * tests/test-areadlink.h: New file.
41266         * tests/test-areadlink.c: Likewise.
41267         * tests/test-areadlink-with-size.c: Likewise.
41268
41269         maint: minor cleanups
41270         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41271         _UNUSED_PARAMETER_ instead.
41272         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41273         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41274         * modules/linkat-tests (Files): Distribute test-link.h.
41275
41276         openat, utimens: whitespace cleanup
41277         * lib/openat.c: Prefer space throughout, rather than mix of 8
41278         spaces vs. tabs.
41279         * lib/at-func.c: Likewise.
41280         * lib/utimens.c: Likewise.
41281
41282         openat: avoid using wrong fd
41283         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41284         working directory chooses same fd.
41285         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41286
41287         mkdir, mkdirat: fix cygwin 1.5.x bug
41288         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41289         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41290         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41291         bug.
41292         (gl_PREREQ_MKDIR): Delete unused macro.
41293         * modules/mkdir (Files): Track file rename.
41294         (configure.ac): Update macro name.
41295         * modules/openat (Depends-on): Add mkdir.
41296         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41297
41298         mkdir, mkdirat: add tests
41299         * modules/mkdir-tests: New test.
41300         * tests/test-mkdir.h: New file.
41301         * tests/test-mkdir.c: Likewise.
41302         * tests/test-mkdirat.c: Likewise.
41303         * modules/openat-tests (Files): Add new files.
41304         (Makefile.am): Run new test.
41305
41306 2009-10-06  Eric Blake  <ebb9@byu.net>
41307
41308         doc: tweak *at function documentation
41309         * doc/posix-functions/faccessat.texi (faccessat): Mention
41310         known issue with replacement.
41311         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41312         * doc/posix-functions/linkat.texi (linkat): Likewise.
41313         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41314         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41315         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41316         * doc/posix-functions/renameat.texi (renameat): Likewise.
41317         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41318
41319         openat: fix GNU/Hurd bug in unlinkat
41320         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41321         broken.
41322         * doc/posix-functions/unlink.texi (unlink): Document this.
41323         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41324
41325         fdopendir: fix GNU/Hurd bug
41326         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41327         allowing non-directory fds.
41328         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41329         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41330         * modules/dirent (Makefile.am): Substitute it.
41331         * lib/dirent.in.h (fdopendir): Declare replacement.
41332         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41333         * tests/test-fdopendir.c (main): Test something other than
41334         /dev/null, since on Hurd that behaves like a directory.
41335
41336         test-symlink: port to GNU/Hurd
41337         * tests/test-symlink.h (test_symlink): Relax expected errno.
41338
41339         doc: tweak more cygwin information
41340         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41341         now compatible with glibc.
41342         * doc/posix-functions/getopt.texi (getopt): Likewise.
41343
41344         getopt-gnu: add another test
41345         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41346         guarantee behavior relied on by m4.
41347         * tests/test-getopt.c (main): Use it.
41348         * modules/getopt-posix-tests (Depends-on): Add setenv.
41349         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41350
41351         getopt: fix compilation on darwin
41352         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41353         include.
41354         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41355         Reported by Ludovic Courtès.
41356
41357 2009-10-06  Bruno Haible  <bruno@clisp.org>
41358
41359         * modules/size_max (Description): Discourage its use.
41360         Reported by Simon Josefsson.
41361
41362 2009-10-06  Jim Meyering  <meyering@redhat.com>
41363
41364         linkat: avoid compilation failure
41365         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41366
41367 2009-10-05  Eric Blake  <ebb9@byu.net>
41368
41369         linkat: support Linux 2.6.17
41370         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41371         linkat on Linux, but allow cache variable override.
41372         * lib/linkat.c (rpl_linkat): Define override.
41373         * modules/linkat (Depends-on): Add symlinkat.
41374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41375         * modules/unistd (Makefile.am): Substitute it.
41376         * lib/unistd.in.h (linkat): Declare replacement.
41377         Reported by Pádraig Brady.
41378
41379         quotearg: port test to systems with C.UTF-8 locale
41380         * tests/test-quotearg.c (struct result_strings): Add another
41381         member, differentiating between C.ASCII and C.UTF-8 handling.
41382         (compare_strings): Add parameter.
41383         (main): Adjust all callers.
41384
41385         getopt: avoid clash with FreeBSD _getopt_internal
41386         * lib/getopt.in.h (_getopt_internal): Override the name.
41387         * lib/getopt_int.h (includes): Pick up any overrides.
41388         Reported by Reuben Thomas.
41389
41390         hash: allow C89 compilation
41391         * lib/hash.c (check_tuning): Move declaration before statement.
41392         Reported by Reuben Thomas.
41393
41394 2009-10-05  Karl Berry  <karl@gnu.org>
41395
41396         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41397
41398 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41399             Bruno Haible  <bruno@clisp.org>
41400
41401         * lib/uname.c (uname): Use a table-driven algorithm to compute
41402         Windows NT versions.
41403
41404 2009-10-04  Bruno Haible  <bruno@clisp.org>
41405
41406         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41407         program_invocation_short_name.
41408         * modules/progname (configure.ac): Test for presence of
41409         program_invocation_short_name.
41410         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41411
41412 2009-10-04  Bruno Haible  <bruno@clisp.org>
41413
41414         * lib/progname.c (set_program_name): Fix comment.
41415         Reported by Jim Meyering.
41416
41417 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41418             Bruno Haible  <bruno@clisp.org>
41419
41420         * lib/uname.c: Include <string.h>.
41421         (uname): Do only one call to GetVersionEx in the common case.
41422
41423 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41424             Bruno Haible  <bruno@clisp.org>
41425
41426         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41427         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41428         (uname): Add support for Windows CE and various non-x86 CPU types.
41429
41430 2009-10-03  Bruno Haible  <bruno@clisp.org>
41431
41432         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41433         invocation to tests/configure.ac.
41434         Reported by Ian Beckwith <ianb@erislabs.net>.
41435
41436 2009-10-02  Eric Blake  <ebb9@byu.net>
41437
41438         fchdir: avoid compiler warning
41439         * lib/fchdir.c (canonicalize_file_name)
41440         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41441
41442         test-open: support mingw errno values
41443         * tests/test-open.h (test_open): Relax test.
41444         * tests/test-fopen.h (test_fopen): Likewise.
41445         * tests/test-openat-safer.c (main): Likewise.
41446
41447         open: fix opening directory on mingw
41448         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41449
41450         test-open: on GNU/Hurd, /dev/null is a directory
41451         * tests/test-fopen.h (main): Rename...
41452         (test_fopen): ...to this.  Use a guaranteed non-directory when
41453         confirming open behavior on trailing slash.
41454         * tests/test-openat-safer.c (main): Likewise.
41455         * tests/test-open.h (main): Likewise....
41456         (test_open): ...to this.
41457         * tests/test-fopen.c (main): Adjust caller.
41458         * tests/test-fopen-safer.c (main): Likewise.
41459         * tests/test-open.c (main): Likewise.
41460         * tests/test-fcntl-safer.c (main): Likewise.
41461         Reported by Samuel Thibault.
41462
41463         rename, fchdir: don't ignore chdir failure
41464         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41465         * lib/rename.c (rpl_rename) [W32]: Likewise.
41466         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41467         an empty destination directory if source cannot be renamed,
41468         although there is still possibility for failure.
41469         * doc/posix-functions/rename.texi (rename): Document the race.
41470         Reported by Jim Meyering.
41471
41472         maint: cleanup whitespace in recent commits
41473         * lib/rename.c (rpl_rename): Remove tabs.
41474         * tests/test-link.h (test_link): Likewise.
41475         * lib/fchdir.c (get_name): Likewise.
41476         Reported by Jim Meyering.
41477
41478 2009-10-02  Ben Pfaff  <blp@gnu.org>
41479
41480         relocatable-prog-wrapper: Add missing dependency on
41481         double-slash-root.
41482         * modules/relocatable-prog-wrapper: Add dependency.
41483         Reported by Ian Beckwith <ianb@erislabs.net>.
41484
41485 2009-10-02  Eric Blake  <ebb9@byu.net>
41486
41487         renameat: fix Solaris bugs
41488         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41489         needed fixing.
41490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41491         * modules/stdio (Makefile.am): Substitute it.
41492         * lib/stdio.in.h (renameat): Declare replacement.
41493         * lib/renameat.c (rpl_renameat): Implement fix.
41494
41495         renameat: new module
41496         * modules/renameat: New file.
41497         * lib/renameat.c (renameat): Likewise.
41498         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41500         * modules/stdio (Makefile.am): Substitute them.
41501         * lib/stdio.in.h (renameat): Declare it.
41502         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41503         * doc/posix-functions/renameat.texi (renameat): Likewise.
41504         * modules/renameat-tests: New test.
41505         * tests/test-renameat.c: Likewise.
41506
41507         rename: fix mingw bugs
41508         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41509         directory overwrite bugs.
41510
41511         rename: fix another cygwin 1.5 bug
41512         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41513         checks.
41514         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41515         unnecessary cygwin workarounds.  Also work around bug with moving
41516         full directory onto an empty one.
41517         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41518
41519         rename-dest-slash: merge into rename module
41520         * modules/rename-dest-slash (Status): Mark obsolete.
41521         (Depends-on): Add rename.
41522         (Files): Let rename do it all.
41523         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41524         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41525         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41526         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41527         * lib/rename.c (rpl_rename): Update comments.
41528
41529         rename: fix cygwin 1.5.x bugs
41530         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41531         * lib/rename.c (rpl_rename): Work around them.
41532         * modules/rename (Depends-on): Add same-inode.
41533
41534         rename: fix Solaris 10 bug
41535         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41536         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41537         was the only bug.
41538
41539         rename: fix Solaris 9 bug
41540         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41541         on non-directory.  Avoid calling exit.
41542         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41543         strdup.
41544         * modules/rename-tests (Depends-on): Drop lstat.
41545         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41546         (gl_PREREQ_RENAME): Delete unused macro.
41547
41548         rename-dest-slash: fix NetBSD bug
41549         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41550         links.
41551         * modules/rename-dest-slash (Depends-on): Add same-inode.
41552
41553         rename-tests: new test, exposes several platform bugs
41554         * modules/rename-tests: New file.
41555         * tests/test-rename.h: Likewise.
41556         * tests/test-rename.c: Likewise.
41557         * doc/posix-functions/rename.texi (rename): Improve documentation,
41558         including bugs that will eventually be fixed in gnulib.
41559
41560 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41561
41562         * lib/uname.c: Include <stdlib.h>
41563         (uname): Assume version info is available.
41564
41565 2009-10-02  Jim Meyering  <meyering@redhat.com>
41566
41567         gnu-web-doc-update: correct --help output
41568         * build-aux/gnu-web-doc-update: Make --help output relevant.
41569
41570         gnu-web-doc-update: add standard options
41571         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41572
41573         gnu-web-doc-update: New module.
41574         Use this script to automatically update the on-line web documentation
41575         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41576         * modules/gnu-web-doc-update: New file, from coreutils.
41577         * build-aux/gnu-web-doc-update: New script.
41578
41579 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41580
41581         link: LoadLibrary is not needed.
41582         * lib/link.c: Use GetModuleHandle.
41583
41584 2009-10-01  Eric Blake  <ebb9@byu.net>
41585
41586         getopt: bump serial number
41587         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41588         change.
41589
41590         tests: tighten link, rmdir, and remove tests
41591         * tests/test-link.h (includes): No need to use <config.h> here.
41592         Clean up if directory hard link was created, otherwise test for
41593         trailing '.'.
41594         * tests/test-linkat.c (main): Simplify.
41595         * tests/test-remove.c (main): Enhance test for trailing '.'.
41596         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41597
41598 2009-10-01  Jim Meyering  <meyering@redhat.com>
41599
41600         maint.mk: requiring "make major" was annoying, for a "minor" release.
41601         What is intended is "stable", to contrast with alpha and beta,
41602         so require "make stable", not "make major".
41603         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41604         (get_tool_versions): Likewise.
41605         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41606
41607 2009-09-30  Ben Pfaff  <blp@gnu.org>
41608
41609         Fix broken build of replacement for Windows tmpfile().
41610         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41611         flags argument added along with the 'mkostemp' module.
41612
41613 2009-09-28  Bruno Haible  <bruno@clisp.org>
41614
41615         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41616         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41617         to 'remove_elt'.
41618         (gl_list_remove): Update.
41619         * lib/gl_list.c (gl_list_remove): Update.
41620         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41621         to 'remove_elt'.
41622         (gl_oset_remove): Update.
41623         * lib/gl_list.c (gl_oset_remove): Update.
41624         Reported by Eric Blake.
41625
41626 2009-09-28  Eric Blake  <ebb9@byu.net>
41627
41628         doc: mention yet more cygwin 1.7 status
41629         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41630         cygwin.
41631         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41632         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41633
41634         argp: fix test failure
41635         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41636         that are not upper-case.  Pass correct range to tolower.
41637
41638 2009-09-27  Jim Meyering  <meyering@redhat.com>
41639
41640         test-yesno: work around sparc-dash here-document infelicity
41641         Without this change, the literal \177 byte in a here document
41642         would make dash 0.5.5.1-3 access uninitialized memory.
41643         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41644         Instead, use a marker, "@", and filter through tr to create the desired
41645         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41646
41647 2009-09-27  Bruno Haible  <bruno@clisp.org>
41648
41649         Disable untested support for new flavours of ACLs on AIX.
41650         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41651         progress.
41652         * lib/set-mode-acl.c (qset_acl): Likewise.
41653
41654 2008-12-07  Bruno Haible  <bruno@clisp.org>
41655
41656         Add support for new flavours of ACLs on AIX. (Untested.)
41657         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41658         (file_has_acl): Add support for newer AIX.
41659         * lib/set-mode-acl.c (qset_acl): Likewise.
41660         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41661         Rainer Tammer <tammer@tammer.net>.
41662
41663 2009-09-26  Eric Blake  <ebb9@byu.net>
41664
41665         argp: fix compilation of getopt
41666         * lib/getopt.in.h (includes): Use different guard than glibc.
41667         Reported by Sergey Poznyakoff.
41668
41669         doc: mention more cygwin 1.7 status
41670         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41671         bug.
41672         * doc/posix-functions/execl.texi (execl): Likewise.
41673         * doc/posix-functions/execle.texi (execle): Likewise.
41674         * doc/posix-functions/execlp.texi (execlp): Likewise.
41675         * doc/posix-functions/execv.texi (execv): Likewise.
41676         * doc/posix-functions/execve.texi (execve): Likewise.
41677         * doc/posix-functions/execvp.texi (execvp): Likewise.
41678         * doc/glibc-functions/canonicalize_file_name.texi
41679         (canonicalize_file_name): Cygwin 1.7 now provides this.
41680         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41681         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41682         on AT_SYMLINK_NOFOLLOW.
41683
41684 2009-09-24  Eric Blake  <ebb9@byu.net>
41685
41686         test-linkat: make test more robust
41687         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41688
41689         getopt: fix inclusion guards for cygwin
41690         * modules/getopt-posix (Depends-on): Add include-next.
41691         (Makefile.am): Substitute more items in replacement header.
41692         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41693         <getopt.h>.
41694         * lib/getopt.in.h (includes): Use split inclusion guard, and
41695         prefer <getopt.h> over include <unistd.h> when one is present.
41696         (option): Also override name of 'struct option'.
41697
41698         same-inode: revert prior change; it is not yet ready
41699         * NEWS: Undo mention of this change.
41700         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41701         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41702         * lib/cycle-check.c (cycle_check): Likewise.
41703         * lib/same.c (same_name): Likewise.
41704         * lib/at-func2.c (at_func2): Likewise.
41705
41706 2009-09-23  Eric Blake  <ebb9@byu.net>
41707
41708         linkat: new module
41709         * modules/linkat: New file.
41710         * lib/at-func2.c (at_func2): Likewise.
41711         * lib/linkat.c (linkat): Likewise.
41712         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41713         * lib/openat-priv.h (at_func2): Add declaration.
41714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41715         * modules/unistd (Makefile.am): Substitute them.
41716         * lib/unistd.in.h (linkat): Declare it.
41717         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41718         * doc/posix-functions/linkat.texi (linkat): Likewise.
41719         * doc/posix-functions/link.texi (link): Tweak wording.
41720         * tests/test-link.c (main): Move guts...
41721         * tests/test-link.h (test_link): ...into new file.
41722         * modules/linkat-tests: New test.
41723         * tests/test-linkat.c: Likewise.
41724         * modules/link-tests (Files): Ship new file.
41725         (Depends-on): Add stdbool.
41726
41727         dirname: add library-safe mdir_name
41728         * lib/dirname.h (mdir_name): New prototype.
41729         * lib/dirname.c (dir_name): Move guts...
41730         (mdir_name): ...to new function that avoids xalloc_die.
41731
41732         fchdir: another mingw fix
41733         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41734         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41735         on mingw (where it has not yet been ported), and make it optional
41736         elsewhere.
41737         (_gl_register_fd): Use it.
41738
41739         same-inode: make SAME_INODE tri-state, to port to mingw
41740         * NEWS: Mention this change.
41741         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41742         st_ino always being 0.
41743         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41744         * lib/cycle-check.c (cycle_check): Likewise.
41745         * lib/same.c (same_name): Likewise.
41746
41747         lstat: avoid mingw compilation error
41748         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41749         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41750         lstat ourselves.
41751         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41752         was adequate.
41753         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41754         the checks for lstat.
41755         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41756
41757         link: fix test failure on Solaris 9
41758         * lib/link.c (rpl_link): Don't assume link will catch bogus
41759         trailing slash on source.
41760
41761         test-symlinkat: enhance test
41762         * tests/test-readlink.c (main): Move guts...
41763         * tests/test-readlink.h (test_readlink): ...into new file.
41764         * tests/test-symlink.c (main): Move guts...
41765         * tests/test-symlink.h (test_symlink): ...into new file.
41766         * tests/test-symlinkat.c (main): Use new files for further
41767         coverage.
41768         (do_symlink, do_readlink): New helper functions.
41769         * modules/symlink-tests (Files): Ship new file.
41770         (Depends-on): Add stdbool.
41771         * modules/readlink-tests (Files): Ship new file.
41772         (Depends-on): Add stdbool.
41773         * modules/symlinkat-tests (Files): Use new files.
41774
41775 2009-09-23  Eric Blake  <ebb9@byu.net>
41776
41777         readlink: document portability issue with symlink length
41778         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41779         systems have bogus st_size on symlinks, and mention the
41780         areadlink-with-size module.
41781         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41782         * doc/posix-functions/readlink.texi (readlink): Mention the
41783         areadlink module, and ERANGE failure.
41784         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41785         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41786
41787         readlink: fix Solaris 9 bug with trailing slash
41788         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41789         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41790         * doc/posix-functions/readlink.texi (readlink): Document this.
41791         * modules/readlink-tests: New test.
41792         * tests/test-readlink.c: Likewise.
41793
41794         readlink: fix cygwin 1.5.x bug with return type
41795         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41796         * lib/unistd.in.h (readlink): Use ssize_t.
41797         * lib/readlink.c (readlink): Likewise.
41798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41799         * modules/unistd (Makefile.am): Substitute it.
41800         * lib/unistd.in.h (readlink): Declare replacement.
41801         * doc/posix-functions/readlink.texi (readlink): Document this.
41802
41803         symlink: use throughout gnulib
41804         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41805         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41806         symlink is not used.
41807         * modules/symlinkat (Depends-on): Add symlink.
41808         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41809         * modules/canonicalize-tests (Depends-on): Likewise.
41810         * modules/lstat-tests (Depends-on): Likewise.
41811         * modules/openat-tests (Depends-on): Likewise.
41812         * modules/remove-tests (Depends-on): Likewise.
41813         * modules/rmdir-tests (Depends-on): Likewise.
41814         * modules/unlink-tests (Depends-on): Likewise.
41815         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41816         * tests/test-canonicalize.c (symlink): Likewise.
41817         * tests/test-fstatat.c (symlink): Likewise.
41818         * tests/test-lstat.c (symlink): Likewise.
41819         * tests/test-remove.c (symlink): Likewise.
41820         * tests/test-rmdir.c (symlink): Likewise.
41821         * tests/test-unlink.c (symlink): Likewise.
41822         * tests/test-unlinkat.c (symlink): Likewise.
41823
41824         symlink: new module, for Solaris 9 bug
41825         * modules/symlink: New file.
41826         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41827         * lib/symlink.c: Likewise.
41828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41829         * modules/unistd (Makefile.am): Substitute them.
41830         * lib/unistd.in.h (symlink): Declare replacement.
41831         * MODULES.html.sh (File system functions): Mention it.
41832         * doc/posix-functions/symlink.texi (symlink): Likewise.
41833         * modules/symlink-tests: New test.
41834         * tests/test-symlink.c: Likewise.
41835
41836 2009-09-23  Bruno Haible  <bruno@clisp.org>
41837
41838         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41839         when needed.
41840         Test case: gnulib-tool --import --with-tests atexit inttypes.
41841         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41842
41843 2009-09-23  Bruno Haible  <bruno@clisp.org>
41844
41845         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41846         subcommand, not in a subshell.
41847
41848 2009-09-22  Eric Blake  <ebb9@byu.net>
41849
41850         unistd: sort replacement declarations
41851         * lib/unistd.in.h: Sort declarations.
41852
41853         open, openat: minor optimization
41854         * lib/open.c (open): If open succeeded, len is non-zero.
41855         * lib/openat.c (rpl_openat): Likewise.
41856
41857         link-follow: ensure correct result
41858         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41859         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41860         distinguish between possible failures.
41861
41862 2009-09-21  Eric Blake  <ebb9@byu.net>
41863
41864         fts: avoid compiler warning
41865         * lib/fts.c (dirent_inode_sort_may_be_useful)
41866         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41867
41868 2009-09-19  Bruno Haible  <bruno@clisp.org>
41869
41870         * lib/progreloc.c (canonicalize_file_name): New declaration.
41871
41872 2009-09-19  Eric Blake  <ebb9@byu.net>
41873
41874         link: fix quoting
41875         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41876
41877         openat: fix openat bugs on Solaris 9
41878         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41879         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41880         * modules/openat (Depends-on): Add open.
41881         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41882         * modules/fcntl-h (Makefile.am): Substitute it.
41883         * lib/fcntl.in.h (openat): Declare replacement.
41884         * doc/posix-functions/openat.texi (openat): Document this.
41885
41886         openat: move fstatat and unlinkat into correct files
41887         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41888         compiled.
41889         * lib/openat.c (fstatat, unlinkat): Move...
41890         * lib/fstatat.c (fstatat): ...into correct files.
41891         * lib/unlinkat.c (unlinkat): Likewise.
41892
41893         openat: fix unlinkat bugs on Solaris 9
41894         * lib/unlinkat.c (unlinkat): New file.
41895         * modules/openat (Depends-on): Add unlink.
41896         (Files): Distribute it.
41897         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41898         trailing slash behavior is broken.
41899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41900         * modules/unistd (Makefile.am): Substitute it.
41901         * lib/unistd.in.h (unlinkat): Declare replacement.
41902         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41903
41904         openat: fix fstatat bugs on Solaris 9
41905         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41906         stat.
41907         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41908
41909         test-unlinkat: enhance test, to expose Solaris 9 bug
41910         * tests/test-unlink.c (main): Factor guts...
41911         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41912         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41913         * tests/test-rmdir.c (main): Adjust caller.
41914         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41915         (unlinker): New helper function.
41916         (rmdirat): Enhance check.
41917         * modules/rmdir-tests (Depends-on): Add stdbool.
41918         * modules/unlink-tests (Depends-on): Likewise.
41919         (Files): Add test-unlink.h.
41920         * modules/openat-tests (Files): Likewise.
41921         (Depends-on): Add unlinkdir.
41922
41923         test-fstatat: new test, to expose Solaris 9 bugs
41924         * tests/test-stat.c (main): Factor guts...
41925         * tests/test-stat.h (test_stat_func): ...into new file.
41926         * tests/test-lstat.c (main): Factor guts...
41927         * tests/test-lstat.h (test_lstat_func): ...into new file.
41928         * tests/test-fstatat.c: New file.
41929         * modules/stat-tests (Files): Add test-stat.h.
41930         * modules/lstat-tests (Files): Add test-lstat.h.
41931         (Depends-on): Add stdbool.
41932         * modules/openat-tests (Depends-on): Add pathmax.
41933         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41934         (Makefile.am): Run new test.
41935
41936         remove: new module, for mingw and Solaris 9 bugs
41937         * modules/remove: New file.
41938         * lib/remove.c: Likewise.
41939         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41940         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41941         * modules/stdio (Makefile.am): Use them.
41942         * lib/stdio.in.h (remove): Declare replacement.
41943         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41944         * doc/posix-functions/remove.texi (remove): Likewise.
41945         * modules/remove-tests: New test.
41946         * tests/test-remove.c: Likewise.
41947
41948         unlink: new module, for Solaris 9 bug
41949         * modules/unlink: New file.
41950         * lib/unlink.c: Likewise.
41951         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41953         * modules/unistd (Makefile.am): Use them.
41954         * lib/unistd.in.h (stat): Declare replacement.
41955         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41956         * doc/posix-functions/unlink.texi (unlink): Likewise.
41957         * modules/unlink-tests: New test.
41958         * tests/test-unlink.c: Likewise.
41959
41960         lstat: fix Solaris 9 bug
41961         * lib/lstat.c (lstat): Also check for trailing slash on
41962         non-symlink, non-directories.  Use stat module to simplify logic.
41963         * doc/posix-functions/lstat.texi (lstat): Document it.
41964         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41965         (configure.ac): Check for symlink.
41966         * tests/test-lstat.c (main): Add more tests.
41967
41968         stat: add as dependency to other modules
41969         * modules/chown (Depends-on): Add stat.
41970         * modules/euidaccess (Depends-on): Likewise.
41971         * modules/fchdir (Depends-on): Likewise.
41972         * modules/isdir (Depends-on): Likewise.
41973         * modules/link (Depends-on): Likewise.
41974         * modules/lstat (Depends-on): Likewise.
41975         * modules/mkdir-p (Depends-on): Likewise.
41976         * modules/modechange (Depends-on): Likewise.
41977         * modules/open (Depends-on): Likewise.
41978         * modules/readlink (Depends-on): Likewise.
41979         * modules/same (Depends-on): Likewise.
41980
41981         stat: fix Solaris 9 bug
41982         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41983         slash.
41984         * lib/stat.c (rpl_stat): Work around it.
41985         * doc/posix-functions/stat.texi (stat): Update documentation.
41986
41987         stat: new module, for mingw bug
41988         * modules/stat: New file.
41989         * lib/stat.c: Likewise.
41990         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41991         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41992         * modules/sys_stat (Makefile.am): Use them.
41993         * lib/sys_stat.in.h (stat): Declare replacement.
41994         * lib/openat.c (fstatat): Deal with lstat and stat being function
41995         macros.
41996         * modules/openat (Depends-on): Add inline.
41997         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41998         * doc/posix-functions/stat.texi (stat): Likewise.
41999         * modules/stat-tests: New test.
42000         * tests/test-stat.c: Likewise.
42001
42002 2009-09-19  Jim Meyering  <meyering@redhat.com>
42003
42004         syntax-check: detect unnecessary inclusion of canonicalize.h
42005         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
42006
42007 2009-09-19  Eric Blake  <ebb9@byu.net>
42008
42009         canonicalize-lgpl: adjust clients to use correct header
42010         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42011         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42012         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42013         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42014         * lib/progreloc.c (includes): Likewise.
42015
42016 2009-09-19  Jim Meyering  <meyering@redhat.com>
42017
42018         test-posixtm.c: correct a comment
42019         * tests/test-posixtm.c: Correct first-line comment.
42020         Spotted by Eric Blake.
42021
42022 2009-09-16  Jim Meyering  <meyering@redhat.com>
42023
42024         posixtm-tests: make T const-correct; add a test case
42025         * tests/test-posixtm.c (T): Declare const.
42026         Add a test for -(2^31+1).
42027         Remove useless can-succeed-only-in-2002 test.
42028
42029         posixtm-tests: adjust the sole failing test
42030         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42031         expected output matches what mktime now produces.  Cross-checked via
42032         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42033
42034         posixtm: move #ifdef'd tests into a new module
42035         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42036         * tests/test-posixtm.c: ... this new file.
42037         * modules/posixtm-tests: New module.
42038
42039 2009-09-19  Eric Blake  <ebb9@byu.net>
42040
42041         openat: simplify use of at-func.c
42042         * lib/at-func.c (includes): Include prerequisites here, to
42043         simplify requirements on client files.
42044         * lib/openat-priv.h: Add double-inclusion guard.
42045         * lib/faccessat.c (includes): Simplify.
42046         * lib/fchmodat.c (includes): Likewise.
42047         * lib/fchownat.c (includes): Likewise.
42048         * lib/mkdirat.c (includes): Likewise.
42049         * lib/mkfifoat.c (includes): Likewise.
42050         * lib/symlinkat.c (includes): Likewise.
42051
42052         openat: allow return of fd 0
42053         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42054         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42055         unistd-safer.
42056         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42057         <fcntl.h>; this module does not leak fds.
42058         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42059         must be allowed to return 0, leaving openat_safer to add the
42060         safety.
42061         (openat_permissive): Avoid writing to just-opened fd 2 if
42062         restoring the current directory fails.
42063         * lib/openat-die.c (openat_restore_fail): Add comment.
42064         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42065         (save_cwd): Guarantee safe fd, but without use of open_safer.
42066         * tests/test-openat.c: New test.
42067         * modules/openat-tests (Files, Makefile.am): Distribute and build
42068         new file.
42069
42070         relocatable-prog-wrapper: fix build
42071         * modules/relocatable-prog-wrapper (Files): Update name of
42072         canonicalize m4 file, broken on 2009-09-17.
42073         Reported by emad hajjar <aleppos@hotmail.com>.
42074
42075 2009-09-19  Bruno Haible  <bruno@clisp.org>
42076
42077         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42078         * lib/safe-alloc.c: Likewise.
42079         Reported by Ian Beckwith <ianb@erislabs.net>.
42080
42081 2009-09-18  Bruno Haible  <bruno@clisp.org>
42082
42083         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42084         Reported by <erobles@sensacd.com.mx>.
42085
42086 2009-09-17  Eric Blake  <ebb9@byu.net>
42087
42088         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42089         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42090         slashes when checking if last component is missing.
42091         * tests/test-canonicalize.c (main): Test this.
42092
42093         canonicalize, canonicalize-lgpl: honor // if distinct from /
42094         * modules/canonicalize (Files): Add double-slash-root.m4.
42095         * modules/canonicalize-lgpl (Files): Likewise.
42096         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42097         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42098         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42099         fallback definition.
42100         (canonicalize_filename_mode): Use it to protect //.
42101         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42102         (__realpath): Likewise.
42103         * tests/test-canonicalize.c (main): Test this.
42104         * tests/test-canonicalize-lgpl.c (main): Likewise.
42105         * modules/canonicalize-tests (Depends-on): Add same-inode.
42106         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42107
42108         canonicalize-lgpl: fix glibc bug with trailing slash
42109         * m4/canonicalize-lgpl.m4: Move contents...
42110         * m4/canonicalize.m4: ...here.
42111         (gl_CANONICALIZE_LGPL): Factor realpath check...
42112         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42113         glibc 2.3.5 bug, fixed 2005-04-27.
42114         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42115         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42116         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42117         * modules/canonicalize-lgpl (Files): Manage file rename.
42118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42119         * modules/stdlib (Makefile.am): Substitute witness.
42120         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42121         is needed.
42122         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42123         replacement is required.
42124         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42125         * doc/glibc-functions/canonicalize_file_name.texi
42126         (canonicalize_file_name): Document this.
42127         * doc/posix-functions/realpath.texi (realpath): Likewise.
42128
42129         canonicalize-lgpl: reject non-directory with trailing slash
42130         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42131         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42132         catches failures in glibc 2.3.5.
42133         * tests/test-canonicalize.c (main): Likewise.
42134
42135         canonicalize-lgpl: use native realpath if it works
42136         * lib/canonicalize-lgpl.c (realpath): Guard with
42137         FUNC_REALPATH_WORKS.
42138         * lib/stdlib.in.h (realpath): Make declaration optional based on
42139         HAVE_REALPATH.
42140         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42141         native realpath works.
42142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42143         * modules/stdlib (Makefile.am): Substitute witness.
42144
42145         canonicalize, canonicalize-lgpl: use <stdlib.h>
42146         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42147         (Include): Mention <stdlib.h>.
42148         (configure.ac): Mention functions we provide.
42149         * modules/canonicalize (configure.ac): Likewise.
42150         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42151         realpath if canonicalize_file_name is missing.
42152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42153         * modules/stdlib (Makefile.am): Substitute witnesses.
42154         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42155         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42156         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42157         * NEWS: Document this.
42158         * doc/glibc-functions/canonicalize_file_name.texi
42159         (canonicalize_file_name): Likewise.
42160         * doc/posix-functions/realpath.texi (realpath): Likewise.
42161         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42162
42163         test-canonicalize: consolidate into single C program
42164         * tests/test-canonicalize.sh: Delete; move setup into...
42165         * tests/test-canonicalize.c (main): ...the program, making it
42166         easier to run in debugger.  Add some tests.
42167         * modules/canonicalize-tests (Files): Remove unused file.
42168         (Depends-on): Add progname.
42169         (configure.ac, Makefile.am): Simplify.
42170
42171         test-canonicalize-lgpl: consolidate into single C program
42172         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42173         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42174         easier to run in debugger.  Add some tests.
42175         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42176         (configure.ac, Makefile.am): Simplify.
42177
42178         canonicalize: avoid resolvepath
42179         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42180         unnecessary checks.
42181         * lib/canonicalize.c (includes): Simplify.
42182         (canonicalize_file_name): Drop resolvepath implementation.
42183         * modules/canonicalize (Depends-on): Drop filenamecat.
42184
42185         canonicalize: don't lose errno
42186         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42187         over calls to free.
42188
42189         canonicalize: simplify errno handling
42190         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42191         assignment.
42192
42193         canonicalize, canonicalize-lgpl: update module dependencies
42194         * modules/canonicalize (Depends-on): Add extensions, lstat,
42195         pathmax, stdlib.
42196         (Files): Drop pathmax.h.
42197         (configure.ac): Adjust macro name.
42198         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42199         lstat, stdlib, sys_stat.
42200         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42201         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42202         extensions.
42203         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42204         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42205         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42206         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42207         declaration, if available.
42208         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42209         we can rely on the readlink module.
42210         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42211         (includes): Use <unistd.h> unconditionally.
42212
42213 2009-09-17  Eric Blake  <ebb9@byu.net>
42214
42215         maint: make Include sections of modules consistent
42216         * modules/alloca: Use only header name; no need to list #include.
42217         * modules/alloca-opt: Likewise.
42218         * modules/arpa_inet: Likewise.
42219         * modules/canon-host: Likewise.
42220         * modules/configmake: Likewise.
42221         * modules/dirent: Likewise.
42222         * modules/eealloc: Likewise.
42223         * modules/environ: Likewise.
42224         * modules/fchdir: Likewise.
42225         * modules/fcntl: Likewise.
42226         * modules/fcntl-h: Likewise.
42227         * modules/gethrxtime: Likewise.
42228         * modules/gettime: Likewise.
42229         * modules/ignore-value: Likewise.
42230         * modules/inet_ntop: Likewise.
42231         * modules/inet_pton: Likewise.
42232         * modules/inttypes: Likewise.
42233         * modules/isnand-nolibm: Likewise.
42234         * modules/isnanf-nolibm: Likewise.
42235         * modules/mbchar: Likewise.
42236         * modules/mbfile: Likewise.
42237         * modules/mbiter: Likewise.
42238         * modules/mbuiter: Likewise.
42239         * modules/netdb: Likewise.
42240         * modules/netinet_in: Likewise.
42241         * modules/nproc: Likewise.
42242         * modules/pagealign_alloc: Likewise.
42243         * modules/poll: Likewise.
42244         * modules/printf-frexp: Likewise.
42245         * modules/pthread: Likewise.
42246         * modules/putenv: Likewise.
42247         * modules/random_r: Likewise.
42248         * modules/relocatable-prog: Likewise.
42249         * modules/search: Likewise.
42250         * modules/select: Likewise.
42251         * modules/selinux-h: Likewise.
42252         * modules/settime: Likewise.
42253         * modules/signal: Likewise.
42254         * modules/size_max: Likewise.
42255         * modules/socklen: Likewise.
42256         * modules/ssize_t: Likewise.
42257         * modules/stdarg: Likewise.
42258         * modules/stdbool: Likewise.
42259         * modules/stddef: Likewise.
42260         * modules/stdint: Likewise.
42261         * modules/stdio: Likewise.
42262         * modules/stdlib: Likewise.
42263         * modules/string: Likewise.
42264         * modules/strings: Likewise.
42265         * modules/sys_file: Likewise.
42266         * modules/sys_ioctl: Likewise.
42267         * modules/sys_select: Likewise.
42268         * modules/sys_socket: Likewise.
42269         * modules/sys_stat: Likewise.
42270         * modules/sys_time: Likewise.
42271         * modules/sys_times: Likewise.
42272         * modules/sys_utsname: Likewise.
42273         * modules/sys_wait: Likewise.
42274         * modules/sysexits: Likewise.
42275         * modules/time: Likewise.
42276         * modules/times: Likewise.
42277         * modules/tmpfile: Likewise.
42278         * modules/trim: Likewise.
42279         * modules/unistd: Likewise.
42280         * modules/wchar: Likewise.
42281         * modules/wctype: Likewise.
42282
42283 2009-09-17  Bruno Haible  <bruno@clisp.org>
42284
42285         Make getdate.y compile on QNX and NetBSD 5 / i386.
42286         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42287         TIME_T_FITS_IN_LONG_INT.
42288         * lib/getdate.y (long_time_t): New type.
42289         (relative_time): Change type of 'seconds' field to long_time_t.
42290         (get_date): Update types of local variables. Check against overflow
42291         during conversion from long_time_t to time_t.
42292         Reported by Matt Kraai <kraai@ftbfs.org>
42293         and Hasso Tepper <hasso@netbsd.org>.
42294
42295 2009-09-17  Bruno Haible  <bruno@clisp.org>
42296
42297         * modules/COPYING: Update copyright years.
42298         * modules/README: Likeiwse.
42299         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42300         Reported by Ian Beckwith <ianb@erislabs.net>.
42301
42302 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42303
42304         * users.txt: Update references for gnuit package.
42305
42306 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42307
42308         * m4/getdelim.m4: Fix typo in copyright line.
42309
42310 2009-09-17  Bruno Haible  <bruno@clisp.org>
42311
42312         * lib/atoll.c: Use the standard header with GPL copyright.
42313         * lib/argz.in.h: Likewise.
42314         * lib/glob.c: Likewise.
42315         * lib/glob-libc.h: Likewise.
42316         * lib/random_r.c: Likewise.
42317         * lib/siglist.h: Likewise.
42318         * lib/strsignal.c: Likewise.
42319         Reported by Ian Beckwith <ianb@erislabs.net>.
42320
42321 2009-09-17  Eric Blake  <ebb9@byu.net>
42322
42323         rmdir: ensure correct dependency order
42324         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42325
42326 2009-09-17  Bruno Haible  <bruno@clisp.org>
42327
42328         Disable assertion that fails on NetBSD 5 / i386.
42329         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42330         Reported by Sam Steingold <sds@gnu.org>
42331         and Hasso Tepper <hasso@netbsd.org>.
42332
42333 2009-09-16  Eric Blake  <ebb9@byu.net>
42334
42335         unlinkdir: port to mingw
42336         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42337         on which no one can unlink a directory.
42338
42339         stdlib: sort witness names
42340         * modules/stdlib (Makefile.am): Sort replacements.
42341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42342         * lib/stdlib.in.h: Likewise.
42343
42344         parse-duration-tests: avoid link failure
42345         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42346         LIBINTL.
42347         Reported by Tom G. Christensen.
42348
42349         openat-tests: ensure unlinkat behaves like rmdir
42350         * tests/test-rmdir.c (main): Factor guts...
42351         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42352         * modules/rmdir-tests (Files): Ship new file.
42353         * modules/openat-tests: New test.
42354         * tests/test-unlinkat.c: Likewise.
42355
42356         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42357         * modules/rmdir-errno (Status, Notice): Now obsolete.
42358
42359         rmdir: work around cygwin 1.5.x and mingw bugs
42360         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42361         * lib/rmdir.c (rmdir): Work around it.
42362         * modules/rmdir (Status, Notice): No longer obsolete.
42363         (Files): Add dos.m4.
42364         (Depends-on): Add unistd.
42365         (configure.ac): Set witnesses.
42366         (License): Relax to LGPLv2+.
42367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42368         * modules/unistd (Makefile.am): Substitute witnesses.
42369         * lib/unistd.in.h (rmdir): Declare replacement.
42370         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42371         * modules/rmdir-tests: New tests.
42372         * tests/test-rmdir.c: Likewise.
42373
42374 2009-09-15  Eric Blake  <ebb9@byu.net>
42375
42376         fchdir: improve use of replacement functions
42377         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42378         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42379         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42380         REPLACE_CLOSEDIR.
42381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42382         * modules/sys_stat (Makefile.am): Substitute correct witness.
42383         * modules/dirent (Makefile.am): Likewise.
42384         * modules/unistd (Makefile.am): Likewise.
42385         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42386         * lib/unistd.in.h (dup): Likewise.
42387         * lib/sys_stat.in.h (fstat): Likewise.
42388
42389         maint: ignore gnulib-tool temp files
42390         * .gitignore: Ignore files created during gnulib-tool --test.
42391
42392 2009-09-13  Jim Meyering  <meyering@redhat.com>
42393
42394         posixtm: don't reject a time that specify "60" as the number of seconds
42395         * lib/posixtm.c (posixtime): The code to reject invalid dates
42396         would also reject a time specified with the .60 suffix.
42397         But POSIX allows that, in order to accommodate leap seconds.
42398         So don't reject it.
42399         (main): Adjust tests accordingly.
42400         * modules/posixtm (Depends-on): Add stpcpy.
42401
42402 2009-09-11  Jim Meyering  <meyering@redhat.com>
42403
42404         announce-gen: include [$release_type] in emitted Subject:
42405         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42406         e.g., [stable] in the emitted Subject: line.
42407
42408 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42409
42410         Remove obsolete macros from several modules.
42411         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42412         obsolete Autoconf macros with their modern counterparts.
42413         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42414         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42415         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42416         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42417         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42418         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42419         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42420         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42421         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42422         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42423         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42424         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42425         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42426         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42427         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42428         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42429         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42430         * m4/time_r.m4 (gl_TIME_R): Likewise.
42431         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42432         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42433         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42434
42435         Fix copyright header in build-aux scripts.
42436         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42437         recommendation.
42438         * build-aux/ncftpput-ftp: Likewise.
42439         * build-aux/update-copyright: Likewise.
42440
42441 2009-09-09  Eric Blake  <ebb9@byu.net>
42442
42443         test-link: allow Linux choice of errno
42444         * tests/test-link.c (main): Relax test for alternate error.
42445
42446         strndup: fix improper m4 caching
42447         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42448         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42449         (gl_PREREQ_STRNDUP): Delete.
42450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42451         * modules/string (Makefile.am): Substitute it.
42452         * lib/string.in.h (strndup): Modernize prototype.
42453
42454         getcwd: port to mingw
42455         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42456         different from the POSIX assumptions made throughout the getcwd
42457         module; fortunately, the mingw getcwd does not need replacement.
42458         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42459         * modules/getcwd-tests: New test.
42460         * tests/test-getcwd.c: Likewise.
42461
42462         link: fix platform bugs
42463         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42464         * lib/link.c (link): Work around them.  Fix related mingw bug.
42465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42466         * modules/unistd (Makefile.am): Substitute it.
42467         * lib/unistd.in.h (link): Declare replacement.
42468         * doc/posix-functions/link.texi (link): Document this.
42469         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42470
42471         test-link: consolidate into single C program, test more cases
42472         * tests/test-link.sh: Delete.
42473         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42474         at least Cygwin and Solaris.
42475         * modules/link-tests (Files): Remove unused file.
42476         (Depends-on): Add errno, sys_stat.
42477         (Makefile.am): Simplify.
42478
42479 2009-09-08  Bruno Haible  <bruno@clisp.org>
42480
42481         Work around towlower, towupper bug on mingw.
42482         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42483         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42484         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42485         * doc/posix-functions/towupper.texi: Likewise.
42486         Reported by Eric Blake.
42487
42488 2009-09-08  Jim Meyering  <meyering@redhat.com>
42489
42490         build: don't try to run autoheader if we don't use it
42491         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42492         is not used in configure.ac.
42493
42494 2009-09-08  Eric Blake  <ebb9@byu.net>
42495
42496         euidaccess: fix compilation error
42497         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42498
42499         rawmemchr: relax license
42500         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42501         okay.
42502         Reported by Jim Meyering.
42503
42504         mkfifoat: new module
42505         * modules/mkfifoat: New file.
42506         * lib/mkfifoat.c: Likewise.
42507         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42508         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42509         * modules/sys_stat (Makefile.am): Use them.
42510         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42511         * MODULES.html.sh (File system functions): Mention module.
42512         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42513         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42514         * modules/mkfifoat-tests: New test.
42515         * tests/test-mkfifoat.c: Likewise.
42516
42517         strchrnul: relax license
42518         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42519         okay.
42520         Reported by Jim Meyering.
42521
42522 2009-09-08  Eric Blake  <ebb9@byu.net>
42523
42524         fstatat: fix compilation on Solaris
42525         * lib/fstatat.c (includes): Add fcntl.h.
42526         Reported by Pádraig Brady.
42527
42528 2009-09-07  Eric Blake  <ebb9@byu.net>
42529
42530         rename: modernize replacement
42531         * modules/rename (Depends-on): Add stdio.
42532         (configure.ac): Declare witness.
42533         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42534         stdio take care of replacement.
42535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42536         * modules/stdio (Makefile.am): Substitute them.
42537         * lib/stdio.in.h (rename): Declare replacement.
42538         * lib/rename.c (includes): Allow cross-compilation to non-windows
42539         machines.
42540         * doc/posix-functions/rename.texi (rename): Improve
42541         documentation.
42542
42543         stdio: sort witness names
42544         * modules/stdio (Makefile.am): Sort replacements.
42545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42546         * lib/stdio.in.h: Likewise.
42547
42548         getcwd: minor cleanups
42549         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42550         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42551
42552         openat: provide more convenience names
42553         * modules/faccessat (configure.ac): Add C witness.
42554         * lib/unistd.in.h (readlinkat): Fix typo.
42555         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42556         convenience wrappers.
42557         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42558         wrappers in syntax checks.
42559
42560 2009-09-06  Eric Blake  <ebb9@byu.net>
42561
42562         doc: fix comments in recent patches
42563         * lib/faccessat.c: Mention correct function.
42564         * lib/fchmodat.c: Likewise.
42565         * lib/fchownat.c: Likewise.
42566         * lib/symlinkat.c: Likewise.
42567         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42568         constants.
42569
42570         faccessat, symlinkat: continue cleanup of previous patch
42571         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42572         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42573         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42575         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42576         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42577         set.
42578
42579 2009-09-06  Bruno Haible  <bruno@clisp.org>
42580
42581         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42582         (fstatat): Declare if GNULIB_FSTATAT is set.
42583         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42584         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42585         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42586         * modules/fcntl-h (Files): Remove m4/openat.m4.
42587         * modules/sys_stat (Files): Remove m4/openat.m4.
42588         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42589         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42590         * modules/unistd (Files): Remove m4/openat.m4.
42591         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42592         GNULIB_OPENAT.
42593         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42594         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42595         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42596         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42597         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42598         gl_OPENAT_DEFAULTS.
42599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42600         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42601         Don't require gl_OPENAT_DEFAULTS.
42602         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42603         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42604         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42605         (gl_OPENAT_DEFAULTS): Remove macro.
42606
42607 2009-09-06  Bruno Haible  <bruno@clisp.org>
42608
42609         * modules/openat (configure.ac): Remove unneeded witness.
42610
42611 2009-09-06  Bruno Haible  <bruno@clisp.org>
42612
42613         Set errno to ENOSYS when a function is entirely unsupported.
42614         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42615         EOPNOTSUPP.
42616         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42617         * modules/chown (Depends-on): Remove errno.
42618
42619 2009-09-06  Bruno Haible  <bruno@clisp.org>
42620
42621         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42622
42623 2009-09-06  Bruno Haible  <bruno@clisp.org>
42624
42625         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42626
42627 2009-09-06  Ben Pfaff  <blp@gnu.org>
42628             Bruno Haible  <bruno@clisp.org>
42629
42630         Work around a glibc bug in strtok_r.
42631         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42632         Undefine if UNDEFINE_STRTOK_R is set.
42633         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42635         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42636         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42637         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42638         UNDEFINE_STRTOK_R.
42639         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42640
42641 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42642
42643         exclude: minor fix
42644         * lib/exclude.c: Include wctype.h
42645
42646 2009-09-06  Akim Demaille  <demaille@gostai.com>
42647
42648         bootstrap: improve error message
42649         * build-aux/bootstrap (find_tool): Upon failure, report the list
42650         of candidates.
42651         Honor the initial value of the envvar.
42652
42653 2009-09-05  Eric Blake  <ebb9@byu.net>
42654
42655         symlinkat: new module
42656         * modules/symlinkat: New file.
42657         * lib/symlinkat.c: Likewise.
42658         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42660         * modules/unistd (Makefile.am): Use them.
42661         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42662         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42663         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42664         * MODULES.html.sh (File system functions): Mention module.
42665         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42666         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42667         * modules/symlinkat-tests: New test.
42668         * tests/test-symlinkat.c: Likewise.
42669
42670         test-openat-safer: add more checks
42671         * tests/test-openat-safer.c (main): Check more code paths.
42672
42673 2009-09-05  Jim Meyering  <meyering@redhat.com>
42674
42675         syntax-check: detect unnecessary inclusion of openat.h
42676         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42677
42678 2009-09-05  Bruno Haible  <bruno@clisp.org>
42679
42680         Support towlower, towupper.
42681         * doc/posix-functions/towlower.texi: Mention module wctype.
42682         * doc/posix-functions/towupper.texi: Likewise.
42683         * lib/wctype.in.h (towlower, towupper): New functions.
42684         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42685         (ASSERT): New macro.
42686         (e): New variable.
42687         (main): Test also towlower, towupper. Test WEOF argument.
42688         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42689
42690 2009-09-05  Bruno Haible  <bruno@clisp.org>
42691
42692         Fix conversion behaviour when the input is invalid.
42693         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42694         mark occurring in first pass of indirect conversion.
42695         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42696         input.
42697         Found by clang's static analyzer.
42698
42699 2009-09-05  Bruno Haible  <bruno@clisp.org>
42700
42701         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42702         where direct conversion is possible.
42703
42704 2009-09-04  Eric Blake  <ebb9@byu.net>
42705
42706         openat: fail with ENOENT on empty name
42707         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42708         buffer.
42709
42710         link-follow: fix logic bug in prior patch
42711         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42712         reversed sense of yes and no in prior patch.  Avoid confusing
42713         compilation failure with desired semantics.
42714
42715         link-follow: accommodate mingw and cross-compilation
42716         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42717         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42718         cross-compilation results to -1, to make linkat easier to
42719         implement when cross-compiling.  Trivially support mingw.
42720         * modules/link-follow (configure.ac): Call new name.
42721         * NEWS: Mention this.
42722
42723 2009-09-03  Eric Blake  <ebb9@byu.net>
42724
42725         faccessat: compile replacement
42726         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42727         needed.
42728
42729         fts: fix compilation error
42730         * lib/fts.c (includes): Re-add "openat.h", for
42731         openat_needs_fchdir.
42732
42733         faccessat: new module
42734         * modules/faccessat: New file.
42735         * lib/faccessat.c: Likewise.
42736         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42738         * modules/unistd (Makefile.am): Use it.
42739         * lib/unistd.in.h (faccessat): Declare it.
42740         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42741         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42742         * MODULES.html.sh (File system functions): Mention it.
42743         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42744         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42745
42746         euidaccess: prefer POSIX over non-standard implementation
42747         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42748         * lib/euidaccess.c (euidaccess): Use it if available.
42749
42750         openat: make template easier to use
42751         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42752         AT_FUNC_F2 to be undefined.
42753         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42754         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42755         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42756         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42757         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42758         Likewise.
42759         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42760         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42761         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42762         Likewise.
42763
42764         openat: declare in POSIX headers
42765         * NEWS: Mention this.
42766         * modules/openat (configure.ac): Declare witnesses.
42767         (Depends-on): Add fcntl-h, sys_stat, unistd.
42768         (Include): Mention correct headers.
42769         * modules/fcntl-h (Depends-on): Add link-warning.
42770         (Files): Add openat.m4.
42771         (Makefile.am): Substitute witnesses.
42772         * modules/sys_stat (Files, Makefile.am): Likewise.
42773         * modules/unistd (Files, Makefile.am): Likewise.
42774         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42775         (gl_OPENAT_DEFAULTS): New macro.
42776         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42778         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42779         (SYS_STAT_H): Remove unused variable.
42780         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42781         * lib/fcntl--.h (includes): Remove unneeded header.
42782         * lib/openat-safer.c (includes): Likewise.
42783         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42784         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42785         appropriate headers.
42786         (__OPENAT_PREFIX): Delete.
42787         * lib/fcntl.in.h (openat): Provide declaration.
42788         (AT_FDCWD): Fix Solaris bug.
42789         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42790         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42791         * lib/fchmodat.c (includes):  Adjust to find declaration.
42792         * lib/fchownat.c (includes): Likewise.
42793         * lib/mkdirat.c (includes): Likewise.
42794         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42795         still visible.
42796
42797 2009-09-02  Eric Blake  <ebb9@byu.net>
42798
42799         errno: use consistently
42800         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42801         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42802         * lib/canonicalize.c (ELOOP): Likewise.
42803         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42804         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42805         * lib/lchown.c (EOPNOTSUPP): Likewise.
42806         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42807         * lib/savewd.c (ESTALE): Likewise.
42808         * lib/settime.c (ENOSYS): Likewise.
42809         * lib/utimens.c (ENOSYS): Likewise.
42810         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42811         * lib/chdir-safer.c (ELOOP): Likewise.
42812         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42813         * modules/c-stack (Depends-on): Add errno.
42814         * modules/canonicalize (Depends-on): Likewise.
42815         * modules/chdir-safer (Depends-on): Likewise.
42816         * modules/fdopendir (Depends-on): Likewise.
42817         * modules/inet_ntop (Depends-on): Likewise.
42818         * modules/inet_pton (Depends-on): Likewise.
42819         * modules/lchown (Depends-on): Likewise.
42820         * modules/openat (Depends-on): Likewise.
42821         * modules/savewd (Depends-on): Likewise.
42822         * modules/settime (Depends-on): Likewise.
42823         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42824
42825         fts: avoid leaking fds
42826         * modules/fts (Depends-on): Add cloexec.
42827         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42828         flag.
42829
42830         fts: make directory fds more robust
42831         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42832         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42833
42834         backupfile, chdir-long, fts, savedir: make safer
42835         * lib/backupfile.c (includes): Use "dirent--.h", since
42836         numbered_backup can write to stderr during readdir.
42837         * lib/savedir.c (includes): Likewise.
42838         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42839         emulation can write to stderr on failure.
42840         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42841         * lib/getcwd.c: Document why opendir_safer is unused.
42842         * lib/glob.c: Likewise.
42843         * lib/scandir.c: Likewise.
42844         * lib/openat-proc.c: Likewise, for open_safer.
42845         * modules/backupfile (Depends-on): Add dirent-safer.
42846         * modules/savedir (Depends-on): Likewise.
42847         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42848         * modules/chdir-long (Depends-on): Add openat-safer.
42849
42850         openat-safer: new module
42851         * modules/openat-safer: New file.
42852         * lib/openat-safer.c: Likewise.
42853         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42854         * lib/fcntl-safer.h (openat_safer): Declare.
42855         * lib/fcntl--.h (openat): Override.
42856         * MODULES.html.sh (File descriptor based I/O): Mention it.
42857         * lib/openat.h: Add double-inclusion guards.
42858         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42859         "fcntl--.h", so we can implement openat.
42860         * modules/openat-safer-tests: New test.
42861         * tests/test-openat-safer.c: New file.
42862
42863         dirent-safer: new module
42864         * modules/dirent-safer: New file.
42865         * lib/dirent--.h: Likewise.
42866         * lib/dirent-safer.h: Likewise.
42867         * lib/opendir-safer.c: Likewise.
42868         * m4/dirent-safer.m4: Likewise.
42869         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42870         * modules/dirent-safer-tests: New test.
42871         * tests/test-dirent-safer.c: New file.
42872         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42873
42874         fdopendir: optimize on mingw
42875         * lib/unistd.in.h (_gl_directory_name): New prototype.
42876         * lib/fchdir.c (_gl_directory_name): Implement it.
42877         (fchdir): Use it to simplify implementation.
42878         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42879         fchdir, when available, to avoid calling [f]chdir().
42880
42881         fdopendir: split into its own module
42882         * lib/openat.c (fdopendir): Move...
42883         * lib/fdopendir.c: ...into new file.
42884         * modules/fdopendir: New module.
42885         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42886         * modules/openat (Depends-on): Add fdopendir.
42887         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42888         fdopendir here.
42889         * modules/savedir (Depends-on): Only need fdopendir, not full
42890         openat.
42891         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42892         * lib/openat.h (fdopendir): Drop prototype.
42893         * lib/dirent.in.h (fdopendir): Provide prototype.
42894         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42895         * modules/dirent (Makefile.am): Substitute them.
42896         * MODULES.html.sh (File system functions): Mention it.
42897         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42898         * modules/fdopendir-tests: New file.
42899         * tests/test-fdopendir.c: Likewise.
42900
42901         fchdir: use more consistent macro convention
42902         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42903         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42904         REPLACE_FCHDIR, rather than relying on config.h macros.
42905         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42906         inside a single make-time REPLACE_FCHDIR block, rather than using
42907         the config.h FCHDIR_REPLACEMENT.
42908         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42909         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42910         Manage fstat replacement.
42911         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42912         REPLACE_FCHDIR.
42913         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42914         (Makefile.am): Substitute REPLACE_FCHDIR.
42915         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42916         FCHDIR_REPLACEMENT.
42917         * lib/dup-safer.c (dup_safer): Likewise.
42918         * lib/dup2.c (rpl_dup2): Likewise.
42919         * lib/dup3.c (rpl_dup3): Likewise.
42920         * lib/open.c (rpl_open): Likewise.
42921
42922         fchdir: simplify error handling, and support dup3
42923         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42924         stdbool, malloc-posix, realloc-posix.
42925         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42926         (ensure_dirs_slot): Return false on allocation failure.
42927         (rpl_dup2): Delete.
42928         (_gl_register_dup): New function.
42929         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42930         (_gl_register_fd): Close fd on allocation failure.
42931         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42932         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42933         prototype.
42934         (rpl_dup2_fchdir): Delete prototype.
42935         * lib/open.c (open): Update caller.
42936         * lib/dup2.c (dup2): Track fchdir metadata.
42937         * lib/dup3.c (dup3): Likewise.
42938         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42939         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42940
42941 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42942
42943         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42944         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42945         don't pass arguments to AC_OUTPUT.
42946
42947 2009-09-02  Bruno Haible  <bruno@clisp.org>
42948
42949         * modules/mkdtemp (License): Relicense under LGPLv2+.
42950         Reported by Paolo Bonzini.
42951
42952 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42953
42954         Replace uses of obsolete autoconf macros in Jim's modules.
42955         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42956         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42957         can evoke a warning from autoconf when run with -Wobsolete
42958         enabled.  They were declared obsolete for good reasons (see
42959         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42960         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42961         should not continue using the deprecated macros.
42962         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42963         obsolete Autoconf macros with modern counterparts.
42964         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42965         * m4/dos.m4 (gl_AC_DOS): Likewise.
42966         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42967         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42968         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42969         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42970         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42971         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42972         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42973         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42974         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42975         Likewise.
42976         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42977         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42978         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42979         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42980         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42981         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42982
42983 2009-09-01  Eric Blake  <ebb9@byu.net>
42984
42985         fchdir: fix off-by-one bug in previous patch
42986         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42987         (_gl_unregister_fd): Delete useless if.
42988
42989 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42990
42991         maint.mk: sort the list of syntax-check rules
42992         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42993         easier to get a sense of progress when the rules are run sequentially
42994         and take a long time.
42995
42996 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42997
42998         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42999         * modules/netinet_in: Likewise.
43000         * modules/sys_file: Likewise.
43001         * modules/sys_ioctl: Likewise.
43002         * modules/sys_select: Likewise.
43003         * modules/sys_socket: Likewise.
43004         * modules/sys_stat: Likewise.
43005         * modules/sys_time: Likewise.
43006         * modules/sys_times: Likewise.
43007         * modules/sys_utsname: Likewise.
43008         * modules/sys_wait: Likewise.
43009
43010 2009-09-01  Jim Meyering  <meyering@redhat.com>
43011
43012         fts: help ensure that return values are not ignored
43013         * lib/fts_.h (__GNUC_PREREQ): Define.
43014         (__attribute_warn_unused_result__): Define.
43015         (fts_children, fts_close, fts_open, fts_read): Declare with
43016         __attribute_warn_unused_result__.
43017
43018         fts: fts_close now fails also when closing a dir file descriptor fails
43019         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43020         and propagate to caller, along with errno.
43021
43022         announce-gen: correct formatting in --help output
43023         * build-aux/announce-gen (usage): Move the one-line description in
43024         --help output "up", to where it belongs, just after Usage:.
43025
43026 2009-08-31  Eric Blake  <ebb9@byu.net>
43027
43028         fchdir: port to mingw
43029         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43030         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43031         opened, then use a substitute.
43032         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43033         replacement.
43034         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43035         (_gl_register_fd): No need to check stat if open already filters
43036         all directories.
43037         (fchdir): Fix error condition to match POSIX.
43038         * modules/fchdir (Depends-on): Add sys_stat.
43039         * doc/posix-functions/open.texi (open): Document the limitation.
43040         * modules/fchdir-tests: New file.
43041         * tests/test-fchdir.c: Likewise.
43042
43043         canonicalize: allow cross-testing from cygwin to mingw
43044         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43045         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43046         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43047         Likewise.
43048         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43049         target does not support symlinks.
43050         * tests/test-canonicalize-lgpl.sh: Likewise.
43051
43052         chown: avoid compilation warning on mingw
43053         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43054         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43055         mingw.
43056         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43057         * modules/chown (Depends-on): Add errno.
43058
43059 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43060
43061         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43062         command.
43063
43064 2009-08-31  Jim Meyering  <meyering@redhat.com>
43065
43066         canonicalize: remove useless initialization
43067         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43068         initialization of local, "end".
43069
43070 2009-08-30  Bruno Haible  <bruno@clisp.org>
43071
43072         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43073         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43074         ENOSYS.
43075
43076 2009-08-30  Bruno Haible  <bruno@clisp.org>
43077
43078         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43079         /usr/xpg4/bin/tr when it exists.
43080         * tests/test-pipe-filter-gi1.sh: Likewise.
43081
43082 2009-08-30  Bruno Haible  <bruno@clisp.org>
43083
43084         Work around deficient /usr/bin/id program on Solaris.
43085         * tests/test-file-has-acl.sh (ID): New variable.
43086         * tests/test-set-mode-acl.sh (ID): Likewise.
43087         * tests/test-copy-acl.sh (ID): Likewise.
43088         * tests/test-copy-file.sh (ID): Likewise.
43089
43090 2009-08-30  Bruno Haible  <bruno@clisp.org>
43091
43092         New module 'xstriconveh'.
43093         * lib/xstriconveh.h: New file.
43094         * lib/xstriconveh.c: New file.
43095         * modules/xstriconveh: New file.
43096
43097 2009-08-30  Bruno Haible  <bruno@clisp.org>
43098
43099         Make it easier to use mem_cd_iconveh.
43100         * lib/striconveh.h (iconveh_t): New type.
43101         (iconveh_open, iconveh_close): New declarations.
43102         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43103         with a single 'const iconveh_t *' argument.
43104         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43105         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43106         with a single 'const iconveh_t *' argument.
43107         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43108         * tests/test-striconveh.c (main): Update.
43109         * NEWS: Mention the change.
43110
43111 2009-08-30  Bruno Haible  <bruno@clisp.org>
43112
43113         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43114         problem.
43115
43116 2009-08-30  Bruno Haible  <bruno@clisp.org>
43117
43118         Work around iconv_open problem on Solaris.
43119         * lib/iconv_open-solaris.gperf: New file.
43120         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43121         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43122         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43123         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43124         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43125         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43126
43127 2009-08-29  Jim Meyering  <meyering@redhat.com>
43128
43129         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43130         * top/maint.mk (cvs-check): Remove target; it was just an alias
43131         to the better-named vc-diff-check.
43132         (maintainer-distcheck): Remove rule.  It was used only from
43133         the (alpha/beta/major) target, and all of its commands but one
43134         were coreutils-specific.
43135         (vc-dist): Remove rule.
43136         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43137         Run vc-diff-check, not vc-dist.
43138         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43139
43140 2009-08-27  Bruno Haible  <bruno@clisp.org>
43141
43142         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43143         of 0.
43144
43145 2009-08-27  Bruno Haible  <bruno@clisp.org>
43146
43147         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43148         compilers.
43149         * doc/func.texi: Document the SunPRO C bug.
43150
43151 2009-08-27  Bruno Haible  <bruno@clisp.org>
43152
43153         Fix link error on Solaris.
43154         * tests/test-parse-duration.c (xstrdup): Remove function.
43155
43156 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43157
43158         ignore-value: handle pointer types, too
43159         * lib/ignore-value.h (__attribute__): Remove definition.
43160         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43161         of a more concise and more-often effective "(void) i" statement.
43162         (ignore_ptr): New function to suppress warnings from functions that
43163         return pointers, and to make it explicit that one function doesn't
43164         handle all cases.
43165
43166 2009-08-25  Bruno Haible  <bruno@clisp.org>
43167
43168         dup2: work around a Linux bug.
43169         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43170         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43171         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43172         Reported by Simon Josefsson.
43173
43174 2009-08-25  Jim Meyering  <meyering@redhat.com>
43175
43176         libguestfs uses gnulib
43177         * users.txt: Add libguestfs.
43178
43179 2009-08-24  Eric Blake  <ebb9@byu.net>
43180
43181         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43182         * lib/pipe2.c (includes): Add binary-io.h.
43183         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43184
43185 2009-08-24  Bruno Haible  <bruno@clisp.org>
43186
43187         Tolerate declared but missing accept4 syscall.
43188         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43189         available.
43190         * lib/sys_socket.in.h (accept4): If the function is already present,
43191         override it.
43192         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43193         * modules/accept4 (Makefile.am): Compile accept4.c always.
43194         Reported by Paolo Bonzini and Eric Blake.
43195
43196 2009-08-23  Bruno Haible  <bruno@clisp.org>
43197
43198         New module 'accept4'.
43199         * lib/sys_socket.in.h (accept4): New declaration.
43200         * lib/accept4.c: New file.
43201         * m4/accept4.m4: New file.
43202         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43203         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43204         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43205         HAVE_ACCEPT4.
43206         * modules/accept4: New file.
43207         * doc/glibc-functions/accept4.texi: Mention the new module.
43208
43209 2009-08-24  Jim Meyering  <meyering@redhat.com>
43210
43211         progname: also set global program_invocation_name, when possible
43212         Before this change, a libtool-enabled program that calls glibc's
43213         error function would report the program name as
43214         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43215         * modules/progname (configure.ac): Check for a declaration of
43216         program_invocation_name.
43217         * lib/progname.c:  Include <errno.h>.
43218         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43219         Set program_invocation_name.
43220
43221 2009-08-23  Bruno Haible  <bruno@clisp.org>
43222
43223         * lib/dup3.c: Include <string.h>.
43224
43225 2009-08-23  Bruno Haible  <bruno@clisp.org>
43226
43227         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43228         * lib/pipe2.c (pipe2): Likewise.
43229         Suggested by Eric Blake.
43230
43231 2009-08-23  Bruno Haible  <bruno@clisp.org>
43232
43233         Tolerate declared but missing dup3 syscall.
43234         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43235         * lib/unistd.in.h (dup3): If the function is already present,
43236         override it.
43237         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43238         * modules/dup3 (Makefile.am): Compile dup3.c always.
43239         Reported by Paolo Bonzini.
43240
43241 2009-08-23  Bruno Haible  <bruno@clisp.org>
43242
43243         Tolerate declared but missing pipe2 syscall.
43244         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43245         available.
43246         * lib/unistd.in.h (pipe2): If the function is already present,
43247         override it.
43248         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43249         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43250         Reported by Paolo Bonzini.
43251
43252 2009-08-23  Bruno Haible  <bruno@clisp.org>
43253
43254         * lib/pipe2.c (pipe2): Move #ifs inside function.
43255
43256 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43257
43258         quotearg: document limitations of quote_these_too
43259         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43260         those limitations are created.
43261         * lib/quotearg.h (set_char_quoting): Document that digits and
43262         letters that are special after backslash are not permitted.
43263         (quotearg_char): Cross-reference set_char_quoting documentation.
43264
43265 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43266
43267         quotearg: implement custom_quoting_style
43268         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43269         right_quote fields.
43270         (set_custom_quoting): New public function.
43271         (quotearg_buffer_restyled): Add left_quote and right_quote
43272         arguments, handle them very much like locale quoting, and update
43273         all uses.
43274         (quotearg_n_custom): New public function.
43275         (quotearg_n_custom_mem): New public function.
43276         (quotearg_custom): New public function.
43277         (quotearg_custom_mem): New public function.
43278         * lib/quotearg.h: Prototype and document new public functions.
43279         (enum quoting_style): For escape_quoting_style and
43280         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43281         ignored even though they're otherwise like c_quoting_style.
43282         Add custom_quoting_style member and document with comparison to
43283         clocale_quoting_style.
43284         * tests/test-quotearg.c (custom_quotes): New array.
43285         (custom_results): New array.
43286         (main): Extend to test custom quoting.
43287
43288 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43289
43290         quotearg: fix right quote escaping when it's in quote_these_too
43291         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43292         quote, be sure to prepend only one backslash.
43293         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43294         (main): Test it.
43295
43296 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43297
43298         quotearg-tests: test escaping of embedded locale quotes
43299         * tests/test-quotearg.c (struct result_strings): Add member for
43300         new input.
43301         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43302         (inputs): Add new input.
43303         (results_g): Add expected results.
43304         (flag_results): Likewise.
43305         (locale_results): Likewise.
43306         (compare_strings): Check those.
43307
43308 2009-08-23  Bruno Haible  <bruno@clisp.org>
43309
43310         Tests for module 'dup3'.
43311         * modules/dup3-tests: New file.
43312         * tests/test-dup3.c: New file.
43313
43314         New module 'dup3'.
43315         * lib/unistd.in.h (dup3): New declaration.
43316         * lib/dup3.c: New file.
43317         * m4/dup3.m4: New file.
43318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43319         HAVE_DUP3.
43320         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43321         * modules/dup3: New file.
43322         * doc/glibc-functions/dup3.texi: Mention the new module.
43323
43324 2009-08-23  Bruno Haible  <bruno@clisp.org>
43325
43326         Tweak the dup2 test.
43327         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43328         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43329         the test file is still empty. Fix argument order of lseek.
43330
43331 2009-08-23  Bruno Haible  <bruno@clisp.org>
43332
43333         Avoid test link errors when the modules getopt-gnu, gettext are used.
43334         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43335         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43336
43337 2009-08-23  Bruno Haible  <bruno@clisp.org>
43338
43339         Fix getdtablesize() on mingw.
43340         * lib/getdtablesize.c (getdtablesize): Implement differently.
43341         * lib/unistd.in.h (getdtablesize): Improve comment.
43342
43343 2009-08-23  Bruno Haible  <bruno@clisp.org>
43344
43345         New module 'mkostemp'.
43346         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43347         * lib/stdlib.in.h (mksotemp): New declaration.
43348         * lib/mkostemp.c: New file, from glibc with modifications.
43349         * lib/tempname.h (GT_FILE): Remove outdated comment.
43350         (gen_tempname): Add flags argument.
43351         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43352         (__GT_FILE): Map to 1.
43353         (small_open, large_open): Remove macros.
43354         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43355         * lib/mkstemp.c (mkstemp): Update.
43356         * lib/mkdtemp.c (mkdtemp): Likewise.
43357         * m4/mkostemp.m4: New file.
43358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43359         HAVE_MKOSTEMP.
43360         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43361         HAVE_MKOSTEMP.
43362         * modules/mkostemp: New file, based on modules/mkstemp.
43363         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43364         * NEWS: Mention the change.
43365
43366 2009-08-23  Bruno Haible  <bruno@clisp.org>
43367
43368         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43369         Reported by Eric Blake.
43370
43371 2009-08-23  Bruno Haible  <bruno@clisp.org>
43372
43373         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43374         Reported by Eric Blake.
43375
43376 2009-08-23  Bruno Haible  <bruno@clisp.org>
43377
43378         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43379         * modules/pipe2 (Depends-on): Likewise.
43380
43381 2009-08-23  Eric Blake  <ebb9@byu.net>
43382
43383         fcntl-h: add O_TTY_INIT support
43384         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43385         * tests/test-fcntl-h.c (o): Test it.
43386         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43387
43388         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43389         * modules/fcntl: Move <fcntl.h> header replacement...
43390         * modules/fcntl-h: ...to new name, so as not to collide with
43391         like-named function.
43392         * tests/test-fcntl.c: Rename...
43393         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43394         * modules/fcntl-tests: Rename...
43395         * modules/fcntl-h-tests: ...to this.  Update test file name.
43396         * modules/chdir-long (Depends-on): Update clients.
43397         * modules/chdir-safer (Depends-on): Likewise.
43398         * modules/fcntl-safer (Depends-on): Likewise.
43399         * modules/fts (Depends-on): Likewise.
43400         * modules/mkancesdirs (Depends-on): Likewise.
43401         * modules/mkdir-p (Depends-on): Likewise.
43402         * modules/open (Depends-on): Likewise.
43403         * modules/savewd (Depends-on): Likewise.
43404         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43405         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43406
43407 2009-08-22  Bruno Haible  <bruno@clisp.org>
43408
43409         * modules/binary-io (License): Relicense under LGPL.
43410         * modules/pipe2 (License): Likewise.
43411
43412 2009-08-22  Bruno Haible  <bruno@clisp.org>
43413
43414         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43415         return value.
43416         * lib/pipe-filter-gi.c (filter_init): Likewise.
43417         Reported by Eric Blake.
43418
43419 2009-08-22  Bruno Haible  <bruno@clisp.org>
43420
43421         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43422         * modules/pipe (Depends-on): Add pipe2.
43423
43424 2009-08-22  Bruno Haible  <bruno@clisp.org>
43425
43426         Tests for module 'pipe2'.
43427         * modules/pipe2-tests: New file.
43428         * tests/test-pipe2.c: New file.
43429
43430         New module 'pipe2'.
43431         * lib/unistd.in.h (pipe2): New declaration.
43432         * lib/pipe2.c: New file.
43433         * m4/pipe2.m4: New file.
43434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43435         HAVE_PIPE2.
43436         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43437         * modules/pipe2: New file.
43438         * doc/glibc-functions/pipe2.texi: Mention the new module.
43439
43440 2009-08-22  Bruno Haible  <bruno@clisp.org>
43441
43442         Reference some new glibc functions.
43443         * doc/glibc-functions/accept4.texi: New file.
43444         * doc/glibc-functions/dup3.texi: New file.
43445         * doc/glibc-functions/mkostemp.texi: New file.
43446         * doc/glibc-functions/pipe2.texi: New file.
43447         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43448         (Glibc sys/socket.h): Refer to accept4.
43449         (Glibc unistd.h): Refer to dup3, pipe2.
43450         Reported by Eric Blake.
43451
43452 2009-08-22  Jim Meyering  <meyering@redhat.com>
43453             Bruno Haible  <bruno@clisp.org>
43454
43455         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43456         This makes it so packages using automake-1.11's silent-rules option
43457         can print e.g., a single "GEN    configmake.h" line, rather than
43458         the 30+ statements that perform the job.  If you want to see the
43459         actual commands, you can still run "make V=1".
43460         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43461         so that make output is abbreviated when those variables are defined
43462         appropriately.
43463         * modules/argz: Likewise.
43464         * modules/arpa_inet: Likewise.
43465         * modules/byteswap: Likewise.
43466         * modules/configmake: Likewise.
43467         * modules/dirent: Likewise.
43468         * modules/errno: Likewise.
43469         * modules/fcntl: Likewise.
43470         * modules/float: Likewise.
43471         * modules/fnmatch: Likewise.
43472         * modules/getopt-posix: Likewise.
43473         * modules/glob: Likewise.
43474         * modules/iconv_open: Likewise.
43475         * modules/inttypes: Likewise.
43476         * modules/localcharset: Likewise.
43477         * modules/locale: Likewise.
43478         * modules/math: Likewise.
43479         * modules/netdb: Likewise.
43480         * modules/netinet_in: Likewise.
43481         * modules/poll: Likewise.
43482         * modules/posix_spawnp-tests: Likewise.
43483         * modules/sched: Likewise.
43484         * modules/search: Likewise.
43485         * modules/selinux-h: Likewise.
43486         * modules/signal: Likewise.
43487         * modules/spawn: Likewise.
43488         * modules/stdarg: Likewise.
43489         * modules/stdbool: Likewise.
43490         * modules/stddef: Likewise.
43491         * modules/stdint: Likewise.
43492         * modules/stdio: Likewise.
43493         * modules/stdlib: Likewise.
43494         * modules/string: Likewise.
43495         * modules/strings: Likewise.
43496         * modules/sys_file: Likewise.
43497         * modules/sys_ioctl: Likewise.
43498         * modules/sys_select: Likewise.
43499         * modules/sys_socket: Likewise.
43500         * modules/sys_stat: Likewise.
43501         * modules/sys_time: Likewise.
43502         * modules/sys_times: Likewise.
43503         * modules/sys_utsname: Likewise.
43504         * modules/sys_wait: Likewise.
43505         * modules/sysexits: Likewise.
43506         * modules/time: Likewise.
43507         * modules/unistd: Likewise.
43508         * modules/wchar: Likewise.
43509         * modules/wctype: Likewise.
43510
43511 2009-08-22  Jim Meyering  <meyering@redhat.com>
43512
43513         announce-gen: detect write failure
43514         * build-aux/announce-gen: Add Coda at end.
43515         Remove equivalent-but-more-verbose block at top.
43516
43517 2009-08-19  Akim Demaille  <demaille@gostai.com>
43518
43519         bootstrap: --help to stdout.
43520         * bootstrap (usage): Don't send --help to stderr.
43521         Use a here doc instead of a long string.
43522
43523 2009-08-21  Eric Blake  <ebb9@byu.net>
43524
43525         test-popen-safer: split from test-popen
43526         * tests/test-popen.c (main): Move...
43527         * tests/test-popen.h: ...into new file.
43528         * tests/test-popen-safer2.c: New file.
43529         * modules/popen-tests (Files): Add test-popen.h.
43530         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43531         Suggested by Bruno Haible.
43532
43533         test-fcntl-safer: split from test-open
43534         * tests/test-open.c (main): Move...
43535         * tests/test-open.h: ...into new file.
43536         * tests/test-fcntl-safer.c: New file.
43537         * modules/open-tests (Files): Add test-open.h.
43538         * modules/fcntl-safer-tests: New file.
43539         Suggested by Bruno Haible.
43540
43541         test-fopen-safer: split from test-fopen
43542         * tests/test-fopen.c (main): Move...
43543         * tests/test-fopen.h: ...into new file.
43544         * tests/test-fopen-safer.c: New file.
43545         * modules/fopen-tests (Files): Add test-fopen.h.
43546         * modules/fopen-safer-tests: New file.
43547         Suggested by Bruno Haible.
43548
43549 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43550
43551         popen-safer: test O_CLOEXEC at run-time.
43552         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43553
43554 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43555
43556         fcntl: move more flags to the header
43557         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43558         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43559         * lib/fcntl.in.h: Do both things here.
43560
43561 2009-08-21  Jim Meyering  <meyering@redhat.com>
43562
43563         consistently remove $@-t before redirecting to it
43564         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43565         * modules/alloca-opt: Likewise.
43566         * modules/byteswap: Likewise.
43567         * modules/fnmatch: Likewise.
43568         * modules/getopt-posix: Likewise.
43569         * modules/glob: Likewise.
43570         * modules/poll: Likewise.
43571         * modules/posix_spawnp-tests: Likewise.
43572         * modules/sys_socket: Likewise.
43573         * modules/sysexits: Likewise.
43574
43575 2009-08-21  Eric Blake  <ebb9@byu.net>
43576
43577         popen: simplify access to original popen
43578         * lib/popen.c (rpl_popen): No need to worry about popen being a
43579         macro.
43580         Reported by Bruno Haible.
43581
43582 2009-08-20  Eric Blake  <ebb9@byu.net>
43583
43584         build: avoid some compiler warnings
43585         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43586         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43587         type.
43588         (new_exclude_segment, excluded_file_pattern_p)
43589         (excluded_file_name_p): Reduce scope.
43590         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43591         old-style declaration.
43592
43593 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43594
43595         * tests/test-exclude1.sh: Handle Windows EOL.
43596         * tests/test-exclude2.sh: Likewise.
43597         * tests/test-exclude3.sh: Likewise.
43598         * tests/test-exclude4.sh: Likewise.
43599         * tests/test-exclude5.sh: Likewise.
43600         * tests/test-exclude6.sh: Likewise.
43601         * tests/test-exclude7.sh: Likewise.
43602
43603 2009-08-19  Akim Demaille  <demaille@gostai.com>
43604
43605         bootstrap: find sha1sum when named gsha1sum.
43606         * bootstrap (find_tool): New.
43607         ($SHA1SUM): New.
43608         Use it.
43609
43610 2009-08-20  Jim Meyering  <meyering@redhat.com>
43611
43612         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43613         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43614         expression that converts "." in a file name to "\." in the resulting
43615         regexp.  Start with a dummy statement, so that prior shell variable
43616         definitions are expanded portably.  Reported by Simon Josefsson.
43617
43618 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43619
43620         Fix polling for writeability of a screen buffer.
43621         * lib/poll.c: Distinguish input and screen buffers for the
43622         Win32 implementation.
43623         * lib/select.c: Likewise.
43624
43625 2009-08-19  Eric Blake  <ebb9@byu.net>
43626
43627         popen-safer: prevent popen from clobbering std descriptors
43628         * modules/popen-safer: New file.
43629         * lib/popen-safer.c: Likewise.
43630         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43631         * lib/stdio--.h (popen): Provide override.
43632         * lib/stdio-safer.h (popen_safer): Provide declaration.
43633         * tests/test-popen.c (includes): Partially test this.
43634         * modules/popen-safer-tests: New file, for more tests.
43635         * tests/test-popen-safer.c: Likewise.
43636         * MODULES.html.sh (file stream based Input/Output): Mention it.
43637
43638         tests: test some of the *-safer modules
43639         * modules/fopen-safer (Depends-on): Add fopen.
43640         * modules/fcntl-safer (Depends-on): Add fcntl.
43641         * modules/stdlib-safer (Depends-on): Add stdlib.
43642         (configure.ac): Set indicator.
43643         * modules/unistd-safer (configure.ac): Likewise.
43644         * modules/tmpfile-safer (configure.ac): Likewise.
43645         (Depends-on): Add tmpfile.
43646         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43647         active.
43648         * tests/test-fopen.c (includes): Test safer versions when they are
43649         in use.
43650         * tests/test-open.c (includes): Likewise.
43651
43652         popen: fix cygwin 1.5 bug when stdin closed
43653         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43654         * modules/popen: New file.
43655         * modules/popen-tests: Likewise.
43656         * tests/test-popen.c: Likewise.
43657         * m4/popen.m4: Likewise.
43658         * lib/popen.c: Likewise.
43659         * lib/stdio.in.h (popen): New declaration.
43660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43661         * modules/stdio (Makefile.am): Likewise.
43662         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43663
43664 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43665
43666         maint.mk: give full control over update-copyright exclusions
43667         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43668         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43669         (update-copyright): Don't force inclusion of top-level
43670         ChangeLog.  Don't force exclusion of all COPYING files, but make
43671         them the default exclusion instead.
43672
43673 2009-08-16  Bruno Haible  <bruno@clisp.org>
43674
43675         Fix test failures on Solaris 10.
43676         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43677         tests when Solaris iconv() is used.
43678         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43679         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43680         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43681         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43682         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43683
43684 2009-08-16  Bruno Haible  <bruno@clisp.org>
43685
43686         Fix test failures on Solaris 10.
43687         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43688         'tr' program and pass it as first argument.
43689         * tests/test-pipe-filter-gi1.sh: Likewise.
43690         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43691         program as first argument.
43692         * tests/test-pipe-filter-gi1.c (main): Likewise.
43693
43694 2009-08-16  Eric Blake  <ebb9@byu.net>
43695
43696         fpurge: fix previous commits
43697         * modules/fpurge (Makefile.am): Make replacement conditional,
43698         partially reverting 2007-04-29 change; missed in previous
43699         attempt.
43700         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43701         is missing.
43702
43703 2009-08-16  Bruno Haible  <bruno@clisp.org>
43704
43705         Clarify fpurge's effect on the file position.
43706         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43707         * tests/test-fpurge.c (main): Make a second pass for checking the file
43708         position.
43709
43710 2009-08-16  Bruno Haible  <bruno@clisp.org>
43711
43712         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43713         declaration of fpurge is missing.
43714         * tests/test-fpurge.c (main): Check that the file has not more contents
43715         than expected. Close the file before removing it.
43716
43717 2009-08-15  Eric Blake  <ebb9@byu.net>
43718
43719         fpurge: don't wrap working cygwin implementation
43720         * lib/fpurge.c (fpurge): Fix comment typo.
43721         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43722         1.7 to avoid replacement.
43723         * tests/test-fpurge.c (main): Enhance test.
43724
43725 2009-08-15  Eric Blake  <ebb9@byu.net>
43726         and Jim Meyering  <meyering@redhat.com>
43727
43728         test-update-copyright: skip if perl is insufficient
43729         * tests/test-update-copyright.sh: Failure to run maintainer tool
43730         should not cause testsuite failure on cygwin 1.5.
43731
43732 2009-08-14  Eric Blake  <ebb9@byu.net>
43733
43734         doc: mention more functions added in cygwin 1.7.0
43735         * doc/posix-headers/limits.texi (limits.h): Update for recent
43736         cygwin additions.
43737         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43738         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43739         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43740         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43741         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43742
43743 2009-08-14  Eric Blake  <ebb9@byu.net>
43744
43745         maint.mk: simplify update-copyright rule
43746         * top/maint.mk (update-copyright-local): Delete, and document how
43747         to do it in cfg.mk instead.
43748         (update-copyright-exclude-regexp): Delete, and document how to do
43749         it in .x-update-copyright instead.
43750         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43751         exclude ChangeLog.
43752
43753 2009-08-14  Bruno Haible  <bruno@clisp.org>
43754
43755         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43756
43757 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43758
43759         maint.mk: support update-copyright-env
43760         * top/maint.mk (update-copyright-env): Define place-holder.
43761         (update-copyright): Expand $(update-copyright-env) before
43762         invoking update-copyright.
43763
43764 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43765
43766         update-copyright: implement forced reformatting
43767         * build-aux/update-copyright: Implement and document
43768         UPDATE_COPYRIGHT_FORCE.
43769         * tests/test-update-copyright.sh: Test it.
43770
43771 2009-08-14  Eric Blake  <ebb9@byu.net>
43772         and Bruno Haible  <bruno@clisp.org>
43773
43774         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43775         * tests/test-locale.c: Revert previous patch related to NULL.
43776         * tests/test-stdio.c: Likewise.
43777         * tests/test-stdlib.c: Likewise.
43778         * tests/test-string.c: Likewise.
43779         * tests/test-unistd.c: Likewise.
43780         * modules/time-tests (Depends-on): Add verify.
43781         * modules/wchar-tests (Depends-on): Likewise.
43782         * tests/test-time.c: Test for NULL compliance.
43783         * tests/test-wchar.c: Likewise.
43784         * modules/locale (Depends-on): Add stddef.
43785         * modules/stdio (Depends-on): Likewise.
43786         * modules/stdlib (Depends-on): Likewise.
43787         * modules/string (Depends-on): Likewise.
43788         * modules/time (Depends-on): Likewise.
43789         * modules/unistd (Depends-on): Likewise.
43790         * modules/wchar (Depends-on): Likewise.
43791         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43792         * lib/stdlib.in.h (includes): Likewise.
43793         * lib/string.in.h (includes): Likewise.
43794         * lib/time.in.h (includes): Likewise.
43795         * lib/unistd.in.h (includes): Likewise.
43796         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43797         replaced.
43798         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43799         * m4/stddef_h.m4: New file.
43800         * modules/stddef: Likewise.
43801         * lib/stddef.in.h: Likewise.
43802         * modules/stddef-tests: Likewise.
43803         * tests/test-stddef.c: Likewise.
43804         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43805         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43806         * doc/posix-headers/locale.texi (locale.h): Likewise.
43807         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43808         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43809         * doc/posix-headers/string.texi (string.h): Likewise.
43810         * doc/posix-headers/time.texi (time.h): Likewise.
43811         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43812         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43813
43814 2009-08-14  Eric Blake  <ebb9@byu.net>
43815
43816         doc: improve git diff of texinfo files
43817         * .gitattributes: Add rule for *.texi files, with hint on how to
43818         use it.
43819         Copied from m4, and based on a report by Bruno Haible.
43820
43821 2009-08-14  Bruno Haible  <bruno@clisp.org>
43822
43823         Disable multithread support by default on Cygwin 1.5.x for real.
43824         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43825
43826 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43827
43828         update-copyright: much ado about intervals
43829         * build-aux/update-copyright: Implement and document
43830         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43831         of copyright year intervals.
43832         Also, document UPDATE_COPYRIGHT_YEAR.
43833         * tests/test-update-copyright.sh: Test it.
43834
43835         update-copyright: convert 2-digit to 4-digit years
43836         * build-aux/update-copyright: Implement and document.
43837         * tests/test-update-copyright.sh: Update.
43838
43839 2009-08-14  Jim Meyering  <meyering@redhat.com>
43840
43841         test-exclude: avoid coreutils "make check" failure
43842         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43843         just as in test-argmatch.c.
43844
43845 2009-08-13  Eric Blake  <ebb9@byu.net>
43846
43847         test-dup2: fix bad assumption
43848         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43849         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43850
43851         test-version-etc: fix CRLF portability issue
43852         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43853         recognize \r.
43854         * tests/test-argp-version-etc-1.sh: Likewise.
43855
43856         getopt: update client modules
43857         * modules/argp (Depends-on): Use getopt-gnu.
43858         * modules/git-merge-changelog (Depends-on): Likewise.
43859         * modules/long-options (Depends-on): Likewise.
43860         * modules/xstrtol (Depends-on): Likewise.
43861
43862 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43863
43864         * tests/test-version-etc.sh: Don't fail on different
43865         project/version.  Don't fail on CRLF differences.  Rewrite to use
43866         multiple -e instead of multiple sed forks, suggested by Eric Blake
43867         <ebb9@byu.net>.
43868         * tests/test-argp-version-etc-1.sh: Likewise.
43869
43870 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43871
43872         * tests/test-version-etc.sh: Don't fail on different
43873         project/version.
43874
43875 2009-08-12  Bruno Haible  <bruno@clisp.org>
43876
43877         Tests for modules 'getopt-posix', 'getopt-gnu'.
43878         * modules/getopt-posix-tests: New file.
43879         * tests/test-getopt.c: New file.
43880         * tests/test-getopt.h: New file.
43881         * tests/test-getopt_long.h: New file.
43882
43883         New modules 'getopt-posix', 'getopt-gnu'.
43884         * modules/getopt-gnu: New file, renamed from modules/getopt.
43885         * modules/getopt-posix: New file.
43886         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43887         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43888         (gl_GETOPT): Remove macro.
43889         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43890         Disable the test against BSD systems that declare optreset. Test
43891         against mingw bug. Test against lack of support of optional arguments
43892         on many platforms.
43893         * doc/glibc-headers/getopt.texi: Update module name and list of
43894         relevant platforms.
43895         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43896         'getopt-gnu' and more portability problems.
43897         * NEWS: Mention the changes.
43898
43899 2009-08-12  Bruno Haible  <bruno@clisp.org>
43900
43901         Ensure that optarg etc. get declared by <unistd.h>.
43902         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43903         AC_USE_SYSTEM_EXTENSIONS.
43904         * modules/getopt (Depends-on): Add 'extensions'.
43905
43906 2009-08-12  Bruno Haible  <bruno@clisp.org>
43907
43908         Avoid test link errors.
43909         * modules/pipe-filter-ii-tests (Makefile.am): Define
43910         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43911         * modules/pipe-filter-gi-tests (Makefile.am): Define
43912         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43913         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43914
43915 2009-08-12  Bruno Haible  <bruno@clisp.org>
43916
43917         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43918         gl_GETOPT_SUBSTITUTE before.
43919         (gl_GETOPT): Use it.
43920         * m4/argp.m4 (gl_ARGP): Update.
43921         Reported by Sergey Poznyakoff.
43922
43923         * m4/getopt.m4: Reorder macros.
43924         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43925         (gl_GETOPT_SUBSTITUTE): Remove macro.
43926
43927 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43928
43929         Minor improvement in gitlog-to-changelog
43930
43931         * build-aux/gitlog-to-changelog: New option `--format' makes
43932         output format string configurable.
43933
43934 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43935
43936         Optimize exclude: use hash tables for non-wildcard patterns.
43937
43938         * lib/exclude.c: Include hash.h and mbuiter.h
43939         (struct exclude_pattern, exclude_segment): New data types.
43940         (struct exclude): Rewrite.
43941         (fnmatch_pattern_has_wildcards): New function.
43942         (new_exclude_segment, free_exclude_segment): New functions.
43943         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43944         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43945         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43946         * modules/exclude: Depend on hash and mbuiter.
43947
43948         * modules/exclude-tests: New file.
43949         * tests/test-exclude.c: New file.
43950         * tests/test-exclude1.sh: New file.
43951         * tests/test-exclude2.sh: New file.
43952         * tests/test-exclude3.sh: New file.
43953         * tests/test-exclude4.sh: New file.
43954         * tests/test-exclude5.sh: New file.
43955         * tests/test-exclude6.sh: New file.
43956         * tests/test-exclude7.sh: New file.
43957
43958 2009-08-12  Bruno Haible  <bruno@clisp.org>
43959
43960         Ensure that getopt() gets declared by <unistd.h>.
43961         * lib/unistd.in.h: Conditionally include getopt.h.
43962         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43963         Set GNULIB_UNISTD_H_GETOPT.
43964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43965         GNULIB_UNISTD_H_GETOPT.
43966         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43967
43968 2009-08-12  Bruno Haible  <bruno@clisp.org>
43969
43970         Clarify logic.
43971         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43972         gl_replace_getopt instead of GETOPT_H.
43973
43974 2009-08-12  Bruno Haible  <bruno@clisp.org>
43975
43976         * m4/getopt.m4: Add comments.
43977
43978 2009-08-12  Bruno Haible  <bruno@clisp.org>
43979
43980         Disable multithread support by default on Cygwin 1.5.x.
43981         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43982         set gl_use_threads=no if not specified otherwise.
43983
43984 2009-08-11  Bruno Haible  <bruno@clisp.org>
43985
43986         Avoid compilation error on NetBSD 5.0.
43987         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43988         * tests/test-stdio.c: Likewise.
43989         * tests/test-stdlib.c: Likewise.
43990         * tests/test-string.c: Likewise.
43991         * tests/test-unistd.c: Likewise.
43992         Reported by Greg Troxel <gdt@ir.bbn.com>
43993         at <https://savannah.gnu.org/support/?106973>.
43994
43995 2009-08-11  Bruno Haible  <bruno@clisp.org>
43996
43997         * modules/dup2-tests (Depends-on): Remove close.
43998
43999         Undo 2009-07-19 commit.
44000         * modules/acl-tests (Depends-on): Remove close.
44001         * modules/binary-io-tests (Depends-on): Likewise.
44002         * modules/closein-tests (Depends-on): Likewise.
44003         * modules/flock-tests (Depends-on): Likewise.
44004         * modules/fsync-tests (Depends-on): Likewise.
44005         * modules/lseek-tests (Depends-on): Likewise.
44006         * modules/pipe-tests (Depends-on): Likewise.
44007         * modules/posix_spawn-tests (Depends-on): Likewise.
44008         * modules/posix_spawnp-tests (Depends-on): Likewise.
44009         * modules/stat-time-tests (Depends-on): Likewise.
44010         * modules/yesno-tests (Depends-on): Likewise.
44011
44012 2009-08-10  Bruno Haible  <bruno@clisp.org>
44013
44014         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44015
44016 2009-08-10  Bruno Haible  <bruno@clisp.org>
44017
44018         Fix a gcc warning.
44019         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44020
44021 2009-08-10  Bruno Haible  <bruno@clisp.org>
44022
44023         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44024         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44025         not only the first time.
44026         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44027         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44028         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44029         is 1, not only the the first time.
44030
44031 2009-08-10  Bruno Haible  <bruno@clisp.org>
44032
44033         Make it possible to use module 'gethostname' without module 'close'.
44034         * lib/unistd.in.h (close): Evoke a link error only if
44035         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44037         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44038         * modules/unistd (Makefile.am): Substitute
44039         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44040         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44041         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44042         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44043         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44044         * modules/sys_ioctl (Makefile.am): Substitute
44045         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44046         * modules/socket (configure.ac): On native Windows, set
44047         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44048         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44049         Reported by Sam Steingold <sds@gnu.org>.
44050
44051 2009-08-10  Bruno Haible  <bruno@clisp.org>
44052
44053         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44054         * modules/ioctl (configure.ac): Likewise.
44055
44056 2009-08-10  Bruno Haible  <bruno@clisp.org>
44057
44058         Avoid collision between gnulib wrapper and libintl wrapper.
44059         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44060         already defined in intl/printf.c.
44061         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44062         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44063
44064 2009-08-09  Bruno Haible  <bruno@clisp.org>
44065
44066         Make <sys/select.h> really self-contained, also on Solaris 10.
44067         * lib/sys_select.in.h: Include <string.h>.
44068         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44069         Solaris 10 problem.
44070         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44071         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44072         Reported by Jim Meyering.
44073
44074 2009-08-09  Bruno Haible  <bruno@clisp.org>
44075
44076         Avoid warnings from 'aclocal' that are due to a use of macro name
44077         AM_XGETTEXT_OPTION that is not defined in automake.
44078         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44079         automake.
44080         * modules/error (configure.ac): Likewise.
44081         * modules/propername (configure.ac): Likewise.
44082         * modules/vasprintf (configure.ac): Likewise.
44083         * modules/verror (configure.ac): Likewise.
44084         * modules/xprintf (configure.ac): Likewise.
44085         * modules/xvasprintf (configure.ac): Likewise.
44086
44087 2009-08-08  Bruno Haible  <bruno@clisp.org>
44088
44089         Avoid compilation error in C++ mode.
44090         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44091         Reported by Sam Steingold <sds@gnu.org>.
44092
44093 2009-08-08  Bruno Haible  <bruno@clisp.org>
44094
44095         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44096         for the various Unix platforms.
44097         * doc/posix-headers/limits.texi: Update platforms list regarding
44098         HOST_NAME_MAX.
44099         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44100
44101 2009-08-07  Jim Meyering  <meyering@redhat.com>
44102
44103         selinux-at: fix typo in a comment
44104         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44105         Spotted by Paolo Bonzini.
44106
44107         selinux-at: remove redundant m4 code, add documentation
44108         * modules/selinux-at (configure.ac): Remove redundant code.
44109         LIB_SELINUX is already set via the dependent module, selinux-h.
44110         (Include): Add quotes around selinux-at.h.
44111         * lib/selinux-at.h: Add documentation.
44112         Reported by Bruno Haible in
44113         http://marc.info/?l=gnulib-bug&m=124958988300749
44114
44115 2009-08-07  Bruno Haible  <bruno@clisp.org>
44116
44117         Avoid link error on MacOS X 10.3 and 10.4.
44118         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44119         on non-ELF systems.
44120         * lib/argp-pv.c (argp_program_version): Likewise.
44121         Reported by Simon Josefsson.
44122
44123 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44124
44125         * tests/test-version-etc.sh: Use $EXEEXT.
44126
44127 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44128
44129         update-copyright: update documentation to point to maint.mk
44130         * build-aux/update-copyright: Here.
44131
44132 2009-08-06  Jim Meyering  <meyering@redhat.com>
44133
44134         maint.mk: support update-copyright-local
44135         * top/maint.mk (update-copyright-local): Define place-holder.
44136         (update-copyright): Depend on $(update-copyright-local).
44137
44138 2009-08-06  Jim Meyering  <meyering@redhat.com>
44139
44140         selinux-at: new module
44141         Initially written for coreutils, this module will soon be
44142         used by findutils, too.
44143         * MODULES.html.sh [Misc]: Add selinux-at.
44144         * lib/selinux-at.h: New file, from coreutils.
44145         * lib/selinux-at.c: Likewise.
44146         * modules/selinux-at: Likewise.
44147         (License): Change from LGPL to GPL, since it depends
44148         on the GPL'd openat module.
44149
44150         doc: update README
44151         * README: Remove references to cogito.
44152         Remove cvs-repo-updating instructions from 2007.
44153         Don't imply that CVS is better if you have limited disk space.
44154
44155 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44156
44157         update-copyright: support C-style comments
44158         * build-aux/update-copyright: Implement and document.
44159         * tests/test-update-copyright.sh: Test.
44160
44161 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44162
44163         update-copyright: support omitted "(C)"
44164         * build-aux/update-copyright: Implement and document.  Also,
44165         allow variable whitespace before "(C)".
44166         * tests/test-update-copyright.sh: Test.
44167
44168 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44169
44170         update-copyright: don't trip on non-FSF copyright statements
44171         * build-aux/update-copyright: Fix so that the first correctly
44172         formatted FSF copyright statement is recognized no matter what
44173         appears before it.  Update documentation.
44174         * tests/test-update-copyright.sh: Test that.
44175
44176 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44177
44178         update-copyright: clean up code a little
44179         * build-aux/update-copyright: Append "_re" to the name of any
44180         variable holding a regular expression.
44181         Replace "old" and "new" with "stmt" in variable names.
44182         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44183         handled correctly.
44184         Format code more consistently.
44185
44186 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44187
44188         update-copyright-tests: improve portability
44189         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44190         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44191
44192 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44193
44194         update-copyright: support @copyright{} and &copy;
44195         * build-aux/update-copyright: Implement and document.
44196         * tests/test-update-copyright.sh: Test.
44197
44198 2009-08-04  Jim Meyering  <meyering@redhat.com>
44199
44200         update-copyright-tests: correctly test EOL=\r\n handling
44201         * tests/test-update-copyright.sh: Put \r at the end of some lines
44202         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44203
44204         maint.mk: make update-copyright exclusion list more configurable
44205         * top/maint.mk (update-copyright): Default to excluding COPYING,
44206         but allow an override, in case someone does want to update that file.
44207
44208         maint.mk: don't update copyright date in COPYING
44209         * top/maint.mk (update-copyright): Exclude COPYING.
44210
44211         maint.mk: add a copyright-updating rule
44212         * top/maint.mk (update-copyright): New rule.
44213         Derived from coreutils/Makefile.am.
44214
44215         update-copyright: rename some variables
44216         * build-aux/update-copyright: Rename a few variables for clarity.
44217         Tweak syntax.  List Joel E. Denny as coauthor.
44218
44219 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44220
44221         update-copyright: fix bug for 2-digit last year and add tests
44222         * build-aux/update-copyright: Fix bug.
44223         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44224         specified.
44225         * modules/update-copyright-tests: New
44226         * tests/test-update-copyright.sh: New.
44227
44228 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44229
44230         update-copyright: handle leading tabs in line prefix
44231         * build-aux/update-copyright: Count leading tabs as 8 spaces
44232         when computing margin.  This helps with the formatting of
44233         ChangeLogs, for example.
44234         Fix documentation a little.
44235
44236 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44237
44238         update-copyright: support EOL=\r\n
44239         * build-aux/update-copyright: Implement that.
44240
44241 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44242
44243         update-copyright: automatically format copyright statements
44244         * build-aux/update-copyright: Implement that.
44245         Also, be a little more predictable and safer by always failing
44246         when the full copyright format is not perfectly recognized as an
44247         unbroken whole.  Discussed at
44248         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44249         Rewrite documentation.
44250
44251 2009-08-03  Bruno Haible  <bruno@clisp.org>
44252
44253         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44254
44255 2009-08-02  Bruno Haible  <bruno@clisp.org>
44256
44257         Tests for module 'uname'.
44258         * modules/uname-tests: New file.
44259         * tests/test-uname.c: New file.
44260
44261         New module 'uname'.
44262         * lib/uname.c: New file.
44263         * m4/uname.m4: New file.
44264         * modules/uname: New file.
44265         * doc/posix-functions/uname.texi: Mention the new module.
44266
44267 2009-08-02  Bruno Haible  <bruno@clisp.org>
44268
44269         Tests for module 'sys_utsname'.
44270         * modules/sys_utsname-tests: New file.
44271         * tests/test-sys_utsname.c: New file.
44272
44273         New module 'sys_utsname'.
44274         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44275         * m4/sys_utsname_h.m4: New file.
44276         * modules/sys_utsname: New file.
44277         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44278
44279 2009-08-02  Bruno Haible  <bruno@clisp.org>
44280
44281         Implicitly initialize the sockets library.
44282         * lib/gethostname.c: Include sockets.h.
44283         (rpl_gethostname): Invoke gl_sockets_startup.
44284         * lib/socket.c: Include sockets.h.
44285         (rpl_socket): Invoke gl_sockets_startup.
44286         * modules/gethostname (Depends-on): Add sockets.
44287         * modules/socket (Depends-on): Likewise.
44288         * tests/test-poll.c: Don't include sockets.h.
44289         (main): Don't invoke gl_sockets_startup.
44290         * tests/test-select.c: Don't include sockets.h.
44291         (main): Don't invoke gl_sockets_startup.
44292
44293 2009-08-02  Bruno Haible  <bruno@clisp.org>
44294
44295         Allow multiple calls to gl_sockets_startup.
44296         * lib/sockets.c (initialized_sockets_version): New variable.
44297         (gl_sockets_startup): Do nothing if already called for this or a higher
44298         version.
44299         (gl_sockets_cleanup): Reset initialized_sockets_version.
44300
44301 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44302
44303         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44304         different project/version.
44305
44306 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44307             Bruno Haible  <bruno@clisp.org>
44308
44309         Tests for module 'pipe-filter-gi'.
44310         * modules/pipe-filter-gi-tests: New file.
44311         * tests/test-pipe-filter-gi1.sh: New file.
44312         * tests/test-pipe-filter-gi1.c: New file.
44313         * tests/test-pipe-filter-gi2.sh: New file.
44314         * tests/test-pipe-filter-gi2-main.c: New file.
44315         * tests/test-pipe-filter-gi2-child.c: New file.
44316
44317         New module 'pipe-filter-gi'.
44318         * lib/pipe-filter-gi.c: New file.
44319         * modules/pipe-filter-gi: New file.
44320
44321 2009-08-02  Bruno Haible  <bruno@clisp.org>
44322             Paolo Bonzini  <bonzini@gnu.org>
44323
44324         Tests for module 'pipe-filter-ii'.
44325         * modules/pipe-filter-ii-tests: New file.
44326         * tests/test-pipe-filter-ii1.sh: New file.
44327         * tests/test-pipe-filter-ii1.c: New file.
44328         * tests/test-pipe-filter-ii2.sh: New file.
44329         * tests/test-pipe-filter-ii2-main.c: New file.
44330         * tests/test-pipe-filter-ii2-child.c: New file.
44331
44332         New module 'pipe-filter-ii'.
44333         * lib/pipe-filter.h: New file.
44334         * lib/pipe-filter-ii.c: New file.
44335         * lib/pipe-filter-aux.h: New file.
44336         * modules/pipe-filter-ii: New file.
44337
44338 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44339
44340         * lib/gc-libgcrypt.c: Change copyright to FSF.
44341         * lib/gc-gnulib.c: Likewise.
44342
44343 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44344
44345         * lib/gethostname.c: Include limits.h.
44346
44347 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44348             Bruno Haible  <bruno@clisp.org>
44349
44350         Ensure HOST_NAME_MAX as part of the gethostname module.
44351         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44352         define also HOST_NAME_MAX.
44353         * tests/test-gethostname.c: Include <limits.h>.
44354         (main): Check also HOST_NAME_MAX.
44355         * doc/posix-headers/limits.texi: Document the mingw problem.
44356
44357 2009-08-02  Bruno Haible  <bruno@clisp.org>
44358
44359         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44360         Add comments.
44361
44362 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44363
44364         * lib/gethostname.c: Add Windows wrapper.
44365         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44366         * modules/gethostname: Depend on sys_socket & errno, for also
44367         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44368         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44369
44370 2009-07-31  Jim Meyering  <meyering@redhat.com>
44371
44372         getloadavg: fix symbol name in comment
44373         * lib/getloadavg.c: Correct a typo I introduced when adding
44374         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44375         Matt Kraai spotted the problem.
44376
44377 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44378
44379         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44380         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44381         code also if ! defined N_NAME_POINTER.
44382         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44383         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44384         but the n_name member is a 12-byte array.
44385
44386 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44387
44388         update-copyright: generalize comment handling
44389         * build-aux/update-copyright: Handle copyright statements
44390         within more comment styles.
44391         Document usage.
44392         Report any file with an external copyright holder or parse failure.
44393
44394 2009-07-29  Jim Meyering  <meyering@redhat.com>
44395
44396         mktime: correct setting of REPLACE_MKTIME
44397         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44398
44399         update-copyright: new module
44400         * modules/update-copyright: New file.
44401         * build-aux/update-copyright: New file.
44402         * MODULES.html.sh (maint+release support): Add update-copyright.
44403
44404 2009-07-27  Bruno Haible  <bruno@clisp.org>
44405
44406         Fix compilation error when <ctime> is used and mktime is replaced.
44407         * lib/time.in.h (mktime): New declaration.
44408         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44409         REPLACE_MKTIME instead of defining mktime in config.h.
44410         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44411         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44412         Reported by Ross McFarland <rwmcfa1@neces.com>.
44413
44414 2009-07-27  Bruno Haible  <bruno@clisp.org>
44415
44416         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44417         Reported by Matt Kraai <mkraai@beckman.com>.
44418
44419 2009-07-25  Jim Meyering  <meyering@redhat.com>
44420
44421         maint.mk: avoid warnings about missing files
44422         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44423         diagnostic when .prev-version does not exist.
44424         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44425         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44426         nonexistent cfg.mk.
44427         Suggestions from Simon Josefsson.
44428
44429 2009-07-25  Bruno Haible  <bruno@clisp.org>
44430
44431         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44432         defined as macros. Needed on QNX 6.4.1.
44433         Reported by Matt Kraai <mkraai@beckman.com>.
44434
44435 2009-07-23  Jim Meyering  <meyering@redhat.com>
44436
44437         maint.mk: invoke "make dist" with a working value of XZ_OPT
44438         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44439
44440 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44441
44442         Make fseeko.c compile on QNX.
44443         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44444
44445 2009-07-22  Peter Simons  <simons@cryp.to>
44446
44447         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44448         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44449         * lib/md4.h: Likewise.
44450         * lib/md5.h: Likewise.
44451         * lib/sha1.h: Likewise.
44452         * lib/sha256.h: Likewise.
44453         * lib/sha512.h: Likewise.
44454
44455         tests-sha1: don't assign literal string to 'char *' variable
44456         * tests/test-sha1.c (main): Declare locals with "const" to match
44457         attributes of the right hand side.
44458
44459 2009-07-21  Eric Blake  <ebb9@byu.net>
44460
44461         dup2: fix more mingw problems
44462         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44463         fd to itself.
44464         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44465         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44466         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44467         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44468         care of mingw bugs.
44469
44470 2009-07-21  Jim Meyering  <meyering@redhat.com>
44471
44472         vc-list-files: avoid failure when /bin/sh is dash
44473         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44474         On some Debian based systems, /bin/sh is a symlink to dash, and running
44475         this command would omit the "/" following each 'tests' prefix:
44476           dash -x build-aux/vc-list-files -C . tests
44477         That is because bash and dash work differently:
44478           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44479           bash ok
44480           dash odd
44481
44482 2009-07-21  Eric Blake  <ebb9@byu.net>
44483
44484         dup2-tests: test previous patch
44485         * modules/dup2-tests: New file.
44486         * tests/test-dup2.c: Likewise.
44487         * tests/test-open.c (main): Avoid unspecified behavior.
44488         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44489         test.
44490
44491         dup2: work around mingw and cygwin 1.5 bug
44492         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44494         * modules/unistd (Makefile.am): Substitute it.
44495         * lib/unistd.in.h (dup2): Declare the replacement.
44496         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44497         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44498         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44499         * modules/execute (Depends-on): Add dup2.
44500         * modules/fseterr (Depends-on): Likewise.
44501         * modules/pipe (Depends-on): Likewise.
44502         * modules/posix_spawn-internal (Depends-on): Likewise.
44503
44504 2009-07-21  Bruno Haible  <bruno@clisp.org>
44505
44506         * modules/.gitattributes: New file.
44507
44508 2009-07-20  Bruno Haible  <bruno@clisp.org>
44509
44510         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44511         (main): Use it.
44512
44513 2009-07-20  Eric Blake  <ebb9@byu.net>
44514
44515         test-pipe: make a bit more robust.
44516         * tests/test-pipe.c (myerr): Allow error messages regardless of
44517         what we do to stderr.
44518         (test_pipe): Rearrange to avoid deadlock.
44519         (child_main): Try a larger read, to ensure we avoided deadlock.
44520         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44521         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44522         if misused.
44523
44524 2009-07-19  Jim Meyering  <meyering@redhat.com>
44525
44526         fts: avoid false-positive cycle-detection
44527         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44528         for each new command line argument.
44529
44530 2009-07-19  Bruno Haible  <bruno@clisp.org>
44531
44532         Fix build error on mingw with the modules sys_select and unistd.
44533         * modules/acl-tests (Depends-on): Add close.
44534         * modules/binary-io-tests (Depends-on): Likewise.
44535         * modules/closein-tests (Depends-on): Likewise.
44536         * modules/flock-tests (Depends-on): Likewise.
44537         * modules/fsync-tests (Depends-on): Likewise.
44538         * modules/lseek-tests (Depends-on): Likewise.
44539         * modules/pipe-tests (Depends-on): Likewise.
44540         * modules/posix_spawn-tests (Depends-on): Likewise.
44541         * modules/posix_spawnp-tests (Depends-on): Likewise.
44542         * modules/stat-time-tests (Depends-on): Likewise.
44543         * modules/yesno-tests (Depends-on): Likewise.
44544
44545 2009-07-19  Bruno Haible  <bruno@clisp.org>
44546
44547         Unify conditionals.
44548         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44549         macros, not at the compiler macros.
44550         * lib/pipe.c: Likewise.
44551         * lib/execute.c: Likewise.
44552         * lib/spawni.c: Likewise.
44553
44554 2009-07-19  Bruno Haible  <bruno@clisp.org>
44555
44556         Fix handling of closed stdin/stdout/stderr on mingw.
44557         * lib/w32spawn.h: Include unistd.h.
44558         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44559         file descriptor with O_NOINHERIT flag.
44560         (fd_safer_noinherit): New function, based on fd-safer.c.
44561         (dup_safer_noinherit): New function, based on dup-safer.c.
44562         (undup_safer_noinherit): New function.
44563         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44564         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44565         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44566         instead of fd_safer.
44567         * tests/test-pipe.c: Include <windows.h>.
44568         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44569         result.
44570
44571         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44572         from main.
44573         (test_pipe): Pass an extra argument for disambiguation.
44574         (main): Invoke parent_main or child_main.
44575
44576         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44577         consistently.
44578
44579 2009-07-18  Eric Blake  <ebb9@byu.net>
44580
44581         test-pipe: fix mingw build
44582         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44583
44584 2009-07-18  Bruno Haible  <bruno@clisp.org>
44585
44586         * modules/pipe-tests (Makefile.am): Fix typo.
44587
44588 2009-07-18  Eric Blake  <ebb9@byu.net>
44589
44590         error: fix mingw build
44591         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44592         Reported by Bruno Haible.
44593
44594         error: avoid undefined use of stdout
44595         * lib/error.c (error, error_at_line): Check that fd 1 is open
44596         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44597         is handling faults and the close_stdout module wants to report the
44598         detection of closed stdout as an error.
44599
44600 2009-07-17  Eric Blake  <ebb9@byu.net>
44601
44602         pipe: be robust in face of closed fds
44603         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44604         should cause child to misbehave.
44605         * modules/pipe-tests: New module.
44606         * tests/test-pipe.c: New file.
44607         * tests/test-pipe.sh: New file.
44608         Reported by Akim Demaille.
44609
44610 2009-07-14  Bruno Haible  <bruno@clisp.org>
44611
44612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44613         Reported by anonymous kc.
44614
44615 2009-07-07  Jim Meyering  <meyering@redhat.com>
44616
44617         maint.mk: don't look for translatable strings in *.m4 or *.mk
44618         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44619         when searching for translatable strings.
44620
44621 2009-07-05  Jim Meyering  <meyering@redhat.com>
44622
44623         remove superfluous parentheses in STREQ definition
44624         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44625         * lib/getugroups.c (STREQ): Likewise.
44626         * lib/fnmatch.c (STREQ): Likewise.
44627         Spotted by Bruno Haible.
44628
44629 2009-07-04  Jim Meyering  <meyering@redhat.com>
44630
44631         argv-iter: new module
44632         * MODULES.html.sh: Add argv-iter.
44633         * lib/argv-iter.c, lib/argv-iter.h: New files.
44634         * modules/argv-iter: New file.
44635         * modules/argv-iter-tests: New file.
44636         * tests/test-argv-iter.c: Test it.
44637
44638 2009-07-04  Bruno Haible  <bruno@clisp.org>
44639
44640         Fix assertion.
44641         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44642         contains more exact copies of a given entry than file2, leave the extra
44643         copies unpaired rather than aborting.
44644         Reported by Eric Blake.
44645
44646 2009-07-02  Bruno Haible  <bruno@clisp.org>
44647
44648         Speedup git-merge-changelog for git cherry-pick.
44649         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44650         (entries_mapping_get): New function, extracted from compute_mapping.
44651         (entries_mapping_reverse_get): New function.
44652         (compute_mapping): Add a 'full' argument. Return the result in a
44653         'struct entries_mapping'.
44654         (main): Update. Access the mappings through entries_mapping_get.
44655         Reported by Eric Blake.
44656
44657 2009-07-02  Bruno Haible  <bruno@clisp.org>
44658
44659         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44660         best_i.
44661
44662 2009-07-02  Bruno Haible  <bruno@clisp.org>
44663
44664         Speed up approximate search for matching ChangeLog entries.
44665         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44666         argument. Call fstrcmp_bounded instead of fstrcmp.
44667         (compute_mapping, try_split_merged_entry, main): Update callers.
44668
44669 2009-07-02  Bruno Haible  <bruno@clisp.org>
44670
44671         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44672
44673 2009-06-30  Bruno Haible  <bruno@clisp.org>
44674
44675         Reduce the number of uc_is_cased calls.
44676         * lib/unicase.h (casing_suffix_context_t): Add
44677         'first_char_except_ignorable' field.
44678         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44679         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44680         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44681         Update initializer.
44682         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44683         case-ignorable characters.
44684         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44685         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44686         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44687         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44688         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44689
44690 2009-06-30  Bruno Haible  <bruno@clisp.org>
44691
44692         Tests for module 'unicase/ignorable'.
44693         * modules/unicase/ignorable-tests: New file.
44694         * tests/unicase/test-ignorable.c: New file, generated by
44695         gen-uni-tables.
44696
44697         Tests for module 'unicase/cased'.
44698         * modules/unicase/cased-tests: New file.
44699         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44700         * tests/unicase/test-predicate-part1.h: New file, derived from
44701         tests/unictype/test-predicate-part1.h.
44702         * tests/unicase/test-predicate-part2.h: New file, same as
44703         tests/unictype/test-predicate-part2.h.
44704
44705         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44706         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44707         (output_casing_properties): New function.
44708         (main): Call it.
44709         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44710         * lib/unicase/cased.c: Include unictype/bitmap.h.
44711         (uc_is_cased): Define through a bitmap lookup.
44712         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44713         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44714         (uc_is_case_ignorable): Define through a bitmap lookup.
44715         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44716         lib/unictype/bitmap.h.
44717         (Depends-on): Add inline. Clean up.
44718         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44719         lib/unictype/bitmap.h.
44720         (Depends-on): Add inline. Clean up.
44721         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44722         recognition.
44723         * tests/unicase/test-u16-tolower.c (main): Likewise.
44724         * tests/unicase/test-u32-tolower.c (main): Likewise.
44725
44726 2009-06-30  Bruno Haible  <bruno@clisp.org>
44727
44728         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44729         * lib/unicase/u16-casemap.c: Likewise.
44730         * lib/unicase/u32-casemap.c: Likewise.
44731
44732 2009-06-29  Bruno Haible  <bruno@clisp.org>
44733
44734         Define u32_casefold as a wrapper around u32_ct_casefold.
44735         * lib/unicase/u32-casefold.c: Update.
44736         * modules/unicase/u32-casefold (Depends-on): Add
44737         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44738         unicase/empty-suffix-context. Clean up.
44739
44740         Define u16_casefold as a wrapper around u16_ct_casefold.
44741         * lib/unicase/u16-casefold.c: Update.
44742         * modules/unicase/u16-casefold (Depends-on): Add
44743         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44744         unicase/empty-suffix-context. Clean up.
44745
44746         Define u8_casefold as a wrapper around u8_ct_casefold.
44747         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44748         * lib/unicase/u8-casefold.c: Update.
44749         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44750         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44751
44752         Define u32_totitle as a wrapper around u32_ct_totitle.
44753         * lib/unicase/u32-totitle.c: Update.
44754         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44755         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44756
44757         Define u16_totitle as a wrapper around u16_ct_totitle.
44758         * lib/unicase/u16-totitle.c: Update.
44759         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44760         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44761
44762         Define u8_totitle as a wrapper around u8_ct_totitle.
44763         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44764         functions.
44765         (FUNC): Delegate to U_CT_TOTITLE.
44766         * lib/unicase/u8-totitle.c: Update.
44767         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44768         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44769
44770         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44771         invocation.
44772         * modules/unicase/u32-tolower (Depends-on): Add
44773         unicase/empty-prefix-context, unicase/empty-suffix-context.
44774
44775         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44776         invocation.
44777         * modules/unicase/u16-tolower (Depends-on): Add
44778         unicase/empty-prefix-context, unicase/empty-suffix-context.
44779
44780         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44781         * modules/unicase/u8-tolower (Depends-on): Add
44782         unicase/empty-prefix-context, unicase/empty-suffix-context.
44783
44784         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44785         invocation.
44786         * modules/unicase/u32-toupper (Depends-on): Add
44787         unicase/empty-prefix-context, unicase/empty-suffix-context.
44788
44789         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44790         invocation.
44791         * modules/unicase/u16-toupper (Depends-on): Add
44792         unicase/empty-prefix-context, unicase/empty-suffix-context.
44793
44794         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44795         * modules/unicase/u8-toupper (Depends-on): Add
44796         unicase/empty-prefix-context, unicase/empty-suffix-context.
44797
44798         New module 'unicase/u32-ct-casefold'.
44799         * lib/unicase/u32-ct-casefold.c: New file.
44800         * modules/unicase/u32-ct-casefold: New file.
44801
44802         New module 'unicase/u16-ct-casefold'.
44803         * lib/unicase/u16-ct-casefold.c: New file.
44804         * modules/unicase/u16-ct-casefold: New file.
44805
44806         New module 'unicase/u8-ct-casefold'.
44807         * lib/unicase/u8-ct-casefold.c: New file.
44808         * lib/unicase/u-ct-casefold.h: New file, derived from
44809         lib/unicase/u-casefold.h.
44810         * modules/unicase/u8-ct-casefold: New file.
44811
44812         New module 'unicase/u32-ct-totitle'.
44813         * lib/unicase/u32-ct-totitle.c: New file.
44814         * modules/unicase/u32-ct-totitle: New file.
44815
44816         New module 'unicase/u16-ct-totitle'.
44817         * lib/unicase/u16-ct-totitle.c: New file.
44818         * modules/unicase/u16-ct-totitle: New file.
44819
44820         New module 'unicase/u8-ct-totitle'.
44821         * lib/unicase/u8-ct-totitle.c: New file.
44822         * lib/unicase/u-ct-totitle.h: New file, derived from
44823         lib/unicase/u-totitle.h.
44824         * modules/unicase/u8-ct-totitle: New file.
44825
44826         New module 'unicase/u32-ct-tolower'.
44827         * lib/unicase/u32-ct-tolower.c: New file.
44828         * modules/unicase/u32-ct-tolower: New file.
44829
44830         New module 'unicase/u16-ct-tolower'.
44831         * lib/unicase/u16-ct-tolower.c: New file.
44832         * modules/unicase/u16-ct-tolower: New file.
44833
44834         New module 'unicase/u8-ct-tolower'.
44835         * lib/unicase/u8-ct-tolower.c: New file.
44836         * modules/unicase/u8-ct-tolower: New file.
44837
44838         New module 'unicase/u32-ct-toupper'.
44839         * lib/unicase/u32-ct-toupper.c: New file.
44840         * modules/unicase/u32-ct-toupper: New file.
44841
44842         New module 'unicase/u16-ct-toupper'.
44843         * lib/unicase/u16-ct-toupper.c: New file.
44844         * modules/unicase/u16-ct-toupper: New file.
44845
44846         New module 'unicase/u8-ct-toupper'.
44847         * lib/unicase/u8-ct-toupper.c: New file.
44848         * modules/unicase/u8-ct-toupper: New file.
44849
44850         Add context arguments to u*_casemap functions.
44851         * lib/unicase/unicasemap.h: Include unicase.h.
44852         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44853         suffix_context arguments.
44854         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44855         functions.
44856         (FUNC): Add prefix_context and suffix_context arguments. Use
44857         uc_is_cased and uc_is_case_ignorable.
44858         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44859         * lib/unicase/u16-casemap.c: Likewise.
44860         * lib/unicase/u32-casemap.c: Likewise.
44861         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44862         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44863         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44864         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44865         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44866         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44867
44868         New module 'unicase/u32-suffix-context'.
44869         * lib/unicase/u32-suffix-context.c: New file.
44870         * modules/unicase/u32-suffix-context: New file.
44871
44872         New module 'unicase/u16-suffix-context'.
44873         * lib/unicase/u16-suffix-context.c: New file.
44874         * modules/unicase/u16-suffix-context: New file.
44875
44876         New module 'unicase/u8-suffix-context'.
44877         * lib/unicase/u8-suffix-context.c: New file.
44878         * lib/unicase/u-suffix-context.h: New file.
44879         * modules/unicase/u8-suffix-context: New file.
44880
44881         New module 'unicase/empty-suffix-context'.
44882         * lib/unicase/empty-suffix-context.c: New file.
44883         * modules/unicase/empty-suffix-context: New file.
44884
44885         New module 'unicase/u32-prefix-context'.
44886         * lib/unicase/u32-prefix-context.c: New file.
44887         * modules/unicase/u32-prefix-context: New file.
44888
44889         New module 'unicase/u16-prefix-context'.
44890         * lib/unicase/u16-prefix-context.c: New file.
44891         * modules/unicase/u16-prefix-context: New file.
44892
44893         New module 'unicase/u8-prefix-context'.
44894         * lib/unicase/u8-prefix-context.c: New file.
44895         * lib/unicase/u-prefix-context.h: New file.
44896         * lib/unicase/context.h: New file.
44897         * modules/unicase/u8-prefix-context: New file.
44898
44899         New module 'unicase/empty-prefix-context'.
44900         * lib/unicase/empty-prefix-context.c: New file.
44901         * modules/unicase/empty-prefix-context: New file.
44902
44903         New module 'unicase/ignorable'.
44904         * lib/unicase/ignorable.c: New file.
44905         * modules/unicase/ignorable: New file.
44906
44907         New module 'unicase/cased'.
44908         * lib/unicase/caseprop.h: New file.
44909         * lib/unicase/cased.c: New file.
44910         * modules/unicase/cased: New file.
44911
44912         New functions for case mapping of substrings.
44913         * lib/unicase.h (casing_prefix_context_t): New type.
44914         (unicase_empty_prefix_context): New variable.
44915         (u8_casing_prefix_context, u16_casing_prefix_context,
44916         u32_casing_prefix_context, u8_casing_prefixes_context,
44917         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44918         declarations.
44919         (casing_suffix_context_t): New type.
44920         (unicase_empty_suffix_context): New variable.
44921         (u8_casing_suffix_context, u16_casing_suffix_context,
44922         u32_casing_suffix_context, u8_casing_suffixes_context,
44923         u16_casing_suffixes_context, u32_casing_suffixes_context,
44924         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44925         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44926         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44927         declarations.
44928
44929 2009-06-28  Jim Meyering  <meyering@redhat.com>
44930
44931         boostrap: indent only with spaces
44932         * build-aux/bootstrap: Indent only with spaces, never TABs.
44933
44934         bootstrap: split long lines
44935         * build-aux/bootstrap: Keep line length < 80.
44936
44937         bootstrap: sync from coreutils
44938         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44939         just as autoreconf does.  Verify a list of prerequisite
44940         package-name,version-number pairs if defined in bootstrap.conf.
44941         Refer to README-prereq, if prerequisites are not satisfied.
44942
44943 2009-06-27  Eric Blake  <ebb9@byu.net>
44944
44945         tests: add test for bogus NULL definition
44946         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44947         * tests/test-stdlib.c: Likewise.
44948         * tests/test-string.c: Likewise.
44949         * tests/test-locale.c: Likewise.
44950         * tests/test-unistd.c: Likewise.
44951         * modules/stdio-tests (Depends-on): Add verify.
44952         * modules/stdlib-tests (Depends-on): Likewise.
44953         * modules/string-tests (Depends-on): Likewise.
44954         * modules/locale-tests (Depends-on): Likewise.
44955         * modules/unistd-tests (Depends-on): Likewise.
44956
44957 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44958
44959         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44960         self-explaining comment.
44961         * m4/selinux-selinux-h: Update serial.
44962         (gl_LIBSELINUX): New macro, adding a warning for missing development
44963         packages to code extracted from...
44964         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44965         Add warning for missing development packages here, too.
44966
44967 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44968
44969         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44970
44971 2009-06-25  Eric Blake  <ebb9@byu.net>
44972
44973         version-etc: fix regression
44974         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44975         gcc.
44976         (version_etc): Use it, to catch bugs with trailing NULL.
44977         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44978         (version_etc_va): Fix logic bug.
44979         * modules/version-etc-tests: Add test.
44980         * tests/test-version-etc.c: New file.
44981         * tests/test-version-etc.sh: Likewise.
44982
44983 2009-06-25  Sam Steingold  <sds@gnu.org>
44984
44985         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44986         mbtowc declaration.
44987
44988 2009-06-25  Eric Blake  <ebb9@byu.net>
44989
44990         fpurge: migrate into <stdio.h>
44991         * lib/fpurge.h: Delete...
44992         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44993         * lib/fpurge.c (fpurge): Change declaring header.
44994         * modules/fpurge (Files): Drop deleted file.
44995         (Depends-on): Add stdio.
44996         (configure.ac): Set witness.
44997         * modules/stdio (Makefile.am): Support fpurge macros.
44998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44999         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
45000         * lib/fflush.c: Update client.
45001         * tests/test-fpurge.c: Likewise.
45002         * NEWS: Mention the change.
45003
45004 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45005
45006         * lib/argp-version-etc.c (program_authors): Add const
45007         qualifier.
45008         * lib/version-etc.c: Fix typos in the comments.
45009         * modules/argp-version-etc: Depends on version-etc.
45010
45011 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45012
45013         argp-version-etc: new module.
45014
45015         * lib/argp-version-etc.c: New file.
45016         * lib/argp-version-etc.h: New file.
45017         * modules/argp-version-etc: New file.
45018         * modules/argp-version-etc-tests: New file.
45019         * tests/test-argp-version-etc.c: New test.
45020         * tests/test-argp-version-etc-1.sh: New test.
45021
45022 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45023
45024         Provide additional interfaces and documentation for version-etc
45025         module.
45026
45027         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45028         interfaces.
45029         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45030         prototypes.
45031
45032 2009-06-24  Bruno Haible  <bruno@clisp.org>
45033
45034         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45035         HAVE_LIB${NAME} macro.
45036         Reported by Sam Steingold <sds@gnu.org>.
45037
45038 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45039
45040         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45041         needed.
45042
45043 2009-06-21  Bruno Haible  <bruno@clisp.org>
45044
45045         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45046         work.
45047         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45048         together with LIB${NAME}, LTLIB${NAME}.
45049         Reported by Sam Steingold <sds@gnu.org>.
45050
45051 2009-06-20  Jim Meyering  <meyering@redhat.com>
45052
45053         tests: make sc_require_test_exit_idiom more generic
45054         * top/maint.mk (Exit_witness_file): New overridable variable.
45055         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45056         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45057
45058 2009-06-19  Jim Meyering  <meyering@redhat.com>
45059
45060         hash: reverse order of src/dst parameters in an internal interface
45061         * lib/hash.c (transfer_entries): Reverse order of parameters to
45062         put DST before SRC.  Adjust callers.
45063
45064         tests: test-hash: avoid wholesale duplication
45065         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45066         Instead, use a loop and add a single conditional.
45067
45068         tests: test-hash: allow seed selection via a command line argument
45069         * tests/test-hash.c (get_seed): New function.
45070         (main): Use it.
45071
45072 2009-06-19  Eric Blake  <ebb9@byu.net>
45073
45074         hash: avoid memory leak on allocation failure
45075         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45076         failure.  Factor repeated algorithm...
45077         (transfer_entries): ...into new helper routine.
45078         (hash_delete): React to hash_rehash return value.
45079
45080         hash: reduce memory pressure in hash_rehash no-op case
45081         * lib/hash.c (next_prime): Avoid overflow.
45082         (hash_initialize): Factor bucket size computation...
45083         (compute_bucket_size): ...into new helper function.
45084         (hash_rehash): Use new function and open coding to reduce memory
45085         pressure, and avoid a memory leak in USE_OBSTACK code.
45086         Reported by Jim Meyering.
45087
45088 2009-06-18  Eric Blake  <ebb9@byu.net>
45089
45090         hash: make rotation more obvious
45091         * modules/hash (Depends-on): Add bitrotate and stdint.
45092         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45093         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45094         (SIZE_MAX): Rely on headers for definition.
45095         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45096         (raw_hasher): Use rotr_sz.
45097         Suggested by Jim Meyering.
45098
45099         hash: fix memory leak in last patch
45100         * lib/hash.c (hash_rehash): Avoid memory leak.
45101
45102         hash: avoid no-op rehashing
45103         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45104
45105         hash: provide default callback functions
45106         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45107         (hash_initialize): Use them as defaults.
45108         * tests/test-hash.c (main): Test this.
45109
45110         hash: minor optimization
45111         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45112         when possible.
45113         (hash_initialize): Document this promise.
45114         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45115         * tests/test-hash.c (hash_compare_strings): Test this.
45116
45117 2009-06-18  Bruno Haible  <bruno@clisp.org>
45118
45119         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45120         going to be replaced anyway.
45121
45122 2009-06-18  Bruno Haible  <bruno@clisp.org>
45123
45124         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45125         in one place.
45126         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45127         be replaced anyway.
45128
45129 2009-06-18  Eric Blake  <ebb9@byu.net>
45130
45131         hash: check for resize before insertion
45132         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45133         threshold before insertion, so that a pathological hash_rehash
45134         that fills every bucket can still trigger another rehash.
45135
45136 2009-06-18  Jim Meyering  <meyering@redhat.com>
45137
45138         hash-tests: add a loop around the small tests
45139         * tests/test-hash.c (main): Repeat small tests with selected
45140         small initial table sizes.
45141
45142 2009-06-17  Eric Blake  <ebb9@byu.net>
45143
45144         hash: minor cleanups
45145         * lib/hash.h (hash_entry): Make opaque, by moving...
45146         * lib/hash.c (hash_entry): ...here.
45147         (hash_insert): Clarify restrictions on what can be inserted.
45148         (hash_get_next): Clarify when it is safe to remove an element
45149         during traversal.
45150         (check_tuning): Skip verification when tuning is known safe.
45151         (hash_initialize): Clarify restrictions on tuning.
45152
45153 2009-06-17  Jim Meyering  <jim@meyering.net>
45154         and Eric Blake  <ebb9@byu.net>
45155
45156         hash-tests: new module
45157         * modules/hash-tests: New file.
45158         * tests/test-hash.c: New file.
45159
45160 2009-06-17  Eric Blake  <ebb9@byu.net>
45161
45162         strstr-simple: document new module
45163         * MODULES.html.sh: Document new module.
45164
45165         strstr, strcasestr: replace on platforms with broken memchr
45166         * modules/strstr: Split into...
45167         * modules/strstr-simple: ...new module that does not care about
45168         performance, but does care about glibc bug.
45169         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45170         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45171         if platform memchr is broken, per Debian bug 521737.
45172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45173         memchr.
45174         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45175         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45176         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45177         * modules/mountlist (Depends-on): Add strstr-simple.
45178         * modules/gen-uni-tables (Depends-on): Likewise.
45179         * modules/argz (Depends-on): Add strstr.
45180
45181 2009-06-17  Bruno Haible  <bruno@clisp.org>
45182
45183         * modules/posix_spawn-internal (Depends-on): Add errno.
45184
45185 2009-06-17  Bruno Haible  <bruno@clisp.org>
45186
45187         Define missing ESTALE on Interix 3.5.
45188         * lib/errno.in.h (ESTALE): Assign a value if missing.
45189         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45190         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45191         missing.
45192         * doc/posix-headers/errno.texi: Mention the Interix bug.
45193         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45194
45195 2009-06-15  Eric Blake  <ebb9@byu.net>
45196
45197         memchr, memchr2: add valgrind exception
45198         * lib/memchr.valgrind: New file.
45199         * lib/memchr2.valgrind: New file.
45200         * modules/memchr (Files): Distribute valgrind file.
45201         * modules/memchr2 (Files): Likewise.
45202
45203         docs: memchr is no longer obsolete
45204         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45205         * lib/string.in.h (memchr): Simplify logic.
45206
45207 2009-06-14  Jim Meyering  <meyering@redhat.com>
45208
45209         link-follow: fix the "checking..." message to not mention trailing slash
45210         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45211         never considered trailing slashes.
45212
45213 2009-06-14  Bruno Haible  <bruno@clisp.org>
45214
45215         * m4/memchr.m4: Mention also the bug on IA-64.
45216         * doc/posix-functions/memchr.texi: Likewise.
45217
45218 2009-06-12  Eric Blake  <ebb9@byu.net>
45219
45220         memchr: detect broken x86_64 and alpha implementations
45221         * modules/memchr-tests (Depends-on): Move mmap detection...
45222         * modules/memchr (Depends-on): ...here.
45223         (configure.ac): Set indicator.
45224         * lib/string.in.h (memchr): Declare replacement.
45225         * modules/string (Makefile.am): Trigger replacement.
45226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45227         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45228         bugs.
45229         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45230         * modules/getpagesize (License): Relax license.
45231
45232 2009-06-11  Bruno Haible  <bruno@clisp.org>
45233
45234         * lib/idpriv.h: Add more references.
45235
45236 2009-06-08  Bruno Haible  <bruno@clisp.org>
45237
45238         Tests for module 'idpriv-droptemp'.
45239         * modules/idpriv-droptemp-tests: New file.
45240         * tests/test-idpriv-droptemp.sh: New file.
45241         * tests/test-idpriv-droptemp.su.sh: New file.
45242         * tests/test-idpriv-droptemp.c: New file.
45243
45244         New module 'idpriv-droptemp'.
45245         * lib/idpriv-droptemp.c: New file.
45246         * modules/idpriv-droptemp: New file.
45247
45248 2009-06-08  Bruno Haible  <bruno@clisp.org>
45249
45250         Tests for module 'idpriv-drop'.
45251         * modules/idpriv-drop-tests: New file.
45252         * tests/test-idpriv-drop.sh: New file.
45253         * tests/test-idpriv-drop.su.sh: New file.
45254         * tests/test-idpriv-drop.c: New file.
45255
45256         New module 'idpriv-drop'.
45257         * lib/idpriv.h: New file.
45258         * lib-idpriv-drop.c: New file.
45259         * m4/idpriv.m4: New file.
45260         * modules/idpriv-drop: New file.
45261
45262 2009-06-08  Bruno Haible  <bruno@clisp.org>
45263
45264         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45265         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45266         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45267         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45268         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45269         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45270         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45271
45272 2009-06-08  Eric Blake  <ebb9@byu.net>
45273
45274         test-strstr: use memory fence, when possible
45275         * tests/test-strstr.c (main): Use memory fence, in order to be
45276         more likely to trigger Debian bug 521737.
45277         * modules/strstr-tests (Files): Pull in additional files.
45278
45279         memchr: no longer obsolete, for wider field testing
45280         * modules/memchr (Status, Notice): Delete, this module is no
45281         longer obsolete.
45282         * modules/vasnprintf (Depends-on): Add memchr.
45283
45284 2009-06-07  Jim Meyering  <meyering@redhat.com>
45285
45286         hash: declare some functions with the warn_unused_result attribute
45287         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45288
45289 2009-06-07  Bruno Haible  <bruno@clisp.org>
45290
45291         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45292         Reported by Eric Blake.
45293
45294 2009-06-06  Eric Blake  <ebb9@byu.net>
45295
45296         test-alignof: fix typo with long double
45297         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45298         compiler error.
45299
45300 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45301
45302         Escape non-texinfo { and }s.
45303         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45304         markup error.
45305
45306 2009-06-04  Jim Meyering  <meyering@redhat.com>
45307
45308         gitlog-to-changelog: don't infloop on an empty commit log
45309         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45310         Reported by Boris Petersen <transacid@centerim.org>.
45311
45312 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45313
45314         version-etc: extend for packagers
45315         Add three new configure options, intended for packagers:
45316           --with-packager="packager name"
45317           --with-packager-version="packager-specific version"
45318           --with-packager-bug-reports="packager bug reporting"
45319         An example with coreutils:
45320           $ ./configure \
45321             --with-packager=Gentoo \
45322             --with-packager-bug-report=http://bugs.gentoo.org/ \
45323             --with-packager-version="patchset 1.6"
45324           $ ./src/ls --version | head -n2
45325           ls (GNU coreutils) 7.1-dirty
45326           Packaged by Gentoo (patchset 1.6)
45327         Note that the bug reporting info via --help doesn't show up because
45328         coreutils uses its own custom emit_bug_reporting_address() implementation
45329         in src/system.h.  If it didn't, it'd look like:
45330           $ ./src/ls --help | tail -n4
45331           Report bugs to <bug-coreutils@gnu.org>.
45332           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45333           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45334           General help using GNU software: <http://www.gnu.org/gethelp/>.
45335         * lib/version-etc.c: Print new information, if provided.
45336         * m4/version-etc.m4: New file.
45337         * modules/version-etc (Files): Add m4/version-etc.m4.
45338         (configure.ac): Add gl_VERSION_ETC.
45339
45340 2009-05-31  Bruno Haible  <bruno@clisp.org>
45341
45342         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45343         and 'int64_t'.
45344         * modules/alignof-tests (Dependencies): Add stdint.
45345         Reported by Eric Blake.
45346
45347 2009-05-31  Bruno Haible  <bruno@clisp.org>
45348
45349         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45350         restriction due to compiler bugs.
45351         Reported by Eric Blake.
45352
45353 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45354             Bruno Haible  <bruno@clisp.org>
45355
45356         Fix test-alignof failure.
45357         * lib/alignof.h (alignof_slot): New macro.
45358         (alignof_type): New macro, with the same semantics as the previous
45359         'alignof'.
45360         (alignof): Alias to alignof_slot.
45361         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45362         check that the results are usable as constant expressions.
45363
45364 2009-05-31  Bruno Haible  <bruno@clisp.org>
45365
45366         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45367         * tests/test-memchr.c (main): Check that memchr does not read past the
45368         first occurrence of the byte.
45369         * tests/test-strstr.c (main): Update comment.
45370         Suggested by Eric Blake.
45371
45372 2009-05-30  Bruno Haible  <bruno@clisp.org>
45373
45374         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45375         detail how to use dumpbin.
45376         Reported by David Byron <dbyron@dbyron.com>.
45377
45378 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45379
45380         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45381
45382 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45383
45384         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45385
45386 2009-05-28  Bruno Haible  <bruno@clisp.org>
45387
45388         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45389         build-aux/ files.
45390
45391 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45392
45393         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45394
45395 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45396
45397         * gnulib-tool (sed_transform_main_lib_file)
45398         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45399         regexps.
45400
45401 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45402
45403         * tests/test-strstr.c: Add another self-test.
45404         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45405         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45406
45407 2009-05-23  Bruno Haible  <bruno@clisp.org>
45408
45409         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45410         change.
45411
45412 2009-05-21  Bruno Haible  <bruno@clisp.org>
45413
45414         Simplify use of mode_t varargs.
45415         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45416         uses 'mode_t' or 'int'.
45417         * lib/openat.c (openat): Likewise.
45418         * lib/open-safer.c (open_safer): Likewise.
45419         * m4/mode_t.m4: New file.
45420         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45421         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45422         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45423         * modules/open (Files): Add m4/mode_t.m4.
45424         * modules/openat (Files): Likewise.
45425         * modules/fcntl-safer (Files): Likewise.
45426         Suggested by Eric Blake.
45427
45428 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45429
45430         * doc/glibc-functions/fallocate.texi: New file.
45431         * doc/gnulib.texi: Include it.
45432
45433 2009-05-21  Eric Blake  <ebb9@byu.net>
45434             Bruno Haible  <bruno@clisp.org>
45435
45436         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45437         invocations.
45438         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45439
45440 2009-05-21  Eric Blake  <ebb9@byu.net>
45441             Bruno Haible  <bruno@clisp.org>
45442
45443         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45444         include_next. Fix of 2008-11-20 commit.
45445         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45446         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45447         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45448         NEXT_MATH_H.
45449         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45450         instead of NEXT_MATH_H.
45451
45452 2009-05-21  Bruno Haible  <bruno@clisp.org>
45453
45454         Avoid redefinition warnings for SIZE_MAX.
45455         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45456         Reported by Simon Josefsson.
45457
45458 2009-05-21  Bruno Haible  <bruno@clisp.org>
45459
45460         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45461         AC_CACHE_VAL.
45462
45463 2009-05-20  Bruno Haible  <bruno@clisp.org>
45464
45465         Make zeroptr.h work on mingw.
45466         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45467         mprotect.
45468         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45469         * modules/memchr2-tests (configure.ac): Likewise.
45470         * modules/memcmp-tests (configure.ac): Likewise.
45471         * modules/memmem-tests (configure.ac): Likewise.
45472         * modules/memrchr-tests (configure.ac): Likewise.
45473         Reported by Simon Josefsson.
45474
45475 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45476
45477         * tests/test-glob.c: Include string.h for strcmp prototype.
45478
45479 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45480
45481         * modules/getdelim (Depends-on): Add explicit stdint, although it
45482         was implicitly already pulled in via realloc-posix.
45483         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45484
45485 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45486
45487         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45488         G. Christensen" <tgc@jupiterrise.com>.
45489         * m4/sys_socket_h.m4: Check for sa_family_t.
45490         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45491         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45492         * tests/test-sys_socket.c: Check that sa_family_t works.
45493
45494 2009-05-18  Eric Blake  <ebb9@byu.net>
45495
45496         maint.mk: allow gnulib_dir in VPATH build
45497         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45498
45499 2009-05-15  Jim Meyering  <meyering@redhat.com>
45500
45501         maint.mk: Give gnulib_dir a default definition.
45502         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45503         Thus, most packages no longer need to specify this variable in cfg.mk
45504
45505 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45506
45507         rename.m4: fix typos that would make non-mingw cross-configure fail
45508         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45509
45510 2009-05-13  Eric Blake  <ebb9@byu.net>
45511
45512         mmap-anon: avoid out-of-order autoconf expansion
45513         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45514         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45515         * modules/memchr-tests (Depends-on): Add extensions.
45516         * modules/memchr2-tests (Depends-on): Add extensions.
45517         * modules/memcmp-tests (Depends-on): Add extensions.
45518         * modules/memmem-tests (Depends-on): Add extensions.
45519         * modules/memrchr-tests (Depends-on): Add extensions.
45520
45521 2009-05-13  Bruno Haible  <bruno@clisp.org>
45522
45523         Make some tests ISO C 99 compliant.
45524         * tests/zerosize-ptr.h: New file.
45525         * tests/test-memchr.c: Include zerosize-ptr.h.
45526         (main): Use a zero-size object pointer instead of NULL.
45527         * tests/test-memchr2.c: Include zerosize-ptr.h.
45528         (main): Use a zero-size object pointer instead of NULL.
45529         * tests/test-memcmp.c: Include zerosize-ptr.h.
45530         (main): Use a zero-size object pointer instead of NULL.
45531         * tests/test-memmem.c: Include zerosize-ptr.h.
45532         (main): Use a zero-size object pointer instead of NULL.
45533         * tests/test-memrchr.c: Include zerosize-ptr.h.
45534         (main): Use a zero-size object pointer instead of NULL.
45535         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45536         m4/mmap-anon.m4.
45537         (Depends-on): Add getpagesize.
45538         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45539         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45540         m4/mmap-anon.m4.
45541         (Depends-on): Add getpagesize.
45542         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45543         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45544         m4/mmap-anon.m4.
45545         (Depends-on): Add getpagesize.
45546         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45547         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45548         m4/mmap-anon.m4.
45549         (Depends-on): Add getpagesize.
45550         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45551         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45552         m4/mmap-anon.m4.
45553         (Depends-on): Add getpagesize.
45554         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45555
45556 2009-05-12  Bruno Haible  <bruno@clisp.org>
45557
45558         Tests for module 'alignof'.
45559         * modules/alignof-tests: New file.
45560         * tests/test-alignof.c: New file.
45561
45562 2009-05-12  Bruno Haible  <bruno@clisp.org>
45563
45564         Fix alignof macro.
45565         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45566         vendor compilers that are always correct.
45567
45568 2009-05-12  Bruno Haible  <bruno@clisp.org>
45569
45570         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45571         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45572         not whether its fully works.
45573
45574 2009-05-12  Bruno Haible  <bruno@clisp.org>
45575
45576         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45577
45578 2009-05-12  Jim Meyering  <meyering@redhat.com>
45579
45580         * top/maint.mk: Adjust backslash alignment.
45581
45582 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45583
45584         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45585
45586 2009-05-11  Eric Blake  <ebb9@byu.net>
45587
45588         argp: avoid undefined behavior
45589         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45590         macros.
45591
45592 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45593
45594         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45595         user.name to prevent git commit from complaining.
45596
45597 2009-05-10  Bruno Haible  <bruno@clisp.org>
45598
45599         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45600         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45601         it rewrites every file name only once.
45602         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45603
45604 2009-05-08  Bruno Haible  <bruno@clisp.org>
45605
45606         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45607         instead of 'max'.
45608
45609 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45610
45611         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45612         sockaddr_storage test.
45613
45614 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45615
45616         * modules/sys_socket (Makefile.am): Substitute
45617         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45618         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45619         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45620         * tests/test-sys_socket.c: Check sockaddr_storage.
45621
45622 2009-05-08  Bruno Haible  <bruno@clisp.org>
45623
45624         New module 'alignof'.
45625         * lib/alignof.h: New file.
45626         * modules/alignof: New file.
45627
45628 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45629             Bruno Haible  <bruno@clisp.org>
45630
45631         Fix test-file-has-acl on FreeBSD.
45632         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45633         mask is implicitly added.
45634         * tests/test-file-has-acl.c: Include <signal.h>.
45635         (main): Terminate the test after 5 seconds.
45636         * modules/acl-tests (configure.ac): Check for alarm function.
45637
45638 2009-05-04  Bruno Haible  <bruno@clisp.org>
45639
45640         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45641         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45642         * modules/errno (configure.ac): Drop AC_REQUIRE.
45643         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45644         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45645
45646 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45647
45648         * modules/glob-tests: New module.
45649         * tests/test-glob.c: Add.
45650
45651 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45652
45653         * modules/fnmatch-tests: New module.
45654         * tests/test-fnmatch.c: Add.
45655
45656 2009-05-04  Eric Blake  <ebb9@byu.net>
45657
45658         maint: make the new no-submodule-changes rule VPATH-safe
45659         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45660
45661 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45662             Bruno Haible  <bruno@clisp.org>
45663
45664         acl: Fix infinite loop on FreeBSD.
45665         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45666         of return value from acl_get_entry.
45667         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45668         Likewise.
45669
45670 2009-05-03  Bruno Haible  <bruno@clisp.org>
45671
45672         * lib/acl-internal.h (acl_entries): Clarify return value.
45673         * lib/acl_entries.c (acl_entries): Likewise.
45674
45675 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45676
45677         Bug fix in acl module.
45678         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45679
45680 2009-05-03  Bruno Haible  <bruno@clisp.org>
45681
45682         Create gperf-generated file in the source dir, not in the build dir.
45683         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45684         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45685         * modules/unicase/locale-language (unicase/locale-languages.h):
45686         Likewise.
45687         * modules/unicase/special-casing (unicase/special-casing-table.h):
45688         Likewise.
45689         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45690         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45691         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45692         Reported by Ralf Wildenhues.
45693
45694 2009-05-03  Bruno Haible  <bruno@clisp.org>
45695
45696         * modules/fnmatch (Description, configure.ac): Taken from
45697         fnmatch-posix.
45698         * modules/fnmatch-posix: Turn into a symbolic reference to the
45699         'fnmatch' module, and deprecate.
45700         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45701
45702 2009-05-03  Bruno Haible  <bruno@clisp.org>
45703
45704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45705         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45706         Reported by Ralf Wildenhues.
45707
45708 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45709
45710         * m4/fnmatch.m4: Fix fnmatch re-define.
45711
45712 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45713
45714         priv-set: new module and tests; adapt write-any-file
45715         * lib/priv-set.c: New file.
45716         * lib/priv-set.h: New file.
45717         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45718         * lib/write-any-file.c: Simplify by using priv-set module.
45719         * m4/priv-set.m4: New file.
45720         * modules/priv-set: New file.
45721         * modules/unlinkdir: Add dependency on priv-set module.
45722         * modules/write-any-file: Likewise.
45723
45724         Tests for module 'priv-set'.
45725         * modules/priv-set-tests: New file.
45726         * tests/test-priv-set.c: New file.
45727
45728 2009-05-03  Jim Meyering  <meyering@redhat.com>
45729             Bruno Haible  <bruno@clisp.org>
45730
45731         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45732         use the converted UTF-8 variant of the name instead.
45733
45734 2009-05-03  Jim Meyering  <meyering@redhat.com>
45735
45736         tests: tighten some getdate tests
45737         * tests/test-getdate.c (main): Tighten tests: require equality,
45738         not just greater than.  Set TZ envvar to UTC0.
45739
45740 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45741
45742         getdate: correctly interpret "next monday" when run on a Monday
45743         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45744         that e.g., "next tues" (when run on a tuesday) results in a date
45745         that is one week in the future, and not today's date.
45746         I.e., add a week when the wday is the same as the current one.
45747         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45748         and earlier by Martin Bernreuther and Jan Minář.
45749         * tests/test-getdate.c (main): Check that "next DAY" is always in
45750         the future and that "last DAY" is always in the past.
45751
45752 2009-05-02  Jim Meyering  <meyering@redhat.com>
45753
45754         build: ensure that a release build fails when a submodule is unclean
45755         * top/maint.mk (no-submodule-changes): New rule.
45756         (alpha beta major): Depend on it.
45757
45758 2009-05-02  Bruno Haible  <bruno@clisp.org>
45759
45760         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45761         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45762         shell variable gl_fnmatch_required to detect which variant is
45763         requested.
45764         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45765         gl_FUNC_FNMATCH_POSIX.
45766         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45767         exclude fnmatch-posix.
45768
45769 2009-05-02  Bruno Haible  <bruno@clisp.org>
45770
45771         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45772         * modules/mbsrtowcs (License): Change to LGPLv2+.
45773         * modules/strnlen1 (License): Likewise.
45774         Reported by Simon Josefsson.
45775
45776 2009-05-02  Bruno Haible  <bruno@clisp.org>
45777
45778         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45779         "cross".
45780         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45781         gnulib-tool was called with option --source-base=lib.
45782
45783 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45784
45785         Use automake *-local hooks without commands, for extensibility.
45786         * modules/localcharset (Makefile.am): Rename install-exec-local
45787         rule to install-exec-localcharset, and make it a prerequisite of
45788         install-exec-local.  Likewise, rename the uninstall-local rule to
45789         uninstall-localcharset, and make it a prerequisite of the former.
45790
45791 2009-05-01  Bruno Haible  <bruno@clisp.org>
45792
45793         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45794         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45795         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45796         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45797         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45798         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45799         m4/locale-zh.m4, m4/codeset.m4.
45800
45801         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45802         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45803         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45804         m4/locale-zh.m4.
45805
45806         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45807         REPLACE_WCRTOMB if mbstate_t must be replaced.
45808         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45809         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45810
45811 2009-05-01  Bruno Haible  <bruno@clisp.org>
45812
45813         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45814         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45815         dngettext, dcngettext, textdomain, bindtextdomain,
45816         bind_textdomain_codeset): Undefine before redefining.
45817
45818 2009-04-30  Bruno Haible  <bruno@clisp.org>
45819
45820         Fix bug introduced on 2009-04-25.
45821         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45822         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45823         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45824         is defined.
45825         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45826         is defined.
45827         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45828         is defined.
45829         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45830
45831 2009-04-28  Bruno Haible  <bruno@clisp.org>
45832
45833         Comment tweaks.
45834         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45835         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45836         * lib/unicase.h (u*_casexfrm): Likewise.
45837         Reported by Paolo Bonzini.
45838
45839 2009-04-28  Bruno Haible  <bruno@clisp.org>
45840
45841         Fix a compilation error.
45842         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45843         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45844         Reported by Jim Meyering.
45845
45846 2009-04-27  Bruno Haible  <bruno@clisp.org>
45847
45848         New module 'libunistring'.
45849         * modules/libunistring: New file.
45850         * m4/libunistring.m4: New file.
45851         * MODULES.html.sh (Unicode string functions): Add it.
45852
45853 2009-04-27  Eric Blake  <ebb9@byu.net>
45854
45855         maint.mk: allow package-specific header to provide <config.h>
45856         * top/maint.mk (sc_require_config_h): New variable.
45857         (sc_require_config_h, sc_require_config_h_first): Use it.
45858
45859 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45860
45861         * top/maint.mk (sc_avoid_if_before_free): Except
45862         useless-if-before-free script.
45863
45864 2009-04-27  Eric Blake  <ebb9@byu.net>
45865
45866         maintainer-makefile: depend on all required helper scripts
45867         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45868         useless-if-before-free.
45869         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45870         version, rather than assuming gnulib checkout is available.
45871         Reported by Simen Josefsson.
45872
45873 2009-04-26  Bruno Haible  <bruno@clisp.org>
45874
45875         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45876         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45877         "../" or "..".
45878
45879 2009-04-26  Bruno Haible  <bruno@clisp.org>
45880
45881         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45882         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45883         AC_LIB_HAVE_LINKFLAGS.
45884
45885 2009-04-26  Bruno Haible  <bruno@clisp.org>
45886
45887         Simplify calling convention of u*_conv_from_encoding.
45888         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45889         u32_conv_from_encoding): Expect a resultbuf argument and return the
45890         result directly as a pointer.
45891         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45892         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45893         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45894         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45895         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45896         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45897         Update.
45898         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45899         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45900         * lib/vasnprintf.c (VASNPRINTF): Update.
45901         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45902         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45903         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45904         * NEWS: Mention the change.
45905
45906 2009-04-26  Bruno Haible  <bruno@clisp.org>
45907
45908         Simplify calling convention of u*_conv_to_encoding.
45909         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45910         u32_conv_to_encoding): Expect a resultbuf argument and return the
45911         result directly as a pointer.
45912         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45913         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45914         freeing scaled_offsets if mem_iconveha failed.
45915         * lib/unicase/u-casexfrm.h (FUNC): Update.
45916         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45917         * lib/vasnprintf.c (VASNPRINTF): Update.
45918         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45919         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45920         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45921         * NEWS: Mention the change.
45922
45923 2009-04-26  Bruno Haible  <bruno@clisp.org>
45924
45925         Avoid test failures on AIX and OSF/1.
45926         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45927         malloc(0).
45928         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45929         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45930         Likewise.
45931         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45932         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45933         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45934         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45935         * doc/posix-functions/malloc.texi: Document the portability problem
45936         related to malloc(0).
45937
45938 2009-04-26  Bruno Haible  <bruno@clisp.org>
45939
45940         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45941         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45942         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45943
45944 2009-04-25  Bruno Haible  <bruno@clisp.org>
45945
45946         Avoid link error when creating a namespace clean library.
45947         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45948         as macro with arguments if already defined as an alias.
45949         * lib/signbitf.c (gl_signbitf): Don't undefine.
45950         * lib/signbitd.c (gl_signbitd): Don't undefine.
45951         * lib/signbitl.c (gl_signbitl): Don't undefine.
45952
45953 2009-04-25  Jim Meyering  <meyering@redhat.com>
45954
45955         vc-list-files: fix another quoting bug
45956         * build-aux/vc-list-files: Avoid sed backslash expansion
45957         of pathological directory names.
45958
45959 2009-04-25  Eric Blake  <ebb9@byu.net>
45960
45961         vc-list-files: fix shell quoting error
45962         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45963         timestamp.
45964
45965 2009-04-25  Jim Meyering  <meyering@redhat.com>
45966
45967         vc-list-files: restore lost functionality with subdir argument
45968         * build-aux/vc-list-files: When given a non-"." sub-directory
45969         argument, substitute the $dir/ prefix back onto each resulting name.
45970         Otherwise, coreutils' root_tests check would fail.
45971
45972 2009-04-24  Eric Blake  <ebb9@byu.net>
45973
45974         vc-list-files: ignore git symlinks
45975         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45976         than ls-files, to ignore git symlinks.
45977
45978         maint.mk: import improvements from m4
45979         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45980         (move_if_change): Delete unused macro.
45981         (news-date-check, vc-diff-check): Support VPATH builds.
45982         (announcement): Likewise.  Split --bootstrap-tools list...
45983         (boostrap-tools): ...into separate list, which can be overridden
45984         in cfg.mk.
45985         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45986         requiring dependency on useless-if-before-free module.
45987         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45988         Support VPATH builds.
45989
45990 2009-04-24  Jim Meyering  <meyering@redhat.com>
45991
45992         maint.mk: remove coreutils-specific rules and variables
45993         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45994         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45995         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45996
45997         maint.mk: remove obsolete rule
45998         * top/maint.mk (rel-check): Remove rule.
45999         (WGET, WGETFLAGS): Remove now-unused variables.
46000
46001 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46002
46003         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
46004         consistency.
46005
46006         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
46007         '$(PATH_SEPARATOR)' instead of ':'.
46008
46009 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46010
46011         * lib/getopt1.c (main): Use 'const' for static array.
46012
46013 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46014
46015         * top/maint.mk: Sync with coreutils.
46016         * NEWS: Explain incompatibilities.
46017
46018 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46019             Bruno Haible  <bruno@clisp.org>
46020
46021         Fix cross-compilation results.
46022         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46023         statement, as third argument of AC_TRY_RUN.
46024         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46025         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46026         Likewise.
46027         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46028         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46029         Likewise.
46030         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46031         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46032         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46033
46034 2009-04-20  Bruno Haible  <bruno@clisp.org>
46035
46036         Avoid test failure on mingw.
46037         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46038
46039 2009-04-20  Bruno Haible  <bruno@clisp.org>
46040
46041         Avoid compilation error on mingw.
46042         * modules/localename-tests (Depends-on): Add locale.
46043
46044 2009-04-19  Bruno Haible  <bruno@clisp.org>
46045
46046         Support for building a shared library on Windows platforms.
46047         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46048         (main): Test the presence of UNINORM_NFC here.
46049         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46050         (main): Test the presence of UNINORM_NFD here.
46051         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46052         (main): Test the presence of UNINORM_NFKC here.
46053         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46054         (main): Test the presence of UNINORM_NFKD here.
46055
46056 2009-04-19  Bruno Haible  <bruno@clisp.org>
46057
46058         Avoid a compiler warning.
46059         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46060         Change type of variable 'sequence'.
46061
46062 2009-04-19  Bruno Haible  <bruno@clisp.org>
46063
46064         * modules/configmake (Makefile.am): When the contents of configmake.h
46065         does not change, arrange to preserve its modification time.
46066
46067 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46068
46069         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46070         gettext domain.
46071
46072 2009-04-16  Jim Meyering  <meyering@redhat.com>
46073
46074         useless-if-before-free: improve conversion code
46075         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46076         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46077
46078 2009-04-14  Bruno Haible  <bruno@clisp.org>
46079
46080         * modules/fcntl (Depends-on): Add extensions.
46081         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46082
46083 2009-04-12  Ben Pfaff  <blp@gnu.org>
46084
46085         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46086         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46087
46088 2009-03-20  Ben Pfaff  <blp@gnu.org>
46089
46090         Make rename replace existing destinations on Windows.
46091         * m4/rename.m4: Add test for Mingw.
46092         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46093         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46094         * doc/posix-functions/rename.texi: Document.
46095
46096 2009-04-10  Bruno Haible  <bruno@clisp.org>
46097
46098         New include file "iconveh.h".
46099         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46100         * lib/striconveh.h: Include it.
46101         (enum iconv_ilseq_handler): Remove definition.
46102         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46103         striconveh.h.
46104         * lib/striconveha.c: Include striconveh.h.
46105         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46106         * modules/striconveh (Files): Add lib/iconveh.h.
46107         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46108         lib/striconveh.h.
46109
46110 2009-04-10  Bruno Haible  <bruno@clisp.org>
46111
46112         * lib/uniconv.h: Update comment.
46113
46114 2009-04-10  Bruno Haible  <bruno@clisp.org>
46115
46116         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46117         always.
46118         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46119         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46120         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46121         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46122         "unistring-notinline.h", so that the function gets defined always.
46123         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46124         * lib/unistr/u8-uctomb.c: Likewise.
46125         * lib/unistr/u16-mbtouc.c: Likewise.
46126         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46127         * lib/unistr/u16-uctomb.c: Likewise.
46128         * lib/unistr/u32-mbtouc.c: Likewise.
46129         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46130         * lib/unistr/u32-uctomb.c: Likewise.
46131
46132 2009-04-10  Bruno Haible  <bruno@clisp.org>
46133
46134         Mark 'utime' obsolete.
46135         * modules/utime (Status, Notice): New sections.
46136         Suggested by Jim Meyering.
46137
46138         Fix cross-compile guess for utime test.
46139         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46140         autoconf.
46141         * doc/posix-functions/utime.texi: Give more precisions.
46142         Reported by Jan <ipif@ymail.com>.
46143
46144 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46145
46146         filevercmp: correct today's change
46147         * lib/filevercmp.c: Also handle coreutils' test inputs.
46148         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46149
46150         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46151         for reporting it.
46152         * lib/filevercmp.c: Special handle for "", "." and "..".
46153         * tests/test-filevercmp.c: Enlarge the set suite.
46154
46155 2009-04-07  Jim Meyering  <meyering@redhat.com>
46156
46157         useless-if-before-free: show how to remove braced useless free, too
46158         * build-aux/useless-if-before-free: still only in a comment, though.
46159
46160 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46161
46162         maint.mk: import changes to syntax-check macros from coreutils
46163         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46164         Use them in the relevant macros.
46165
46166 2009-04-06  Bruno Haible  <bruno@clisp.org>
46167
46168         Fix unportable use of bit-fields.
46169         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46170         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46171         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46172
46173 2009-04-06  Bruno Haible  <bruno@clisp.org>
46174
46175         Avoid test failures on AIX and OSF/1.
46176         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46177         that malloc(0) = NULL.
46178         * tests/unicase/test-u8-tolower.c (check): Likewise.
46179         * tests/unicase/test-u8-totitle.c (check): Likewise.
46180         * tests/unicase/test-u8-toupper.c (check): Likewise.
46181         * tests/unicase/test-u16-casefold.c (check): Likewise.
46182         * tests/unicase/test-u16-tolower.c (check): Likewise.
46183         * tests/unicase/test-u16-totitle.c (check): Likewise.
46184         * tests/unicase/test-u16-toupper.c (check): Likewise.
46185         * tests/unicase/test-u32-casefold.c (check): Likewise.
46186         * tests/unicase/test-u32-tolower.c (check): Likewise.
46187         * tests/unicase/test-u32-totitle.c (check): Likewise.
46188         * tests/unicase/test-u32-toupper.c (check): Likewise.
46189         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46190         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46191         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46192         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46193         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46194         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46195         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46196         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46197         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46198         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46199         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46200         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46201
46202 2009-04-05  Bruno Haible  <bruno@clisp.org>
46203
46204         Work around an autoconf limitation.
46205         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46206         comment line if it would be longer than 3 KB.
46207
46208 2009-04-05  Bruno Haible  <bruno@clisp.org>
46209
46210         Avoid test failure with libiconv-1.13.
46211         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46212         of the expected test results.
46213
46214 2009-04-05  Bruno Haible  <bruno@clisp.org>
46215
46216         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46217         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46218         that it should be installed.
46219
46220 2009-04-05  Bruno Haible  <bruno@clisp.org>
46221
46222         * gnulib-tool: New option --copy-file.
46223         (func_usage): Document it.
46224         (func_dest_tmpfilename): Moved out of func_import.
46225         (func_add_file, func_update_file): New functions, extracted from
46226         func_import.
46227         (func_import): Update.
46228
46229 2009-04-05  Karl Berry  <karl@gnu.org>
46230
46231         * README: prominently mention gnulib-tool.
46232         Rearrange sections so getting the code is near the top.
46233
46234 2009-04-05  Bruno Haible  <bruno@clisp.org>
46235
46236         * lib/unicase.h: Mention u*_cmp2.
46237         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46238         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46239         * lib/unicase/ulc-casecmp.c: Likewise.
46240         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46241         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46242         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46243         unistr/u8-cmp.
46244         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46245         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46246         unistr/u16-cmp.
46247         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46248         unistr/u32-cmp.
46249
46250         * lib/uninorm.h: Mention u*_cmp2.
46251         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46252         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46253         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46254         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46255         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46256         unistr/u8-cmp.
46257         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46258         unistr/u16-cmp.
46259         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46260         unistr/u32-cmp.
46261
46262         New module 'unistr/u32-cmp2'.
46263         * lib/unistr/u32-cmp2.c: New file.
46264         * modules/unistr/u32-cmp2: New file.
46265
46266         New module 'unistr/u16-cmp2'.
46267         * lib/unistr/u16-cmp2.c: New file.
46268         * modules/unistr/u16-cmp2: New file.
46269
46270         New module 'unistr/u8-cmp2'.
46271         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46272         * lib/unistr/u8-cmp2.c: New file.
46273         * lib/unistr/u-cmp2.h: New file.
46274         * modules/unistr/u8-cmp2: New file.
46275
46276 2009-04-05  Bruno Haible  <bruno@clisp.org>
46277
46278         * lib/unictype.h (uc_property_is_valid): New macro.
46279         * tests/unictype/test-pr_byname.c (main): Use it.
46280
46281         * lib/unistr.h: Doc fixes.
46282         * lib/uniconv.h: Doc fixes.
46283         * lib/unictype.h: Doc fixes.
46284
46285 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46286
46287         Port coreutils 7.2 to Solaris 8.
46288
46289         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46290         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46291         for Solaris 8.  This is a bit of a hack, as it means it's the
46292         caller's responsibility to add -lnsl if needed, but most likely it
46293         won't be needed since only getaddrinfo uses this and getaddrinfo
46294         isn't needed on Solaris 8.
46295
46296         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46297         problem to Solaris 8 encountered with coreutils 7.2, which
46298         resulted in a message "fnmatch.c:292: warning: passing argument 4
46299         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46300         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46301
46302 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46303
46304         * m4/ld-version-script.m4: Add FIXME comment.
46305
46306 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46307
46308         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46309         SOVERSION variable.
46310
46311 2009-04-02  Bruno Haible  <bruno@clisp.org>
46312
46313         * Makefile (info, html, dvi, pdf): Combine the rules.
46314         Suggested by Jim Meyering.
46315
46316 2009-04-01  Bruno Haible  <bruno@clisp.org>
46317
46318         * Makefile (info, html, dvi, pdf): New targets.
46319         Reported by Reuben Thomas <rrt@sc3d.org>.
46320
46321 2009-04-01  Bruno Haible  <bruno@clisp.org>
46322
46323         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46324         can be put into PATH.
46325         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46326
46327 2009-04-01  Bruno Haible  <bruno@clisp.org>
46328
46329         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46330
46331 2009-04-01  Bruno Haible  <bruno@clisp.org>
46332
46333         Rename module 'visibility'.
46334         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46335         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46336         * doc/gnulib.texi: Update.
46337         * MODULES.html.sh (Misc): Update.
46338         * NEWS: Mention the change.
46339
46340 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46341
46342         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46343         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46344         Eric Blake <ebb9@byu.net> for review.
46345         * MODULES.html.sh: Add lib-msvc-compat.
46346         * doc/gnulib.texi: Link to new section.
46347         * m4/ld-output-def.m4: New file.
46348         * doc/ld-output-def.texi: New file.
46349
46350 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46351
46352         Rename ld-version-script to lib-symbol-versions.  Suggested by
46353         Bruno Haible <bruno@clisp.org>.
46354         * modules/ld-version-script: Renamed to lib-symbol-versions.
46355         * doc/ld-version-script.texi: Fix module name.
46356         * MODULES.html.sh: Add lib-symbol-versions.
46357
46358 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46359
46360         * modules/u64-tests: New file.
46361         * tests/test-u64.c: New file.
46362
46363 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46364
46365         * MODULES.html.sh: Mention u64.
46366         * modules/u64: New module.
46367         * modules/crypto/sha512: Depend on u64 module instead of providing
46368         u64.h.
46369
46370 2009-03-27  Eric Blake  <ebb9@byu.net>
46371
46372         test-strerror: make debugging EAI_SYSTEM easier
46373         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46374         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46375         failure was EAI_SYSTEM.
46376
46377 2009-03-25  Bruno Haible  <bruno@clisp.org>
46378
46379         Fix a problem with --enable-relocatable on Solaris 7.
46380         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46381         since 2008-02-24.
46382
46383 2009-03-25  Eric Blake  <ebb9@byu.net>
46384
46385         test-sockets: avoid gcc warning
46386         * tests/test-sockets.c (main): Silence compiler warning.
46387
46388 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46389
46390         New modules nproc, pthread, contributed by Glen Lenker.
46391
46392         * MODULES.html.sh: Add pthread, nproc.
46393         * lib/nproc.c: New file.
46394         * lib/nproc.h: New file.
46395         * lib/pthread.in.h: New file.
46396         * m4/pthread.m4: New file.
46397         * modules/nproc: New file.
46398         * modules/pthread: New file.
46399
46400 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46401
46402         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46403         New variable.
46404
46405 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46406
46407         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46408         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46409         * tests/test-filevercmp.c: Add tests for backup suffixes.
46410
46411 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46412
46413         * modules/stdlib (Depends-on): Add stdint, needed when defining
46414         struct random_data on, for example, HP-UX 10.20.  Reported by
46415         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46416
46417 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46418
46419         * lib/readline.c (readline): Call fflush on stdout after printing
46420         prompt.
46421
46422 2009-03-20  Bruno Haible  <bruno@clisp.org>
46423
46424         Remove dependency from 'close' module to -lws2_32 on native Windows.
46425         * lib/close-hook.h: New file.
46426         * lib/close-hook.c: New file.
46427         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46428         w32sock.h.
46429         (_gl_close_fd_maybe_socket): Remove function.
46430         (rpl_close): Invoke execute_all_close_hooks instead of
46431         _gl_close_fd_maybe_socket.
46432         * lib/sockets.c: Include close-hook.h, w32sock.h.
46433         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46434         (close_sockets_hook): New variable.
46435         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46436         (gl_sockets_cleanup): Unregister it.
46437         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46438         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46439         * modules/close-hook: New file.
46440         * modules/close (Files): Remove lib/w32sock.h.
46441         (Depends-on): Add close-hook.
46442         (Link): Remove section.
46443         * modules/sockets (Files): Add lib/w32sock.h.
46444         (Depends-on): Add close-hook.
46445         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46446         invocation.
46447         * NEWS: Mention that LIB_CLOSE is gone.
46448
46449 2009-03-23  Eric Blake  <ebb9@byu.net>
46450
46451         signal-tests: test previous patch
46452         * tests/test-signal.c: New file.
46453         * modules/signal-tests: Likewise.
46454
46455         signal.h: always support 'volatile sig_atomic_t'
46456         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46457         (gl_SIGNAL_H_DEFAULTS): Add a default.
46458         * modules/signal (Makefile.am): Substitute if needed.
46459         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46460         users can blindly add volatile.
46461         * doc/posix-headers/signal.texi (signal.h): Document it.
46462         Reported by Matthew Woehlke.
46463
46464 2009-03-23  Jim Meyering  <meyering@redhat.com>
46465
46466         pathmax: PATH_MAX: use pathconf only when available
46467         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46468         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46469         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46470         This avoids a link failure in a PSP cross-compilation environment
46471         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46472
46473         * lib/vasnprintf.c (divide): Fix typo in comment.
46474
46475 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46476
46477         * gnulib-tool (func_filter_filelist): Fix comment.
46478
46479 2009-03-20  Bruno Haible  <bruno@clisp.org>
46480
46481         Make sockets.h self-contained.
46482         * lib/sockets.c: Include sockets.h first.
46483         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46484
46485 2009-03-19  Eric Blake  <ebb9@byu.net>
46486
46487         doc: mention more functions added in cygwin 1.7.0
46488         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46489         addition.
46490         * doc/posix-functions/log2f.texi: Likewise.
46491
46492 2009-03-19  Jim Meyering  <meyering@redhat.com>
46493
46494         fsusage: avoid syntax error due to statement-before-declaration
46495         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46496         after all declarations.  Reported by Matthew Woehlke in
46497         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46498
46499 2009-03-18  Eric Blake  <ebb9@byu.net>
46500
46501         build-aux/compile: sync from automake
46502         * build-aux/compile: New file, from automake.
46503         * config/srclist.txt: Mention build-aux/compile.
46504
46505 2009-03-17  Bruno Haible  <bruno@clisp.org>
46506
46507         * lib/git-merge-changelog.c: Fix typo in comment.
46508         Reported by Reuben Thomas <rrt@sc3d.org>.
46509
46510 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46511
46512         * m4/regex.m4: update and improve help for
46513         --without-included-regex.
46514
46515 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46516
46517         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46518         failure on missing include files.
46519
46520 2009-03-17  Eric Blake  <ebb9@byu.net>
46521
46522         doc: mention more functions added in cygwin 1.7.0
46523         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46524         addition.
46525         * doc/posix-functions/fwscanf.texi: Likewise.
46526         * doc/posix-functions/swprintf.texi: Likewise.
46527         * doc/posix-functions/swscanf.texi: Likewise.
46528         * doc/posix-functions/vfwprintf.texi: Likewise.
46529         * doc/posix-functions/vfwscanf.texi: Likewise.
46530         * doc/posix-functions/vswprintf.texi: Likewise.
46531         * doc/posix-functions/vswscanf.texi: Likewise.
46532         * doc/posix-functions/vwprintf.texi: Likewise.
46533         * doc/posix-functions/vwscanf.texi: Likewise.
46534         * doc/posix-functions/wcscasecmp.texi: Likewise.
46535         * doc/posix-functions/wcsdup.texi: Likewise.
46536         * doc/posix-functions/wcsftime.texi: Likewise.
46537         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46538         * doc/posix-functions/wprintf.texi: Likewise.
46539         * doc/posix-functions/wscanf.texi: Likewise.
46540         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46541
46542 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46543
46544         maint.mk: really add $(AM_MAKEFLAGS)
46545         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46546         was inadvertently omitted in the last commit.
46547         Spotted by Bruno Haible.
46548
46549         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46550         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46551         $(AM_MAKEFLAGS)' rather than plain `make'.
46552
46553         gnulib-tool: execute $MAKE not make
46554         * gnulib-tool: Default $MAKE to 'make'.
46555         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46556         than make.  Initialize $MAKE in the do-autobuild script.
46557
46558         gnulib-tool: use $MAKE not make in generated files
46559         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46560         make, in generated files.  Initialize $MAKE in the do-autobuild
46561         script.
46562
46563         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46564
46565         GNUmakefile: disable parallelism only for multiple, recursive targets
46566         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46567         additions in the Makefile.
46568         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46569         by Automake.
46570         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46571         are listed on the command line and at least one of them is
46572         listed in $(ALL_RECURSIVE_TARGETS).
46573
46574 2009-03-14  Bruno Haible  <bruno@clisp.org>
46575
46576         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46577         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46578         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46579         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46580         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46581         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46582         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46583         unistr/u8-uctomb.
46584         * modules/unistr/u8-strchr (Depends-on): Likewise.
46585         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46586         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46587         unistr/u16-uctomb.
46588         * modules/unistr/u16-strchr (Depends-on): Likewise.
46589         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46590
46591 2009-03-12  Bruno Haible  <bruno@clisp.org>
46592
46593         Work around select() bug on Interix 3.5.
46594         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46595         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46596         * m4/select.m4: New file.
46597         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46598         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46599         * modules/select (Files): Add m4/select.m4.
46600         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46601         * modules/nanosleep (Depends-on): Add select.
46602         * modules/poll (Depends-on): Likewise.
46603         * doc/posix-functions/select.texi: Mention the Interix bug.
46604         Reported by Markus Duft <mduft@gentoo.org>.
46605
46606         * lib/select.c: Renamed from lib/winsock-select.c.
46607         * modules/select (Files): Add lib/select.c, remove
46608         lib/winsock-select.c.
46609         (configure.ac): Update.
46610
46611 2009-03-12  Jim Meyering  <meyering@redhat.com>
46612
46613         avoid gcc warnings about unused macro definitions
46614         * lib/readtokens.c (STREQ): Remove unused definition.
46615         * lib/xmalloc.c (SIZE_MAX): Likewise.
46616         * lib/openat-die.c (N_): Likewise.
46617         * lib/mountlist.c (SIZE_MAX): Remove definition.
46618         Instead, include <stdint.h>.
46619         * lib/readutmp.c: Likewise.
46620         * modules/readutmp (Depends-on): Add stdint.
46621         * modules/mountlist (Depends-on): Add stdint.
46622         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46623
46624 2009-03-10  Bruno Haible  <bruno@clisp.org>
46625
46626         Tests for module 'mbmemcasecoll'.
46627         * modules/mbmemcasecoll-tests: New file.
46628         * tests/test-mbmemcasecoll1.sh: New file.
46629         * tests/test-mbmemcasecoll2.sh: New file.
46630         * tests/test-mbmemcasecoll3.sh: New file.
46631         * tests/test-mbmemcasecoll.c: New file.
46632
46633         New module 'mbmemcasecoll'.
46634         * lib/mbmemcasecoll.h: New file.
46635         * lib/mbmemcasecoll.c: New file.
46636         * modules/mbmemcasecoll: New file.
46637
46638         * tests/test-mbmemcasecmp.h: New file, extracted from
46639         tests/test-mbmemcasecmp.c.
46640         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46641         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46642         (main): Update.
46643         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46644
46645 2009-03-09  Bruno Haible  <bruno@clisp.org>
46646
46647         Tests for module 'mbmemcasecmp'.
46648         * modules/mbmemcasecmp-tests: New file.
46649         * tests/test-mbmemcasecmp1.sh: New file.
46650         * tests/test-mbmemcasecmp2.sh: New file.
46651         * tests/test-mbmemcasecmp3.sh: New file.
46652         * tests/test-mbmemcasecmp.c: New file.
46653
46654         New module 'mbmemcasecmp'.
46655         * lib/mbmemcasecmp.h: New file.
46656         * lib/mbmemcasecmp.c: New file.
46657         * modules/mbmemcasecmp: New file.
46658
46659 2009-03-09  Bruno Haible  <bruno@clisp.org>
46660
46661         Tests for module 'unicase/ulc-casecoll'.
46662         * modules/unicase/ulc-casecoll-tests: New file.
46663         * tests/unicase/test-ulc-casecoll1.sh: New file.
46664         * tests/unicase/test-ulc-casecoll2.sh: New file.
46665         * tests/unicase/test-ulc-casecoll.c: New file.
46666
46667         New module 'unicase/ulc-casecoll'.
46668         * lib/unicase.h (ulc_casecoll): New declaration.
46669         * lib/unicase/ulc-casecoll.c: New file.
46670         * modules/unicase/ulc-casecoll: New file.
46671
46672         New module 'unicase/ulc-casexfrm'.
46673         * lib/unicase.h (ulc_casexfrm): New declaration.
46674         * lib/unicase/ulc-casexfrm.c: New file.
46675         * modules/unicase/ulc-casexfrm: New file.
46676
46677 2009-03-09  Bruno Haible  <bruno@clisp.org>
46678
46679         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46680         invocations.
46681
46682         * m4/mbscasecmp.m4: Remove file.
46683         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46684         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46685
46686         * m4/mbscasestr.m4: Remove file.
46687         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46688         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46689
46690         * m4/mbschr.m4: Remove file.
46691         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46692         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46693
46694         * m4/mbscspn.m4: Remove file.
46695         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46696         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46697
46698         * m4/mbslen.m4: Remove file.
46699         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46700         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46701
46702         * m4/mbsncasecmp.m4: Remove file.
46703         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46704         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46705
46706         * m4/mbsnlen.m4: Remove file.
46707         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46708         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46709
46710         * m4/mbspbrk.m4: Remove file.
46711         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46712         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46713
46714         * m4/mbspcasecmp.m4: Remove file.
46715         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46716         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46717
46718         * m4/mbsrchr.m4: Remove file.
46719         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46720         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46721
46722         * m4/mbssep.m4: Remove file.
46723         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46724         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46725
46726         * m4/mbsspn.m4: Remove file.
46727         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46728         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46729
46730         * m4/mbsstr.m4: Remove file.
46731         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46732         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46733
46734         * m4/mbstok_r.m4: Remove file.
46735         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46736         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46737
46738         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46739
46740         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46741         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46742
46743         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46744
46745 2009-03-08  Bruno Haible  <bruno@clisp.org>
46746
46747         Tests for module 'unicase/ulc-casecmp'.
46748         * modules/unicase/ulc-casecmp-tests: New file.
46749         * tests/unicase/test-ulc-casecmp1.sh: New file.
46750         * tests/unicase/test-ulc-casecmp2.sh: New file.
46751         * tests/unicase/test-ulc-casecmp.c: New file.
46752
46753         New module 'unicase/ulc-casecmp'.
46754         * lib/unicase.h (ulc_casecmp): New declaration.
46755         * lib/unicase/ulc-casecmp.c: New file.
46756         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46757         'const SRC_UNIT *'.
46758         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46759         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46760         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46761         * modules/unicase/ulc-casecmp: New file.
46762
46763         Tests for module 'unicase/u32-is-cased'.
46764         * modules/unicase/u32-is-cased-tests: New file.
46765         * tests/unicase/test-u32-is-cased.c: New file.
46766
46767         Tests for module 'unicase/u16-is-cased'.
46768         * modules/unicase/u16-is-cased-tests: New file.
46769         * tests/unicase/test-u16-is-cased.c: New file.
46770
46771         Tests for module 'unicase/u8-is-cased'.
46772         * modules/unicase/u8-is-cased-tests: New file.
46773         * tests/unicase/test-u8-is-cased.c: New file.
46774         * tests/unicase/test-is-cased.h: New file.
46775
46776         New module 'unicase/u32-is-cased'.
46777         * lib/unicase/u32-is-cased.c: New file.
46778         * modules/unicase/u32-is-cased: New file.
46779
46780         New module 'unicase/u16-is-cased'.
46781         * lib/unicase/u16-is-cased.c: New file.
46782         * modules/unicase/u16-is-cased: New file.
46783
46784         New module 'unicase/u8-is-cased'.
46785         * lib/unicase/u8-is-cased.c: New file.
46786         * lib/unicase/u-is-cased.h: New file.
46787         * modules/unicase/u8-is-cased: New file.
46788
46789         Tests for module 'unicase/u32-is-casefolded'.
46790         * modules/unicase/u32-is-casefolded-tests: New file.
46791         * tests/unicase/test-u32-is-casefolded.c: New file.
46792
46793         Tests for module 'unicase/u16-is-casefolded'.
46794         * modules/unicase/u16-is-casefolded-tests: New file.
46795         * tests/unicase/test-u16-is-casefolded.c: New file.
46796
46797         Tests for module 'unicase/u8-is-casefolded'.
46798         * modules/unicase/u8-is-casefolded-tests: New file.
46799         * tests/unicase/test-u8-is-casefolded.c: New file.
46800         * tests/unicase/test-is-casefolded.h: New file.
46801
46802         New module 'unicase/u32-is-casefolded'.
46803         * lib/unicase/u32-is-casefolded.c: New file.
46804         * modules/unicase/u32-is-casefolded: New file.
46805
46806         New module 'unicase/u16-is-casefolded'.
46807         * lib/unicase/u16-is-casefolded.c: New file.
46808         * modules/unicase/u16-is-casefolded: New file.
46809
46810         New module 'unicase/u8-is-casefolded'.
46811         * lib/unicase/u8-is-casefolded.c: New file.
46812         * modules/unicase/u8-is-casefolded: New file.
46813
46814         Tests for module 'unicase/u32-is-titlecase'.
46815         * modules/unicase/u32-is-titlecase-tests: New file.
46816         * tests/unicase/test-u32-is-titlecase.c: New file.
46817
46818         Tests for module 'unicase/u16-is-titlecase'.
46819         * modules/unicase/u16-is-titlecase-tests: New file.
46820         * tests/unicase/test-u16-is-titlecase.c: New file.
46821
46822         Tests for module 'unicase/u8-is-titlecase'.
46823         * modules/unicase/u8-is-titlecase-tests: New file.
46824         * tests/unicase/test-u8-is-titlecase.c: New file.
46825         * tests/unicase/test-is-titlecase.h: New file.
46826
46827         New module 'unicase/u32-is-titlecase'.
46828         * lib/unicase/u32-is-titlecase.c: New file.
46829         * modules/unicase/u32-is-titlecase: New file.
46830
46831         New module 'unicase/u16-is-titlecase'.
46832         * lib/unicase/u16-is-titlecase.c: New file.
46833         * modules/unicase/u16-is-titlecase: New file.
46834
46835         New module 'unicase/u8-is-titlecase'.
46836         * lib/unicase/u8-is-titlecase.c: New file.
46837         * modules/unicase/u8-is-titlecase: New file.
46838
46839         Tests for module 'unicase/u32-is-lowercase'.
46840         * modules/unicase/u32-is-lowercase-tests: New file.
46841         * tests/unicase/test-u32-is-lowercase.c: New file.
46842
46843         Tests for module 'unicase/u16-is-lowercase'.
46844         * modules/unicase/u16-is-lowercase-tests: New file.
46845         * tests/unicase/test-u16-is-lowercase.c: New file.
46846
46847         Tests for module 'unicase/u8-is-lowercase'.
46848         * modules/unicase/u8-is-lowercase-tests: New file.
46849         * tests/unicase/test-u8-is-lowercase.c: New file.
46850         * tests/unicase/test-is-lowercase.h: New file.
46851
46852         New module 'unicase/u32-is-lowercase'.
46853         * lib/unicase/u32-is-lowercase.c: New file.
46854         * modules/unicase/u32-is-lowercase: New file.
46855
46856         New module 'unicase/u16-is-lowercase'.
46857         * lib/unicase/u16-is-lowercase.c: New file.
46858         * modules/unicase/u16-is-lowercase: New file.
46859
46860         New module 'unicase/u8-is-lowercase'.
46861         * lib/unicase/u8-is-lowercase.c: New file.
46862         * modules/unicase/u8-is-lowercase: New file.
46863
46864         Tests for module 'unicase/u32-is-uppercase'.
46865         * modules/unicase/u32-is-uppercase-tests: New file.
46866         * tests/unicase/test-u32-is-uppercase.c: New file.
46867
46868         Tests for module 'unicase/u16-is-uppercase'.
46869         * modules/unicase/u16-is-uppercase-tests: New file.
46870         * tests/unicase/test-u16-is-uppercase.c: New file.
46871
46872         Tests for module 'unicase/u8-is-uppercase'.
46873         * modules/unicase/u8-is-uppercase-tests: New file.
46874         * tests/unicase/test-u8-is-uppercase.c: New file.
46875         * tests/unicase/test-is-uppercase.h: New file.
46876
46877         New module 'unicase/u32-is-uppercase'.
46878         * lib/unicase/u32-is-uppercase.c: New file.
46879         * modules/unicase/u32-is-uppercase: New file.
46880
46881         New module 'unicase/u16-is-uppercase'.
46882         * lib/unicase/u16-is-uppercase.c: New file.
46883         * modules/unicase/u16-is-uppercase: New file.
46884
46885         New module 'unicase/u8-is-uppercase'.
46886         * lib/unicase/u8-is-uppercase.c: New file.
46887         * modules/unicase/u8-is-uppercase: New file.
46888
46889         New module 'unicase/u32-is-invariant'.
46890         * lib/unicase/u32-is-invariant.c: New file.
46891         * modules/unicase/u32-is-invariant: New file.
46892
46893         New module 'unicase/u16-is-invariant'.
46894         * lib/unicase/u16-is-invariant.c: New file.
46895         * modules/unicase/u16-is-invariant: New file.
46896
46897         New module 'unicase/u8-is-invariant'.
46898         * lib/unicase/u8-is-invariant.c: New file.
46899         * lib/unicase/invariant.h: New file.
46900         * lib/unicase/u-is-invariant.h: New file.
46901         * modules/unicase/u8-is-invariant: New file.
46902
46903         Tests for module 'unicase/u32-casecoll'.
46904         * modules/unicase/u32-casecoll-tests: New file.
46905         * tests/unicase/test-u32-casecoll.c: New file.
46906
46907         Tests for module 'unicase/u16-casecoll'.
46908         * modules/unicase/u16-casecoll-tests: New file.
46909         * tests/unicase/test-u16-casecoll.c: New file.
46910
46911         Tests for module 'unicase/u8-casecoll'.
46912         * modules/unicase/u8-casecoll-tests: New file.
46913         * tests/unicase/test-u8-casecoll.c: New file.
46914
46915         New module 'unicase/u32-casecoll'.
46916         * lib/unicase/u32-casecoll.c: New file.
46917         * modules/unicase/u32-casecoll: New file.
46918
46919         New module 'unicase/u16-casecoll'.
46920         * lib/unicase/u16-casecoll.c: New file.
46921         * modules/unicase/u16-casecoll: New file.
46922
46923         New module 'unicase/u8-casecoll'.
46924         * lib/unicase/u8-casecoll.c: New file.
46925         * lib/unicase/u-casecoll.h: New file.
46926         * modules/unicase/u8-casecoll: New file.
46927
46928         New module 'unicase/u32-casexfrm'.
46929         * lib/unicase/u32-casexfrm.c: New file.
46930         * modules/unicase/u32-casexfrm: New file.
46931
46932         New module 'unicase/u16-casexfrm'.
46933         * lib/unicase/u16-casexfrm.c: New file.
46934         * modules/unicase/u16-casexfrm: New file.
46935
46936         New module 'unicase/u8-casexfrm'.
46937         * lib/unicase/u8-casexfrm.c: New file.
46938         * lib/unicase/u-casexfrm.h: New file.
46939         * modules/unicase/u8-casexfrm: New file.
46940
46941         Tests for module 'unicase/u32-casecmp'.
46942         * modules/unicase/u32-casecmp-tests: New file.
46943         * tests/unicase/test-u32-casecmp.c: New file.
46944
46945         Tests for module 'unicase/u16-casecmp'.
46946         * modules/unicase/u16-casecmp-tests: New file.
46947         * tests/unicase/test-u16-casecmp.c: New file.
46948
46949         Tests for module 'unicase/u8-casecmp'.
46950         * modules/unicase/u8-casecmp-tests: New file.
46951         * tests/unicase/test-u8-casecmp.c: New file.
46952         * tests/unicase/test-casecmp.h: New file.
46953
46954         New module 'unicase/u32-casecmp'.
46955         * lib/unicase/u32-casecmp.c: New file.
46956         * modules/unicase/u32-casecmp: New file.
46957
46958         New module 'unicase/u16-casecmp'.
46959         * lib/unicase/u16-casecmp.c: New file.
46960         * modules/unicase/u16-casecmp: New file.
46961
46962         New module 'unicase/u8-casecmp'.
46963         * lib/unicase/u8-casecmp.c: New file.
46964         * lib/unicase/u-casecmp.h: New file.
46965         * modules/unicase/u8-casecmp: New file.
46966
46967         Tests for module 'unicase/u32-casefold'.
46968         * modules/unicase/u32-casefold-tests: New file.
46969         * tests/unicase/test-u32-casefold.c: New file.
46970
46971         Tests for module 'unicase/u16-casefold'.
46972         * modules/unicase/u16-casefold-tests: New file.
46973         * tests/unicase/test-u16-casefold.c: New file.
46974
46975         Tests for module 'unicase/u8-casefold'.
46976         * modules/unicase/u8-casefold-tests: New file.
46977         * tests/unicase/test-u8-casefold.c: New file.
46978
46979         New module 'unicase/u32-casefold'.
46980         * lib/unicase/u32-casefold.c: New file.
46981         * modules/unicase/u32-casefold: New file.
46982
46983         New module 'unicase/u16-casefold'.
46984         * lib/unicase/u16-casefold.c: New file.
46985         * modules/unicase/u16-casefold: New file.
46986
46987         New module 'unicase/u8-casefold'.
46988         * lib/unicase/u8-casefold.c: New file.
46989         * lib/unicase/u-casefold.h: New file.
46990         * modules/unicase/u8-casefold: New file.
46991
46992         New module 'unicase/tocasefold'.
46993         * lib/unicase/casefold.h: New file.
46994         * lib/unicase/tocasefold.c: New file.
46995         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46996         * modules/unicase/tocasefold: New file.
46997
46998         Tests for module 'unicase/u32-totitle'.
46999         * modules/unicase/u32-totitle-tests: New file.
47000         * tests/unicase/test-u32-totitle.c: New file.
47001
47002         Tests for module 'unicase/u16-totitle'.
47003         * modules/unicase/u16-totitle-tests: New file.
47004         * tests/unicase/test-u16-totitle.c: New file.
47005
47006         Tests for module 'unicase/u8-totitle'.
47007         * modules/unicase/u8-totitle-tests: New file.
47008         * tests/unicase/test-u8-totitle.c: New file.
47009
47010         New module 'unicase/u32-totitle'.
47011         * lib/unicase/u32-totitle.c: New file.
47012         * modules/unicase/u32-totitle: New file.
47013
47014         New module 'unicase/u16-totitle'.
47015         * lib/unicase/u16-totitle.c: New file.
47016         * modules/unicase/u16-totitle: New file.
47017
47018         New module 'unicase/u8-totitle'.
47019         * lib/unicase/u8-totitle.c: New file.
47020         * lib/unicase/u-totitle.h: New file.
47021         * modules/unicase/u8-totitle: New file.
47022
47023         Tests for module 'unicase/u32-tolower'.
47024         * modules/unicase/u32-tolower-tests: New file.
47025         * tests/unicase/test-u32-tolower.c: New file.
47026
47027         Tests for module 'unicase/u16-tolower'.
47028         * modules/unicase/u16-tolower-tests: New file.
47029         * tests/unicase/test-u16-tolower.c: New file.
47030
47031         Tests for module 'unicase/u8-tolower'.
47032         * modules/unicase/u8-tolower-tests: New file.
47033         * tests/unicase/test-u8-tolower.c: New file.
47034
47035         New module 'unicase/u32-tolower'.
47036         * lib/unicase/u32-tolower.c: New file.
47037         * modules/unicase/u32-tolower: New file.
47038
47039         New module 'unicase/u16-tolower'.
47040         * lib/unicase/u16-tolower.c: New file.
47041         * modules/unicase/u16-tolower: New file.
47042
47043         New module 'unicase/u8-tolower'.
47044         * lib/unicase/u8-tolower.c: New file.
47045         * modules/unicase/u8-tolower: New file.
47046
47047         Tests for module 'unicase/u32-toupper'.
47048         * modules/unicase/u32-toupper-tests: New file.
47049         * tests/unicase/test-u32-toupper.c: New file.
47050
47051         Tests for module 'unicase/u16-toupper'.
47052         * modules/unicase/u16-toupper-tests: New file.
47053         * tests/unicase/test-u16-toupper.c: New file.
47054
47055         Tests for module 'unicase/u8-toupper'.
47056         * modules/unicase/u8-toupper-tests: New file.
47057         * tests/unicase/test-u8-toupper.c: New file.
47058
47059         New module 'unicase/u32-toupper'.
47060         * lib/unicase/u32-toupper.c: New file.
47061         * modules/unicase/u32-toupper: New file.
47062
47063         New module 'unicase/u16-toupper'.
47064         * lib/unicase/u16-toupper.c: New file.
47065         * modules/unicase/u16-toupper: New file.
47066
47067         New module 'unicase/u8-toupper'.
47068         * lib/unicase/u8-toupper.c: New file.
47069         * modules/unicase/u8-toupper: New file.
47070
47071         New module 'unicase/u32-casemap'.
47072         * lib/unicase/u32-casemap.c: New file.
47073         * modules/unicase/u32-casemap: New file.
47074
47075         New module 'unicase/u16-casemap'.
47076         * lib/unicase/u16-casemap.c: New file.
47077         * modules/unicase/u16-casemap: New file.
47078
47079         New module 'unicase/u8-casemap'.
47080         * lib/unicase/unicasemap.h: New file.
47081         * lib/unicase/u8-casemap.c: New file.
47082         * lib/unicase/u-casemap.h: New file.
47083         * modules/unicase/u8-casemap: New file.
47084
47085         New module 'unicase/special-casing'.
47086         * lib/unicase/special-casing.h: New file.
47087         * lib/unicase/special-casing.c: New file.
47088         * lib/unicase/special-casing-table.gperf: New file, generated by
47089         gen-uni-tables.c.
47090         * modules/unicase/special-casing: New file.
47091
47092         Tests for module 'unicase/locale-language'.
47093         * modules/unicase/locale-language-tests: New file.
47094         * tests/unicase/test-locale-language.sh: New file.
47095         * tests/unicase/test-locale-language.c: New file.
47096
47097         New module 'unicase/locale-language'.
47098         * lib/unicase/locale-language.c: New file.
47099         * lib/unicase/locale-languages.gperf: New file.
47100         * modules/unicase/locale-language: New file.
47101
47102         Generate more tables for case conversion and case folding.
47103         * lib/gen-uni-tables.c (SCC_*): New enum items.
47104         (struct special_casing_rule): New type.
47105         (casing_rules, num_casing_rules, allocated_casing_rules): New
47106         variables.
47107         (add_casing_rule, fill_casing_rules): New functions.
47108         (struct casefold_rule): New type.
47109         (casefolding_rules, num_casefolding_rules,
47110         allocated_casefolding_rules): New variables.
47111         (fill_casefolding_rules): New function.
47112         (unicode_casefold): New variable.
47113         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47114         sort_casing_rules, output_casing_rules): New functions.
47115         (main): Accept to more arguments: SpecialCasing.txt and
47116         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47117         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47118         Output mapping for casefolding.
47119
47120         * lib/unicase.h: Include stdbool.h, uninorm.h.
47121         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47122         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47123         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47124         arguments.
47125         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47126         resultp arguments.
47127         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47128         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47129         resultp arguments.
47130         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47131         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47132         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47133         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47134         declarations.
47135         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47136
47137 2009-03-08  Bruno Haible  <bruno@clisp.org>
47138
47139         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47140         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47141         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47142         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47143
47144 2009-03-07  Bruno Haible  <bruno@clisp.org>
47145
47146         Adjust u*_normcmp, u*_normcoll API.
47147         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47148         u16_normcoll, u32_normcoll): Change failure conventions.
47149         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47150         errno and return -1.
47151         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47152
47153 2009-03-07  Bruno Haible  <bruno@clisp.org>
47154
47155         Tests for module 'uninorm/u32-normcoll'.
47156         * modules/uninorm/u32-normcoll-tests: New file.
47157         * tests/uninorm/test-u32-normcoll.c: New file.
47158
47159         Tests for module 'uninorm/u16-normcoll'.
47160         * modules/uninorm/u16-normcoll-tests: New file.
47161         * tests/uninorm/test-u16-normcoll.c: New file.
47162
47163         Tests for module 'uninorm/u8-normcoll'.
47164         * modules/uninorm/u8-normcoll-tests: New file.
47165         * tests/uninorm/test-u8-normcoll.c: New file.
47166
47167 2009-03-07  Bruno Haible  <bruno@clisp.org>
47168
47169         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47170         tests/uninorm/test-u32-normcmp.c.
47171         * tests/uninorm/test-u32-normcmp.c: Include it.
47172         (test_nonascii): New function, extracted from main. Add some more
47173         tests.
47174         (main): Invoke test_ascii and test_nonascii.
47175         * modules/uninorm/u32-normcmp-tests (Files): Add
47176         tests/uninorm/test-u32-normcmp.h.
47177         (Depends-on): Remove uninorm/u32-normcmp.
47178
47179         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47180         tests/uninorm/test-u16-normcmp.c.
47181         * tests/uninorm/test-u16-normcmp.c: Include it.
47182         (test_nonascii): New function, extracted from main. Add some more
47183         tests.
47184         (main): Invoke test_ascii and test_nonascii.
47185         * modules/uninorm/u16-normcmp-tests (Files): Add
47186         tests/uninorm/test-u16-normcmp.h.
47187         (Depends-on): Remove uninorm/u16-normcmp.
47188
47189         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47190         tests/uninorm/test-u8-normcmp.c.
47191         * tests/uninorm/test-u8-normcmp.c: Include it.
47192         (test_nonascii): New function, extracted from main. Add some more
47193         tests.
47194         (main): Invoke test_ascii and test_nonascii.
47195         * modules/uninorm/u8-normcmp-tests (Files): Add
47196         tests/uninorm/test-u8-normcmp.h.
47197         (Depends-on): Remove uninorm/u8-normcmp.
47198
47199 2009-03-07  Bruno Haible  <bruno@clisp.org>
47200
47201         New module 'uninorm/u32-normcoll'.
47202         * lib/uninorm/u32-normcoll.c: New file.
47203         * modules/uninorm/u32-normcoll: New file.
47204
47205         New module 'uninorm/u16-normcoll'.
47206         * lib/uninorm/u16-normcoll.c: New file.
47207         * modules/uninorm/u16-normcoll: New file.
47208
47209         New module 'uninorm/u8-normcoll'.
47210         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47211         declarations.
47212         * lib/uninorm/u8-normcoll.c: New file.
47213         * lib/uninorm/u-normcoll.h: New file.
47214         * modules/uninorm/u8-normcoll: New file.
47215
47216         New module 'uninorm/u32-normxfrm'.
47217         * lib/uninorm/u32-normxfrm.c: New file.
47218         * modules/uninorm/u32-normxfrm: New file.
47219
47220         New module 'uninorm/u16-normxfrm'.
47221         * lib/uninorm/u16-normxfrm.c: New file.
47222         * modules/uninorm/u16-normxfrm: New file.
47223
47224         New module 'uninorm/u8-normxfrm'.
47225         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47226         declarations.
47227         * lib/uninorm/u8-normxfrm.c: New file.
47228         * lib/uninorm/u-normxfrm.h: New file.
47229         * modules/uninorm/u8-normxfrm: New file.
47230
47231 2009-03-07  Bruno Haible  <bruno@clisp.org>
47232
47233         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47234         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47235         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47236
47237 2009-03-07  Bruno Haible  <bruno@clisp.org>
47238
47239         New module 'memxfrm'.
47240         * lib/memxfrm.h: New file.
47241         * lib/memxfrm.c: New file.
47242         * modules/memxfrm: New file.
47243
47244 2009-03-07  Bruno Haible  <bruno@clisp.org>
47245
47246         New module 'memcmp2'.
47247         * lib/memcmp2.h: New file.
47248         * lib/memcmp2.c: New file.
47249         * modules/memcmp2: New file.
47250
47251 2009-03-07  Bruno Haible  <bruno@clisp.org>
47252
47253         Tests for module 'uninorm/decomposing-form'.
47254         * modules/uninorm/decomposing-form-tests: New file.
47255         * tests/uninorm/test-decomposing-form.c: New file.
47256
47257         New module 'uninorm/decomposing-form'.
47258         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47259         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47260         Add 'decomposing_variant' field.
47261         * lib/uninorm/decomposing-form.c: New file.
47262         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47263         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47264         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47265         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47266         * modules/uninorm/decomposing-form: New file.
47267         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47268         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47269
47270 2009-03-07  Bruno Haible  <bruno@clisp.org>
47271
47272         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47273         strings.
47274
47275 2009-03-06  Bruno Haible  <bruno@clisp.org>
47276
47277         Tests for module 'uninorm/u32-normcmp'.
47278         * tests/uninorm/test-u32-normcmp.c: New file.
47279         * modules/uninorm/u32-normcmp-tests: New file.
47280
47281         Tests for module 'uninorm/u16-normcmp'.
47282         * tests/uninorm/test-u16-normcmp.c: New file.
47283         * modules/uninorm/u16-normcmp-tests: New file.
47284
47285         Tests for module 'uninorm/u8-normcmp'.
47286         * tests/uninorm/test-u8-normcmp.c: New file.
47287         * modules/uninorm/u8-normcmp-tests: New file.
47288
47289         New module 'uninorm/u32-normcmp'.
47290         * lib/uninorm/u32-normcmp.c: New file.
47291         * modules/uninorm/u32-normcmp: New file.
47292
47293         New module 'uninorm/u16-normcmp'.
47294         * lib/uninorm/u16-normcmp.c: New file.
47295         * modules/uninorm/u16-normcmp: New file.
47296
47297         New module 'uninorm/u8-normcmp'.
47298         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47299         declarations.
47300         * lib/uninorm/u8-normcmp.c: New file.
47301         * lib/uninorm/u-normcmp.h: New file.
47302         * modules/uninorm/u8-normcmp: New file.
47303
47304 2009-03-06  Bruno Haible  <bruno@clisp.org>
47305
47306         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47307         Reported by Eric Blake.
47308
47309 2009-03-06  Eric Blake  <ebb9@byu.net>
47310             Bruno Haible  <bruno@clisp.org>
47311
47312         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47313         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47314         condition.
47315         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47316         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47317         condition.
47318         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47319
47320 2009-03-06  Eric Blake  <ebb9@byu.net>
47321
47322         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47323         to avoid compiler warnings.
47324         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47325
47326 2009-03-05  Bruno Haible  <bruno@clisp.org>
47327
47328         * tests/test-ftell.c (main): Disable test beyond end of file on
47329         FreeMiNT.
47330         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47331
47332 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47333
47334         * lib/filevercmp.c: Move hidden files up in ordering.
47335         * tests/test-filevercmp.c: Add tests for hidden files.
47336
47337 2009-03-04  Bruno Haible  <bruno@clisp.org>
47338
47339         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47340         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47341         AM_CFLAGS.
47342         Reported by Simon Josefsson.
47343
47344 2009-03-03  Bruno Haible  <bruno@clisp.org>
47345
47346         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47347         Reported by Simon Josefsson.
47348
47349         * doc/ld-version-script.texi: Update node reference.
47350
47351 2009-03-03  Bruno Haible  <bruno@clisp.org>
47352
47353         * modules/visibility (License): Change to 'unlimited'.
47354         Suggested by Simon Josefsson.
47355
47356 2009-03-03  Jim Meyering  <meyering@redhat.com>
47357
47358         unlinkdir: cannot_unlink_dir may modify process state
47359         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47360         it's neither thread-safe nor appropriate for use in a library.
47361
47362 2009-03-03  Eric Blake  <ebb9@byu.net>
47363
47364         test-closein: silence test under Darwin
47365         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47366         care if it dies from EPIPE or EBADF.
47367
47368 2009-03-03  Bruno Haible  <bruno@clisp.org>
47369
47370         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47371         earlier.
47372         * doc/visibility.texi: Fix @node and @section.
47373
47374 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47375
47376         * doc/gnulib.texi: Link to sections for ld version script and
47377         visibility.
47378         * doc/visibility.texi: Add @node and @section.
47379         * modules/ld-version-script: New module.
47380         * m4/ld-version-script.m4: New file.
47381         * doc/ld-version-script.texi: New file.
47382
47383 2009-03-02  David Lutterkort  <lutter@redhat.com>
47384
47385         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47386         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47387
47388 2009-03-02  Bruno Haible  <bruno@clisp.org>
47389
47390         * doc/visibility.texi: Mention libtool's -export-symbols option.
47391
47392 2009-03-02  Jim Meyering  <meyering@redhat.com>
47393
47394         announce-gen: new option: --no-print-checksums
47395         * build-aux/announce-gen (usage): Describe it.
47396         (print_checksums): Print a newline here, not in the [*] footnote.
47397         (main): Honor it.
47398
47399 2009-03-01  Bruno Haible  <bruno@clisp.org>
47400
47401         Use socklen_t in the native Windows replacements prototypes.
47402         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47403         instead of 'int'.
47404         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47405         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47406         * modules/getsockopt (Depends-on): Add socklen.
47407         * modules/setsockopt (Depends-on): Add socklen.
47408
47409 2009-03-01  Bruno Haible  <bruno@clisp.org>
47410
47411         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47412         least 4.2.
47413
47414 2009-03-01  Eric Blake  <ebb9@byu.net>
47415             Bruno Haible  <bruno@clisp.org>
47416
47417         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47418         error messages.
47419         * lib/wait-process.c (wait_subprocess): Omit error message about
47420         deadly signal sent to the child of termsigp != NULL.
47421
47422 2009-03-01  Eric Blake  <ebb9@byu.net>
47423
47424         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47425
47426 2009-03-01  Bruno Haible  <bruno@clisp.org>
47427
47428         Avoid a gcc warning.
47429         * tests/test-sched.c (b): Make global.
47430         Reported by Eric Blake.
47431
47432 2009-01-19  Martin Lambers  <marlam@marlam.de>
47433
47434         Provide POSIX semantics for socket timeout options on W32.
47435         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47436         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47437         * modules/setsockopt: Depend on sys_time module for struct timeval.
47438         * modules/getsockopt: Depend on sys_time module for struct timeval.
47439
47440 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47441
47442         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47443         __USE_GNU, for consistency with netdb.in.h.
47444         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47445
47446 2009-03-01  Bruno Haible  <bruno@clisp.org>
47447
47448         More support for FreeMiNT.
47449         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47450         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47451
47452 2009-03-01  Bruno Haible  <bruno@clisp.org>
47453
47454         More support for FreeMiNT.
47455         * lib/fpurge.c (fpurge): Correct last commit.
47456         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47457
47458 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47459
47460         Fix unportable awk script in vc-list-files.
47461         * build-aux/vc-list-files: In the replacement awk script, use
47462         substr with a second argument of 1, not zero.
47463         Report by Simon Josefsson.
47464
47465 2009-02-28  Bruno Haible  <bruno@clisp.org>
47466
47467         More support for FreeMiNT.
47468         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47469         to FreeMiNT today.
47470         * lib/fwriting.c (fwriting): Likewise.
47471         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47472
47473 2009-02-28  Bruno Haible  <bruno@clisp.org>
47474
47475         * tests/test-freadseek.c (main): Disable test beyond end of file on
47476         FreeMiNT.
47477         * tests/test-ftello.c (main): Likewise.
47478         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47479
47480 2009-02-28  Bruno Haible  <bruno@clisp.org>
47481
47482         Add tentative support for FreeMiNT.
47483         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47484         * lib/fpurge.c (fpurge): Likewise.
47485         * lib/freadable.c (freadable): Likewise.
47486         * lib/freading.c (freading): Likewise.
47487         * lib/freadptr.c (freadptr): Likewise.
47488         * lib/freadseek.c (freadptrinc): Likewise.
47489         * lib/fseeko.c (rpl_fseeko): Likewise.
47490         * lib/fseterr.c (fseterr): Likewise.
47491         * lib/fwritable.c (fwritable): Likewise.
47492         * lib/fwriting.c (fwriting): Likewise.
47493         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47494         Hourihane.
47495         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47496
47497 2009-02-28  Bruno Haible  <bruno@clisp.org>
47498
47499         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47500         SIGCHLD.
47501         Reported by Jim Meyering.
47502
47503 2009-02-28  Bruno Haible  <bruno@clisp.org>
47504
47505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47506         Mention the results of these tests on various platforms.
47507         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47508         order.
47509         * doc/posix-functions/printf.texi: Likewise.
47510         * doc/posix-functions/snprintf.texi: Likewise.
47511         * doc/posix-functions/sprintf.texi: Likewise.
47512         * doc/posix-functions/vfprintf.texi: Likewise.
47513         * doc/posix-functions/vprintf.texi: Likewise.
47514         * doc/posix-functions/vsnprintf.texi: Likewise.
47515         * doc/posix-functions/vsprintf.texi: Likewise.
47516         * doc/glibc-functions/obstack_printf.texi: Likewise.
47517         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47518
47519 2009-02-28  Bruno Haible  <bruno@clisp.org>
47520
47521         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47522         Reported by Loïc Minier <lool@dooz.org>.
47523
47524 2009-02-27  Bruno Haible  <bruno@clisp.org>
47525
47526         * gnulib-tool (func_import): Make the sed expression used to create the
47527         sed script for updating the .gitignore file POSIX compliant.
47528         Reported by Eric Blake.
47529
47530 2009-02-27  Bruno Haible  <bruno@clisp.org>
47531
47532         * gnulib-tool (sed): Don't alias as "sed --posix".
47533         Reported by Eric Blake.
47534
47535 2009-02-27  Bruno Haible  <bruno@clisp.org>
47536
47537         Avoid test link errors.
47538         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47539         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47540         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47541         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47543
47544 2009-02-27  Bruno Haible  <bruno@clisp.org>
47545
47546         Avoid spurious "(cached)" in configure output.
47547         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47548         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47549         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47550         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47551         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47552         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47553         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47554         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47555         Reported by Eric Blake.
47556
47557 2009-02-27  Eric Blake  <ebb9@byu.net>
47558
47559         printf: fix regression in previous patch
47560         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47561
47562 2009-02-27  Bruno Haible  <bruno@clisp.org>
47563
47564         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47565         value.
47566         * lib/stdint.in.h: Likewise.
47567         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47568
47569 2009-02-27  Eric Blake  <ebb9@byu.net>
47570
47571         doc: mention more functions added in cygwin 1.7.0
47572         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47573         addition.
47574         * doc/posix-functions/open_wmemstream.texi: Likewise.
47575         * doc/posix-functions/wcsnlen.texi: Likewise.
47576         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47577         * doc/posix-functions/wcstod.texi: Likewise.
47578         * doc/posix-functions/wcstof.texi: Likewise.
47579         * doc/posix-functions/wcstoimax.texi: Likewise.
47580         * doc/posix-functions/wcstok.texi: Likewise.
47581         * doc/posix-functions/wcstoumax.texi: Likewise.
47582
47583         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47584         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47585         * doc/posix-functions/fprintf.texi: Update.
47586         * doc/posix-functions/printf.texi: Update.
47587         * doc/posix-functions/snprintf.texi: Update.
47588         * doc/posix-functions/sprintf.texi: Update.
47589         * doc/posix-functions/vfprintf.texi: Update.
47590         * doc/posix-functions/vprintf.texi: Update.
47591         * doc/posix-functions/vsnprintf.texi: Update.
47592         * doc/posix-functions/vsprintf.texi: Update.
47593         * doc/glibc-functions/obstack_printf.texi: Update.
47594         * doc/glibc-functions/obstack_vprintf.texi: Update.
47595
47596 2009-02-26  Eric Blake  <ebb9@byu.net>
47597
47598         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47599         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47600         compilation bug by using runtime conversion.
47601         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47602         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47603         * modules/ceill-tests (Files): Use nan.h.
47604         * modules/floorl-tests (Files): Likewise.
47605         * modules/frexpl-tests (Files): Likewise.
47606         * modules/isnanl-tests (Files): Likewise.
47607         * modules/ldexpl-tests (Files): Likewise.
47608         * modules/roundl-tests (Files): Likewise.
47609         * modules/truncl-tests (Files): Likewise.
47610         * tests/test-ceill.c (main): Use a working NaN.
47611         * tests/test-floorl.c (main): Likewise.
47612         * tests/test-frexpl.c (main): Likewise.
47613         * tests/test-isnan.c (test_long_double): Likewise.
47614         * tests/test-isnanl.h (main): Likewise.
47615         * tests/test-ldexpl.h (main): Likewise.
47616         * tests/test-roundl.h (main): Likewise.
47617         * tests/test-truncl.h (main): Likewise.
47618         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47619
47620 2009-02-26  Eric Blake  <ebb9@byu.net>
47621             Bruno Haible  <bruno@clisp.org>
47622
47623         Work around a *printf bug with %ls on Solaris.
47624         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47625         precision is specified, sprintf stops converting the wide string
47626         argument when the number of bytes that have been produced by this
47627         conversion equals or exceeds the precision.
47628         * doc/posix-functions/fprintf.texi: Update.
47629         * doc/posix-functions/printf.texi: Update.
47630         * doc/posix-functions/snprintf.texi: Update.
47631         * doc/posix-functions/sprintf.texi: Update.
47632         * doc/posix-functions/vfprintf.texi: Update.
47633         * doc/posix-functions/vprintf.texi: Update.
47634         * doc/posix-functions/vsnprintf.texi: Update.
47635         * doc/posix-functions/vsprintf.texi: Update.
47636         * doc/glibc-functions/obstack_printf.texi: Update.
47637         * doc/glibc-functions/obstack_vprintf.texi: Update.
47638
47639 2009-02-26  Eric Blake  <ebb9@byu.net>
47640
47641         stdlib: favor compiler check of random.h
47642         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47643         to avoid an ObjC random.h installed by Swarm.
47644
47645 2009-02-26  Bruno Haible  <bruno@clisp.org>
47646
47647         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47648         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47649         Reported by Gary V. Vaughan <gary@gnu.org>.
47650
47651 2009-02-26  Bruno Haible  <bruno@clisp.org>
47652
47653         Fix *printf behaviour regarding the %ls directive.
47654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47655         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47656         NEED_PRINTF_DIRECTIVE_LS.
47657         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47658         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47659         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47660         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47661         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47662         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47663         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47664         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47665         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47666         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47667         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47668         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47669         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47670         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47671         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47672         * doc/posix-functions/fprintf.texi: Update.
47673         * doc/posix-functions/printf.texi: Update.
47674         * doc/posix-functions/snprintf.texi: Update.
47675         * doc/posix-functions/sprintf.texi: Update.
47676         * doc/posix-functions/vfprintf.texi: Update.
47677         * doc/posix-functions/vprintf.texi: Update.
47678         * doc/posix-functions/vsnprintf.texi: Update.
47679         * doc/posix-functions/vsprintf.texi: Update.
47680         * doc/glibc-functions/obstack_printf.texi: Update.
47681         * doc/glibc-functions/obstack_vprintf.texi: Update.
47682         Reported by Eric Blake.
47683
47684 2009-02-25  Bruno Haible  <bruno@clisp.org>
47685
47686         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47687         with known value.
47688         Reported by Gary V. Vaughan <gary@gnu.org>.
47689
47690 2009-02-25  Bruno Haible  <bruno@clisp.org>
47691
47692         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47693         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47694         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47695         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47696         Reported by Gary V. Vaughan <gary@gnu.org>.
47697
47698 2009-02-25  Bruno Haible  <bruno@clisp.org>
47699
47700         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47701         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47702         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47703         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47704         Reported by Gary V. Vaughan <gary@gnu.org>.
47705
47706 2009-02-25  Eric Blake  <ebb9@byu.net>
47707
47708         tests: skip fseek/ftell tests if ungetc is broken
47709         * m4/ungetc.m4: New file.
47710         * modules/fseek-tests: Split test, so ungetc dependency is
47711         separate from rest of test.
47712         * modules/fseeko-tests: Likewise.
47713         * modules/ftell-tests: Likewise.
47714         * modules/ftello-tests: Likewise.
47715         * tests/test-fseek.c (main): Isolate ungetc dependency.
47716         * tests/test-fseeko.c (main): Likewise.
47717         * tests/test-ftell.c (main): Likewise.
47718         * tests/test-ftello.c (main): Likewise.
47719         * tests/test-fseek2.sh: New file.
47720         * tests/test-fseeko2.sh: Likewise.
47721         * tests/test-ftell2.sh: Likewise.
47722         * tests/test-ftello2.sh: Likewise.
47723
47724 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
47725
47726         test-getaddrinfo: fix usage of skip return code 77
47727         * tests/test-gettaddrinfo.c: Return skip code 77 only
47728         for first occurrence of skip (4x77 is not 77)
47729
47730 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47731
47732         strtod: avoid C99 decl-after-statement
47733         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47734
47735 2009-02-24  Eric Blake  <ebb9@byu.net>
47736
47737         strtod: detect HP-UX 11.31 bug
47738         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47739         Reported by Gary V. Vaughan.
47740
47741 2009-02-23  Bruno Haible  <bruno@clisp.org>
47742
47743         Fix invalid read past end of memory block.
47744         * lib/vasnprintf.c (DCHAR_SET): Define.
47745         (local_wcslen): Define only when needed.
47746         (local_strnlen, local_wcsnlen): New functions.
47747         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47748         directives that involve a conversion ourselves.
47749         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47750         wcsnlen, mbrtowc, wcrtomb.
47751         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47752         * tests/test-vasprintf-posix.c (test_function): Likewise.
47753         * tests/test-snprintf-posix.h (test_function): Likewise.
47754         * tests/test-sprintf-posix.h (test_function): Likewise.
47755         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47756
47757 2009-02-22  Bruno Haible  <bruno@clisp.org>
47758
47759         Implement new clarified decomposition of Hangul syllables.
47760         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47761         of type LTV, return only a pairwise decomposition.
47762         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47763         Likewise.
47764         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47765         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47766         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47767
47768 2009-02-22  Bruno Haible  <bruno@clisp.org>
47769
47770         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47771         zero-length results and shrink excess allocated memory.
47772         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47773         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47774         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47775         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47776         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47777         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47778         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47779         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47780         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47781         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47782         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47783         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47784
47785 2009-02-21  Bruno Haible  <bruno@clisp.org>
47786
47787         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47788         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47789         spaces after a period. Put a space between a macro name and its
47790         argument list. Trivial rewordings.
47791         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47792         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47793         (main): Return 0 explicitly.
47794
47795 2009-02-21  Bruno Haible  <bruno@clisp.org>
47796
47797         Tests for module 'uninorm/filter'.
47798         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47799         * modules/uninorm/filter-tests: New file.
47800
47801         New module 'uninorm/filter'.
47802         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47803         uninorm_filter_flush, uninorm_filter_free): New declarations.
47804         * lib/uninorm/uninorm-filter.c: New file.
47805         * modules/uninorm/filter: New file.
47806
47807 2009-02-21  Bruno Haible  <bruno@clisp.org>
47808
47809         Tests for module 'uninorm/nfkc'.
47810         * tests/uninorm/test-nfkc.c: New file.
47811         * tests/uninorm/test-u8-nfkc.c: New file.
47812         * tests/uninorm/test-u16-nfkc.c: New file.
47813         * tests/uninorm/test-u32-nfkc.c: New file.
47814         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47815         * tests/uninorm/test-u32-nfkc-big.c: New file.
47816         * modules/uninorm/nfkc-tests: New file.
47817
47818         New module 'uninorm/nfkc'.
47819         * lib/uninorm/nfkc.c: New file.
47820         * modules/uninorm/nfkc: New file.
47821
47822         Tests for module 'uninorm/nfkd'.
47823         * tests/uninorm/test-nfkd.c: New file.
47824         * tests/uninorm/test-u8-nfkd.c: New file.
47825         * tests/uninorm/test-u16-nfkd.c: New file.
47826         * tests/uninorm/test-u32-nfkd.c: New file.
47827         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47828         * tests/uninorm/test-u32-nfkd-big.c: New file.
47829         * modules/uninorm/nfkd-tests: New file.
47830
47831         New module 'uninorm/nfkd'.
47832         * lib/uninorm/nfkd.c: New file.
47833         * modules/uninorm/nfkd: New file.
47834
47835         Tests for module 'uninorm/nfc'.
47836         * tests/uninorm/test-nfc.c: New file.
47837         * tests/uninorm/test-u8-nfc.c: New file.
47838         * tests/uninorm/test-u16-nfc.c: New file.
47839         * tests/uninorm/test-u32-nfc.c: New file.
47840         * tests/uninorm/test-u32-nfc-big.sh: New file.
47841         * tests/uninorm/test-u32-nfc-big.c: New file.
47842         * modules/uninorm/nfc-tests: New file.
47843
47844         New module 'uninorm/nfc'.
47845         * lib/uninorm/nfc.c: New file.
47846         * modules/uninorm/nfc: New file.
47847
47848         Tests for module 'uninorm/nfd'.
47849         * tests/uninorm/test-nfd.c: New file.
47850         * tests/uninorm/test-u8-nfd.c: New file.
47851         * tests/uninorm/test-u16-nfd.c: New file.
47852         * tests/uninorm/test-u32-nfd.c: New file.
47853         * tests/uninorm/test-u32-nfd-big.sh: New file.
47854         * tests/uninorm/test-u32-nfd-big.c: New file.
47855         * tests/uninorm/test-u32-normalize-big.h: New file.
47856         * tests/uninorm/test-u32-normalize-big.c: New file.
47857         * tests/uninorm/NormalizationTest.txt: New file, created from
47858         Unicode 5.1.0 NormalizationTest.txt.
47859         * modules/uninorm/nfd-tests: New file.
47860
47861         New module 'uninorm/nfd'.
47862         * lib/uninorm/nfd.c: New file.
47863         * modules/uninorm/nfd: New file.
47864
47865         New module 'uninorm/u32-normalize'.
47866         * lib/uninorm/u32-normalize.c: New file.
47867         * modules/uninorm/u32-normalize: New file.
47868
47869         New module 'uninorm/u16-normalize'.
47870         * lib/uninorm/u16-normalize.c: New file.
47871         * modules/uninorm/u16-normalize: New file.
47872
47873         New module 'uninorm/u8-normalize'.
47874         * lib/uninorm/u8-normalize.c: New file.
47875         * lib/uninorm/normalize-internal.h: New file.
47876         * lib/uninorm/u-normalize-internal.h: New file.
47877         * modules/uninorm/u8-normalize: New file.
47878
47879         New module 'uninorm/decompose-internal'.
47880         * lib/uninorm/decompose-internal.c: New file.
47881         * modules/uninorm/decompose-internal: New file.
47882
47883         Tests for module 'uninorm/composition'.
47884         * tests/uninorm/test-composition.c: New file.
47885         * modules/uninorm/composition-tests: New file.
47886
47887         New module 'uninorm/composition'.
47888         * lib/uninorm/composition.c: New file.
47889         * lib/uninorm/composition-table.gperf: New file, generated by
47890         gen-uni-tables.
47891         * modules/uninorm/composition: New file.
47892
47893         Tests for module 'uninorm/compat-decomposition'.
47894         * tests/uninorm/test-compat-decomposition.c: New file.
47895         * modules/uninorm/compat-decomposition-tests: New file.
47896
47897         New module 'uninorm/compat-decomposition'.
47898         * lib/uninorm/decompose-internal.h: New file.
47899         * lib/uninorm/compat-decomposition.c: New file.
47900         * modules/uninorm/compat-decomposition: New file.
47901
47902         Tests for module 'uninorm/canonical-decomposition'.
47903         * tests/uninorm/test-canonical-decomposition.c: New file.
47904         * modules/uninorm/canonical-decomposition-tests: New file.
47905
47906         New module 'uninorm/canonical-decomposition'.
47907         * lib/uninorm/canonical-decomposition.c: New file.
47908         * modules/uninorm/canonical-decomposition: New file.
47909
47910         Tests for module 'uninorm/decomposition'.
47911         * tests/uninorm/test-decomposition.c: New file.
47912         * modules/uninorm/decomposition-tests: New file.
47913
47914         New module 'uninorm/decomposition'.
47915         * lib/uninorm/decomposition.c: New file.
47916         * modules/uninorm/decomposition: New file.
47917
47918         New module 'uninorm/decomposition-table'.
47919         * lib/uninorm/decomposition-table.h: New file.
47920         * lib/uninorm/decomposition-table.c: New file.
47921         * lib/uninorm/decomposition-table1.h: New file, generated by
47922         gen-uni-tables.
47923         * lib/uninorm/decomposition-table2.h: New file, generated by
47924         gen-uni-tables.
47925         * modules/uninorm/decomposition-table: New file.
47926
47927         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47928         (UC_DECOMP_*): New enumeration items.
47929         (get_decomposition): New function.
47930         (struct decomp_table): New type.
47931         (output_decomposition, output_decomposition_tables): New functions.
47932         (unicode_composition_exclusions): New variable.
47933         (fill_composition_exclusions, debug_output_composition_tables): New
47934         functions.
47935         (main): Accept one more argument. Invoke fill_composition_exclusions.
47936         Output decomposition and composition tables.
47937
47938         New module 'uninorm/base'.
47939         * lib/uninorm.h: New file.
47940         * lib/unictype.h: Update comment.
47941         * modules/uninorm/base: New file.
47942
47943 2009-02-21  David Lutterkort  <lutter@redhat.com>
47944
47945         Tests for module 'safe-alloc'.
47946         * tests/test-safe-alloc.c: New file.
47947         * modules/safe-alloc-tests: New file.
47948
47949         New module 'safe-alloc'.
47950         * lib/safe-alloc.h: New file.
47951         * lib/safe-alloc.c: New file.
47952         * m4/safe-alloc.m4: New file.
47953         * modules/safe-alloc: New file.
47954         * doc/safe-alloc.texi: New file.
47955         * doc/gnulib.texi: Include it.
47956         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47957         safe-alloc.
47958
47959 2009-02-18  Bruno Haible  <bruno@clisp.org>
47960
47961         Fix link error on non-glibc systems.
47962         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47963         variable.
47964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47965
47966 2009-02-18  Jim Meyering  <meyering@redhat.com>
47967
47968         fts: avoid used-uninitialized error due to recent change
47969         * lib/fts.c (fts_read): Guard uses of the new member,
47970         parent->fts_n_dirs_remaining, since it's not relevant for
47971         the parent of a directory specified on the command-line.
47972
47973 2009-02-17  James Youngman  <jay@gnu.org>
47974             Bruno Haible  <bruno@clisp.org>
47975
47976         * m4/include_next.m4: Reformulate comment.
47977
47978 2009-02-16  Jim Meyering  <meyering@redhat.com>
47979
47980         fts: add #if guards so that the fts_lgpl module still builds
47981         * lib/fts.c: Guard just-added hash-table-using parts with
47982         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47983         Reported by Simon Josefsson.
47984
47985 2009-02-15  Bruno Haible  <bruno@clisp.org>
47986
47987         * modules/array-mergesort-tests: New file.
47988         * tests/test-array-mergesort.c: New file.
47989
47990         New module 'array-mergesort'.
47991         * modules/array-mergesort: New file.
47992         * lib/array-mergesort.h: New file.
47993
47994 2009-02-15  Bruno Haible  <bruno@clisp.org>
47995
47996         Fix 2009-02-07 commit.
47997         * lib/gen-uni-tables.c (output_predicate, output_category,
47998         output_combclass, output_bidi_category, output_decimal_digit,
47999         output_digit, output_numeric, output_mirror, output_scripts,
48000         output_ident_category, output_simple_mapping): Fix format directives.
48001         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
48002
48003 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
48004
48005         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
48006         fixes are available from IBM.
48007
48008 2009-02-13  Jim Meyering  <meyering@redhat.com>
48009
48010         fts: arrange not to stat non-directories in more cases
48011         This makes GNU find (when it doesn't need to stat each file)
48012         *much* more efficient at traversing reiserfs file systems.
48013         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48014         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48015         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48016         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48017         (leaf_optimization_applies): New function.
48018         (LCO_hash, LCO_compare): New helper functions.
48019         (link_count_optimize_ok): New function.
48020         (fts_stat): Initialize new member (if dir).
48021         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48022         we've just stat'ed a directory.  Skip the stat call when possible.
48023         ---
48024         Note this AFS-related exchange:
48025         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48026         and note find's pioctl call in find/fstype.c.
48027         But that is necessary only if you want to enable the
48028         optimization for AFS, and for now, I don't.
48029
48030         fts: move a function definition "up" (no semantic change)
48031         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48032         "up" to precede upcoming use of a related function.
48033
48034 2009-02-11  Jim Meyering  <meyering@redhat.com>
48035
48036         fts: correct internal computation of nlinks (optimization-related)
48037         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48038         whether the current entry is a directory, so don't test it.
48039
48040 2009-02-10  Bruno Haible  <bruno@clisp.org>
48041
48042         Tests for module 'uniwbrk/ulc-wordbreaks'.
48043         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48044         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48045         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48046
48047         Tests for module 'uniwbrk/u32-wordbreaks'.
48048         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48049         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48050
48051         Tests for module 'uniwbrk/u16-wordbreaks'.
48052         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48053         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48054
48055         Tests for module 'uniwbrk/u8-wordbreaks'.
48056         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48057         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48058
48059 2009-02-10  Bruno Haible  <bruno@clisp.org>
48060
48061         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48062         property.
48063         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48064         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48065         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48066
48067 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48068
48069         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48070         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48071
48072 2009-02-10  Bruno Haible  <bruno@clisp.org>
48073
48074         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48075         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48076         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48077         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48078         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48079         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48080
48081 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48082
48083         * lib/sockets.h (gl_fd_to_handle): New function.
48084
48085         * tests/test-sockets.c: Call gl_fd_to_handle.
48086
48087 2009-02-09  Bruno Haible  <bruno@clisp.org>
48088
48089         * doc/havelib.texi: Document the conventions on bi-arch systems.
48090
48091 2009-02-08  Bruno Haible  <bruno@clisp.org>
48092
48093         Document the AC_LIB_LINKFLAGS macro.
48094         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48095         * doc/gnulib.texi: Include it.
48096
48097 2009-02-08  Bruno Haible  <bruno@clisp.org>
48098
48099         Fix wrong order of sections, compared to TOC.
48100         * doc/gnulib.texi: Include relocatable-maint.texi after the
48101         "Regular expressions" node, not before.
48102
48103 2009-02-08  Bruno Haible  <bruno@clisp.org>
48104
48105         Tests for module 'unicase/totitle'.
48106         * modules/unicase/totitle-tests: New file.
48107
48108         Tests for module 'unicase/tolower'.
48109         * modules/unicase/tolower-tests: New file.
48110
48111         Tests for module 'unicase/toupper'.
48112         * modules/unicase/toupper-tests: New file.
48113         * tests/unicase/test-mapping-part1.h: New file.
48114         * tests/unicase/test-mapping-part2.h: New file.
48115
48116         New module 'unicase/totitle'.
48117         * modules/unicase/totitle: New file.
48118         * lib/unicase/totitle.c: New file.
48119
48120         New module 'unicase/tolower'.
48121         * modules/unicase/tolower: New file.
48122         * lib/unicase/tolower.c: New file.
48123
48124         New module 'unicase/toupper'.
48125         * modules/unicase/toupper: New file.
48126         * lib/unicase/toupper.c: New file.
48127         * lib/unicase/simple-mapping.h: New file.
48128
48129         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48130         (mapping_table): New structure.
48131         (output_simple_mapping): New function.
48132         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48133         * modules/gen-uni-tables (Description): Update.
48134         * lib/unicase/toupper.h: New file, automatically generated by
48135         gen-uni-tables.
48136         * lib/unicase/tolower.h: New file, automatically generated by
48137         gen-uni-tables.
48138         * lib/unicase/totitle.h: New file, automatically generated by
48139         gen-uni-tables.
48140         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48141         gen-uni-tables.
48142         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48143         gen-uni-tables.
48144         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48145         gen-uni-tables.
48146
48147         New module 'unicase/base'.
48148         * modules/unicase/base: New file.
48149         * lib/unicase.h: New file.
48150
48151 2009-02-08  Bruno Haible  <bruno@clisp.org>
48152
48153         New module 'uniwbrk/ulc-wordbreaks'.
48154         * modules/uniwbrk/ulc-wordbreaks: New file.
48155         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48156
48157         New module 'uniwbrk/u32-wordbreaks'.
48158         * modules/uniwbrk/u32-wordbreaks: New file.
48159         * lib/uniwbrk/u32-wordbreaks.c: New file.
48160
48161         New module 'uniwbrk/u16-wordbreaks'.
48162         * modules/uniwbrk/u16-wordbreaks: New file.
48163         * lib/uniwbrk/u16-wordbreaks.c: New file.
48164
48165         New module 'uniwbrk/u8-wordbreaks'.
48166         * modules/uniwbrk/u8-wordbreaks: New file.
48167         * lib/uniwbrk/u8-wordbreaks.c: New file.
48168         * lib/uniwbrk/u-wordbreaks.h: New file.
48169
48170         New module 'uniwbrk/table'.
48171         * modules/uniwbrk/table: New file.
48172         * lib/uniwbrk/wbrktable.h: New file.
48173         * lib/uniwbrk/wbrktable.c: New file.
48174
48175         New module 'uniwbrk/wordbreak-property'.
48176         * modules/uniwbrk/wordbreak-property: New file.
48177         * lib/uniwbrk/wordbreak-property.c: New file.
48178
48179         * lib/gen-uni-tables.c (WBP_*): New enum items.
48180         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48181         (unicode_org_wbp): New variable.
48182         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48183         New functions.
48184         (wbp_table): New structure.
48185         (output_wbp, output_wbrk_tables): New functions.
48186         (main): Accept additional argument. Invoke fill_org_wbp,
48187         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48188         output_wbrk_tables.
48189         * modules/gen-uni-tables (Description): Update.
48190         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48191         gen-uni-tables.
48192
48193         New module 'uniwbrk/base'.
48194         * modules/uniwbrk/base: New file.
48195         * lib/uniwbrk.h: New file.
48196
48197 2009-02-08  Bruno Haible  <bruno@clisp.org>
48198
48199         Update to Unicode 5.1.0.
48200         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48201         U+2185..U+2188.
48202         (is_property_default_ignorable_code_point): Don't include characters
48203         of category Cc or Cs and not-a-characters.
48204         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48205         U+0D79, U+109E, U+109F, U+A60C.
48206         * lib/unictype/bidi_of.h: Regenerated.
48207         * lib/unictype/blocks.h: Regenerated.
48208         * lib/unictype/categ_C.h: Regenerated.
48209         * lib/unictype/categ_Cf.h: Regenerated.
48210         * lib/unictype/categ_Cn.h: Regenerated.
48211         * lib/unictype/categ_L.h: Regenerated.
48212         * lib/unictype/categ_Ll.h: Regenerated.
48213         * lib/unictype/categ_Lm.h: Regenerated.
48214         * lib/unictype/categ_Lo.h: Regenerated.
48215         * lib/unictype/categ_Lu.h: Regenerated.
48216         * lib/unictype/categ_M.h: Regenerated.
48217         * lib/unictype/categ_Mc.h: Regenerated.
48218         * lib/unictype/categ_Me.h: Regenerated.
48219         * lib/unictype/categ_Mn.h: Regenerated.
48220         * lib/unictype/categ_N.h: Regenerated.
48221         * lib/unictype/categ_Nd.h: Regenerated.
48222         * lib/unictype/categ_Nl.h: Regenerated.
48223         * lib/unictype/categ_No.h: Regenerated.
48224         * lib/unictype/categ_P.h: Regenerated.
48225         * lib/unictype/categ_Pd.h: Regenerated.
48226         * lib/unictype/categ_Pe.h: Regenerated.
48227         * lib/unictype/categ_Pf.h: Regenerated.
48228         * lib/unictype/categ_Pi.h: Regenerated.
48229         * lib/unictype/categ_Po.h: Regenerated.
48230         * lib/unictype/categ_Ps.h: Regenerated.
48231         * lib/unictype/categ_S.h: Regenerated.
48232         * lib/unictype/categ_Sk.h: Regenerated.
48233         * lib/unictype/categ_Sm.h: Regenerated.
48234         * lib/unictype/categ_So.h: Regenerated.
48235         * lib/unictype/categ_of.h: Regenerated.
48236         * lib/unictype/combining.h: Regenerated.
48237         * lib/unictype/ctype_alnum.h: Regenerated.
48238         * lib/unictype/ctype_alpha.h: Regenerated.
48239         * lib/unictype/ctype_graph.h: Regenerated.
48240         * lib/unictype/ctype_lower.h: Regenerated.
48241         * lib/unictype/ctype_print.h: Regenerated.
48242         * lib/unictype/ctype_punct.h: Regenerated.
48243         * lib/unictype/ctype_upper.h: Regenerated.
48244         * lib/unictype/decdigit.h: Regenerated.
48245         * lib/unictype/digit.h: Regenerated.
48246         * lib/unictype/mirror.h: Regenerated.
48247         * lib/unictype/numeric.h: Regenerated.
48248         * lib/unictype/pr_alphabetic.h: Regenerated.
48249         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48250         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48251         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48252         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48253         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48254         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48255         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48256         * lib/unictype/pr_combining.h: Regenerated.
48257         * lib/unictype/pr_dash.h: Regenerated.
48258         * lib/unictype/pr_decimal_digit.h: Regenerated.
48259         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48260         * lib/unictype/pr_deprecated.h: Regenerated.
48261         * lib/unictype/pr_diacritic.h: Regenerated.
48262         * lib/unictype/pr_extender.h: Regenerated.
48263         * lib/unictype/pr_format_control.h: Regenerated.
48264         * lib/unictype/pr_grapheme_base.h: Regenerated.
48265         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48266         * lib/unictype/pr_grapheme_link.h: Regenerated.
48267         * lib/unictype/pr_id_continue.h: Regenerated.
48268         * lib/unictype/pr_id_start.h: Regenerated.
48269         * lib/unictype/pr_ideographic.h: Regenerated.
48270         * lib/unictype/pr_ignorable_control.h: Regenerated.
48271         * lib/unictype/pr_lowercase.h: Regenerated.
48272         * lib/unictype/pr_math.h: Regenerated.
48273         * lib/unictype/pr_numeric.h: Regenerated.
48274         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48275         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48276         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48277         * lib/unictype/pr_other_id_continue.h: Regenerated.
48278         * lib/unictype/pr_other_lowercase.h: Regenerated.
48279         * lib/unictype/pr_other_math.h: Regenerated.
48280         * lib/unictype/pr_punctuation.h: Regenerated.
48281         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48282         * lib/unictype/pr_soft_dotted.h: Regenerated.
48283         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48284         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48285         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48286         * lib/unictype/pr_uppercase.h: Regenerated.
48287         * lib/unictype/pr_xid_continue.h: Regenerated.
48288         * lib/unictype/pr_xid_start.h: Regenerated.
48289         * lib/unictype/pr_zero_width.h: Regenerated.
48290         * lib/unictype/scripts.h: Regenerated.
48291         * lib/unictype/scripts_byname.gperf: Regenerated.
48292         * lib/unictype/sy_java_ident.h: Regenerated.
48293         * lib/unilbrk/lbrkprop1.h: Regenerated.
48294         * lib/unilbrk/lbrkprop2.h: Regenerated.
48295         * tests/unictype/test-categ_C.c: Regenerated.
48296         * tests/unictype/test-categ_Cf.c: Regenerated.
48297         * tests/unictype/test-categ_Cn.c: Regenerated.
48298         * tests/unictype/test-categ_L.c: Regenerated.
48299         * tests/unictype/test-categ_Ll.c: Regenerated.
48300         * tests/unictype/test-categ_Lm.c: Regenerated.
48301         * tests/unictype/test-categ_Lo.c: Regenerated.
48302         * tests/unictype/test-categ_Lu.c: Regenerated.
48303         * tests/unictype/test-categ_M.c: Regenerated.
48304         * tests/unictype/test-categ_Mc.c: Regenerated.
48305         * tests/unictype/test-categ_Me.c: Regenerated.
48306         * tests/unictype/test-categ_Mn.c: Regenerated.
48307         * tests/unictype/test-categ_N.c: Regenerated.
48308         * tests/unictype/test-categ_Nd.c: Regenerated.
48309         * tests/unictype/test-categ_Nl.c: Regenerated.
48310         * tests/unictype/test-categ_No.c: Regenerated.
48311         * tests/unictype/test-categ_P.c: Regenerated.
48312         * tests/unictype/test-categ_Pd.c: Regenerated.
48313         * tests/unictype/test-categ_Pe.c: Regenerated.
48314         * tests/unictype/test-categ_Pf.c: Regenerated.
48315         * tests/unictype/test-categ_Pi.c: Regenerated.
48316         * tests/unictype/test-categ_Po.c: Regenerated.
48317         * tests/unictype/test-categ_Ps.c: Regenerated.
48318         * tests/unictype/test-categ_S.c: Regenerated.
48319         * tests/unictype/test-categ_Sk.c: Regenerated.
48320         * tests/unictype/test-categ_Sm.c: Regenerated.
48321         * tests/unictype/test-categ_So.c: Regenerated.
48322         * tests/unictype/test-ctype_alnum.c: Regenerated.
48323         * tests/unictype/test-ctype_alpha.c: Regenerated.
48324         * tests/unictype/test-ctype_graph.c: Regenerated.
48325         * tests/unictype/test-ctype_lower.c: Regenerated.
48326         * tests/unictype/test-ctype_print.c: Regenerated.
48327         * tests/unictype/test-ctype_punct.c: Regenerated.
48328         * tests/unictype/test-ctype_upper.c: Regenerated.
48329         * tests/unictype/test-decdigit.h: Regenerated.
48330         * tests/unictype/test-digit.h: Regenerated.
48331         * tests/unictype/test-numeric.h: Regenerated.
48332         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48333         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48334         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48335         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48336         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48337         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48338         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48339         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48340         * tests/unictype/test-pr_combining.c: Regenerated.
48341         * tests/unictype/test-pr_dash.c: Regenerated.
48342         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48343         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48344         * tests/unictype/test-pr_deprecated.c: Regenerated.
48345         * tests/unictype/test-pr_diacritic.c: Regenerated.
48346         * tests/unictype/test-pr_extender.c: Regenerated.
48347         * tests/unictype/test-pr_format_control.c: Regenerated.
48348         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48349         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48350         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48351         * tests/unictype/test-pr_id_continue.c: Regenerated.
48352         * tests/unictype/test-pr_id_start.c: Regenerated.
48353         * tests/unictype/test-pr_ideographic.c: Regenerated.
48354         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48355         * tests/unictype/test-pr_lowercase.c: Regenerated.
48356         * tests/unictype/test-pr_math.c: Regenerated.
48357         * tests/unictype/test-pr_numeric.c: Regenerated.
48358         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48359         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48360         Regenerated.
48361         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48362         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48363         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48364         * tests/unictype/test-pr_other_math.c: Regenerated.
48365         * tests/unictype/test-pr_punctuation.c: Regenerated.
48366         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48367         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48368         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48369         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48370         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48371         * tests/unictype/test-pr_uppercase.c: Regenerated.
48372         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48373         * tests/unictype/test-pr_xid_start.c: Regenerated.
48374         * tests/unictype/test-pr_zero_width.c: Regenerated.
48375
48376         Update to Unicode 5.1.0.
48377         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48378         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48379         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48380         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48381         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48382         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48383         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48384         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48385         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48386         (nonspacing_table_ind): Update.
48387         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48388
48389         Update to Unicode 5.1.0.
48390         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48391         code transform.
48392         * lib/uniname/uniname.c (unicode_character_name,
48393         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48394         * lib/uniname/uninames.h: Regenerated.
48395         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48396
48397 2009-02-07  Bruno Haible  <bruno@clisp.org>
48398
48399         Merge gen-ctype and gen-lbrk into a single program.
48400         * lib/gen-uni-tables.c: New file, incorporating
48401         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48402         Add directory prefixes to the names of the generated files.
48403         * lib/unictype/gen-ctype.c: Remove file.
48404         * lib/unilbrk/gen-lbrk.c: Remove file.
48405         * modules/gen-uni-tables: New file.
48406         * modules/unictype/gen-ctype: Remove file.
48407         * modules/unilbrk/gen-lbrk: Remove file.
48408
48409 2009-02-07  Bruno Haible  <bruno@clisp.org>
48410
48411         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48412
48413         New module 'unistr/u32-strcoll'.
48414         * modules/unistr/u32-strcoll: New file.
48415         * lib/unistr/u32-strcoll.c: New file.
48416
48417         New module 'unistr/u16-strcoll'.
48418         * modules/unistr/u16-strcoll: New file.
48419         * lib/unistr/u16-strcoll.c: New file.
48420
48421         New module 'unistr/u8-strcoll'.
48422         * modules/unistr/u8-strcoll: New file.
48423         * lib/unistr/u8-strcoll.c: New file.
48424         * lib/unistr/u-strcoll.h: New file.
48425
48426 2009-02-07  Bruno Haible  <bruno@clisp.org>
48427
48428         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48429         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48430         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48431         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48432         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48433         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48434
48435 2009-02-07  Bruno Haible  <bruno@clisp.org>
48436
48437         Make 64-bit clean.
48438         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48439         output_combclass, output_bidi_category, output_decimal_digit,
48440         output_digit, output_numeric, output_mirror, output_scripts,
48441         output_ident_category): Use proper width specifier in format strings.
48442
48443 2009-02-07  Bruno Haible  <bruno@clisp.org>
48444
48445         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48446         failure behaviour.
48447
48448 2009-02-07  Jim Meyering  <meyering@redhat.com>
48449
48450         regex: avoid compilation failure with upcoming gcc-4.4
48451         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48452         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48453         "... error: integer overflow in preprocessor expression".
48454
48455 2009-02-05  Ben Pfaff  <blp@gnu.org>
48456
48457         Fix link errors on Windows when close module is used.
48458         * modules/close: Add $(LIB_CLOSE) to Link section.
48459         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48460         $(LIB_CLOSE) on Windows.
48461
48462 2009-02-05  Jim Meyering  <meyering@redhat.com>
48463
48464         still avoid unused-parameter warnings, but do it cleanly
48465         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48466         (get_fs_usage): Cast to void instead.
48467         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48468         (dev_from_mount_options, read_file_system_list): Cast to void.
48469         Prompted by Bruno Haible.
48470
48471 2009-02-04  Jim Meyering  <meyering@redhat.com>
48472
48473         fsusage.c: correct copyright year
48474         * lib/fsusage.c: Reflect year in which the change is pushed into
48475
48476         avoid misc. warnings
48477         * lib/fsusage.c (UNUSED_PARAM): Define.
48478         (get_fs_usage): Mark parameter "disk" as unused.
48479         * lib/getugroups.c (getgrent): Use "void" in prototype.
48480         * lib/mountlist.c: Mark unused parameters.
48481         (read_file_system_list): Declare a local with "const".
48482         * lib/nanosleep.c (getnow): Declare static.
48483         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48484
48485         dirfd: set errno upon failure
48486         * lib/dirfd.c: Include <errno.h>.
48487         Set errno to ENOTSUP when returning -1.
48488         * modules/dirfd (Depends-on): Add errno.
48489         Suggested by John Kodis <kodis@comcast.net>.
48490
48491 2009-02-01  Bruno Haible  <bruno@clisp.org>
48492
48493         Don't assume sizeof (long) >= sizeof (void *).
48494         * lib/memcmp.c: Include stdint.h.
48495         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48496         srcp2 to 'const byte *'.
48497         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48498         types to uintptr_t.
48499         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48500         * modules/memcmp (Depends-on): Add stdint.
48501         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48502
48503 2009-01-30  Eric Blake  <ebb9@byu.net>
48504
48505         fix more require-before-expand issues
48506         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48507         expand, AC_PROG_AWK.
48508         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48509
48510 2009-01-28  Eric Blake  <ebb9@byu.net>
48511
48512         version-etc: use consistent URL formatting
48513         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48514         Improve formatting.  Use fputs for string without %.
48515
48516 2009-01-28  Jim Meyering  <meyering@redhat.com>
48517
48518         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48519         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48520         "underquoted definition of NAME" from autoconf-2.59.
48521
48522 2009-01-28  Bruno Haible  <bruno@clisp.org>
48523
48524         * doc/gnulib.texi: Add "Obsolete modules" to index.
48525
48526 2009-01-28  Jim Meyering  <meyering@redhat.com>
48527
48528         useless-if-before-free: recognize more variants
48529         * build-aux/useless-if-before-free: Also recognize e.g.,
48530         if (NULL != p) free (p);
48531
48532 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48533
48534         test-getaddrinfo: skip (don't fail) this test when there's no network
48535         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48536         on the presumption that it means you lack network access.
48537
48538 2009-01-26  Jim Meyering  <meyering@redhat.com>
48539
48540         fflush: avoid warnings on modern systems
48541         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48542         pos and result, into scopes where they're used.
48543
48544 2009-01-26  Eric Blake  <ebb9@byu.net>
48545
48546         Silence warning reintroduced by recent extensions patch.
48547         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48548         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48549         autoconf.
48550
48551         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48552         * m4/00gnulib.m4: New file.
48553         * gnulib-tool (func_get_filelist): Always use it.
48554         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48555         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48556
48557 2009-01-25  Bruno Haible  <bruno@clisp.org>
48558
48559         Make test-quotearg work on MacOS X and AIX.
48560         * tests/test-quotearg.sh: New file.
48561         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48562         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48563         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48564         include <libintl.h>.
48565         (fake_locale): Remove variable.
48566         (gettext, dgettext, dcgettext): Remove functions.
48567         (main): Instead of setting a fake locale, set a real locale. Call
48568         textdomain and bindtextdomain.
48569         * modules/quotearg-tests (Files): Add the new files.
48570         (Depends-on): Add gettext, setenv, unsetenv.
48571         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48572         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48573         Augment TESTS_ENVIRONMENT.
48574
48575 2009-01-25  Bruno Haible  <bruno@clisp.org>
48576
48577         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48578         fr_FR.ISO8859-1 locale on MacOS X.
48579         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48580         ja_JP.eucJP locale on MacOS X.
48581         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48582         zh_CN.GB18030 locale on MacOS X.
48583
48584 2009-01-25  Bruno Haible  <bruno@clisp.org>
48585
48586         Avoid link errors on MacOS X 10.3.
48587         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48588         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48589
48590 2009-01-25  Bruno Haible  <bruno@clisp.org>
48591
48592         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48593         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48594         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48595         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48596         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48597         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48598         posix_spawnattr_init, posix_spawnattr_setsigmask,
48599         posix_spawnattr_setflags, posix_spawnattr_destroy.
48600
48601         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48602         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48603         * modules/execute (Files): Remove m4/posix_spawn.m4.
48604         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48605         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48606         posix_spawnattr_init, posix_spawnattr_setsigmask,
48607         posix_spawnattr_setflags, posix_spawnattr_destroy.
48608
48609 2009-01-25  Bruno Haible  <bruno@clisp.org>
48610
48611         * lib/glthread/threadlib.c: Include <stdlib.h>.
48612
48613 2009-01-25  Bruno Haible  <bruno@clisp.org>
48614
48615         * lib/glthread/threadlib.c (dummy): New declaration.
48616
48617 2009-01-25  Bruno Haible  <bruno@clisp.org>
48618
48619         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48620         multibyte characters also for the GB18030 encoding. Don't crash when
48621         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48622
48623 2009-01-25  Bruno Haible  <bruno@clisp.org>
48624
48625         Avoid redefining 'struct random_data' on OSF/1 5.1.
48626         * lib/stdlib.in.h: Include <random.h> if it exists.
48627         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48628         HAVE_RANDOM_H. Include <random.h> when testing whether
48629         'struct random_data' exists.
48630         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48631
48632 2009-01-25  Bruno Haible  <bruno@clisp.org>
48633
48634         Don't install charset.alias on MacOS X >= 10.3.
48635         * lib/localcharset.c (DARWIN7): New macro.
48636         (get_charset_aliases): Hardcode the result for Darwin7.
48637         * modules/localcharset (install-exec-local): Don't install
48638         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48639
48640 2009-01-25  Bruno Haible  <bruno@clisp.org>
48641
48642         Don't install charset.alias on mingw and Cygwin.
48643         * modules/localcharset (install-exec-local): Don't install
48644         charset.alias on mingw and Cygwin, if the file does not yet exist.
48645         The result for these platforms is hardcoded in localcharset.c.
48646
48647 2009-01-25  Bruno Haible  <bruno@clisp.org>
48648
48649         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48651         before requiring AC_USE_SYSTEM_EXTENSIONS.
48652
48653 2009-01-25  Jim Meyering  <meyering@redhat.com>
48654
48655         c-strtod: avoid warnings
48656         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48657         "assignment discards qualifiers from pointer target type" warnings.
48658
48659 2009-01-24  Bruno Haible  <bruno@clisp.org>
48660
48661         Add support for non-UTF-8 locales on MacOS X.
48662         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48663         canonical encodings. For Darwin 7 and newer, don't map traditional
48664         encodings to UTF-8.
48665         Reported by Vincent Lefevre <vincent@vinc17.org>
48666         at <http://savannah.gnu.org/bugs/?25235>.
48667
48668 2009-01-24  Bruno Haible  <bruno@clisp.org>
48669
48670         * doc/gnulib.texi (Obsolete modules): New section.
48671         Reported by Mike Frysinger <vapier@gentoo.org>.
48672
48673 2009-01-24  Bruno Haible  <bruno@clisp.org>
48674
48675         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48676         (%.dvi): New rule.
48677
48678 2009-01-24  Bruno Haible  <bruno@clisp.org>
48679
48680         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48681         Reported by Eric Blake.
48682
48683 2009-01-24  Bruno Haible  <bruno@clisp.org>
48684
48685         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48686         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48687         Reported by Gary V. Vaughan <gary@gnu.org>.
48688
48689 2009-01-24  Bruno Haible  <bruno@clisp.org>
48690
48691         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48692
48693 2009-01-23  Bruno Haible  <bruno@clisp.org>
48694
48695         Make c-strtod, c-strtold usable in libraries.
48696         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48697         (C_STRTOD): Call strdup instead of xstrdup.
48698         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48699         * modules/c-strtold (Depends-on): Likewise.
48700         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48701         * NEWS: Mention the change.
48702         Reported by Michael Gold <mgold@ncf.ca>.
48703
48704 2009-01-23  Jim Meyering  <meyering@redhat.com>
48705
48706         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48707         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48708         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48709
48710 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48711
48712         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48713         GNU CoreUtils.
48714         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48715         * modules/version-etc (Description): Update.
48716
48717 2009-01-22  Bruno Haible  <bruno@clisp.org>
48718
48719         Cache the C locale object.
48720         * lib/c-strtod.c (c_locale_cache): New variable.
48721         (c_locale): New function.
48722         (C_STRTOD): Use it, and don't call freelocale.
48723         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48724         Suggested by Paolo Bonzini.
48725
48726 2009-01-21  Bruno Haible  <bruno@clisp.org>
48727
48728         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48729         conditions other than overflow.
48730
48731 2009-01-21  Bruno Haible  <bruno@clisp.org>
48732
48733         * lib/c-strtod.c: Include errno.h.
48734         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48735         value from STRTOD_L and STRTOD.
48736
48737 2009-01-21  Bruno Haible  <bruno@clisp.org>
48738         and Jim Meyering  <meyering@redhat.com>
48739
48740         nanosleep: skip configure test (fail it) for apple universal builds
48741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48742         universal builds, assume that nanosleep does not work.
48743         * modules/nanosleep (Depends-on): Add multiarch.
48744
48745         mktime: skip configure test (fail it) for apple universal builds
48746         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48747         universal builds, assume that mktime does not work.
48748         * modules/mktime (Depends-on): Add multiarch.
48749
48750 2009-01-21  Eric Blake  <ebb9@byu.net>
48751
48752         multiarch: avoid expand-before-require warning
48753         * modules/multiarch (configure.ac): Require, rather than expand,
48754         gl_MULTIARCH.
48755         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48756         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48757         enforce that all clients require it.  Partial reversion of
48758         2008-12-29 patch.
48759
48760         error: avoid expand-before-require warning
48761         * modules/errno (configure.ac): Require, rather than expand,
48762         gl_HEADER_ERRNO_H.
48763         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48764         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48765         enforce that all clients require it.
48766
48767         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48768         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48769         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48770         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48771
48772 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48773
48774         Revert:
48775         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48776
48777         regex: do not depend on obsolete modules.
48778         * modules/regex: Remove memcmp and memmove.
48779
48780 2009-01-20  Bruno Haible  <bruno@clisp.org>
48781
48782         Make the 'link' module link on Windows NT 4.
48783         * lib/link.c (_WIN32_WINNT): Don't define.
48784         (CreateHardLinkFuncType): New type.
48785         (CreateHardLinkFunc, initialized): New variables.
48786         (initialize): New function.
48787         (link): Invoke CreateHardLink indirectly through the function pointer.
48788
48789 2009-01-20  Bruno Haible  <bruno@clisp.org>
48790
48791         Fix compilation failure on mingw.
48792         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48793
48794 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48795
48796         * doc/c-strtod.texi: Mention a couple of restrictions.
48797
48798 2009-01-20  Jim Meyering  <meyering@redhat.com>
48799
48800         gettimeofday: move more declarations out of functions
48801         * lib/gettimeofday.c: Move extern declarations of tzset and
48802         gmtime out of containing functions.  Prompted by Bruno Haible.
48803
48804 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48805
48806         regex: do not depend on obsolete modules.
48807         * modules/regex: Remove memcmp and memmove.
48808
48809 2009-01-19  Bruno Haible  <bruno@clisp.org>
48810
48811         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48812         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48813         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48814         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48815         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48816
48817 2009-01-19  Bruno Haible  <bruno@clisp.org>
48818
48819         * tests/test-link.c: Include <errno.h>.
48820         (main): Exit with code 77 when a hard link cannot be created due to
48821         the file system.
48822         * tests/test-link.sh: Skip test when a hard link cannot be created due
48823         to the file system.
48824         Suggested by Eric Blake.
48825
48826 2009-01-19  Martin Lambers  <marlam@marlam.de>
48827
48828         * modules/link-tests: New file.
48829         * tests/test-link.sh: New file.
48830         * tests/test-link.c: New file.
48831
48832 2009-01-19  Eric Blake  <ebb9@byu.net>
48833
48834         doc: mention another function added in cygwin 1.7.0
48835         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48836         Another new function in cygwin 1.7.
48837
48838 2009-01-19  Bruno Haible  <bruno@clisp.org>
48839
48840         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48841         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48842         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48843         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48844         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48845         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48846         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48847         * m4/md4.m4 (gl_MD4): Likewise.
48848         * m4/md5.m4 (gl_MD5): Likewise.
48849         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48850         * m4/sha1.m4 (gl_SHA1): Likewise.
48851         * m4/sha256.m4 (gl_SHA256): Likewise.
48852         * m4/sha512.m4 (gl_SHA512): Likewise.
48853
48854 2009-01-19  Bruno Haible  <bruno@clisp.org>
48855
48856         * modules/uniname/uniname-tests (Depends-on): Add progname.
48857         * tests/uniname/test-uninames.c: Include progname.h.
48858         (main): Call set_program_name.
48859
48860         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48861         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48862         (main): Call set_program_name.
48863
48864         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48865         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48866         (main): Call set_program_name.
48867
48868         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48869         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48870         (main): Call set_program_name.
48871
48872         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48873         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48874         (main): Call set_program_name.
48875
48876         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48877         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48878         (main): Call set_program_name.
48879
48880         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48881         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48882         (main): Call set_program_name.
48883
48884         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48885         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48886         (main): Call set_program_name.
48887
48888         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48889         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48890         (main): Call set_program_name.
48891
48892 2009-01-19  Eric Blake  <ebb9@byu.net>
48893
48894         test-unistd: test previous patch
48895         * tests/test-unistd.c: Test *_FILENO macros.
48896
48897         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48898         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48899         Guarantee a definition.
48900         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48901         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48902         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48903         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48904         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48905         Likewise.
48906         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48907         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48908         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48909         Likewise.
48910         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48911         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48912         (STDERR_FILENO): Likewise.
48913         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48914         (STDERR_FILENO): Likewise.
48915         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48916         (STDERR_FILENO): Likewise.
48917         Reported by Elbert Pol.
48918
48919 2009-01-19  Eric Blake  <ebb9@byu.net>
48920
48921         doc: mention more functions added in cygwin 1.7.0
48922         * doc/posix-functions/abort.texi (abort): Update wording related
48923         to cygwin.
48924         * doc/posix-functions/daylight.texi (daylight): Likewise.
48925         * doc/posix-functions/optarg.texi (optarg): Likewise.
48926         * doc/posix-functions/optarg.texi (opterr): Likewise.
48927         * doc/posix-functions/optarg.texi (optind): Likewise.
48928         * doc/posix-functions/optarg.texi (optopt): Likewise.
48929         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48930         worked in 1.5.x, and was withdrawn in 1.7.
48931         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48932         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48933         cygwin versions.
48934         * doc/posix-functions/perror.texi (perror): Likewise.
48935         * doc/posix-functions/printf.texi (printf): Likewise.
48936         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48937         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48938         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48939         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48940         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48941         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48942         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48943         Likewise.
48944         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48945         Likewise.
48946         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48947         this function.
48948         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48949         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48950         Likewise.
48951         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48952         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48953         * doc/posix-functions/confstr.texi (confstr): Likewise.
48954         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48955         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48956         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48957         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48958         * doc/posix-functions/fputws.texi (fputws): Likewise.
48959         * doc/posix-functions/fwide.texi (fwide): Likewise.
48960         * doc/posix-functions/getwc.texi (getwc): Likewise.
48961         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48962         * doc/posix-functions/putwc.texi (putwc): Likewise.
48963         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48964         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48965         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48966         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48967         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48968         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48969         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48970         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48971         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48972         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48973         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48974
48975 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48976
48977         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48978         * lib/ioctl.c: Include <sys/ioctl.h>.
48979
48980 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48981
48982         * modules/getdate-tests (Depends-on): Add progname.
48983         * tests/test-getdate.c: Use progname module, to avoid link errors
48984         on non-glibc systems.
48985
48986 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48987
48988         * modules/filenamecat-tests (Depends-on): Add progname.
48989         * modules/fstrcmp-tests (Depends-on): Likewise.
48990
48991         * tests/test-filenamecat.c: Use progname module, to avoid link
48992         errors on non-glibc systems.
48993         * tests/test-fstrcmp.c: Likewise.
48994
48995 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48996
48997         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48998         * lib/gettimeofday.c: Move extern declaration out of function.
48999
49000 2009-01-18  Bruno Haible  <bruno@clisp.org>
49001
49002         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
49003         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
49004         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
49005
49006 2009-01-18  Bruno Haible  <bruno@clisp.org>
49007
49008         * lib/strftime.c (MEMPCPY): Remove unused macro.
49009         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49010
49011 2009-01-18  Martin Lambers  <marlam@marlam.de>
49012
49013         New module 'link'.
49014         * lib/unistd.in.h (link): New declaration.
49015         * lib/link.c: New file.
49016         * m4/link.m4: New file.
49017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49018         HAVE_LINK.
49019         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49020         * modules/link: New file.
49021         * doc/posix-functions/link.texi: Mention the new module.
49022
49023 2009-01-18  Bruno Haible  <bruno@clisp.org>
49024
49025         * tests/test-avltree_list.c (main): Call set_program_name.
49026         * tests/test-avltree_oset.c (main): Likewise.
49027         * tests/test-obstack-printf.c: Include progname.h.
49028         (main): Call set_program_name.
49029         * tests/test-quotearg.c: Include progname.h.
49030         (main): Call set_program_name.
49031         * tests/test-xmemdup0.c: Include progname.h.
49032         (main): Call set_program_name.
49033
49034 2009-01-18  Bruno Haible  <bruno@clisp.org>
49035
49036         New module 'alphasort'.
49037         * lib/dirent.in.h (alphasort): New declaration.
49038         * lib/alphasort.c: New file, from glibc with modifications.
49039         * m4/alphasort.m4: New file.
49040         * modules/alphasort: New file.
49041         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49042         HAVE_ALPHASORT.
49043         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49044         HAVE_ALPHASORT.
49045         * doc/posix-functions/alphasort.texi: Mention the new module and the
49046         portability problems.
49047
49048 2009-01-18  Bruno Haible  <bruno@clisp.org>
49049
49050         New module 'scandir'.
49051         * lib/dirent.in.h (scandir): New declaration.
49052         * lib/scandir.c: New file, from glibc with modifications.
49053         * m4/scandir.m4: New file.
49054         * modules/scandir: New file.
49055         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49056         HAVE_SCANDIR.
49057         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49058         HAVE_SCANDIR.
49059         * doc/posix-functions/scandir.texi: Mention the new module and the
49060         portability problems.
49061
49062 2009-01-17  Bruno Haible  <bruno@clisp.org>
49063
49064         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49065         Update documentation.
49066         (func_remove_suffix): Escape all dots in the suffix. Update
49067         documentation.
49068         (func_filter_filelist): Update documentation.
49069         Reported by Ralf Wildenhues.
49070
49071 2009-01-17  Bruno Haible  <bruno@clisp.org>
49072
49073         * modules/dprintf-posix-tests: New file.
49074         * tests/test-dprintf-posix.sh: New file.
49075         * tests/test-dprintf-posix.c: New file.
49076
49077         New modules 'dprintf', 'dprintf-posix'.
49078         * lib/stdio.in.h (dprintf): New declaration.
49079         * lib/dprintf.c: New file.
49080         * m4/dprintf.m4: New file.
49081         * m4/dprintf-posix.m4: New file.
49082         * modules/dprintf: New file.
49083         * modules/dprintf-posix: New file.
49084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49085         HAVE_DPRINTF, REPLACE_DPRINTF.
49086         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49087         HAVE_DPRINTF, REPLACE_DPRINTF.
49088         * doc/posix-functions/dprintf.texi: Mention the new modules.
49089
49090 2009-01-17  Bruno Haible  <bruno@clisp.org>
49091
49092         * modules/vdprintf-posix-tests: New file.
49093         * tests/test-vdprintf-posix.sh: New file.
49094         * tests/test-vdprintf-posix.c: New file.
49095
49096         New modules 'vdprintf', 'vdprintf-posix'.
49097         * lib/stdio.in.h (vdprintf): New declaration.
49098         * lib/vdprintf.c: New file.
49099         * m4/vdprintf.m4: New file.
49100         * m4/vdprintf-posix.m4: New file.
49101         * modules/vdprintf: New file.
49102         * modules/vdprintf-posix: New file.
49103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49104         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49105         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49106         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49107         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49108
49109 2009-01-17  Bruno Haible  <bruno@clisp.org>
49110
49111         Fix replacement of fopen on mingw.
49112         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49113         mingw.
49114
49115 2009-01-17  Bruno Haible  <bruno@clisp.org>
49116
49117         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49118         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49119
49120 2009-01-17  Bruno Haible  <bruno@clisp.org>
49121
49122         Avoid test-fflush2.sh failure on mingw.
49123         * tests/test-fflush2.c: Include binary-io.h.
49124         (main): Put standard input into binary mode.
49125         * modules/fflush-tests (Depends-on): Add binary-io.
49126
49127 2009-01-17  Bruno Haible  <bruno@clisp.org>
49128
49129         * lib/wchar.in.h: In another particular situation, include only the
49130         system's <wchar.h> file.
49131         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49132         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49133         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49134
49135 2009-01-17  Bruno Haible  <bruno@clisp.org>
49136
49137         Support for stripping executables in --enable-relocatable.
49138         * build-aux/install-reloc: Expect one more argument, or an environment
49139         variable RELOC_STRIP_PROG. If set, strip the destination program and
49140         its wrapper.
49141         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49142         RELOC_STRIP_PROG.
49143         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49144         to set RELOCATABLE_STRIP.
49145         * NEWS: Mention the new Makefile requirement.
49146
49147 2009-01-17  Bruno Haible  <bruno@clisp.org>
49148
49149         * build-aux/install-reloc: Remove debugging information left over by
49150         C compiler on MacOS X.
49151
49152 2009-01-17  Bruno Haible  <bruno@clisp.org>
49153
49154         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49155         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49156         _NSGetExecutablePath.
49157
49158 2009-01-16  Jim Meyering  <meyering@redhat.com>
49159
49160         strerror: avoid warnings about discarding "const"
49161         * lib/strerror.c (rpl_strerror): Instead of returning a const
49162         string from each and every "case", use a variable, and add a single
49163         cast after the switch.
49164
49165 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49166
49167         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49168
49169 2009-01-16  Bruno Haible  <bruno@clisp.org>
49170
49171         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49172         array initializer syntax that also works in C++ mode.
49173         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49174
49175 2009-01-16  Jim Meyering  <meyering@redhat.com>
49176
49177         poll: suppress a warning
49178         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49179         to ignore "...unsigned expression < 0 is always false" warnings.
49180
49181 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49182
49183         poll: remove declarations of unused variables
49184         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49185         sockbuf and optlen.
49186
49187 2009-01-15  Bruno Haible  <bruno@clisp.org>
49188
49189         Make fflush-after-ungetc POSIX compliant on BSD systems.
49190         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49191         (clear_ungetc_buffer): Implement also for other systems.
49192         (rpl_fflush): On glibc systems, invoke
49193         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49194         clear_ungetc_buffer after fetching the stream's position, not before.
49195
49196 2009-01-15  Bruno Haible  <bruno@clisp.org>
49197
49198         Make fflush-after-ungetc POSIX compliant on glibc systems.
49199         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49200         after ungetc.
49201         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49202         (rpl_fflush): On glibc systems, simply call the system's fflush
49203         function after clearing the ungetc buffer.
49204         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49205         Instead, lseek only to the end of file, then use the system's fseeko
49206         for the rest. On glibc systems, reset the EOF indicator bit.
49207
49208 2009-01-15  Jim Meyering  <meyering@redhat.com>
49209
49210         openmp.m4: revert quote-adding change, for portability to older autoconf
49211         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49212         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49213         Simon Josefsson noticed the problem when using autoconf-2.61.
49214
49215 2009-01-15  Bruno Haible  <bruno@clisp.org>
49216
49217         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49218         * tests/test-fflush2.c (ASSERT): Always fail.
49219         (main): Add two tests for fflush() after ungetc(), taking into account
49220         the Austin Group's clarification.
49221         Suggested by Eric Blake.
49222
49223 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49224
49225         mktime.m4: remove K&R-style function prototypes
49226         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49227         for the Sun C++ compiler.
49228
49229 2009-01-14  Bruno Haible  <bruno@clisp.org>
49230
49231         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49232         while including <wchar.h>.
49233         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49234         the system's <wchar.h> file.
49235         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49236
49237 2009-01-14  Bruno Haible  <bruno@clisp.org>
49238
49239         * m4/csharp.m4: Don't mention gettext on the serial number line.
49240         * m4/csharpexec.m4: Likewise.
49241         * m4/eaccess.m4: Likewise.
49242         * m4/javaexec.m4: Likewise.
49243         * m4/sig_atomic_t.m4: Likewise.
49244         * m4/tmpdir.m4: Likewise.
49245         * m4/intldir.m4: Bump gettext version.
49246         * m4/lib-ld.m4: Likewise.
49247
49248 2009-01-14  Bruno Haible  <bruno@clisp.org>
49249
49250         * lib/progname.c (set_program_name): Add more comments.
49251         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49252
49253 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49254
49255         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49256         were sys/stat.h does not define it.
49257
49258 2009-01-14  Jim Meyering  <meyering@redhat.com>
49259
49260         many *.m4 files: improve m4 quoting
49261         99% of this change was performed by running the following commands:
49262         git ls-files | grep '\.m4$' | xargs perl -pi \
49263           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49264           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49265           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49266           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49267         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49268         The remainder were to add Copyright dates, increment serial numbers,
49269         undo some changes in comments, exclude m4/intl.m4, and add quotes
49270         around the "1" in ",1" where the unusual spacing prohibited the
49271         above regexps from doing the job.  For more details, see
49272         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49273         * m4/acl.m4: Modified.
49274         * m4/afs.m4: Likewise.
49275         * m4/alloca.m4: Likewise.
49276         * m4/argp.m4: Likewise.
49277         * m4/argz.m4: Likewise.
49278         * m4/atexit.m4: Likewise.
49279         * m4/bison-i18n.m4: Likewise.
49280         * m4/bison.m4: Likewise.
49281         * m4/byteswap.m4: Likewise.
49282         * m4/c-stack.m4: Likewise.
49283         * m4/c-strtod.m4: Likewise.
49284         * m4/calloc.m4: Likewise.
49285         * m4/canonicalize-lgpl.m4: Likewise.
49286         * m4/chown.m4: Likewise.
49287         * m4/clock_time.m4: Likewise.
49288         * m4/codeset.m4: Likewise.
49289         * m4/copy-file.m4: Likewise.
49290         * m4/csharp.m4: Likewise.
49291         * m4/csharpcomp.m4: Likewise.
49292         * m4/csharpexec.m4: Likewise.
49293         * m4/d-ino.m4: Likewise.
49294         * m4/d-type.m4: Likewise.
49295         * m4/dirfd.m4: Likewise.
49296         * m4/double-slash-root.m4: Likewise.
49297         * m4/eaccess.m4: Likewise.
49298         * m4/eealloc.m4: Likewise.
49299         * m4/environ.m4: Likewise.
49300         * m4/errno_h.m4: Likewise.
49301         * m4/euidaccess.m4: Likewise.
49302         * m4/execute.m4: Likewise.
49303         * m4/fatal-signal.m4: Likewise.
49304         * m4/fchdir.m4: Likewise.
49305         * m4/fcntl_h.m4: Likewise.
49306         * m4/fileblocks.m4: Likewise.
49307         * m4/filenamecat.m4: Likewise.
49308         * m4/findprog.m4: Likewise.
49309         * m4/flexmember.m4: Likewise.
49310         * m4/fnmatch.m4: Likewise.
49311         * m4/fopen.m4: Likewise.
49312         * m4/fpending.m4: Likewise.
49313         * m4/fprintf-posix.m4: Likewise.
49314         * m4/free.m4: Likewise.
49315         * m4/frexp.m4: Likewise.
49316         * m4/frexpl.m4: Likewise.
49317         * m4/fsusage.m4: Likewise.
49318         * m4/ftruncate.m4: Likewise.
49319         * m4/gc-camellia.m4: Likewise.
49320         * m4/gc-random.m4: Likewise.
49321         * m4/gc.m4: Likewise.
49322         * m4/getaddrinfo.m4: Likewise.
49323         * m4/getcwd-abort-bug.m4: Likewise.
49324         * m4/getcwd-path-max.m4: Likewise.
49325         * m4/getdate.m4: Likewise.
49326         * m4/getdomainname.m4: Likewise.
49327         * m4/getgroups.m4: Likewise.
49328         * m4/gethostname.m4: Likewise.
49329         * m4/gethrxtime.m4: Likewise.
49330         * m4/getline.m4: Likewise.
49331         * m4/getloadavg.m4: Likewise.
49332         * m4/getndelim2.m4: Likewise.
49333         * m4/getpass.m4: Likewise.
49334         * m4/gettext.m4: Likewise.
49335         * m4/gettime.m4: Likewise.
49336         * m4/gettimeofday.m4: Likewise.
49337         * m4/gnulib-common.m4: Likewise.
49338         * m4/group-member.m4: Likewise.
49339         * m4/host-os.m4: Likewise.
49340         * m4/iconv.m4: Likewise.
49341         * m4/iconv_open.m4: Likewise.
49342         * m4/inet_ntop.m4: Likewise.
49343         * m4/inet_pton.m4: Likewise.
49344         * m4/inline.m4: Likewise.
49345         * m4/intldir.m4: Likewise.
49346         * m4/intlmacosx.m4: Likewise.
49347         * m4/intmax.m4: Likewise.
49348         * m4/intmax_t.m4: Likewise.
49349         * m4/inttypes.m4: Likewise.
49350         * m4/inttypes_h.m4: Likewise.
49351         * m4/inttypes-pri.m4: Likewise.
49352         * m4/isapipe.m4: Likewise.
49353         * m4/isnand.m4: Likewise.
49354         * m4/isnanf.m4: Likewise.
49355         * m4/isnanl.m4: Likewise.
49356         * m4/javacomp.m4: Likewise.
49357         * m4/javaexec.m4: Likewise.
49358         * m4/jm-winsz1.m4: Likewise.
49359         * m4/jm-winsz2.m4: Likewise.
49360         * m4/lchown.m4: Likewise.
49361         * m4/lcmessage.m4: Likewise.
49362         * m4/ldexpl.m4: Likewise.
49363         * m4/lib-ld.m4: Likewise.
49364         * m4/lib-link.m4: Likewise.
49365         * m4/libsigsegv.m4: Likewise.
49366         * m4/link-follow.m4: Likewise.
49367         * m4/localcharset.m4: Likewise.
49368         * m4/locale-fr.m4: Likewise.
49369         * m4/locale-ja.m4: Likewise.
49370         * m4/locale-tr.m4: Likewise.
49371         * m4/locale-zh.m4: Likewise.
49372         * m4/lock.m4: Likewise.
49373         * m4/longlong.m4: Likewise.
49374         * m4/ls-mntd-fs.m4: Likewise.
49375         * m4/lstat.m4: Likewise.
49376         * m4/malloc.m4: Likewise.
49377         * m4/mathl.m4: Likewise.
49378         * m4/mbrtowc.m4: Likewise.
49379         * m4/mbstate_t.m4: Likewise.
49380         * m4/mbswidth.m4: Likewise.
49381         * m4/memchr.m4: Likewise.
49382         * m4/memcmp.m4: Likewise.
49383         * m4/memcpy.m4: Likewise.
49384         * m4/memmem.m4: Likewise.
49385         * m4/memmove.m4: Likewise.
49386         * m4/mempcpy.m4: Likewise.
49387         * m4/memrchr.m4: Likewise.
49388         * m4/memset.m4: Likewise.
49389         * m4/minmax.m4: Likewise.
49390         * m4/mkdir-slash.m4: Likewise.
49391         * m4/mkdtemp.m4: Likewise.
49392         * m4/mktime.m4: Likewise.
49393         * m4/mmap-anon.m4: Likewise.
49394         * m4/mountlist.m4: Likewise.
49395         * m4/nanosleep.m4: Likewise.
49396         * m4/nls.m4: Likewise.
49397         * m4/nocrash.m4: Likewise.
49398         * m4/open.m4: Likewise.
49399         * m4/openat.m4: Likewise.
49400         * m4/openmp.m4: Likewise.
49401         * m4/pathmax.m4: Likewise.
49402         * m4/perl.m4: Likewise.
49403         * m4/physmem.m4: Likewise.
49404         * m4/pipe.m4: Likewise.
49405         * m4/po.m4: Likewise.
49406         * m4/poll.m4: Likewise.
49407         * m4/posixtm.m4: Likewise.
49408         * m4/posixver.m4: Likewise.
49409         * m4/printf-frexp.m4: Likewise.
49410         * m4/printf-frexpl.m4: Likewise.
49411         * m4/printf-posix.m4: Likewise.
49412         * m4/printf-posix-rpl.m4: Likewise.
49413         * m4/printf.m4: Likewise.
49414         * m4/progtest.m4: Likewise.
49415         * m4/putenv.m4: Likewise.
49416         * m4/readline.m4: Likewise.
49417         * m4/readlink.m4: Likewise.
49418         * m4/readutmp.m4: Likewise.
49419         * m4/realloc.m4: Likewise.
49420         * m4/regex.m4: Likewise.
49421         * m4/relocatable.m4: Likewise.
49422         * m4/relocatable-lib.m4: Likewise.
49423         * m4/rename-dest-slash.m4: Likewise.
49424         * m4/rename.m4: Likewise.
49425         * m4/rmdir-errno.m4: Likewise.
49426         * m4/rmdir.m4: Likewise.
49427         * m4/roundf.m4: Likewise.
49428         * m4/roundl.m4: Likewise.
49429         * m4/rpmatch.m4: Likewise.
49430         * m4/save-cwd.m4: Likewise.
49431         * m4/selinux-selinux-h.m4: Likewise.
49432         * m4/setenv.m4: Likewise.
49433         * m4/settime.m4: Likewise.
49434         * m4/sig2str.m4: Likewise.
49435         * m4/sig_atomic_t.m4: Likewise.
49436         * m4/signalblocking.m4: Likewise.
49437         * m4/signbit.m4: Likewise.
49438         * m4/sigpipe.m4: Likewise.
49439         * m4/sockets.m4: Likewise.
49440         * m4/sockpfaf.m4: Likewise.
49441         * m4/st_dm_mode.m4: Likewise.
49442         * m4/stat-time.m4: Likewise.
49443         * m4/stdbool.m4: Likewise.
49444         * m4/stdint.m4: Likewise.
49445         * m4/stdint_h.m4: Likewise.
49446         * m4/stpcpy.m4: Likewise.
49447         * m4/stpncpy.m4: Likewise.
49448         * m4/strcase.m4: Likewise.
49449         * m4/strchrnul.m4: Likewise.
49450         * m4/strcspn.m4: Likewise.
49451         * m4/strdup.m4: Likewise.
49452         * m4/strftime.m4: Likewise.
49453         * m4/strndup.m4: Likewise.
49454         * m4/strnlen.m4: Likewise.
49455         * m4/strpbrk.m4: Likewise.
49456         * m4/strptime.m4: Likewise.
49457         * m4/strsep.m4: Likewise.
49458         * m4/strtod.m4: Likewise.
49459         * m4/strtoimax.m4: Likewise.
49460         * m4/strtok_r.m4: Likewise.
49461         * m4/strtol.m4: Likewise.
49462         * m4/strtoll.m4: Likewise.
49463         * m4/strtoul.m4: Likewise.
49464         * m4/strtoull.m4: Likewise.
49465         * m4/strtoumax.m4: Likewise.
49466         * m4/strverscmp.m4: Likewise.
49467         * m4/threadlib.m4: Likewise.
49468         * m4/timegm.m4: Likewise.
49469         * m4/tm_gmtoff.m4: Likewise.
49470         * m4/tmpdir.m4: Likewise.
49471         * m4/tmpfile.m4: Likewise.
49472         * m4/tzset.m4: Likewise.
49473         * m4/uintmax_t.m4: Likewise.
49474         * m4/unlinkdir.m4: Likewise.
49475         * m4/unlocked-io.m4: Likewise.
49476         * m4/uptime.m4: Likewise.
49477         * m4/userspec.m4: Likewise.
49478         * m4/utimbuf.m4: Likewise.
49479         * m4/utime.m4: Likewise.
49480         * m4/utimes-null.m4: Likewise.
49481         * m4/utimes.m4: Likewise.
49482         * m4/vararrays.m4: Likewise.
49483         * m4/vasnprintf.m4: Likewise.
49484         * m4/vfprintf-posix.m4: Likewise.
49485         * m4/vprintf-posix.m4: Likewise.
49486         * m4/wait-process.m4: Likewise.
49487         * m4/wchar_t.m4: Likewise.
49488         * m4/wint_t.m4: Likewise.
49489         * m4/write-any-file.m4: Likewise.
49490         * m4/yield.m4: Likewise.
49491
49492 2009-01-13  Bruno Haible  <bruno@clisp.org>
49493
49494         Avoid test-copy-file.sh failures when ACL support insufficient.
49495         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49496         TESTS_ENVIRONMENT.
49497         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49498         Reported by Jim Meyering.
49499
49500 2009-01-13  Bruno Haible  <bruno@clisp.org>
49501
49502         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49503         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49504         * modules/unistdio/u8-printf-parse (Files): Likewise.
49505         * modules/unistdio/u32-printf-parse (Files): Likewise.
49506         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49507
49508 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49509
49510         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49511         and m4/inttypes_h.m4 too.
49512
49513 2009-01-12  Eric Blake  <ebb9@byu.net>
49514
49515         tests: IRIX 6.2 cc can't compile -0.0 into .data
49516         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49517         rather than at compile-time.
49518         * tests/test-floorl.c (minus_zero): Likewise.
49519         * tests/test-frexpl.c (minus_zero): Likewise.
49520         * tests/test-isnan.c (minus_zerol): Likewise.
49521         * tests/test-isnanl.h (minus_zero): Likewise.
49522         * tests/test-ldexpl.c (minus_zero): Likewise.
49523         * tests/test-roundl.c (minus_zero): Likewise.
49524         * tests/test-signbit.c (minus_zerol): Likewise.
49525         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49526         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49527         * tests/test-truncl.c (minus_zero): Likewise.
49528         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49529         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49530         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49531
49532 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49533
49534         regex: fix glibc bug 9697
49535         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49536         handling.
49537
49538 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49539
49540         regex: fix glibc bug 697
49541         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49542         being NULL also if there are no backreferences.
49543
49544 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49545
49546         regex: merge glibc changes
49547         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49548         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49549         re_string_skip_chars, re_string_reconstruct): Likewise.
49550         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49551
49552 2009-01-07  Jim Meyering  <meyering@redhat.com>
49553
49554         poll: filter through cppi
49555         * lib/poll.c: Indent cpp directives to reflect nesting.
49556
49557 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49558
49559         poll: don't return uninitialized
49560         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49561
49562 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49563
49564         avoid compile failure on AIX 6.1
49565         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49566         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49567
49568 2009-01-04  Jim Meyering  <meyering@redhat.com>
49569
49570         remove duplicate inclusion of <stdio.h>
49571         * tests/test-fprintf-posix.c: Likewise.
49572         * tests/test-printf-posix.c: Likewise.
49573         * tests/test-snprintf-posix.c: Likewise.
49574         * tests/test-sprintf-posix.c: Likewise.
49575         * tests/test-vasprintf-posix.c: Likewise.
49576         * tests/test-vfprintf-posix.c: Likewise.
49577         * tests/test-vprintf-posix.c: Likewise.
49578         * tests/test-vsnprintf-posix.c: Likewise.
49579         * tests/test-vsprintf-posix.c: Likewise.
49580
49581 2009-01-03  Jim Meyering  <meyering@redhat.com>
49582
49583         gnulib-tool: fix sed-based filtering
49584         * gnulib-tool (func_filter_filelist): Remove extra backslash
49585         in sed_fff_filter definition.
49586
49587 2009-01-02  Jim Meyering  <meyering@redhat.com>
49588
49589         strftime: avoid compilation failure on Solaris 2.6
49590         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49591         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49592         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49593         be available.  Reported by Tom G. Christensen.  Details in
49594         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49595
49596 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49597             Bruno Haible  <bruno@clisp.org>
49598
49599         Speed up gnulib-tool by doing more string processing through shell
49600         built-ins.
49601         * gnulib-tool (fast_func_append): New variable.
49602         (func_remove_prefix, func_remove_suffix): New functions.
49603         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49604         (func_filter_filelist): New function.
49605         (func_get_dependencies): Use func_remove_suffix instead of sed.
49606         (func_get_automake_snippet): Use func_filter_filelist instead of a
49607         subshell and sed invocation.
49608
49609 2009-01-01  Bruno Haible  <bruno@clisp.org>
49610
49611         Fix a security bug.
49612         * gnulib-tool (func_import, import, update): Don't allow the characters
49613         '"', '$', '`', '\' in macro arguments that become part of commands that
49614         are evaluated.
49615
49616 2009-01-01  Bruno Haible  <bruno@clisp.org>
49617
49618         * gnulib-tool (func_reset_sigpipe): Add more comments.
49619
49620 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49621
49622         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49623         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49624         already know the answer.
49625
49626 2009-01-01  Jim Meyering  <meyering@redhat.com>
49627
49628         * lib/version-etc.c (version_etc_va): Update copyright year.
49629
49630 2008-12-30  Bruno Haible  <bruno@clisp.org>
49631
49632         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49633         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49634         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49635
49636 2008-12-29  Eric Blake  <ebb9@byu.net>
49637
49638         multiarch: avoid autoconf AC_REQUIRE bug
49639         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49640         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49641         2.63 and older.
49642         Reported by Bruno Haible, and analyzed in
49643         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49644
49645 2008-12-29  Bruno Haible  <bruno@clisp.org>
49646
49647         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49648         files in subdirectories correctly.
49649         Reported by Ralf Wildenhues.
49650
49651 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49652
49653         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49654         rather than 'join FILE -', for Solaris join.
49655
49656 2008-12-29  Bruno Haible  <bruno@clisp.org>
49657
49658         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49659         quoting.
49660         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49661         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49662         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49663         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49664         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49665         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49666         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49667         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49668         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49669         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49670         * m4/nls.m4 (AM_NLS): Likewise.
49671         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49672         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49673         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49674         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49675         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49676         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49677         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49678         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49679         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49680         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49681         * m4/xsize.m4 (gl_XSIZE): Likewise.
49682         Suggested by Jim Meyering.
49683
49684 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49685
49686         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49687         * lib/parse-duration.c: use a switch instead of cascading if's.
49688
49689 2008-12-29  Eric Blake  <ebb9@byu.net>
49690
49691         wchar.h: supply WEOF on Irix 5.3
49692         * lib/wchar.in.h (wint_t): Also supply WEOF.
49693         * lib/wctype.in.h (wint_t): Likewise.
49694         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49695         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49696         Reported by Tom G. Christensen.
49697
49698 2008-12-26  Bruno Haible  <bruno@clisp.org>
49699
49700         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49701         i486, i586, i686.
49702
49703 2008-12-26  Bruno Haible  <bruno@clisp.org>
49704
49705         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49706
49707 2008-12-26  Bruno Haible  <bruno@clisp.org>
49708
49709         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49710         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49711         not __STDC_CONSTANT_MACROS.
49712         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49713
49714 2008-12-25  Bruno Haible  <bruno@clisp.org>
49715
49716         Add support for universal builds to vasnprintf.
49717         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49718         universal builds, guess no.
49719         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49720         * modules/vasprintf-posix (Depends-on): Likewise.
49721         * modules/fprintf-posix (Depends-on): Likewise.
49722         * modules/vfprintf-posix (Depends-on): Likewise.
49723         * modules/snprintf-posix (Depends-on): Likewise.
49724         * modules/vsnprintf-posix (Depends-on): Likewise.
49725         * modules/sprintf-posix (Depends-on): Likewise.
49726         * modules/vsprintf-posix (Depends-on): Likewise.
49727         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49728         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49729         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49730         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49731         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49732         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49733         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49734
49735         Add support for universal builds to <inttypes.h>.
49736         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49737         _SCNu64_PREFIX): In Apple
49738         universal builds, define directly, using _LP64.
49739         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49740         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49741         * modules/inttypes (Depends-on): Add multiarch.
49742         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49743
49744         Add support for universal builds to <stdint.h>.
49745         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49746         universal builds, define directly, using _LP64.
49747         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49748         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49749         and size_t.
49750         * modules/stdint (Depends-on): Add multiarch.
49751         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49752
49753         New module 'multiarch'.
49754         * modules/multiarch: New file.
49755         * m4/multiarch.m4: New file.
49756
49757 2008-12-25  Bruno Haible  <bruno@clisp.org>
49758
49759         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49760
49761 2008-12-25  Bruno Haible  <bruno@clisp.org>
49762
49763         * modules/btowc (License): Relicense under LGPLv2+.
49764         * modules/mbsinit (License): Likewise.
49765         * modules/mbrtowc (License): Likewise.
49766         * modules/wcrtomb (License): Likewise.
49767         * modules/streq (License): Likewise.
49768         Reported by David Lutterkort <lutter@redhat.com>.
49769
49770 2008-12-23  Bruno Haible  <bruno@clisp.org>
49771
49772         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49773
49774 2008-12-23  Bruno Haible  <bruno@clisp.org>
49775
49776         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49777         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49778         GETADDRINFO_LIB, not in LIBS.
49779         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49780         * modules/canon-host (Link): Likewise.
49781         * NEWS: Mention the change.
49782         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49783         GETADDRINFO_LIB.
49784
49785 2008-12-22  Bruno Haible  <bruno@clisp.org>
49786
49787         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49788         * doc/posix-functions/iswalpha_l.texi: Likewise.
49789         * doc/posix-functions/iswblank_l.texi: Likewise.
49790         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49791         * doc/posix-functions/iswctype_l.texi: Likewise.
49792         * doc/posix-functions/iswdigit_l.texi: Likewise.
49793         * doc/posix-functions/iswgraph_l.texi: Likewise.
49794         * doc/posix-functions/iswlower_l.texi: Likewise.
49795         * doc/posix-functions/iswprint_l.texi: Likewise.
49796         * doc/posix-functions/iswpunct_l.texi: Likewise.
49797         * doc/posix-functions/iswspace_l.texi: Likewise.
49798         * doc/posix-functions/iswupper_l.texi: Likewise.
49799         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49800         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49801         * doc/posix-functions/open_wmemstream.texi: Likewise.
49802         * doc/posix-functions/swscanf.texi: Likewise.
49803         * doc/posix-functions/towctrans_l.texi: Likewise.
49804         * doc/posix-functions/towlower.texi: Likewise.
49805         * doc/posix-functions/towlower_l.texi: Likewise.
49806         * doc/posix-functions/towupper.texi: Likewise.
49807         * doc/posix-functions/towupper_l.texi: Likewise.
49808         * doc/posix-functions/vfwprintf.texi: Likewise.
49809         * doc/posix-functions/vfwscanf.texi: Likewise.
49810         * doc/posix-functions/vswscanf.texi: Likewise.
49811         * doc/posix-functions/vwprintf.texi: Likewise.
49812         * doc/posix-functions/vwscanf.texi: Likewise.
49813         * doc/posix-functions/wcpcpy.texi: Likewise.
49814         * doc/posix-functions/wcpncpy.texi: Likewise.
49815         * doc/posix-functions/wcscasecmp.texi: Likewise.
49816         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49817         * doc/posix-functions/wcscoll_l.texi: Likewise.
49818         * doc/posix-functions/wcsdup.texi: Likewise.
49819         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49820         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49821         * doc/posix-functions/wcsnlen.texi: Likewise.
49822         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49823         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49824         * doc/posix-functions/wctrans_l.texi: Likewise.
49825         * doc/posix-functions/wctype_l.texi: Likewise.
49826         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49827         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49828         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49829         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49830         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49831         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49832         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49833         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49834         * doc/glibc-functions/wcschrnul.texi: Likewise.
49835         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49836         * doc/glibc-functions/wcstod_l.texi: Likewise.
49837         * doc/glibc-functions/wcstof_l.texi: Likewise.
49838         * doc/glibc-functions/wcstol_l.texi: Likewise.
49839         * doc/glibc-functions/wcstold_l.texi: Likewise.
49840         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49841         * doc/glibc-functions/wcstoq.texi: Likewise.
49842         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49843         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49844         * doc/glibc-functions/wcstouq.texi: Likewise.
49845         * doc/glibc-functions/wmempcpy.texi: Likewise.
49846
49847 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49848             Eric Blake  <ebb9@byu.net>
49849             Paolo Bonzini  <bonzini@gnu.org>
49850             Bruno Haible  <bruno@clisp.org>
49851
49852         Make c-stack work on Haiku.
49853         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49854         (c_stack_action): Use SA_ONSTACK flag.
49855
49856 2008-12-22  Bruno Haible  <bruno@clisp.org>
49857
49858         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49859
49860 2008-12-22  Bruno Haible  <bruno@clisp.org>
49861
49862         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49863         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49864         being overridden.
49865         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49866         New macros.
49867         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49868         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49869         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49870         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49871
49872 2008-12-22  Bruno Haible  <bruno@clisp.org>
49873
49874         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49875         from test code.
49876
49877 2008-12-22  Eric Blake  <ebb9@byu.net>
49878
49879         Avoid gcc warnings on cygwin.
49880         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49881         Avoid unused variable.
49882         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49883         Likewise.
49884
49885 2008-12-22  Bruno Haible  <bruno@clisp.org>
49886
49887         Remove HAVE_MBRTOWC conditionals.
49888         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49889         (mbscasecmp): Assume mbrtowc function.
49890         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49891         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49892         * lib/mbschr.c: Include mbuiter.h unconditionally.
49893         (mbschr): Assume mbrtowc function.
49894         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49895         (mbscspn): Assume mbrtowc function.
49896         * lib/mbslen.c: Include mbuiter.h unconditionally.
49897         (mbslen): Assume mbrtowc function.
49898         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49899         (mbsncasecmp): Assume mbrtowc function.
49900         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49901         (mbsnlen): Assume mbrtowc function.
49902         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49903         (mbspbrk): Assume mbrtowc function.
49904         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49905         (mbspcasecmp): Assume mbrtowc function.
49906         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49907         (mbsrchr): Assume mbrtowc function.
49908         * lib/mbssep.c: Include mbuiter.h unconditionally.
49909         (mbssep): Assume mbrtowc function.
49910         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49911         (mbsspn): Assume mbrtowc function.
49912         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49913         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49914         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49915         (mbstok_r): Assume mbrtowc function.
49916         * lib/propername.c: Include mbuiter.h unconditionally.
49917         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49918         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49919         (trim2): Assume mbrtowc function.
49920         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49921         (mbsnwidth): Assume mbrtowc function.
49922         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49923         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49924         fallback definitions.
49925         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49926
49927 2008-12-22  Bruno Haible  <bruno@clisp.org>
49928
49929         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49930
49931 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49932
49933         * modules/regex: Request emulations for the mb*/wc* functions we need.
49934         * m4/regex.m4: Don't look for those functions here.
49935         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49936
49937 2008-12-22  Bruno Haible  <bruno@clisp.org>
49938
49939         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49940
49941 2008-12-21  Bruno Haible  <bruno@clisp.org>
49942
49943         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49944         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49945         (Include): Remove conditionalization.
49946         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49947         (Include): Remove conditionalization.
49948         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49949         (Include): Remove conditionalization.
49950         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49951         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49952         * NEWS: Mention the change.
49953         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49954         via Sergey Poznyakoff <gray@gnu.org.ua>.
49955
49956 2008-12-21  Bruno Haible  <bruno@clisp.org>
49957
49958         * MODULES.html.sh (Extended multibyte and wide character utilities
49959         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49960         wcrtomb, wcsrtombs.
49961         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49962         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49963         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49964         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49965
49966 2008-12-21  Bruno Haible  <bruno@clisp.org>
49967
49968         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49969
49970 2008-12-21  Bruno Haible  <bruno@clisp.org>
49971
49972         * modules/wcsnrtombs-tests: New file.
49973         * tests/test-wcsnrtombs1.sh: New file.
49974         * tests/test-wcsnrtombs2.sh: New file.
49975         * tests/test-wcsnrtombs3.sh: New file.
49976         * tests/test-wcsnrtombs4.sh: New file.
49977         * tests/test-wcsnrtombs.c: New file.
49978
49979         New module 'wcsnrtombs'.
49980         * lib/wchar.in.h (wcsnrtombs): New declaration.
49981         * lib/wcsnrtombs.c: New file.
49982         * lib/wcsrtombs-state.c: New file.
49983         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49984         (internal_state): Remove variable.
49985         * m4/wcsnrtombs.m4: New file.
49986         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49987         compilation units.
49988         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49989         HAVE_WCSNRTOMBS.
49990         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49991         HAVE_WCSNRTOMBS.
49992         * modules/wcsnrtombs: New file.
49993         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49994         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49995
49996 2008-12-21  Bruno Haible  <bruno@clisp.org>
49997
49998         * modules/wcsrtombs-tests: New file.
49999         * tests/test-wcsrtombs1.sh: New file.
50000         * tests/test-wcsrtombs2.sh: New file.
50001         * tests/test-wcsrtombs3.sh: New file.
50002         * tests/test-wcsrtombs4.sh: New file.
50003         * tests/test-wcsrtombs.c: New file.
50004
50005         New module 'wcsrtombs'.
50006         * lib/wchar.in.h (wcsrtombs): New declaration.
50007         * lib/wcsrtombs.c: New file.
50008         * m4/wcsrtombs.m4: New file.
50009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50010         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50011         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50012         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50013         * modules/wcsrtombs: New file.
50014         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50015         bugs.
50016
50017 2008-12-21  Bruno Haible  <bruno@clisp.org>
50018
50019         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50020         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50021         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50022         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50023         if not correct.
50024         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50025         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50026         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50027         m4/locale-zh.m4, m4/codeset.m4.
50028         * doc/posix-functions/wcrtomb.texi: Document the bug.
50029
50030 2008-12-21  Bruno Haible  <bruno@clisp.org>
50031
50032         Work around a btowc() bug on IRIX 6.5.
50033         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50034         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50035         REPLACE_WTOBC if not.
50036         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50037         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50038         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50039
50040 2008-12-21  Bruno Haible  <bruno@clisp.org>
50041
50042         * modules/wcrtomb-tests: New file.
50043         * tests/test-wcrtomb.sh: New file.
50044         * tests/test-wcrtomb.c: New file.
50045
50046         New module 'wcrtomb'.
50047         * lib/wchar.in.h (wcrtomb): New declaration.
50048         * lib/wcrtomb.c: New file.
50049         * m4/wcrtomb.m4: New file.
50050         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50051         HAVE_WCRTOMB.
50052         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50053         HAVE_WCRTOMB.
50054         * modules/wcrtomb: New file.
50055         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50056
50057 2008-12-21  Bruno Haible  <bruno@clisp.org>
50058
50059         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50060         * modules/mbsrtowcs (Files): Likewise.
50061         * modules/wctob (Files): Likewise.
50062         * modules/c-strcase-tests (Files): Likewise.
50063         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50064         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50065         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50066         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50067         * modules/vasnprintf-posix-tests (Files): Likewise.
50068
50069 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50070
50071         gitlog-to-changelog: pass all command-line arguments to git-log
50072         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50073         it is sometimes convenient to filter the commits in various ways.
50074         gitlog-to-changelog only allows --since to specify a start date,
50075         but git-log itself supports many other filtering mechanisms.
50076         At the moment, I want to filter by branch name.  Rather than
50077         adding a --branch option to gitlog-to-changelog, it seems more
50078         flexible to simply pass all options directly to git-log and let
50079         git do the work.  Notice that this effectively makes --since a
50080         redundant option for gitlog-to-changelog, but removing it would
50081         require current usage to change since calls would then require
50082         an additional '--'.
50083
50084 2008-12-21  Bruno Haible  <bruno@clisp.org>
50085
50086         * modules/mbsnrtowcs-tests: New file.
50087         * tests/test-mbsnrtowcs1.sh: New file.
50088         * tests/test-mbsnrtowcs2.sh: New file.
50089         * tests/test-mbsnrtowcs3.sh: New file.
50090         * tests/test-mbsnrtowcs4.sh: New file.
50091         * tests/test-mbsnrtowcs.c: New file.
50092
50093         New module 'mbsnrtowcs'.
50094         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50095         * lib/mbsnrtowcs.c: New file.
50096         * lib/mbsrtowcs-state.c: New file.
50097         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50098         (internal_state): Remove variable.
50099         * m4/mbsnrtowcs.m4: New file.
50100         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50101         compilation units.
50102         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50103         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50104         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50105         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50106         * modules/mbsnrtowcs: New file.
50107         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50108         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50109         portability problem.
50110
50111 2008-12-21  Bruno Haible  <bruno@clisp.org>
50112
50113         Work around mbsrtowcs bug.
50114         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50115         (gl_FUNC_MBSRTOWCS): Invoke it.
50116         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50117         m4/locale-zh.m4.
50118         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50119
50120 2008-12-21  Bruno Haible  <bruno@clisp.org>
50121
50122         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50123
50124 2008-12-21  Bruno Haible  <bruno@clisp.org>
50125
50126         Update doc for AIX.
50127         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50128         16-bit wchar_t type.
50129         * doc/posix-functions/btowc.texi: Likewise.
50130         * doc/posix-functions/fgetwc.texi: Likewise.
50131         * doc/posix-functions/fgetws.texi: Likewise.
50132         * doc/posix-functions/fputwc.texi: Likewise.
50133         * doc/posix-functions/fputws.texi: Likewise.
50134         * doc/posix-functions/fwide.texi: Likewise.
50135         * doc/posix-functions/fwprintf.texi: Likewise.
50136         * doc/posix-functions/fwscanf.texi: Likewise.
50137         * doc/posix-functions/getwchar.texi: Likewise.
50138         * doc/posix-functions/getwc.texi: Likewise.
50139         * doc/posix-functions/iswalnum.texi: Likewise.
50140         * doc/posix-functions/iswalpha.texi: Likewise.
50141         * doc/posix-functions/iswblank.texi: Likewise.
50142         * doc/posix-functions/iswcntrl.texi: Likewise.
50143         * doc/posix-functions/iswctype.texi: Likewise.
50144         * doc/posix-functions/iswdigit.texi: Likewise.
50145         * doc/posix-functions/iswgraph.texi: Likewise.
50146         * doc/posix-functions/iswlower.texi: Likewise.
50147         * doc/posix-functions/iswprint.texi: Likewise.
50148         * doc/posix-functions/iswpunct.texi: Likewise.
50149         * doc/posix-functions/iswspace.texi: Likewise.
50150         * doc/posix-functions/iswupper.texi: Likewise.
50151         * doc/posix-functions/iswxdigit.texi: Likewise.
50152         * doc/posix-functions/mbrtowc.texi: Likewise.
50153         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50154         * doc/posix-functions/mbstowcs.texi: Likewise.
50155         * doc/posix-functions/mbtowc.texi: Likewise.
50156         * doc/posix-functions/putwchar.texi: Likewise.
50157         * doc/posix-functions/putwc.texi: Likewise.
50158         * doc/posix-functions/swprintf.texi: Likewise.
50159         * doc/posix-functions/tolower.texi: Likewise.
50160         * doc/posix-functions/toupper.texi: Likewise.
50161         * doc/posix-functions/towctrans.texi: Likewise.
50162         * doc/posix-functions/ungetwc.texi: Likewise.
50163         * doc/posix-functions/vswprintf.texi: Likewise.
50164         * doc/posix-functions/wcrtomb.texi: Likewise.
50165         * doc/posix-functions/wcscat.texi: Likewise.
50166         * doc/posix-functions/wcschr.texi: Likewise.
50167         * doc/posix-functions/wcscmp.texi: Likewise.
50168         * doc/posix-functions/wcscoll.texi: Likewise.
50169         * doc/posix-functions/wcscpy.texi: Likewise.
50170         * doc/posix-functions/wcscspn.texi: Likewise.
50171         * doc/posix-functions/wcsftime.texi: Likewise.
50172         * doc/posix-functions/wcslen.texi: Likewise.
50173         * doc/posix-functions/wcsncat.texi: Likewise.
50174         * doc/posix-functions/wcsncmp.texi: Likewise.
50175         * doc/posix-functions/wcsncpy.texi: Likewise.
50176         * doc/posix-functions/wcspbrk.texi: Likewise.
50177         * doc/posix-functions/wcsrchr.texi: Likewise.
50178         * doc/posix-functions/wcsrtombs.texi: Likewise.
50179         * doc/posix-functions/wcsspn.texi: Likewise.
50180         * doc/posix-functions/wcsstr.texi: Likewise.
50181         * doc/posix-functions/wcstod.texi: Likewise.
50182         * doc/posix-functions/wcstof.texi: Likewise.
50183         * doc/posix-functions/wcstoimax.texi: Likewise.
50184         * doc/posix-functions/wcstok.texi: Likewise.
50185         * doc/posix-functions/wcstold.texi: Likewise.
50186         * doc/posix-functions/wcstoll.texi: Likewise.
50187         * doc/posix-functions/wcstol.texi: Likewise.
50188         * doc/posix-functions/wcstombs.texi: Likewise.
50189         * doc/posix-functions/wcstoull.texi: Likewise.
50190         * doc/posix-functions/wcstoul.texi: Likewise.
50191         * doc/posix-functions/wcstoumax.texi: Likewise.
50192         * doc/posix-functions/wcswidth.texi: Likewise.
50193         * doc/posix-functions/wcsxfrm.texi: Likewise.
50194         * doc/posix-functions/wctob.texi: Likewise.
50195         * doc/posix-functions/wctomb.texi: Likewise.
50196         * doc/posix-functions/wctrans.texi: Likewise.
50197         * doc/posix-functions/wctype.texi: Likewise.
50198         * doc/posix-functions/wcwidth.texi: Likewise.
50199         * doc/posix-functions/wmemchr.texi: Likewise.
50200         * doc/posix-functions/wmemcmp.texi: Likewise.
50201         * doc/posix-functions/wmemcpy.texi: Likewise.
50202         * doc/posix-functions/wmemmove.texi: Likewise.
50203         * doc/posix-functions/wmemset.texi: Likewise.
50204         * doc/posix-functions/wprintf.texi: Likewise.
50205         * doc/posix-functions/wscanf.texi: Likewise.
50206
50207 2008-12-21  Bruno Haible  <bruno@clisp.org>
50208
50209         Update doc for HP-UX 11.11.
50210         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50211         in HP-UX version 11.00, not in all versions of HP-UX 11.
50212         * doc/posix-functions/fwide.texi: Likewise.
50213         * doc/posix-functions/fwprintf.texi: Likewise.
50214         * doc/posix-functions/fwscanf.texi: Likewise.
50215         * doc/posix-functions/inet_ntop.texi: Likewise.
50216         * doc/posix-functions/inet_pton.texi: Likewise.
50217         * doc/posix-functions/mbrlen.texi: Likewise.
50218         * doc/posix-functions/mbrtowc.texi: Likewise.
50219         * doc/posix-functions/mbsinit.texi: Likewise.
50220         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50221         * doc/posix-functions/swprintf.texi: Likewise.
50222         * doc/posix-functions/swscanf.texi: Likewise.
50223         * doc/posix-functions/towctrans.texi: Likewise.
50224         * doc/posix-functions/vfwprintf.texi: Likewise.
50225         * doc/posix-functions/vswprintf.texi: Likewise.
50226         * doc/posix-functions/vwprintf.texi: Likewise.
50227         * doc/posix-functions/wcrtomb.texi: Likewise.
50228         * doc/posix-functions/wcsrtombs.texi: Likewise.
50229         * doc/posix-functions/wcsstr.texi: Likewise.
50230         * doc/posix-functions/wctob.texi: Likewise.
50231         * doc/posix-functions/wctrans.texi: Likewise.
50232         * doc/posix-functions/wmemchr.texi: Likewise.
50233         * doc/posix-functions/wmemcmp.texi: Likewise.
50234         * doc/posix-functions/wmemcpy.texi: Likewise.
50235         * doc/posix-functions/wmemmove.texi: Likewise.
50236         * doc/posix-functions/wmemset.texi: Likewise.
50237         * doc/posix-functions/wprintf.texi: Likewise.
50238         * doc/posix-functions/wscanf.texi: Likewise.
50239
50240 2008-12-21  Bruno Haible  <bruno@clisp.org>
50241
50242         Work around a portability problem.
50243         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50244         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50245
50246 2008-12-20  Bruno Haible  <bruno@clisp.org>
50247
50248         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50249         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50250         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50252         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50253
50254         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50255         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50256         set.
50257         (GNULIB_defined_mbstate_t): New macro.
50258         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50259         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50260         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50261         reuses the system's mbrtowc function but works around the bugs.
50262         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50263         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50264         macros.
50265         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50266         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50267         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50268         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50269         REPLACE_MBSINIT if mbsinit needs to be overridden.
50270         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50271         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50272         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50273         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50274         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50275         m4/locale-zh.m4.
50276         (Depends): Add mbsinit.
50277         * modules/mbsinit (Depends): Add mbrtowc.
50278         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50279
50280 2008-12-20  Bruno Haible  <bruno@clisp.org>
50281
50282         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50283         so that there are no conversion errors on AIX.
50284         * tests/test-mbsrtowcs.c (main): LIkewise.
50285
50286 2008-12-20  Bruno Haible  <bruno@clisp.org>
50287
50288         Work around wctob bug on Solaris <= 9.
50289         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50290         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50292         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50293         * modules/wctob (Files): Add m4/locale-fr.m4.
50294         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50295
50296 2008-12-20  Bruno Haible  <bruno@clisp.org>
50297
50298         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50299         /dev/null.
50300         * tests/test-select-in.sh: Likewise.
50301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50302
50303 2008-12-20  Bruno Haible  <bruno@clisp.org>
50304
50305         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50306         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50307         Cygwin 1.5.x.
50308
50309 2008-12-20  Bruno Haible  <bruno@clisp.org>
50310
50311         Ensure mbstate_t is defined on HP-UX 11.11.
50312         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50313         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50314         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50315         AC_USE_SYSTEM_EXTENSIONS.
50316         * modules/fnmatch (Depends-on): Add extensions.
50317         * modules/mbrlen (Depends-on): Likewise.
50318         * modules/mbrtowc (Depends-on): Likewise.
50319         * modules/mbsinit (Depends-on): Likewise.
50320         * modules/mbsrtowcs (Depends-on): Likewise.
50321         * modules/mbswidth (Depends-on): Likewise.
50322         * modules/quotearg (Depends-on): Likewise.
50323         * modules/strftime (Depends-on): Likewise.
50324
50325 2008-12-20  Bruno Haible  <bruno@clisp.org>
50326
50327         Ensure wctob is declared on IRIX 6.5.
50328         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50329         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50330         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50332         of HAVE_WCTOB.
50333         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50334         HAVE_WCTOB.
50335         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50336
50337 2008-12-19  Bruno Haible  <bruno@clisp.org>
50338
50339         * modules/mbsrtowcs-tests: New file.
50340         * tests/test-mbsrtowcs1.sh: New file.
50341         * tests/test-mbsrtowcs2.sh: New file.
50342         * tests/test-mbsrtowcs3.sh: New file.
50343         * tests/test-mbsrtowcs4.sh: New file.
50344         * tests/test-mbsrtowcs.c: New file.
50345
50346         New module 'mbsrtowcs'.
50347         * lib/wchar.in.h (mbsrtowcs): New declaration.
50348         * lib/mbsrtowcs.c: New file.
50349         * m4/mbsrtowcs.m4: New file.
50350         * modules/mbsrtowcs: New file.
50351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50352         HAVE_MBSRTOWCS.
50353         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50354         HAVE_MBSRTOWCS.
50355         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50356
50357 2008-12-19  Bruno Haible  <bruno@clisp.org>
50358
50359         New module 'mbrlen'.
50360         * lib/wchar.in.h (mbrlen): New declaration.
50361         * lib/mbrlen.c: New file.
50362         * m4/mbrlen.m4: New file.
50363         * modules/mbrlen: New file.
50364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50365         HAVE_MBRLEN.
50366         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50367         HAVE_MBRLEN.
50368         * doc/posix-functions/mbrlen.texi: Document the new module.
50369
50370 2008-12-19  Bruno Haible  <bruno@clisp.org>
50371
50372         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50373         * modules/mbrtowc (Depends-on): Add verify.
50374         Suggested by Paul Eggert.
50375
50376 2008-12-18  Bruno Haible  <bruno@clisp.org>
50377
50378         * modules/mbsinit-tests: New file.
50379         * tests/test-mbsinit.sh: New file.
50380         * tests/test-mbsinit.c: New file.
50381
50382 2008-12-18  Bruno Haible  <bruno@clisp.org>
50383
50384         * modules/mbrtowc-tests: New file.
50385         * tests/test-mbrtowc1.sh: New file.
50386         * tests/test-mbrtowc2.sh: New file.
50387         * tests/test-mbrtowc3.sh: New file.
50388         * tests/test-mbrtowc4.sh: New file.
50389         * tests/test-mbrtowc.c: New file.
50390
50391         New module 'mbrtowc'.
50392         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50393         mbsinit and mbrtowc.
50394         (mbrtowc): New declaration.
50395         * lib/mbrtowc.c: New file.
50396         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50397         * modules/mbrtowc: New file.
50398         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50399         HAVE_MBRTOWC.
50400         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50401         HAVE_MBRTOWC.
50402         * doc/posix-functions/mbrtowc.texi: Document the new module.
50403
50404 2008-12-18  Bruno Haible  <bruno@clisp.org>
50405
50406         New module 'wctob'.
50407         * lib/wchar.in.h (wctob): New declaration.
50408         * lib/wctob.c: New file.
50409         * m4/wctob.m4: New file.
50410         * modules/wctob: New file.
50411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50412         HAVE_WCTOB.
50413         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50414         * doc/posix-functions/wctob.texi: Document the new module.
50415
50416 2008-12-18  Bruno Haible  <bruno@clisp.org>
50417
50418         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50419         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50420
50421 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50422
50423         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50424         G. Christensen" <tgc@jupiterrise.com>.
50425
50426         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50427         G. Christensen" <tgc@jupiterrise.com>.
50428
50429         * lib/flock.c: Need to include string.h.  Reported by "Tom
50430         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50431         <ebb9@byu.net>.
50432
50433 2008-12-18  Bruno Haible  <bruno@clisp.org>
50434
50435         * m4/locale-ja.m4: New file, from GNU gettext.
50436
50437 2008-12-17  Bruno Haible  <bruno@clisp.org>
50438
50439         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50440         Suggested by Eric Blake.
50441
50442 2008-12-17  Bruno Haible  <bruno@clisp.org>
50443
50444         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50445
50446 2008-12-17  Bruno Haible  <bruno@clisp.org>
50447
50448         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50449         * modules/mbsinit (Depends-on): Add verify.
50450         Suggested by Paul Eggert.
50451
50452 2008-12-17  Bruno Haible  <bruno@clisp.org>
50453
50454         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50455         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50456         gl_FUNC_MBRTOWC.
50457         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50458         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50459         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50460         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50461         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50462         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50463         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50464         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50465         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50466         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50467         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50468         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50469         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50470         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50471         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50472         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50473         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50474         * modules/trim (configure.ac): Likewise.
50475
50476 2008-12-17  Bruno Haible  <bruno@clisp.org>
50477
50478         * modules/btowc-tests: New file.
50479         * tests/test-btowc1.sh: New file.
50480         * tests/test-btowc2.sh: New file.
50481         * tests/test-btowc.c: New file.
50482
50483         New module 'btowc'.
50484         * lib/wchar.in.h (btowc): New declaration.
50485         * lib/btowc.c: New file.
50486         * m4/btowc.m4: New file.
50487         * modules/btowc: New file.
50488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50489         HAVE_BTOWC.
50490         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50491         * doc/posix-functions/btowc.texi: Document the new module.
50492
50493 2008-12-17  Bruno Haible  <bruno@clisp.org>
50494
50495         New module 'mbsinit'.
50496         * lib/wchar.in.h (mbsinit): New declaration.
50497         * lib/mbsinit.c: New file.
50498         * m4/mbsinit.m4: New file.
50499         * modules/mbsinit: New file.
50500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50501         HAVE_MBSINIT.
50502         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50503         HAVE_MBSINIT.
50504         * doc/posix-functions/mbsinit.texi: Document the new module.
50505
50506 2008-12-16  Bruno Haible  <bruno@clisp.org>
50507
50508         * lib/unistd.in.h: Add comment.
50509         * tests/test-environ.c: Don't include <stdlib.h>.
50510
50511 2008-12-16  Bruno Haible  <bruno@clisp.org>
50512
50513         * lib/parse-duration.h (parse_duration): Document return value
50514         convention.
50515         * lib/parse-duration.c: Include specification header first. Add
50516         comments.
50517         (_): Remove macro.
50518         (parse_year_month_day, parse_hour_minute_second): Move side effects
50519         outside of strchr call.
50520         (parse_non_iso8601): Move side effects outside of isspace call.
50521         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50522         call.
50523
50524 2008-12-16  Bruno Haible  <bruno@clisp.org>
50525
50526         * tests/test-parse-duration.sh: Produce no output when the test
50527         succeeds.
50528
50529 2008-12-16  Bruno Haible  <bruno@clisp.org>
50530
50531         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50532         expressions.
50533
50534 2008-12-15  Bruno Haible  <bruno@clisp.org>
50535
50536         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50537         * doc/glibc-functions/flistxattr.texi: Likewise.
50538         * doc/glibc-functions/fopencookie.texi: Likewise.
50539         * doc/glibc-functions/fremovexattr.texi: Likewise.
50540         * doc/glibc-functions/fsetxattr.texi: Likewise.
50541         * doc/glibc-functions/getxattr.texi: Likewise.
50542         * doc/glibc-functions/lgetxattr.texi: Likewise.
50543         * doc/glibc-functions/listxattr.texi: Likewise.
50544         * doc/glibc-functions/llistxattr.texi: Likewise.
50545         * doc/glibc-functions/lremovexattr.texi: Likewise.
50546         * doc/glibc-functions/lsetxattr.texi: Likewise.
50547         * doc/glibc-functions/removexattr.texi: Likewise.
50548         * doc/glibc-functions/setxattr.texi: Likewise.
50549         * doc/posix-functions/open_memstream.texi: Likewise.
50550
50551 2008-12-15  Eric Blake  <ebb9@byu.net>
50552
50553         Update doc for cygwin 1.7.
50554         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50555         functions.
50556         * doc/posix-functions/fchmodat.texi: Likewise.
50557         * doc/posix-functions/fchownat.texi: Likewise.
50558         * doc/posix-functions/fdopendir.texi: Likewise.
50559         * doc/posix-functions/fmemopen.texi: Likewise.
50560         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50561         * doc/posix-functions/fstatat.texi: Likewise.
50562         * doc/posix-functions/futimens.texi: Likewise.
50563         * doc/posix-functions/gai_strerror.texi: Likewise.
50564         * doc/posix-functions/getaddrinfo.texi: Likewise.
50565         * doc/posix-functions/getnameinfo.texi: Likewise.
50566         * doc/posix-functions/if_freenameindex.texi: Likewise.
50567         * doc/posix-functions/if_indextoname.texi: Likewise.
50568         * doc/posix-functions/if_nameindex.texi: Likewise.
50569         * doc/posix-functions/if_nametoindex.texi: Likewise.
50570         * doc/posix-functions/insque.texi: Likewise.
50571         * doc/posix-functions/linkat.texi: Likewise.
50572         * doc/posix-functions/llrint.texi: Likewise.
50573         * doc/posix-functions/llrintf.texi: Likewise.
50574         * doc/posix-functions/llrintl.texi: Likewise.
50575         * doc/posix-functions/lockf.texi: Likewise.
50576         * doc/posix-functions/lrintl.texi: Likewise.
50577         * doc/posix-functions/mkdirat.texi: Likewise.
50578         * doc/posix-functions/mkfifoat.texi: Likewise.
50579         * doc/posix-functions/mknodat.texi: Likewise.
50580         * doc/posix-functions/mq_close.texi: Likewise.
50581         * doc/posix-functions/mq_getattr.texi: Likewise.
50582         * doc/posix-functions/mq_notify.texi: Likewise.
50583         * doc/posix-functions/mq_open.texi: Likewise.
50584         * doc/posix-functions/mq_receive.texi: Likewise.
50585         * doc/posix-functions/mq_send.texi: Likewise.
50586         * doc/posix-functions/mq_setattr.texi: Likewise.
50587         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50588         * doc/posix-functions/mq_timedsend.texi: Likewise.
50589         * doc/posix-functions/mq_unlink.texi: Likewise.
50590         * doc/posix-functions/open_memstream.texi: Likewise.
50591         * doc/posix-functions/openat.texi: Likewise.
50592         * doc/posix-functions/posix_fadvise.texi: Likewise.
50593         * doc/posix-functions/posix_fallocate.texi: Likewise.
50594         * doc/posix-functions/posix_madvise.texi: Likewise.
50595         * doc/posix-functions/posix_memalign.texi: Likewise.
50596         * doc/posix-functions/posix_openpt.texi: Likewise.
50597         * doc/posix-functions/readlinkat.texi: Likewise.
50598         * doc/posix-functions/remque.texi: Likewise.
50599         * doc/posix-functions/renameat.texi: Likewise.
50600         * doc/posix-functions/rintl.texi: Likewise.
50601         * doc/posix-functions/sem_unlink.texi: Likewise.
50602         * doc/posix-functions/shm_open.texi: Likewise.
50603         * doc/posix-functions/shm_unlink.texi: Likewise.
50604         * doc/posix-functions/signgam.texi: Likewise.
50605         * doc/posix-functions/sigset.texi: Likewise.
50606         * doc/posix-functions/stpcpy.texi: Likewise.
50607         * doc/posix-functions/stpncpy.texi: Likewise.
50608         * doc/posix-functions/strerror.texi: Likewise.
50609         * doc/posix-functions/strtod.texi: Likewise.
50610         * doc/posix-functions/symlinkat.texi: Likewise.
50611         * doc/posix-functions/unlinkat.texi: Likewise.
50612         * doc/posix-functions/utimensat.texi: Likewise.
50613         * doc/glibc-functions/bindresvport.texi: Likewise.
50614         * doc/glibc-functions/dn_expand.texi: Likewise.
50615         * doc/glibc-functions/exp10.texi: Likewise.
50616         * doc/glibc-functions/exp10f.texi: Likewise.
50617         * doc/glibc-functions/fgetxattr.texi: Likewise.
50618         * doc/glibc-functions/flistxattr.texi: Likewise.
50619         * doc/glibc-functions/fopencookie.texi: Likewise.
50620         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50621         * doc/glibc-functions/fremovexattr.texi: Likewise.
50622         * doc/glibc-functions/fsetxattr.texi: Likewise.
50623         * doc/glibc-functions/getifaddrs.texi: Likewise.
50624         * doc/glibc-functions/getxattr.texi: Likewise.
50625         * doc/glibc-functions/lgetxattr.texi: Likewise.
50626         * doc/glibc-functions/listxattr.texi: Likewise.
50627         * doc/glibc-functions/llistxattr.texi: Likewise.
50628         * doc/glibc-functions/lremovexattr.texi: Likewise.
50629         * doc/glibc-functions/lsetxattr.texi: Likewise.
50630         * doc/glibc-functions/pow10.texi: Likewise.
50631         * doc/glibc-functions/pow10f.texi: Likewise.
50632         * doc/glibc-functions/rcmd_af.texi: Likewise.
50633         * doc/glibc-functions/removexattr.texi: Likewise.
50634         * doc/glibc-functions/res_init.texi: Likewise.
50635         * doc/glibc-functions/res_mkquery.texi: Likewise.
50636         * doc/glibc-functions/res_query.texi: Likewise.
50637         * doc/glibc-functions/res_querydomain.texi: Likewise.
50638         * doc/glibc-functions/res_send.texi: Likewise.
50639         * doc/glibc-functions/rresvport_af.texi: Likewise.
50640         * doc/glibc-functions/setxattr.texi: Likewise.
50641         * doc/glibc-functions/strcasestr.texi: Likewise.
50642
50643 2008-12-15  Bruno Haible  <bruno@clisp.org>
50644
50645         Fix compilation error on OSF/1 4.0.
50646         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50647         <sys/time.h>, simply delegate to the system header.
50648         Reported by Daniel Richard G. <oss@teragram.com>.
50649
50650 2008-12-15  Bruno Haible  <bruno@clisp.org>
50651
50652         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50653         * doc/posix-functions/fchmodat.texi: Likewise.
50654         * doc/posix-functions/fchownat.texi: Likewise.
50655         * doc/posix-functions/fdopendir.texi: Likewise.
50656         * doc/posix-functions/fstatat.texi: Likewise.
50657         * doc/posix-functions/mkdirat.texi: Likewise.
50658         * doc/posix-functions/unlinkat.texi: Likewise.
50659
50660 2008-12-14  Bruno Haible  <bruno@clisp.org>
50661
50662         Update doc for POSIX:2008.
50663         * doc/posix-functions/faccessat.texi: New file.
50664         * doc/posix-functions/fchmodat.texi: New file.
50665         * doc/posix-functions/fchownat.texi: New file.
50666         * doc/posix-functions/fdopendir.texi: New file.
50667         * doc/posix-functions/fstatat.texi: New file.
50668         * doc/posix-functions/futimens.texi: New file.
50669         * doc/posix-functions/linkat.texi: New file.
50670         * doc/posix-functions/mkdirat.texi: New file.
50671         * doc/posix-functions/mkfifoat.texi: New file.
50672         * doc/posix-functions/mknodat.texi: New file.
50673         * doc/posix-functions/open_wmemstream.texi: New file.
50674         * doc/posix-functions/openat.texi: New file.
50675         * doc/posix-functions/psiginfo.texi: New file.
50676         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50677         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50678         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50679         * doc/posix-functions/readlinkat.texi: New file.
50680         * doc/posix-functions/renameat.texi: New file.
50681         * doc/posix-functions/strerror_l.texi: New file.
50682         * doc/posix-functions/symlinkat.texi: New file.
50683         * doc/posix-functions/unlinkat.texi: New file.
50684         * doc/posix-functions/utimensat.texi: New file.
50685         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50686
50687 2008-12-14  Bruno Haible  <bruno@clisp.org>
50688
50689         Update doc for POSIX:2008.
50690         * doc/posix-functions/alphasort.texi: Renamed from
50691         doc/glibc-functions/alphasort.texi.
50692         * doc/posix-functions/dirfd.texi: Renamed from
50693         doc/glibc-functions/dirfd.texi.
50694         * doc/posix-functions/dprintf.texi: Renamed from
50695         doc/glibc-functions/dprintf.texi.
50696         * doc/posix-functions/duplocale.texi: Renamed from
50697         doc/glibc-functions/duplocale.texi.
50698         * doc/posix-functions/fexecve.texi: Renamed from
50699         doc/glibc-functions/fexecve.texi.
50700         * doc/posix-functions/fmemopen.texi: Renamed from
50701         doc/glibc-functions/fmemopen.texi.
50702         * doc/posix-functions/freelocale.texi: Renamed from
50703         doc/glibc-functions/freelocale.texi.
50704         * doc/posix-functions/getdate_err.texi: Renamed from
50705         doc/glibc-functions/getdate_err.texi.
50706         * doc/posix-functions/isalnum_l.texi: Renamed from
50707         doc/glibc-functions/isalnum_l.texi.
50708         * doc/posix-functions/isalpha_l.texi: Renamed from
50709         doc/glibc-functions/isalpha_l.texi.
50710         * doc/posix-functions/isblank_l.texi: Renamed from
50711         doc/glibc-functions/isblank_l.texi.
50712         * doc/posix-functions/iscntrl_l.texi: Renamed from
50713         doc/glibc-functions/iscntrl_l.texi.
50714         * doc/posix-functions/isdigit_l.texi: Renamed from
50715         doc/glibc-functions/isdigit_l.texi.
50716         * doc/posix-functions/isgraph_l.texi: Renamed from
50717         doc/glibc-functions/isgraph_l.texi.
50718         * doc/posix-functions/islower_l.texi: Renamed from
50719         doc/glibc-functions/islower_l.texi.
50720         * doc/posix-functions/isprint_l.texi: Renamed from
50721         doc/glibc-functions/isprint_l.texi.
50722         * doc/posix-functions/ispunct_l.texi: Renamed from
50723         doc/glibc-functions/ispunct_l.texi.
50724         * doc/posix-functions/isspace_l.texi: Renamed from
50725         doc/glibc-functions/isspace_l.texi.
50726         * doc/posix-functions/isupper_l.texi: Renamed from
50727         doc/glibc-functions/isupper_l.texi.
50728         * doc/posix-functions/iswalnum_l.texi: Renamed from
50729         doc/glibc-functions/iswalnum_l.texi.
50730         * doc/posix-functions/iswalpha_l.texi: Renamed from
50731         doc/glibc-functions/iswalpha_l.texi.
50732         * doc/posix-functions/iswblank_l.texi: Renamed from
50733         doc/glibc-functions/iswblank_l.texi.
50734         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50735         doc/glibc-functions/iswcntrl_l.texi.
50736         * doc/posix-functions/iswctype_l.texi: Renamed from
50737         doc/glibc-functions/iswctype_l.texi.
50738         * doc/posix-functions/iswdigit_l.texi: Renamed from
50739         doc/glibc-functions/iswdigit_l.texi.
50740         * doc/posix-functions/iswgraph_l.texi: Renamed from
50741         doc/glibc-functions/iswgraph_l.texi.
50742         * doc/posix-functions/iswlower_l.texi: Renamed from
50743         doc/glibc-functions/iswlower_l.texi.
50744         * doc/posix-functions/iswprint_l.texi: Renamed from
50745         doc/glibc-functions/iswprint_l.texi.
50746         * doc/posix-functions/iswpunct_l.texi: Renamed from
50747         doc/glibc-functions/iswpunct_l.texi.
50748         * doc/posix-functions/iswspace_l.texi: Renamed from
50749         doc/glibc-functions/iswspace_l.texi.
50750         * doc/posix-functions/iswupper_l.texi: Renamed from
50751         doc/glibc-functions/iswupper_l.texi.
50752         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50753         doc/glibc-functions/iswxdigit_l.texi.
50754         * doc/posix-functions/isxdigit_l.texi: Renamed from
50755         doc/glibc-functions/isxdigit_l.texi.
50756         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50757         doc/glibc-functions/mbsnrtowcs.texi.
50758         * doc/posix-functions/mkdtemp.texi: Renamed from
50759         doc/glibc-functions/mkdtemp.texi.
50760         * doc/posix-functions/newlocale.texi: Renamed from
50761         doc/glibc-functions/newlocale.texi.
50762         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50763         doc/glibc-functions/nl_langinfo_l.texi.
50764         * doc/posix-functions/open_memstream.texi: Renamed from
50765         doc/glibc-functions/open_memstream.texi.
50766         * doc/posix-functions/opterr.texi: Renamed from
50767         doc/glibc-functions/opterr.texi.
50768         * doc/posix-functions/optind.texi: Renamed from
50769         doc/glibc-functions/optind.texi.
50770         * doc/posix-functions/optopt.texi: Renamed from
50771         doc/glibc-functions/optopt.texi.
50772         * doc/posix-functions/psignal.texi: Renamed from
50773         doc/glibc-functions/psignal.texi.
50774         * doc/posix-functions/scandir.texi: Renamed from
50775         doc/glibc-functions/scandir.texi.
50776         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50777         doc/glibc-functions/sched_get_priority_min.texi.
50778         * doc/posix-functions/signgam.texi: Renamed from
50779         doc/glibc-functions/signgam.texi.
50780         * doc/posix-functions/stpcpy.texi: Renamed from
50781         doc/glibc-functions/stpcpy.texi.
50782         * doc/posix-functions/stpncpy.texi: Renamed from
50783         doc/glibc-functions/stpncpy.texi.
50784         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50785         doc/glibc-functions/strcasecmp_l.texi.
50786         * doc/posix-functions/strcoll_l.texi: Renamed from
50787         doc/glibc-functions/strcoll_l.texi.
50788         * doc/posix-functions/strfmon_l.texi: Renamed from
50789         doc/glibc-functions/strfmon_l.texi.
50790         * doc/posix-functions/strftime_l.texi: Renamed from
50791         doc/glibc-functions/strftime_l.texi.
50792         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50793         doc/glibc-functions/strncasecmp_l.texi.
50794         * doc/posix-functions/strndup.texi: Renamed from
50795         doc/glibc-functions/strndup.texi.
50796         * doc/posix-functions/strnlen.texi: Renamed from
50797         doc/glibc-functions/strnlen.texi.
50798         * doc/posix-functions/strsignal.texi: Renamed from
50799         doc/glibc-functions/strsignal.texi.
50800         * doc/posix-functions/strxfrm_l.texi: Renamed from
50801         doc/glibc-functions/strxfrm_l.texi.
50802         * doc/posix-functions/timer_gettime.texi: Renamed from
50803         doc/glibc-functions/timer_gettime.texi.
50804         * doc/posix-functions/tolower_l.texi: Renamed from
50805         doc/glibc-functions/tolower_l.texi.
50806         * doc/posix-functions/toupper_l.texi: Renamed from
50807         doc/glibc-functions/toupper_l.texi.
50808         * doc/posix-functions/towctrans_l.texi: Renamed from
50809         doc/glibc-functions/towctrans_l.texi.
50810         * doc/posix-functions/towlower_l.texi: Renamed from
50811         doc/glibc-functions/towlower_l.texi.
50812         * doc/posix-functions/towupper_l.texi: Renamed from
50813         doc/glibc-functions/towupper_l.texi.
50814         * doc/posix-functions/uselocale.texi: Renamed from
50815         doc/glibc-functions/uselocale.texi.
50816         * doc/posix-functions/vdprintf.texi: Renamed from
50817         doc/glibc-functions/vdprintf.texi.
50818         * doc/posix-functions/wcpcpy.texi:
50819         Renamed from doc/glibc-functions/wcpcpy.texi.
50820         * doc/posix-functions/wcpncpy.texi: Renamed from
50821         doc/glibc-functions/wcpncpy.texi.
50822         * doc/posix-functions/wcscasecmp.texi: Renamed from
50823         doc/glibc-functions/wcscasecmp.texi.
50824         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50825         doc/glibc-functions/wcscasecmp_l.texi.
50826         * doc/posix-functions/wcscoll_l.texi: Renamed from
50827         doc/glibc-functions/wcscoll_l.texi.
50828         * doc/posix-functions/wcsdup.texi: Renamed from
50829         doc/glibc-functions/wcsdup.texi.
50830         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50831         doc/glibc-functions/wcsncasecmp.texi.
50832         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50833         doc/glibc-functions/wcsncasecmp_l.texi.
50834         * doc/posix-functions/wcsnlen.texi: Renamed from
50835         doc/glibc-functions/wcsnlen.texi.
50836         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50837         doc/glibc-functions/wcsnrtombs.texi.
50838         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50839         doc/glibc-functions/wcsxfrm_l.texi.
50840         * doc/posix-functions/wctrans_l.texi: Renamed from
50841         doc/glibc-functions/wctrans_l.texi.
50842         * doc/posix-functions/wctype_l.texi: Renamed from
50843         doc/glibc-functions/wctype_l.texi.
50844         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50845         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50846         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50847         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50848         these subsections.
50849         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50850         Remove sections.
50851
50852 2008-12-14  Bruno Haible  <bruno@clisp.org>
50853
50854         Update doc for POSIX:2008.
50855         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50856
50857 2008-12-14  Bruno Haible  <bruno@clisp.org>
50858
50859         Update doc for POSIX:2008.
50860         * doc/pastposix-functions/bcmp.texi: Renamed from
50861         doc/posix-functions/bcmp.texi.
50862         * doc/pastposix-functions/bcopy.texi: Renamed from
50863         doc/posix-functions/bcopy.texi.
50864         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50865         doc/posix-functions/bsd_signal.texi.
50866         * doc/pastposix-functions/bzero.texi: Renamed from
50867         doc/posix-functions/bzero.texi.
50868         * doc/pastposix-functions/ecvt.texi: Renamed from
50869         doc/posix-functions/ecvt.texi.
50870         * doc/pastposix-functions/fcvt.texi: Renamed from
50871         doc/posix-functions/fcvt.texi.
50872         * doc/pastposix-functions/ftime.texi: Renamed from
50873         doc/posix-functions/ftime.texi.
50874         * doc/pastposix-functions/gcvt.texi: Renamed from
50875         doc/posix-functions/gcvt.texi.
50876         * doc/pastposix-functions/getcontext.texi: Renamed from
50877         doc/posix-functions/getcontext.texi.
50878         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50879         doc/posix-functions/gethostbyaddr.texi.
50880         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50881         doc/posix-functions/gethostbyname.texi.
50882         * doc/pastposix-functions/getwd.texi: Renamed from
50883         doc/posix-functions/getwd.texi.
50884         * doc/pastposix-functions/h_errno.texi: Renamed from
50885         doc/posix-functions/h_errno.texi.
50886         * doc/pastposix-functions/index.texi: Renamed from
50887         doc/posix-functions/index.texi.
50888         * doc/pastposix-functions/makecontext.texi: Renamed from
50889         doc/posix-functions/makecontext.texi.
50890         * doc/pastposix-functions/mktemp.texi: Renamed from
50891         doc/posix-functions/mktemp.texi.
50892         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50893         doc/posix-functions/pthread_attr_getstackaddr.texi.
50894         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50895         doc/posix-functions/pthread_attr_setstackaddr.texi.
50896         * doc/pastposix-functions/rindex.texi: Renamed from
50897         doc/posix-functions/rindex.texi.
50898         * doc/pastposix-functions/scalb.texi: Renamed from
50899         doc/posix-functions/scalb.texi.
50900         * doc/pastposix-functions/setcontext.texi: Renamed from
50901         doc/posix-functions/setcontext.texi.
50902         * doc/pastposix-functions/swapcontext.texi: Renamed from
50903         doc/posix-functions/swapcontext.texi.
50904         * doc/pastposix-functions/ualarm.texi: Renamed from
50905         doc/posix-functions/ualarm.texi.
50906         * doc/pastposix-functions/usleep.texi: Renamed from
50907         doc/posix-functions/usleep.texi.
50908         * doc/pastposix-functions/vfork.texi: Renamed from
50909         doc/posix-functions/vfork.texi.
50910         * doc/pastposix-functions/wcswcs.texi: Renamed from
50911         doc/posix-functions/wcswcs.texi.
50912         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50913         (Function Substitutes): Update.
50914
50915 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50916
50917         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50918         m4/strerror.m4.
50919
50920 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50921             Bruno Haible  <bruno@clisp.org>
50922
50923         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50924
50925 2008-12-13  Bruno Haible  <bruno@clisp.org>
50926
50927         * modules/strtoull (Depends-on): Remove unistd.
50928
50929 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50930
50931         * modules/strtoull (Depends-on): Add stdlib.
50932
50933 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50934
50935         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50936
50937 2008-12-10  Jim Meyering  <meyering@redhat.com>
50938
50939         gl_ASSERT: don't say assertions are disabled when they're not
50940         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50941         "checking whether to enable assertions... no", when they are in
50942         fact enabled.  This is solely a bug in the output of configure.
50943         In spite of saying "no", NDEBUG was not defined in that case.
50944         Also, as noted by Eric Blake, leave assertions enabled upon
50945         --enable-assert=INVALID.
50946
50947 2008-12-10  Bruno Haible  <bruno@clisp.org>
50948
50949         Change MODULES.html to refer to POSIX:2008 where possible.
50950         * MODULES.html.sh (POSIX2008_URL): New variable.
50951         (posix_headers): Remove sys/timeb, ucontext.
50952         (posix2001_headers): New variable.
50953         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50954         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50955         index, makecontext, mktemp, pthread_attr_getstackaddr,
50956         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50957         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50958         (posix2001_functions): New variable.
50959         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50960         otherwise.
50961
50962 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50963
50964         add missing include to parse-duration.c
50965         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50966         * modules/parse-duration (Depends-on): Add xalloc.
50967
50968         fix sed script reading maint.mk
50969         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50970         (syntax-check-rules): Use it.
50971
50972 2008-12-09  Bruno Haible  <bruno@clisp.org>
50973
50974         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50975         MacOS X 10.4/PowerPC.
50976         Reported by Simon Josefsson.
50977
50978 2008-12-08  Jim Meyering  <meyering@redhat.com>
50979
50980         work around mingw's lack of some S_IF definitions
50981         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50982         Reported by Simon Josefsson.
50983
50984 2008-12-08  Bruno Haible  <bruno@clisp.org>
50985
50986         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50987         applied to variables. Needed on MacOS X 10.4/PowerPC.
50988         Reported by Simon Josefsson.
50989
50990 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50991         and Eric Blake  <ebb9@byu.net>
50992
50993         assert: honor --enable-assert
50994         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50995         order to honor --enable-assert, rather than treating it as a
50996         synonym for --disable-assert.
50997
50998 2008-12-08  Jim Meyering  <meyering@redhat.com>
50999
51000         * lib/posixtm.c: Remove now-useless declaration of mktime.
51001
51002         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
51003
51004 2008-12-07  Bruno Haible  <bruno@clisp.org>
51005
51006         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
51007         test_once): Mark functions as static.
51008         * tests/test-tls.c (test_tls): Likewise.
51009
51010 2008-12-07  Bruno Haible  <bruno@clisp.org>
51011
51012         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51013         iconv_register_autodetect.
51014
51015 2008-12-07  Jim Meyering  <meyering@redhat.com>
51016
51017         posixtm.c: avoid a warning
51018         * lib/posixtm.c (posixtime): Don't initialize tm0.
51019         It's no longer needed to placate gcc4's -Wuninitialized,
51020         and the attempt to placate would elicit a new warning.
51021
51022         unicodeio.c: mark unused parameters
51023         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51024         (fallback_failure_callback): Likewise.
51025
51026 2008-12-07  Bruno Haible  <bruno@clisp.org>
51027
51028         * gnulib-tool (func_create_testdir): When building the tests
51029         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51030         Reported by Simon Josefsson.
51031
51032 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51033
51034         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51035
51036 2008-12-06  Bruno Haible  <bruno@clisp.org>
51037
51038         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51039         Suggested by Eric Blake.
51040
51041 2008-12-06  Bruno Haible  <bruno@clisp.org>
51042
51043         Fix a c-stack test failure on MacOS X.
51044         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51045         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51046         handler for SIGBUS as well.
51047         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51048         install a signal handler for SIGBUS as well.
51049         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51050
51051 2008-12-06  Bruno Haible  <bruno@clisp.org>
51052
51053         Advocacy documentation.
51054         * doc/gnulib-intro.texi (Benefits): New section.
51055         * doc/gnulib.texi: Update.
51056
51057 2008-12-06  Bruno Haible  <bruno@clisp.org>
51058
51059         Document the 'manywarnings' module.
51060         * doc/manywarnings.texi: New file.
51061         * doc/gnulib.texi: Include it.
51062
51063 2008-12-05  Eric Blake  <ebb9@byu.net>
51064
51065         tests: silence some gcc warnings
51066         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51067         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51068         type mismatches.
51069
51070 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51071             Bruno Haible  <bruno@clisp.org>
51072
51073         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51074
51075 2008-11-29  Jim Meyering  <meyering@redhat.com>
51076
51077         unicodeio.c: mark unused parameters
51078         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51079         (fallback_failure_callback): Likewise.
51080
51081         fts: fix a thinko
51082         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51083         (set_stat_type): Return S_IF*-valued "type" directly.
51084         Prompted by James Youngman's spotting a related bug.
51085         Confirmed by further testing through find.
51086
51087         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51088         * lib/fts.c (D_TYPE): Define.
51089         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51090         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51091         (s_ifmt_shift_bits): New function.
51092         (set_stat_type): New function.
51093         (fts_build): When not calling fts_stat, call set_stat_type
51094         to propagate dirent.d_type info to fts_read caller.
51095         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51096         fts_statp->st_mode type information may be valid.
51097
51098 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51099
51100         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51101         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51102         <sds@gnu.org>.
51103
51104 2008-11-20  Bruno Haible  <bruno@clisp.org>
51105
51106         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51107         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51108         INCLUDE_NEXT.
51109         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51110         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51111         * modules/math (Makefile.am): Substitute
51112         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51114
51115 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51116             Bruno Haible  <bruno@clisp.org>
51117
51118         * lib/stdint.in.h: Define all type macros so that their expansion is
51119         a single typedef'ed token. Fixes a compilation failure in Boost which
51120         does "using ::int8_t;".
51121
51122 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51123
51124         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51125         gl_MANYWARN_ALL_GCC.
51126         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51127         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51128         * modules/manywarnings: New file.
51129         * MODULES.html.sh: Mention manywarnings module.
51130
51131 2008-11-18  Bruno Haible  <bruno@clisp.org>
51132
51133         * doc/gnulib-tool.texi (Unit tests): New section.
51134
51135 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51136
51137         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51138         paths like 'lib/po/foo.po'.
51139
51140 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51141
51142         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51143         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51144
51145 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51146
51147         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51148         parameter works.
51149
51150 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51151
51152         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51153
51154 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51155
51156         * modules/parse-duration-tests: New file.
51157         * tests/test-parse-duration.sh: New file.
51158         * tests/test-parse-duration.c: New file.
51159
51160         New module 'parse-duration'.
51161         * lib/parse-duration.h: New file.
51162         * lib/parse-duration.c: New file.
51163         * modules/parse-duration: New file.
51164
51165 2008-11-17  Bruno Haible  <bruno@clisp.org>
51166
51167         * tests/test-select-out.sh: Comment out the first pipe test.
51168         Reported by Simon Josefsson.
51169
51170 2008-11-17  Bruno Haible  <bruno@clisp.org>
51171
51172         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51173         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51174         gl_HOSTENT.
51175
51176 2008-11-17  Bruno Haible  <bruno@clisp.org>
51177
51178         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51179         -lnetwork and -lnet. Needed for Haiku and BeOS.
51180
51181 2008-11-16  Bruno Haible  <bruno@clisp.org>
51182
51183         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51184
51185 2008-11-16  Bruno Haible  <bruno@clisp.org>
51186
51187         Avoid test failure on Haiku.
51188         * tests/test-fsync.c: Include <errno.h>.
51189         (main): Don't require that fsync (0) fails.
51190
51191 2008-11-15  Bruno Haible  <bruno@clisp.org>
51192
51193         New module 'hostent'.
51194         * modules/hostent: New file.
51195         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51196
51197 2008-11-15  Bruno Haible  <bruno@clisp.org>
51198
51199         New module 'servent'.
51200         * modules/servent: New file.
51201         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51202
51203 2008-11-15  Bruno Haible  <bruno@clisp.org>
51204
51205         Avoid generating same test program with two different rules.
51206         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51207         test-frexp to test-frexp-nolibm.
51208         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51209         test-frexpl to test-frexpl-nolibm.
51210
51211 2008-11-15  Bruno Haible  <bruno@clisp.org>
51212
51213         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51214         $(FREXPL_LIBM).
51215
51216 2008-11-15  Bruno Haible  <bruno@clisp.org>
51217
51218         * lib/netdb.in.h: Activate the definitions also when the system's
51219         <netdb.h> has 'struct addrinfo'.
51220         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51221         EAI_OVERFLOW or AI_NUMERICSERV.
51222         * doc/posix-headers/netdb.texi: Document the problem.
51223
51224 2008-11-15  Bruno Haible  <bruno@clisp.org>
51225
51226         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51227
51228         Make the 'sched' module work on platforms where <sched.h> exists but
51229         is incomplete (such as Haiku).
51230         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51231         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51232         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51233         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51234         HAVE_STRUCT_SCHED_PARAM.
51235         * modules/sched (Depends-on): Add include_next.
51236         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51237         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51238         * doc/posix-headers/sched.texi: Document the issue.
51239
51240 2008-11-13  Jim Meyering  <meyering@redhat.com>
51241
51242         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51243         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51244         test would fail due to the difference in the Report bugs to ...
51245         line.  The expected address is empty, "<>", while the actual
51246         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51247
51248 2008-11-12  Bruno Haible  <bruno@clisp.org>
51249
51250         lstat: don't compile lstat.c on systems lacking lstat
51251         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51252         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51253         Reported by Daniel P. Berrange via Jim Meyering.
51254
51255 2008-11-12  Jim Meyering  <meyering@redhat.com>
51256
51257         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51258
51259 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51260
51261         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51262         instead.
51263
51264 2008-11-12  Bruno Haible  <bruno@clisp.org>
51265
51266         * lib/unicodeio.c: Include unistr.h.
51267         (utf8_wctomb): Remove function.
51268         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51269
51270 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51271
51272         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51273         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51274         <bruno@clisp.org>.
51275         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51276
51277 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51278
51279         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51280         * doc/gnulib.texi: Add section for warnings.
51281
51282 2008-11-11  Bruno Haible  <bruno@clisp.org>
51283
51284         * lib/sockets.h: Add a comment.
51285
51286 2008-11-11  Karl Berry  <karl@gnu.org>
51287
51288         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51289
51290 2008-11-11  Eric Blake  <ebb9@byu.net>
51291
51292         fdl.texi: avoid git symlinks
51293         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51294
51295 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51296
51297         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51298
51299 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51300
51301         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51302         (gl_WARN_ADD): Substitute $2 if literal.
51303
51304 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51305
51306         * m4/warning.m4: Remove.
51307
51308 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51309
51310         * m4/warnings.m4: Almost complete rewrite. :-)
51311
51312 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51313
51314         * modules/warnings: New module.
51315         * m4/warnings.m4: New file.
51316         * MODULES.html.sh: Mention warnings module.
51317         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51318         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51319
51320 2008-11-10  Eric Blake  <ebb9@byu.net>
51321
51322         fdl.texi: make a symlink to the latest version
51323         * doc/standards.texi: Revert today's earlier change.
51324         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51325         * doc/fdl.texi: ...and replace this with a symlink to the newer
51326         fdl-1.3.texi.
51327
51328 2008-11-10  Bruno Haible  <bruno@clisp.org>
51329
51330         * tests/test-select-fd.c (main): Accept the result file name as fourth
51331         argument.
51332         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51333         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51334
51335 2008-11-10  Bruno Haible  <bruno@clisp.org>
51336
51337         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51338         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51339         as autoconf-substituted macros.
51340         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51341         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51342         gl_NETDB_H_DEFAULTS. Set these variables.
51343         * modules/netdb (Makefile.am): Substitute these variables.
51344
51345 2008-11-10  Eric Blake  <ebb9@byu.net>
51346
51347         standards.texi: include correct file for FDL 1.3
51348         * doc/standards.texi (GNU Free Documentation License): Change
51349         include file to pull in FDL 1.3, not 1.2.
51350
51351         fdl.texi: revert accidental change to license
51352         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51353
51354 2008-11-10  Bruno Haible  <bruno@clisp.org>
51355
51356         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51357         cross-compiling guesses also when the native compile gives no result.
51358
51359 2008-11-10  Bruno Haible  <bruno@clisp.org>
51360
51361         * lib/spawni.c (__spawni): Force variable into the stack.
51362
51363 2008-11-10  Bruno Haible  <bruno@clisp.org>
51364
51365         Add support for Haiku.
51366         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51367         glibc and BeOS, but also on Haiku.
51368         * lib/fpurge.c (fpurge): Likewise.
51369         * lib/freadable.c (freadable): Likewise.
51370         * lib/freadahead.c (freadahead): Likewise.
51371         * lib/freading.c (freading): Likewise.
51372         * lib/freadptr.c (freadptr): Likewise.
51373         * lib/freadseek.c (freadptrinc): Likewise.
51374         * lib/fseeko.c (rpl_fseeko): Likewise.
51375         * lib/fseterr.c (fseterr): Likewise.
51376         * lib/fwritable.c (fwritable): Likewise.
51377         * lib/fwriting.c (fwriting): Likewise.
51378         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51379
51380 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51381
51382         * lib/config.charset: Treat Haiku like BeOS.
51383
51384 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51385
51386         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51387         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51388
51389 2008-11-08  Bruno Haible  <bruno@clisp.org>
51390
51391         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51392         AC_CACHE_CHECK.
51393
51394 2008-11-08  Bruno Haible  <bruno@clisp.org>
51395
51396         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51397
51398 2008-11-08  Bruno Haible  <bruno@clisp.org>
51399
51400         * tests/test-select-fd.c: New file.
51401         * tests/test-select-in.sh: New file.
51402         * tests/test-select-out.sh: New file.
51403         * tests/test-select-stdin.c: New file.
51404         * modules/select-tests (Files): Add the new files.
51405         (Depends-on): Add gettimeofday.
51406         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51407         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51408         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51409
51410 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51411             Bruno Haible  <bruno@clisp.org>
51412
51413         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51414
51415 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51416
51417         * build-aux/pmccabe2html: Added support for C++ source files.
51418
51419 2008-11-05  Ben Pfaff  <blp@gnu.org>
51420
51421         Fix lib/close.c build on Windows.
51422         * modules/close (Files): Add lib/w32sock.h.
51423
51424 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51425
51426         Accept Bison's NEWS format.
51427         * build-aux/announce-gen (print_news_deltas): Tweak
51428         $re_prefix.
51429
51430 2008-11-04  Bruno Haible  <bruno@clisp.org>
51431
51432         * modules/random_r (Maintainer): Add glibc.
51433
51434 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51435
51436         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51437         by karl@freefriends.org (Karl Berry).
51438         * doc/alloca.texi: Likewise.
51439         * doc/c-ctype.texi: Likewise.
51440         * doc/c-strcase.texi: Likewise.
51441         * doc/c-strcaseeq.texi: Likewise.
51442         * doc/c-strcasestr.texi: Likewise.
51443         * doc/c-strstr.texi: Likewise.
51444         * doc/c-strtod.texi: Likewise.
51445         * doc/c-strtold.texi: Likewise.
51446         * doc/ctime.texi: Likewise.
51447         * doc/error.texi: Likewise.
51448         * doc/fdl.texi: Likewise.
51449         * doc/gcd.texi: Likewise.
51450         * doc/getdate.texi: Likewise.
51451         * doc/gnulib-intro.texi: Likewise.
51452         * doc/gnulib-tool.texi: Likewise.
51453         * doc/gnulib.texi: Likewise.
51454         * doc/inet_ntoa.texi: Likewise.
51455         * doc/maintain.texi: Likewise.
51456         * doc/make-stds.texi: Likewise.
51457         * doc/quote.texi: Likewise.
51458         * doc/regexprops-generic.texi: Likewise.
51459         * doc/standards.texi: Likewise.
51460         * doc/verify.texi: Likewise.
51461         * doc/visibility.texi: Likewise.
51462         * doc/gnulib.texi (GNU Free Documentation License): Include
51463         fdl-1.3.texi instead of fdl.texi.
51464
51465 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51466
51467         * doc/fdl-1.3.texi: New file, from
51468         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51469         * modules/fdl-1.3: Add.
51470         * MODULES.html.sh: Add fdl-1.3.
51471
51472 2008-11-03  Bruno Haible  <bruno@clisp.org>
51473
51474         Make determination of absolute name of header file work with AIX xlc.
51475         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51476         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51477         preprocessing.
51478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51479         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51480
51481 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51482
51483         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51484         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51485         <ludo@gnu.org>.
51486
51487 2008-11-02  Bruno Haible  <bruno@clisp.org>
51488
51489         Mark 'strpbrk' obsolete.
51490         * modules/strpbrk (Status, Notice): New sections.
51491         * modules/strtok_r (Depends-on): Add strpbrk.
51492
51493 2008-11-02  Bruno Haible  <bruno@clisp.org>
51494
51495         Mark 'strdup' obsolete.
51496         * modules/strdup (Status, Notice): New sections.
51497         * modules/findprog (Depends-on): Add strdup.
51498         * modules/getaddrinfo (Depends-on): Likewise.
51499         * modules/localename (Depends-on): Likewise.
51500         * modules/relocatable-lib (Depends-on): Likewise.
51501         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51502         * modules/relocatable-prog (Depends-on): Likewise.
51503         * modules/trim (Depends-on): Likewise.
51504         * modules/unictype/gen-ctype (Depends-on): Likewise.
51505         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51506
51507 2008-11-02  Bruno Haible  <bruno@clisp.org>
51508
51509         Mark 'strcspn' obsolete.
51510         * modules/strcspn (Status, Notice): New sections.
51511
51512 2008-11-02  Bruno Haible  <bruno@clisp.org>
51513
51514         Mark 'rmdir' obsolete.
51515         * modules/rmdir (Status, Notice): New sections.
51516         * modules/clean-temp (Depends-on): Add rmdir.
51517         * modules/openat (Depends-on): Likewise.
51518
51519 2008-11-02  Bruno Haible  <bruno@clisp.org>
51520
51521         Mark 'raise' obsolete.
51522         * modules/raise (Status, Notice): New sections.
51523         (Include): Specify <signal.h>.
51524         * modules/stdio (Depends-on): Add raise.
51525         * modules/write (Depends-on): Likewise.
51526
51527 2008-11-02  Bruno Haible  <bruno@clisp.org>
51528
51529         Mark 'memset' obsolete.
51530         * modules/memset (Status, Notice): New sections.
51531
51532 2008-11-02  Bruno Haible  <bruno@clisp.org>
51533
51534         Mark 'memmove' obsolete.
51535         * modules/memmove (Status, Notice): New sections.
51536         * modules/argp (Depends-on): Add memmove.
51537         * modules/argz (Depends-on): Likewise.
51538         * modules/canonicalize (Depends-on): Likewise.
51539         * modules/canonicalize-lgpl (Depends-on): Likewise.
51540         * modules/fts (Depends-on): Likewise.
51541         * modules/getcwd (Depends-on): Likewise.
51542         * modules/human (Depends-on): Likewise.
51543         * modules/regex (Depends-on): Likewise.
51544         * modules/striconveh (Depends-on): Likewise.
51545         * modules/trim (Depends-on): Likewise.
51546         * modules/unistr/u8-move (Depends-on): Likewise.
51547         * modules/unistr/u16-move (Depends-on): Likewise.
51548         * modules/unistr/u32-move (Depends-on): Likewise.
51549
51550 2008-11-02  Bruno Haible  <bruno@clisp.org>
51551
51552         Mark 'memcpy' obsolete.
51553         * modules/memcpy (Status, Notice): New sections.
51554
51555 2008-11-02  Bruno Haible  <bruno@clisp.org>
51556
51557         Mark 'memcmp' obsolete.
51558         * modules/memcmp (Status, Notice): New sections.
51559         * modules/argmatch (Depends-on): Add memchr.
51560         * modules/backupfile (Depends-on): Likewise.
51561         * modules/c-strcasestr (Depends-on): Likewise.
51562         * modules/crypto/des (Depends-on): Likewise.
51563         * modules/csharpcomp (Depends-on): Likewise.
51564         * modules/fnmatch (Depends-on): Likewise.
51565         * modules/git-merge-changelog (Depends-on): Likewise.
51566         * modules/isnand (Depends-on): Likewise.
51567         * modules/isnand-nolibm (Depends-on): Likewise.
51568         * modules/isnanf (Depends-on): Likewise.
51569         * modules/isnanf-nolibm (Depends-on): Likewise.
51570         * modules/isnanl (Depends-on): Likewise.
51571         * modules/isnanl-nolibm (Depends-on): Likewise.
51572         * modules/mbchar (Depends-on): Likewise.
51573         * modules/memcoll (Depends-on): Likewise.
51574         * modules/quotearg (Depends-on): Likewise.
51575         * modules/regex (Depends-on): Likewise.
51576         * modules/relocatable-prog (Depends-on): Likewise.
51577         * modules/same (Depends-on): Likewise.
51578         * modules/signbit (Depends-on): Likewise.
51579         * modules/strcasestr-simple (Depends-on): Likewise.
51580         * modules/unictype/gen-ctype (Depends-on): Likewise.
51581         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51582         * modules/uniname/uniname (Depends-on): Likewise.
51583         * modules/unistr/u8-cmp (Depends-on): Likewise.
51584
51585 2008-11-02  Bruno Haible  <bruno@clisp.org>
51586
51587         Mark 'memchr' obsolete.
51588         * modules/memchr (Status, Notice): New sections.
51589         * modules/argp (Depends-on): Add memchr.
51590         * modules/base64 (Depends-on): Likewise.
51591         * modules/c-strcasestr (Depends-on): Likewise.
51592         * modules/chdir-long (Depends-on): Likewise.
51593         * modules/fnmatch (Depends-on): Likewise.
51594         * modules/getsubopt (Depends-on): Likewise.
51595         * modules/git-merge-changelog (Depends-on): Likewise.
51596         * modules/glob (Depends-on): Likewise.
51597         * modules/strcasestr-simple (Depends-on): Likewise.
51598         * modules/strnlen (Depends-on): Likewise.
51599
51600 2008-11-02  Bruno Haible  <bruno@clisp.org>
51601
51602         Mark 'atexit' obsolete.
51603         * modules/atexit (Status, Notice): New sections.
51604         * modules/chdir-long (Depends-on): Add atexit.
51605         * modules/wait-process (Depends-on): Likewise.
51606
51607 2008-11-02  Bruno Haible  <bruno@clisp.org>
51608
51609         * gnulib-tool: New option --with-obsolete.
51610         (func_usage): Document it.
51611         (func_modules_transitive_closure): Drop obsolete dependencies if
51612         incobsolete is not true.
51613         (func_import): Read and save the incobsolete variable to the cache.
51614
51615 2008-11-02  Bruno Haible  <bruno@clisp.org>
51616
51617         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51618         * gnulib-tool: New option --extract-status.
51619         (func_usage): Document it.
51620         (sed_extract_prog): Recognize it.
51621         (func_get_status): New function.
51622
51623 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51624
51625         * modules/sockets (License): Change from LGPL to LGPLv2+.
51626
51627 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51628
51629         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51630
51631 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51632
51633         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51634         Mention times and sys_times.
51635         * modules/sys_times, modules/sys_times-tests: New modules.
51636         * modules/times, modules/times-tests: Likewise
51637         * m4/sys_times_h.m4: New file.
51638         * lib/sys_times.in.h: Likewise
51639         * lib/times.c: Likewise.
51640         * tests/test-sys_times.c: Likewise.
51641         * tests/test-times.c: Likewise.
51642         * doc/posix-headers/sys_times.texi: Update.
51643         * doc/posix-functions/times.texi: Update.
51644
51645 2008-10-28  Jim Meyering  <meyering@redhat.com>
51646
51647         * modules/tempname (Depends-on): Add lstat.
51648
51649         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51650
51651 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51652
51653         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51654         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51655         using idiom used elsewhere in gnulib.
51656
51657 2008-10-27  Jim Meyering  <meyering@redhat.com>
51658
51659         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51660
51661 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51662
51663         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51664         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51665         programs.
51666         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51667
51668 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51669
51670         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51671
51672 2008-10-27  Bruno Haible  <bruno@clisp.org>
51673
51674         * tests/test-lstat.c: Include <stdio.h>.
51675
51676 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51677
51678         * modules/lstat-tests: New module.
51679         * tests/test-lstat.c: New file.
51680
51681 2008-10-26  Jim Meyering  <meyering@redhat.com>
51682
51683         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51684
51685 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51686             Bruno Haible  <bruno@clisp.org>
51687
51688         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51689         * modules/configmake (Include): Add a note that the include must come
51690         after all system headers.
51691         * lib/javaversion.c: Include configmake.h after all other includes.
51692
51693 2008-10-26  Bruno Haible  <bruno@clisp.org>
51694
51695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51696         HAVE_STRUCT_RANDOM_DATA to 1.
51697         (gl_STDLIB_H): Simplify.
51698
51699 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51700
51701         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51702         substitute HAVE_STRUCT_RANDOM_DATA.
51703         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51704         random_data.
51705         * modules/stdlib (Makefile.am): Substitute
51706         HAVE_STRUCT_RANDOM_DATA.
51707
51708 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51709
51710         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51711         * doc/gnulib-intro.texi (Copyright): Likewise.
51712
51713 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51714
51715         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51716         findings.
51717
51718 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51719             Bruno Haible  <bruno@clisp.org>
51720
51721         * lib/unistd.in.h: Include <winsock2.h>.
51722         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51723         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51724         Provide dummy declarations.
51725         (gethostname): Override.
51726         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51727         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51728         gl_PREREQ_SYS_H_WINSOCK2.
51729         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51730         * doc/posix-functions/gethostname.texi: More details.
51731
51732 2008-10-25  Bruno Haible  <bruno@clisp.org>
51733
51734         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51735         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51736         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51737
51738         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51739         here ...
51740         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51741         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51742         gl_UNISTD_H_DEFAULTS.
51743
51744 2008-10-25  Eric Blake  <ebb9@byu.net>
51745
51746         signbit: avoid spurious compiler failure
51747         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51748         declarations inside function.
51749
51750 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51751             Bruno Haible  <bruno@clisp.org>
51752
51753         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51754         * modules/random_r (Depends-on): Add stdint.
51755
51756 2008-10-24  Bruno Haible  <bruno@clisp.org>
51757
51758         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51759         Eggert.
51760         * modules/strerror (License): Likewise.
51761
51762 2008-10-24  Jim Meyering  <meyering@redhat.com>
51763
51764         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51765         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51766
51767 2008-10-24  Eric Blake  <ebb9@byu.net>
51768
51769         getgroups: fix compilation when getgroups is available
51770         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51771         but with <config.h> override of getgroups disabled.
51772
51773 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51774
51775         * doc/gnulib.texi (Header files): Add note about C++ problems.
51776         Explained by Bruno Haible <bruno@clisp.org>.
51777
51778 2008-10-23  Bruno Haible  <bruno@clisp.org>
51779
51780         Define a dummy SA_NODEFER macro on Interix.
51781         * lib/signal.in.h (SA_NODEFER): Define fallback.
51782         Reported by Aleksey Cheusov <cheusov@tut.by> via
51783         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51784
51785 2008-10-23  Bruno Haible  <bruno@clisp.org>
51786
51787         * modules/freadahead (License): Change to LGPLv2+.
51788         Suggested by Simon Josefsson.
51789
51790 2008-10-23  Jim Meyering  <meyering@redhat.com>
51791
51792         random_r: new module
51793         * modules/random_r: New file.
51794         * m4/random_r.m4: New file.
51795         * lib/random_r.c: New file, from glibc.
51796         * modules/random_r-tests: New file.
51797         * tests/test-random_r.c: New file.
51798         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51799          Declare.
51800         (RAND_MAX): Define.
51801         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51802         * modules/stdlib: Substitute them, too.
51803         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51804         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51805         * doc/glibc-functions/random_r.texi: Likewise.
51806         * doc/glibc-functions/setstate_r.texi: Likewise.
51807         * doc/glibc-functions/srandom_r.texi: Likewise.
51808         * config/srclist.txt: Mention it.
51809
51810 2008-10-23  David Lutterkort  <lutter@redhat.com>
51811
51812         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51813         link requirement
51814
51815 2008-10-23  Jim Meyering  <meyering@redhat.com>
51816
51817         selinux-h: mark parameters of stub functions as intentionally unused
51818         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51819         * lib/se-context.in.h: Likewise.
51820
51821 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51822
51823         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51824
51825 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51826
51827         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51828
51829 2008-10-22  Eric Blake  <ebb9@byu.net>
51830
51831         glthread/thread: avoid compiler warning
51832         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51833         Add unreachable abort to silence compiler.
51834
51835 2008-10-22  Eric Blake  <ebb9@byu.net>
51836
51837         netdb: also supply struct addrinfo for cygwin 1.5.x
51838         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51839         older cygwin.
51840         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51841         cygwin.
51842         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51843
51844 2008-10-22  Bruno Haible  <bruno@clisp.org>
51845
51846         * users.txt: Update entry about pspp.
51847
51848 2008-10-21  Bruno Haible  <bruno@clisp.org>
51849
51850         Simplification.
51851         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51852         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51853
51854         Simplification.
51855         * lib/ioctl.c (ioctl): Don't undefine.
51856         * lib/socket.c (socket): Don't undefine.
51857
51858         Remove unused module indicator macros.
51859         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51860         GNULIB_$1 as a C macro.
51861
51862         * doc/posix-functions/close.texi: Undo last change.
51863         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51864         Windows platforms.
51865
51866 2008-10-21  Bruno Haible  <bruno@clisp.org>
51867
51868         Add gethostname() declaration to <unistd.h>.
51869         * lib/unistd.in.h (gethostname): New declaration.
51870         * lib/gethostname.c: Include <unistd.h>.
51871         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51872         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51874         and HAVE_GETHOSTNAME.
51875         * modules/gethostname (Depends-on): Add unistd.
51876         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51877         (Include): Specify <unistd.h>.
51878         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51879         HAVE_GETHOSTNAME.
51880         * tests/test-gethostname.c: Include <unistd.h> first.
51881
51882 2008-10-21  Bruno Haible  <bruno@clisp.org>
51883
51884         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51885         * modules/select-tests (Depends-on): Likewise.
51886         Reported by Simon Josefsson.
51887
51888 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51889
51890         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51891         * lib/accept.c: New file, based on winsock.c.
51892         * lib/bind.c: New file, based on winsock.c.
51893         * lib/connect.c: New file, based on winsock.c.
51894         * lib/getpeername.c: New file, based on winsock.c.
51895         * lib/getsockname.c: New file, based on winsock.c.
51896         * lib/getsockopt.c: New file, based on winsock.c.
51897         * lib/ioctl.c: New file, based on winsock.c.
51898         * lib/listen.c: New file, based on winsock.c.
51899         * lib/recv.c: New file, based on winsock.c.
51900         * lib/recvfrom.c: New file, based on winsock.c.
51901         * lib/send.c: New file, based on winsock.c.
51902         * lib/sendto.c: New file, based on winsock.c.
51903         * lib/setsockopt.c: New file, based on winsock.c.
51904         * lib/shutdown.c: New file, based on winsock.c.
51905         * lib/socket.c: New file, based on winsock.c.
51906         * lib/w32sock.h: New file, based on winsock.c.
51907         * lib/winsock.c: Remove file.
51908         * modules/accept: Likewise.
51909         * modules/bind: Likewise.
51910         * modules/connect: Likewise.
51911         * modules/getpeername: Likewise.
51912         * modules/getsockname: Likewise.
51913         * modules/getsockopt: Likewise.
51914         * modules/ioctl: Likewise.
51915         * modules/listen: Likewise.
51916         * modules/recv: Likewise.
51917         * modules/recvfrom: Likewise.
51918         * modules/send: Likewise.
51919         * modules/sendto: Likewise.
51920         * modules/setsockopt: Likewise.
51921         * modules/shutdown: Likewise.
51922         * modules/socket: Use socket.c instead of winsock.c.
51923         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51924         * doc/posix-functions/accept.texi: Doc fix.
51925         * doc/posix-functions/bind.texi: Doc fix.
51926         * doc/posix-functions/close.texi: Doc fix.
51927         * doc/posix-functions/connect.texi: Doc fix.
51928         * doc/posix-functions/getpeername.texi: Doc fix.
51929         * doc/posix-functions/getsockname.texi: Doc fix.
51930         * doc/posix-functions/getsockopt.texi: Doc fix.
51931         * doc/posix-functions/ioctl.texi: Doc fix.
51932         * doc/posix-functions/listen.texi: Doc fix.
51933         * doc/posix-functions/recv.texi: Doc fix.
51934         * doc/posix-functions/recvfrom.texi: Doc fix.
51935         * doc/posix-functions/send.texi: Doc fix.
51936         * doc/posix-functions/sendto.texi: Doc fix.
51937         * doc/posix-functions/setsockopt.texi: Doc fix.
51938         * doc/posix-functions/shutdown.texi: Doc fix.
51939         * doc/posix-functions/socket.texi: Doc fix.
51940
51941 2008-10-20  Bruno Haible  <bruno@clisp.org>
51942
51943         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51944         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51945         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51946         as an alias for SIGABRT.
51947         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51948         (sigaction): Map it to SIGABRT.
51949         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51950
51951 2008-10-20  Bruno Haible  <bruno@clisp.org>
51952
51953         * lib/fts.c: Don't include lstat.h.
51954         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51955
51956         Move the lstat() declaration to <sys/stat.h>.
51957         * lib/lstat.h: Remove file.
51958         * lib/sys_stat.in.h: Add special invocation convention.
51959         (lstat): New declaration.
51960         * lib/lstat.c (orig_lstat): New function.
51961         (rpl_lstat): Use orig_lstat instead of lstat.
51962         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51963         AC_C_INLINE. Set REPLACE_LSTAT.
51964         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51965         and REPLACE_LSTAT.
51966         * modules/lstat (Files): Remove lib/lstat.h.
51967         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51968         (Include): Specify <sys/stat.h> instead of lstat.h.
51969         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51970         REPLACE_LSTAT.
51971         * NEWS: Mention the change.
51972
51973 2008-10-20  Bruno Haible  <bruno@clisp.org>
51974
51975         * modules/posix_spawn-tests: New file.
51976         * tests/test-posix_spawn3.c: New file.
51977
51978 2008-10-20  Bruno Haible  <bruno@clisp.org>
51979
51980         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51981         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51982         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51983         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51984         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51985
51986 2008-10-20  Bruno Haible  <bruno@clisp.org>
51987
51988         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51989         of posix_spawn on AIX 5.3.
51990
51991 2008-10-20  Bruno Haible  <bruno@clisp.org>
51992
51993         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51994
51995 2008-10-20  Bruno Haible  <bruno@clisp.org>
51996
51997         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51998         of AC_LANG_PROGRAM.
51999
52000 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52001
52002         * lib/netdb.in.h: Don't define GNU specific constants until they
52003         are supported or needed.  Reported by Bruno Haible
52004         <bruno@clisp.org>.
52005
52006 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52007
52008         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52009
52010 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52011
52012         * lib/getaddrinfo.h: Remove file.
52013         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52014         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52015         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52016         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52017         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52018         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52019         * tests/test-getaddrinfo.c: Likewise.
52020         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52021         * NEWS: Mention change.
52022
52023 2008-10-19  Bruno Haible  <bruno@clisp.org>
52024
52025         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52026
52027 2008-10-19  Bruno Haible  <bruno@clisp.org>
52028
52029         * lib/wait-process.c: Include simply <sys/wait.h>.
52030         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52031         WIFSTOPPED): Remove fallback definitions.
52032         * modules/wait-process (Depends-on): Add sys_wait.
52033
52034         New module 'sys_wait'.
52035         * modules/sys_wait: New file.
52036         * lib/sys_wait.in.h: New file, partially copied from
52037         lib/wait-process.c.
52038         * m4/sys_wait_h.m4: New file.
52039         * doc/posix-headers/sys_wait.texi: Mention the new module.
52040
52041 2008-10-19  Bruno Haible  <bruno@clisp.org>
52042
52043         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52044
52045 2008-10-19  Bruno Haible  <bruno@clisp.org>
52046
52047         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52048         * lib/wait-process.c (WAIT_T): Remove type.
52049         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52050         (wait_subprocess): Update.
52051
52052 2008-10-19  Bruno Haible  <bruno@clisp.org>
52053
52054         New module 'atoll'.
52055         * modules/atoll: New file.
52056         * lib/stdlib.in.h (atoll): New declaration.
52057         * lib/atoll.c: New file, from glibc with modifications.
52058         * m4/atoll.m4: New file.
52059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52060         HAVE_ATOLL.
52061         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52062         * doc/posix-functions/atoll.texi: Mention the new module.
52063
52064 2008-10-19  Bruno Haible  <bruno@clisp.org>
52065
52066         Add strtoull() declaration to <stdlib.h>.
52067         * lib/stdlib.in.h (strtoull): New declaration.
52068         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52069         Set HAVE_STRTOULL.
52070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52071         HAVE_STRTOULL.
52072         * modules/strtoull (Depends-on): Add stdlib.
52073         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52074         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52075         HAVE_STRTOULL.
52076
52077 2008-10-19  Bruno Haible  <bruno@clisp.org>
52078
52079         Add strtoll() declaration to <stdlib.h>.
52080         * lib/stdlib.in.h (strtoll): New declaration.
52081         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52082         Set HAVE_STRTOLL.
52083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52084         HAVE_STRTOLL.
52085         * modules/strtoll (Depends-on): Add stdlib.
52086         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52087         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52088
52089 2008-10-19  Bruno Haible  <bruno@clisp.org>
52090
52091         * modules/bcopy (Depends-on): Add strings.
52092         (Include): Specify <strings.h>.
52093
52094 2008-10-19  Bruno Haible  <bruno@clisp.org>
52095
52096         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52097
52098 2008-10-19  Bruno Haible  <bruno@clisp.org>
52099
52100         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52101         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52102         mingw.
52103
52104 2008-10-19  Bruno Haible  <bruno@clisp.org>
52105
52106         * lib/atanl.c: Don't include isnanl.h.
52107         * lib/cosl.c: Likewise.
52108         * lib/ldexpl.c: Likewise.
52109         * lib/logl.c: Likewise.
52110         * lib/sinl.c: Likewise.
52111         * lib/sqrtl.c: Likewise.
52112         * lib/tanl.c: Likewise.
52113
52114         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52115         * lib/isnanf.h: Remove file.
52116         * lib/isnand.h: Remove file.
52117         * lib/isnanl.h: Remove file.
52118         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52119         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52120         macros.
52121         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52122         HAVE_ISNANF, don't define it as a C macro.
52123         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52124         HAVE_ISNAND, don't define it as a C macro.
52125         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52126         HAVE_ISNANL, don't define it as a C macro.
52127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52128         HAVE_ISNAN[FDL].
52129         * modules/isnanf (Files): Remove lib/isnanf.h.
52130         (Depends-on): Add math.
52131         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52132         (Include): Specify <math.h> instead of isnanf.h.
52133         * modules/isnand (Files): Remove lib/isnand.h.
52134         (Depends-on): Add math.
52135         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52136         (Include): Specify <math.h> instead of isnand.h.
52137         * modules/isnanl (Files): Remove lib/isnanl.h.
52138         (Depends-on): Add math.
52139         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52140         (Include): Specify <math.h> instead of isnanl.h.
52141         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52142         HAVE_ISNAN[FDL].
52143         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52144         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52145         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52146         * NEWS: Mention the change.
52147
52148 2008-10-18  Bruno Haible  <bruno@clisp.org>
52149
52150         Add getusershell(), setusershell(), endusershell() declarations to
52151         <unistd.h>.
52152         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52153         declarations.
52154         * lib/getusershell.c: Include unistd.h.
52155         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52156         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52157         HAVE_GETUSERSHELL.
52158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52159         and HAVE_GETUSERSHELL.
52160         * modules/getusershell (Depends-on): Add unistd, extensions.
52161         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52162         (Include): Specify <unistd.h>.
52163         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52164         HAVE_GETUSERSHELL.
52165
52166 2008-10-18  Bruno Haible  <bruno@clisp.org>
52167
52168         Add a getloadavg() declaration to <stdlib.h>.
52169         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52170         getloadavg declaration.
52171         (getloadavg): New declaration.
52172         * lib/getloadavg.c: Include <stdlib.h> first.
52173         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52174         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52175         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52177         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52178         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52179         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52180         (Include): Specify <stdlib.h>.
52181         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52182         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52183
52184 2008-10-18  Bruno Haible  <bruno@clisp.org>
52185
52186         * lib/dirchownmod.c: Don't include lchmod.h.
52187
52188         Move the lchmod() declaration to <sys/stat.h>.
52189         * lib/lchmod.h: Remove file.
52190         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52191         (lchmod): New declaration, moved here from lib/lchown.h.
52192         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52193         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52194         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52195         and HAVE_LCHMOD.
52196         * modules/lchmod (Files): Remove lib/lchmod.h.
52197         (Depends-on): Add sys_stat, extensions.
52198         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52199         (Include): Specify <sys/stat.h> instead of lchmod.h.
52200         * modules/sys_stat (Depends-on): Add link-warning.
52201         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52202         definition of GL_LINK_WARNING.
52203         * NEWS: Mention the change.
52204
52205 2008-10-18  Bruno Haible  <bruno@clisp.org>
52206
52207         * lib/fchdir.c: Don't include dirfd.h.
52208         * lib/fts.c: Likewise.
52209         * lib/getcwd.c: Likewise.
52210         * lib/glob.c: Likewise.
52211
52212         Move the dirfd() declaration to <dirent.h>.
52213         * lib/dirfd.h: Remove file.
52214         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52215         (dirfd): New declaration.
52216         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52217         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52218         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52219         HAVE_DECL_DIRFD.
52220         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52221         HAVE_DECL_DIRFD.
52222         * modules/dirfd (Files): Remove lib/dirfd.h.
52223         (Depends-on): Add dirent, extensions.
52224         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52225         (Include): Specify <dirent.h> instead of dirfd.h.
52226         * modules/dirent (Depends-on): Add link-warning.
52227         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52228         definition of GL_LINK_WARNING.
52229         * NEWS: Mention the change.
52230
52231 2008-10-18  Bruno Haible  <bruno@clisp.org>
52232
52233         Move the euidaccess() declaration to <unistd.h>.
52234         * lib/euidaccess.h: Remove file.
52235         * lib/unistd.in.h (euidaccess): New declaration.
52236         * lib/euidaccess.c: Don't include euidaccess.h.
52237         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52238         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52240         and HAVE_EUIDACCESS.
52241         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52242         (Depends-on): Add unistd.
52243         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52244         (Include): Specify <unistd.h> instead of euidaccess.h.
52245         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52246         HAVE_EUIDACCESS.
52247         * NEWS: Mention the change.
52248
52249 2008-10-18  Bruno Haible  <bruno@clisp.org>
52250
52251         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52252
52253         Move the getdomainname() declaration to <unistd.h>.
52254         * lib/getdomainname.h: Remove file.
52255         * lib/unistd.in.h (getdomainname): New declaration.
52256         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52257         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52258         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52259         HAVE_GETDOMAINNAME.
52260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52261         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52262         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52263         (Depends-on): Add unistd, extensions.
52264         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52265         (Includes): Specify <unistd.h> instead of getdomainname.h.
52266         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52267         HAVE_GETDOMAINNAME.
52268         * NEWS: Mention the change.
52269
52270 2008-10-18  Bruno Haible  <bruno@clisp.org>
52271
52272         * modules/dirent: New file.
52273         * m4/dirent_h.m4: New file.
52274         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52275         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52276         * modules/fchdir (Files): Remove lib/dirent.in.h.
52277         (Depends-on): Add dirent.
52278         (Makefile.am): Move rules to modules/dirent.
52279         * doc/posix-headers/dirent.texi: Mention the new module.
52280
52281 2008-10-18  Bruno Haible  <bruno@clisp.org>
52282
52283         Avoid -Wunused-parameter warnings in public gnulib header files.
52284         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52285         macro.
52286         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52287
52288 2008-10-18  Bruno Haible  <bruno@clisp.org>
52289
52290         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52291         * doc/glibc-functions/error.texi: Mention the module 'error'.
52292         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52293         * doc/glibc-functions/getdomainname.texi: Mention the module
52294         'getdomainname'.
52295         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52296         * doc/glibc-functions/getpagesize.texi: Mention the module
52297         'getpagesize'.
52298         * doc/glibc-functions/getusershell.texi: Mention the module
52299         'getusershell'.
52300         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52301         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52302         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52303         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52304         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52305         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52306         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52307         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52308         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52309         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52310         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52311         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52312         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52313         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52314
52315 2008-10-17  Bruno Haible  <bruno@clisp.org>
52316
52317         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52318         HP-UX and IRIX, use -0.0L.
52319         * tests/test-ceill.c (minus_zero): Likewise.
52320         * tests/test-floorl.c (minus_zero): Likewise.
52321         * tests/test-frexpl.c (minus_zero): Likewise.
52322         * tests/test-isnan.c (minus_zerol): Likewise.
52323         * tests/test-isnanl.h (minus_zero): Likewise.
52324         * tests/test-ldexpl.c (minus_zero): Likewise.
52325         * tests/test-roundl.c (minus_zero): Likewise.
52326         * tests/test-signbit.c (minus_zerol): Likewise.
52327         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52328         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52329         * tests/test-truncl.c (minus_zero): Likewise.
52330         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52331         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52332         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52333         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52334
52335 2008-10-17  Bruno Haible  <bruno@clisp.org>
52336
52337         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52338         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52339         that it gets activated only for gcc >= 3.0.
52340         * lib/dirent.in.h: Likewise.
52341         * lib/errno.in.h: Likewise.
52342         * lib/fcntl.in.h: Likewise.
52343         * lib/float.in.h: Likewise.
52344         * lib/iconv.in.h: Likewise.
52345         * lib/inttypes.in.h: Likewise.
52346         * lib/locale.in.h: Likewise.
52347         * lib/math.in.h: Likewise.
52348         * lib/netdb.in.h: Likewise.
52349         * lib/netinet_in.in.h: Likewise.
52350         * lib/search.in.h: Likewise.
52351         * lib/signal.in.h: Likewise.
52352         * lib/spawn.in.h: Likewise.
52353         * lib/stdarg.in.h: Likewise.
52354         * lib/stdint.in.h: Likewise.
52355         * lib/stdio.in.h: Likewise.
52356         * lib/stdlib.in.h: Likewise.
52357         * lib/string.in.h: Likewise.
52358         * lib/strings.in.h: Likewise.
52359         * lib/sys_file.in.h: Likewise.
52360         * lib/sys_ioctl.in.h: Likewise.
52361         * lib/sys_select.in.h: Likewise.
52362         * lib/sys_socket.in.h: Likewise.
52363         * lib/sys_stat.in.h: Likewise.
52364         * lib/sys_time.in.h: Likewise.
52365         * lib/sysexits.in.h: Likewise.
52366         * lib/time.in.h: Likewise.
52367         * lib/unistd.in.h: Likewise.
52368         * lib/wchar.in.h: Likewise.
52369         * lib/wctype.in.h: Likewise.
52370         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52371
52372 2008-10-17  Jim Meyering  <meyering@redhat.com>
52373
52374         ignore-value: don't depend on inline module
52375         * modules/ignore-value (Depends-on): Remove 'inline'.
52376         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52377         Suggestion from Bruno Haible.
52378
52379 2008-10-17  Bruno Haible  <bruno@clisp.org>
52380
52381         New implementation of condition variables for Win32.
52382         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52383         (gl_linked_waitqueue_t): New type.
52384         (gl_cond_t): Use it.
52385         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52386         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52387         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52388         (glthread_cond_init_func, glthread_cond_wait_func,
52389         glthread_cond_timedwait_func, glthread_cond_signal_func,
52390         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52391         Reimplemented on the basis of gl_linked_waitqueue_t.
52392         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52393         gl_waitqueue_t.
52394         (gl_rwlock_t): Update.
52395         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52396
52397 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52398
52399         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52400         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52401
52402 2008-10-17  Jim Meyering  <meyering@redhat.com>
52403
52404         ignore-value: new module
52405         * modules/ignore-value: New file.
52406         * lib/ignore-value.h: New file.
52407         * MODULES.html.sh (Compiler warning management): New section,
52408         just for this module.  More to come.
52409
52410 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52411
52412         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52413         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52414         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52415
52416 2008-10-16  Jim Meyering  <meyering@redhat.com>
52417
52418         openat-die.c: avoid 'no previous prototype' warning
52419         * lib/openat-die.c: Include "openat.h".
52420         Reported by Reuben Thomas <rrt@sc3d.org>.
52421
52422 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52423
52424         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52425         * lib/netdb.in.h: Fix typo.
52426         Reported by Bruno Haible  <bruno@clisp.org>
52427
52428         * lib/netdb.in.h: Include sys/socket.h for platforms without
52429         netdb.h, to get structures like hostent on MinGW.
52430         * modules/netdb (Depends-on): Add sys_socket.
52431
52432 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52433
52434         * modules/netdb, modules/netdb-tests: New file.
52435         * m4/netdb_h.m4: New file.
52436         * lib/netdb.in.h: Add, currently just an empty file pending
52437         definitions.
52438         * tests/test-netdb.c: New file.
52439         * doc/posix-headers/netdb.texi: Mention that we replace it if
52440         needed.
52441         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52442         netdb.
52443
52444 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52445
52446         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52447         with code.
52448
52449 2008-10-13  Bruno Haible  <bruno@clisp.org>
52450
52451         * lib/glthread/cond.c (glthread_cond_wait_func,
52452         glthread_cond_timedwait_func): Add a comment.
52453
52454 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52455
52456         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52457         * tests/test-select.c: Likewise,
52458
52459 2008-10-13  Bruno Haible  <bruno@clisp.org>
52460
52461         * lib/glthread/cond.c (glthread_cond_wait_func,
52462         glthread_cond_timedwait_func): Fix variable name.
52463         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52464
52465 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52466
52467         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52468         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52469         struct sockaddr.sa_len.
52470         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52471
52472 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52473
52474         * build-aux/pmccabe2html: Add css and css_url parameters.
52475
52476 2008-10-12  Bruno Haible  <bruno@clisp.org>
52477
52478         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52479         calling aclx_get.
52480         Reported by Rainer Tammer <tammer@tammer.net>.
52481
52482 2008-10-12  Bruno Haible  <bruno@clisp.org>
52483
52484         Use msvcrt aware primitives for creation/termination of Win32 threads.
52485         * lib/glthread/thread.c: Include <process.h>.
52486         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52487         (wrapper_func): Update signature.
52488         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52489
52490 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52491             Bruno Haible  <bruno@clisp.org>
52492
52493         Provide a Win32 implementation of the 'cond' module.
52494         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52495         * lib/glthread/cond.c (glthread_cond_init_func,
52496         glthread_cond_wait_func, glthread_cond_timedwait_func,
52497         glthread_cond_signal_func, glthread_cond_broadcast_func,
52498         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52499         * modules/cond (Dependencies): Add gettimeofday.
52500
52501 2008-10-11  Bruno Haible  <bruno@clisp.org>
52502
52503         Make sleep work on older versions of mingw.
52504         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52505         only whether it exists.
52506         * doc/posix-functions/sleep.texi: Mention the problem with older
52507         versions of mingw.
52508
52509 2008-10-11  Bruno Haible  <bruno@clisp.org>
52510
52511         New module 'shutdown'.
52512         * modules/shutdown: New file.
52513         * lib/sys_socket.in.h (shutdown): New declaration.
52514         * lib/winsock.c (shutdown): New function.
52515         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52516         GNULIB_SHUTDOWN.
52517         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52518         * doc/posix-functions/shutdown.texi: Document the new module.
52519
52520 2008-10-11  Jim Meyering  <meyering@redhat.com>
52521
52522         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52523
52524 2008-10-11  Bruno Haible  <bruno@clisp.org>
52525
52526         New module 'fclose'.
52527         * modules/fclose: New file.
52528         * lib/stdio.in.h (fclose): New declaration.
52529         * lib/fclose.c: New file.
52530         * m4/fclose.m4: New file.
52531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52532         REPLACE_FCLOSE.
52533         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52534         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52535         REPLACE_FCLOSE.
52536         * modules/close (Depends-on): fclose.
52537         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52538
52539 2008-10-11  Bruno Haible  <bruno@clisp.org>
52540
52541         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52542         set errno and don't call _close.
52543
52544 2008-10-10  Bruno Haible  <bruno@clisp.org>
52545
52546         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52547         ACL, not afterwards. Fixes test failure on Cygwin.
52548
52549 2008-10-09  Ben Pfaff  <blp@gnu.org>
52550
52551         * build-aux/announce-gen: Fix gnulib version related part of usage
52552         message.  Die with a useful error message if no tarballs are
52553         found.
52554
52555 2008-10-10  Jim Meyering  <meyering@redhat.com>
52556
52557         bootstrap: use git's --depth=N option only if it's supported
52558         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52559         recognize the --depth option.  Reported by Pádraig Brady.
52560
52561 2008-10-09  Bruno Haible  <bruno@clisp.org>
52562
52563         New module 'ioctl'.
52564         * modules/ioctl: New file.
52565         * lib/sys_socket.in.h (ioctl): Remove declaration.
52566         * lib/winsock.c: Include <sys/ioctl.h>.
52567         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52568         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52569         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52570         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52571         * doc/posix-functions/ioctl.texi: Mention the new module.
52572
52573 2008-10-09  Bruno Haible  <bruno@clisp.org>
52574
52575         New module 'sys_ioctl'.
52576         * lib/sys_ioctl.in.h: New file.
52577         * m4/sys_ioctl_h.m4: New file.
52578         * modules/sys_ioctl: New file.
52579         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52580
52581 2008-10-09  Bruno Haible  <bruno@clisp.org>
52582
52583         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52584         * lib/winsock.c: Include <stdarg.h>.
52585         (rpl_ioctl): Change to second argument 'int' and then varargs.
52586
52587 2008-10-09  Bruno Haible  <bruno@clisp.org>
52588
52589         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52590         when the sys_socket module is present and the system has <winsock2.h>.
52591
52592 2008-10-09  Bruno Haible  <bruno@clisp.org>
52593
52594         * doc/posix-functions/close.texi: Mention module 'close' instead of
52595         module 'sys_socket'.
52596
52597 2008-10-09  Bruno Haible  <bruno@clisp.org>
52598
52599         * doc/glibc-headers/sys_ioctl.texi: New file.
52600         * doc/gnulib.texi: Include it.
52601
52602 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52603             Bruno Haible  <bruno@clisp.org>
52604
52605         Combine the two replacements of 'close'.
52606         * lib/sys_socket.in.h (close): Define to a reminder to include
52607         <unistd.h>.
52608         (_gl_close_fd_maybe_socket): New declaration.
52609         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52610         * lib/winsock.c (close): Remove undefinition.
52611         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52612         needed for the gnulib module 'close'.
52613         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52614         define to an error symbol or to a warning, if suitable.
52615         * lib/close.c: Include <sys/socket.h>.
52616         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52617         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52618         UNISTD_H_HAVE_WINSOCK2_H.
52619         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52621         UNISTD_H_HAVE_WINSOCK2_H.
52622         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52623         (configure.ac): Set a module indicator.
52624         (Makefile.am): Substitute GNULIB_CLOSE.
52625         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52626         * modules/poll-tests (Depends-on): Add close.
52627         * modules/select-tests (Depends-on): Likewise.
52628
52629 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52630             Bruno Haible  <bruno@clisp.org>
52631
52632         New module 'close'.
52633         * modules/close: New file.
52634         * lib/unistd.in.h (close): Move declaration out of the
52635         FCHDIR_REPLACEMENT scope.
52636         (_gl_unregister_fd): New declaration.
52637         * lib/close.c: New file.
52638         * lib/fchdir.c (rpl_close): Remove function.
52639         * m4/close.m4: New file.
52640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52641         close.
52642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52643         REPLACE_CLOSE.
52644         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52645         REPLACE_CLOSE.
52646         * modules/fchdir (Depends-on): Add close.
52647
52648 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52649             Bruno Haible  <bruno@clisp.org>
52650
52651         * lib/fcntl.in.h (open): Simplify conditionals.
52652         (_gl_register_fd): New declaration.
52653         * lib/fchdir.c (rpl_open): Remove function.
52654         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52655         also.
52656         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52657         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52658         open.
52659
52660 2008-10-09  Jim Meyering  <meyering@redhat.com>
52661
52662         GNUmakefile: use the more name-space-friendly "_version"
52663         * top/GNUmakefile (_dummy): Update.
52664         (_version): Rename from "version".
52665
52666 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52667             Bruno Haible  <bruno@clisp.org>
52668
52669         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52670         rpl_close.
52671         (_gl_register_fd): New function, extracted from rpl_open.
52672         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52673         (rpl_open, rpl_opendir): Use _gl_register_fd.
52674
52675 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52676
52677         Fix organization of 'open' replacement.
52678         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52679         (gl_FUNC_OPEN): Use it.
52680         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52681
52682 2008-10-08  Bruno Haible  <bruno@clisp.org>
52683
52684         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52685
52686 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52687
52688         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52689         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52690         listen).
52691
52692 2008-10-08  Eric Blake  <ebb9@byu.net>
52693
52694         GNUmakefile: add 'make version' target
52695         * top/GNUmakefile (_curr-ver): Split version update rules...
52696         (version): ...into a target.
52697
52698 2008-10-07  Bruno Haible  <bruno@clisp.org>
52699
52700         Use a more portable replacement expression for -0.0L.
52701         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52702         instead of -0.0L. Fix m4 quotation.
52703
52704         * tests/test-signbit.c: Include <float.h>.
52705         (minus_zero): New variable.
52706         (test_signbitl): Use minus_zero instead of -zero.
52707         * modules/signbit-tests (Depends-on): Add float.
52708
52709         * tests/test-ceill.c: Include <float.h>.
52710         (zero): Remove variable.
52711         (minus_zero): New variable.
52712         (main): Use minus_zero instead of -zero.
52713         * modules/ceill-tests (Depends-on): Add float.
52714
52715         * tests/test-floorl.c: Include <float.h>.
52716         (zero): Remove variable.
52717         (minus_zero): New variable.
52718         (main): Use minus_zero instead of -zero.
52719         * modules/floorl-tests (Depends-on): Add float.
52720
52721         * tests/test-roundl.c: Include <float.h>.
52722         (zero): Remove variable.
52723         (minus_zero): New variable.
52724         (main): Use minus_zero instead of -zero.
52725         * modules/roundl-tests (Depends-on): Add float.
52726
52727         * tests/test-truncl.c: Include <float.h>.
52728         (zero): Remove variable.
52729         (minus_zero): New variable.
52730         (main): Use minus_zero instead of -zero.
52731         * modules/truncl-tests (Depends-on): Add float.
52732
52733         * tests/test-frexpl.c (zero): Remove variable.
52734         (minus_zero): New variable.
52735         (main): Use minus_zero instead of -zero.
52736         * modules/frexpl-tests (Depends-on): Add float.
52737
52738         * tests/test-isnan.c (zerol): Remove variable.
52739         (minus_zerol): New variable.
52740         (test_long_double): Use minus_zerol instead of -zerol.
52741         * modules/isnan-tests (Depends-on): Add float.
52742
52743         * tests/test-isnanl.h (zero): Remove variable.
52744         (minus_zero): New variable.
52745         (main): Use minus_zero instead of -zero.
52746         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52747         * modules/isnanl-tests (Depends-on): Add float.
52748
52749         * tests/test-ldexpl.c (zero): Remove variable.
52750         (minus_zero): New variable.
52751         (main): Use minus_zero instead of -zero.
52752         * modules/ldexpl-tests (Depends-on): Add float.
52753
52754         * tests/test-snprintf-posix.h (zerol): Remove variable.
52755         (minus_zerol): New variable.
52756         (test_function): Use minus_zerol instead of -zerol.
52757         * modules/snprintf-posix-tests (Depends-on): Add float.
52758         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52759
52760         * tests/test-sprintf-posix.h (zerol): Remove variable.
52761         (minus_zerol): New variable.
52762         (test_function): Use minus_zerol instead of -zerol.
52763         * modules/sprintf-posix-tests (Depends-on): Add float.
52764         * modules/vsprintf-posix-tests (Depends-on): Add float.
52765
52766         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52767         (minus_zerol): New variable.
52768         (test_function): Use minus_zerol instead of -zerol.
52769         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52770
52771         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52772         (minus_zerol): New variable.
52773         (test_function): Use minus_zerol instead of -zerol.
52774         * modules/vasprintf-posix-tests (Depends-on): Add float.
52775
52776 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52777
52778         * MODULES.html.sh (Support for building documentation): Mention
52779         pmccabe2html.  Sort entries.
52780
52781         Add pmccabe2html module, from gnupdf.
52782         * build-aux/pmccabe.css: New file.
52783         * build-aux/pmccabe2html: New file.
52784         * m4/pmccabe2html.m4: New file.
52785         * modules/pmccabe2html: New file.
52786
52787 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52788
52789         flock: new module
52790         * MODULES.html.sh: Add to list of modules.
52791         * lib/flock.c: flock implementation for Windows and Unix systems
52792         which have fcntl.
52793         * doc/glibc-functions/flock.texi: Update documentation.
52794         * lib/sys_file.in.h: <sys/file.h> header file.
52795         * m4/flock.m4: M4 macros.
52796         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52797         * modules/flock: flock module.
52798         * modules/flock-tests: flock tests module.
52799         * modules/sys_file: sys/file.h module.
52800         * tests/test-flock.c: test suite for flock.
52801
52802 2008-10-06  Jim Meyering  <meyering@redhat.com>
52803
52804         bootstrap: check for LT_INIT more portably still ;-)
52805         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52806         Spotted by Bruno Haible.
52807
52808 2008-10-06  Eric Blake  <ebb9@byu.net>
52809
52810         test-signbit: avoid tripping Irix cc bug on -0.0L
52811         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52812         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52813         entire testsuite consistent and avoids an Irix 6.2 bug.
52814
52815 2008-10-05  Bruno Haible  <bruno@clisp.org>
52816             Jim Meyering  <jim@meyering.net>
52817
52818         Add an option for ignoring EPIPE during close_stdout.
52819         * lib/closeout.h: Include <stdbool.h>.
52820         (close_stdout_set_ignore_EPIPE): New declaration.
52821         * lib/closeout.c: Include <stdbool.h>.
52822         (ignore_EPIPE): New variable.
52823         (close_stdout_set_ignore_EPIPE): New function.
52824         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52825         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52826         failure.
52827         * modules/closeout (Depends-on): Add stdbool.
52828
52829 2008-10-05  Bruno Haible  <bruno@clisp.org>
52830
52831         * modules/accept: New file.
52832         * modules/bind: New file.
52833         * modules/connect: New file.
52834         * modules/getpeername: New file.
52835         * modules/getsockname: New file.
52836         * modules/getsockopt: New file.
52837         * modules/listen: New file.
52838         * modules/recv: New file.
52839         * modules/recvfrom: New file.
52840         * modules/send: New file.
52841         * modules/sendto: New file.
52842         * modules/setsockopt: New file.
52843         * modules/socket: New file.
52844         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52845         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52846         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52847         the particular module is requested. Add a link warning when the
52848         particular module is not requested.
52849         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52850         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52851         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52852         the particular module is requested.
52853         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52854         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52855         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52856         * modules/sys_socket (Depends-on): Add link-warning.
52857         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52858         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52859         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52860         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52861         GL_LINK_WARNING.
52862         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52863         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52864         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52865         * doc/posix-functions/getpeername.texi: Mention the new module
52866         'getpeername'.
52867         * doc/posix-functions/getsockname.texi: Mention the new module
52868         'getsockname'.
52869         * doc/posix-functions/getsockopt.texi: Mention the new module
52870         'getsockopt'.
52871         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52872         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52873         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52874         * doc/posix-functions/send.texi: Mention the new module 'send'.
52875         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52876         * doc/posix-functions/setsockopt.texi: Mention the new module
52877         'setsockopt'.
52878         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52879         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52880         listen, connect, accept.
52881         * modules/select-tests (Depends-on): Likewise.
52882
52883 2008-10-05  Bruno Haible  <bruno@clisp.org>
52884
52885         * lib/winsock.c (strerror): Remove unused #undef.
52886         (rpl_close): Remove unused local variable.
52887
52888         * modules/sys_socket (Depends-on); Add errno.
52889
52890 2008-10-05  Bruno Haible  <bruno@clisp.org>
52891
52892         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52893         (select): Add a link warning when the 'select' module is not used.
52894         * modules/sys_select (Depends-on): Add link-warning.
52895         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52896         Suggested by Paolo Bonzini.
52897
52898 2008-10-05  Jim Meyering  <meyering@redhat.com>
52899
52900         bootstrap: check for LT_INIT more portably
52901         * build-aux/bootstrap: Avoid using grep -E, since it's not
52902         portable enough.  Suggestion from Bruno Haible.
52903
52904 2008-10-05  Bruno Haible  <bruno@clisp.org>
52905
52906         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52907         as being fixed by gnulib.
52908
52909 2008-10-05  Bruno Haible  <bruno@clisp.org>
52910
52911         * modules/select-tests: New file, mostly copied from
52912         modules/sys_select-tests.
52913         * tests/test-select.c: New file, mostly copied from
52914         tests/test-sys_select.c.
52915         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52916         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52917         (Makefile.am): Remove test_sys_select_LDADD.
52918
52919         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52920         to an undefined symbol, for an error message.
52921         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52922         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52923         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52924         winsock-select.c here.
52925         * modules/sys_select (Files): Remove lib/winsock-select.c.
52926         (Depends-on): Remove alloca.
52927         (Makefile.am): Substitute GNULIB_SELECT.
52928         * modules/select: New file.
52929         * doc/posix-functions/select.texi: Update.
52930
52931 2008-10-05  Bruno Haible  <bruno@clisp.org>
52932
52933         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52934         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52935         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52936         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52937         getdtablesize.
52938         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52939         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52940
52941 2008-10-05  Bruno Haible  <bruno@clisp.org>
52942
52943         * modules/getdtablesize-tests: New file.
52944         * tests/test-getdtablesize.c: New file.
52945
52946         New module 'getdtablesize'.
52947         * lib/unistd.in.h (getdtablesize): New declaration.
52948         * lib/getdtablesize.c: New file.
52949         * m4/getdtablesize.m4: New file.
52950         * modules/getdtablesize: New file.
52951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52952         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52953         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52954         HAVE_GETDTABLESIZE.
52955         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52956
52957 2008-10-05  Bruno Haible  <bruno@clisp.org>
52958
52959         * modules/sched (Makefile.am): Fix typo.
52960         Reported by Simon Josefsson.
52961
52962 2008-10-05  Jim Meyering  <meyering@redhat.com>
52963
52964         bootstrap: check for LT_INIT, too
52965         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52966         are deprecated.  Suggestion from Ralf Wildenhues.
52967
52968 2008-10-05  Bruno Haible  <bruno@clisp.org>
52969
52970         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52971         overriding them by ours.
52972         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52973
52974 2008-10-05  Jim Meyering  <meyering@redhat.com>
52975
52976         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52977         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52978         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52979
52980 2008-10-04  Bruno Haible  <bruno@clisp.org>
52981
52982         * modules/dup2 (License): Change to LGPLv2+.
52983         * modules/sleep (License): Likewise.
52984         * modules/perror (License): Likewise.
52985         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52986         Blake.
52987         * modules/signal (License): Likewise.
52988         * modules/sigprocmask (License): Likewise.
52989         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52990         Meyering.
52991
52992 2008-10-04  Bruno Haible  <bruno@clisp.org>
52993
52994         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52995         Reported by Rainer Tammer <tammer@tammer.net>.
52996
52997 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52998             Bruno Haible  <bruno@clisp.org>
52999
53000         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
53001         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
53002         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
53003
53004 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
53005
53006         filevercmp: new module
53007         * lib/filevercmp.h: New function filevercmp comparing version strings.
53008         * lib/filevercmp.c: Implementation of filevercmp function.
53009         * modules/filevercmp: Module metadata.
53010         * tests/test-filevercmp.c: Unit test for new module.
53011         * modules/filevercmp-tests: Unit test metadata.
53012         * MODULES.html.sh: Add filevercmp module.
53013
53014 2008-10-03  Bruno Haible  <bruno@clisp.org>
53015
53016         * lib/c-ctype.h: Add comment.
53017         Reported by Jim Meyering.
53018
53019 2008-10-02  Bruno Haible  <bruno@clisp.org>
53020
53021         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53022
53023 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53024
53025         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53026         name of bootstrap.conf accordingly.
53027
53028 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53029
53030         * build-aux/bootstrap: Install git-merge-changelog configuration
53031         items into .gitconfig if needed.
53032
53033 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53034
53035         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53036         git repository, and initialize/update it accordingly.
53037
53038 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53039
53040         * modules/fsync-tests: New file.
53041         * tests/test-fsync.c: New file.
53042
53043         New module 'fsync'.
53044         * lib/fsync.c: New file.
53045         * m4/fsync.m4: New file.
53046         * modules/fsync: New file.
53047         * lib/unistd.in.h (fsync): New declaration.
53048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53049         GNULIB_FSYNC and HAVE_FSYNC.
53050         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53051         * MODULES.html.sh (posix_functions): Add fsync.
53052         * doc/posix-functions/fsync.texi: Mention the new module.
53053
53054 2008-10-02  Jim Meyering  <meyering@redhat.com>
53055
53056         fts.c: sync with similar code from coreutils' remove.c
53057         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53058         Guard also with "#if defined __linux__", since for now at least,
53059         this code is Linux-kernel-specific.
53060
53061 2008-10-02  Jim Meyering  <meyering@redhat.com>
53062
53063         fts: bug fixes
53064         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53065         Include <sys/vfs.h>, not <sys/statfs.h>.
53066
53067         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53068         Include <sys/vfs.h>, not <sys/statfs.h>.
53069
53070 2008-10-01  Bruno Haible  <bruno@clisp.org>
53071
53072         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53073         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53074         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53075         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53076         * doc/posix-functions/posix_spawnp.texi: Likewise.
53077         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53078         whether posix_spawn actually works.
53079         * m4/pipe.m4 (gl_PIPE): Likewise.
53080         * modules/execute (Files): Add m4/posix_spawn.m4.
53081         * modules/pipe (Files): Add m4/posix_spawn.m4.
53082         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53083
53084 2008-10-01  Jim Meyering  <meyering@redhat.com>
53085
53086         remove trailing spaces
53087         * NEWS: Likewise.
53088         * lib/poll.c (poll): Likewise.
53089         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53090         * lib/winsock.c (rpl_close): Likewise.
53091         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53092         * modules/yield: Likewise.
53093         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53094         * tests/test-sys_select.c (connect_to_socket): Likewise.
53095
53096         fts.c: adjust a new interface to be more generally useful
53097         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53098         (fts_build): Adjust caller.
53099
53100 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53101
53102         * modules/cond-tests: New file.
53103         * tests/test-cond.c: New file.
53104
53105 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53106             Bruno Haible  <bruno@clisp.org>
53107
53108         * modules/cond (Dependencies): Add errno, time.
53109         * lib/glthread/cond.h: Include <time.h>.
53110         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53111         across platforms.
53112
53113 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53114             Bruno Haible  <bruno@clisp.org>
53115
53116         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53117
53118 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53119             Bruno Haible  <bruno@clisp.org>
53120
53121         * modules/tls-tests (Depends-on): Add thread, yield.
53122         (configure.ac): Remove all checks.
53123         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53124         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53125         gl_thread_self): Remove definitions. Include glthread/thread.h and
53126         glthread/yield.h instead.
53127         (test_tls): Pass an additional NULL argument to gl_thread_join.
53128
53129 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53130             Bruno Haible  <bruno@clisp.org>
53131
53132         * modules/lock-tests (Depends-on): Add thread, yield.
53133         (configure.ac): Remove all checks.
53134         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53135         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53136         gl_thread_self): Remove definitions. Include glthread/thread.h and
53137         glthread/yield.h instead.
53138         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53139         additional NULL argument to gl_thread_join.
53140
53141 2008-09-30  Bruno Haible  <bruno@clisp.org>
53142
53143         Fix the Win32 implementation of the 'thread' module.
53144         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53145         pointer type.
53146         (gl_thread_self): Invoke gl_thread_self_func.
53147         (gl_thread_self_func): New declaration.
53148         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53149         (do_init_self_key, init_self_key): New functions.
53150         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53151         Remove some fields.
53152         (running_threads, running_lock): Remove variables.
53153         (get_current_thread_handle): New function.
53154         (gl_thread_self_func, wrapper_func, glthread_create_func,
53155         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53156         simplified.
53157
53158 2008-09-30  Bruno Haible  <bruno@clisp.org>
53159
53160         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53161         files.
53162
53163 2008-09-30  Jim Meyering  <meyering@redhat.com>
53164
53165         fts.m4: correct the test for statfs.f_type
53166         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53167         when checking for statfs.f_type.
53168
53169 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53170
53171         tests: avoid some compiler warnings
53172         * tests/test-memchr.c (main): Pass NULL indirectly.
53173         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53174
53175 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
53176
53177         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53178         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53179         exactly specified dayshifts.
53180         (dayshift): New rule.
53181         (rel): Add dayshift.
53182         (relative_time_table) [tomorrow, yesterday, today, now]:
53183         Use tDAY_SHIFT in place of tDAY_UNIT.
53184         * tests/test-getdate.c: Add tests for now-disallowed countable
53185         dayshifts, e.g., "4 yesterday ago".
53186
53187 2008-09-29  Bruno Haible  <bruno@clisp.org>
53188
53189         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53190         * tests/test-posix_spawn1.in.sh: Renamed from
53191         tests/test-posix_spawn.in.sh.
53192         * tests/test-posix_spawn2.c: New file.
53193         * tests/test-posix_spawn2.in.sh: New file.
53194         * modules/posix_spawnp-tests (Files): Update.
53195         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53196
53197 2008-09-29  Bruno Haible  <bruno@clisp.org>
53198
53199         Propagate effects of putenv/setenv/unsetenv to child processes.
53200         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53201         * lib/pipe.c (create_pipe): Likewise.
53202
53203 2008-09-29  Bruno Haible  <bruno@clisp.org>
53204
53205         Enable use of shell scripts as executables in mingw.
53206         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53207         run the program as a shell script.
53208         * lib/pipe.c (create_pipe): Likewise.
53209         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53210         resulting array.
53211
53212 2008-09-29  Eric Blake  <ebb9@byu.net>
53213
53214         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53215
53216 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53217
53218         * doc/posix-functions/accept.texi: Update mingw problems.
53219         * doc/posix-functions/bind.texi: Update mingw problems.
53220         * doc/posix-functions/close.texi: Update mingw problems.
53221         * doc/posix-functions/connect.texi: Update mingw problems.
53222         * doc/posix-functions/getpeername.texi: Update mingw problems.
53223         * doc/posix-functions/getsockname.texi: Update mingw problems.
53224         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53225         * doc/posix-functions/ioctl.texi: Update mingw problems.
53226         * doc/posix-functions/listen.texi: Update mingw problems.
53227         * doc/posix-functions/recv.texi: Update mingw problems.
53228         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53229         * doc/posix-functions/select.texi: Update mingw problems.
53230         * doc/posix-functions/send.texi: Update mingw problems.
53231         * doc/posix-functions/sendto.texi: Update mingw problems.
53232         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53233         * doc/posix-functions/socket.texi: Update mingw problems.
53234
53235 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53236             Bruno Haible  <bruno@clisp.org>
53237
53238         * lib/sys_select.in.h: Include sys/time.h.
53239         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53240         * modules/sys_select: Depend on sys_time.
53241         * tests/test-sys_select.c: Test that sys/select.h defines struct
53242         timeval fully.
53243
53244 2008-09-29  Bruno Haible  <bruno@clisp.org>
53245
53246         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53247         * lib/sys_select.in.h: Likewise.
53248
53249 2008-09-29  Bruno Haible  <bruno@clisp.org>
53250
53251         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53252
53253 2008-09-29  Bruno Haible  <bruno@clisp.org>
53254
53255         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53256         Set LIBSOCKET instead of augmenting LIBS.
53257         * modules/sockets (Link): New section.
53258         * modules/sockets-tests (test_sockets_LDADD): New variable.
53259         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53260         * modules/poll-tests (test_poll_LDADD): New variable.
53261         * NEWS: Document the change.
53262
53263 2008-09-29  Bruno Haible  <bruno@clisp.org>
53264
53265         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53266         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53267         ARPA_INET_H directly.
53268         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53269
53270 2008-09-28  Bruno Haible  <bruno@clisp.org>
53271
53272         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53273         from gl_HEADER_SYS_SOCKET.
53274         (gl_HEADER_SYS_SOCKET): Invoke it.
53275         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53276
53277 2008-09-28  Bruno Haible  <bruno@clisp.org>
53278
53279         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53280         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53281         Needed on OSF/1 4.0.
53282
53283 2008-09-28  Bruno Haible  <bruno@clisp.org>
53284
53285         Override open more carefully.
53286         * lib/open.c (orig_open): New function.
53287         (rpl_open): Use orig_open instead of open.
53288         * lib/fcntl.in.h: Add special invocation convention.
53289         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53290         (gl_FUNC_OPEN): Invoke it.
53291
53292         Override freopen more carefully.
53293         * lib/freopen.c (orig_freopen): New function.
53294         (rpl_freopen): Use orig_freopen instead of freopen.
53295         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53296         (gl_FUNC_FREOPEN): Invoke it.
53297
53298         Override fopen more carefully.
53299         * lib/fopen.c (orig_fopen): New function.
53300         (rpl_fopen): Use orig_fopen instead of fopen.
53301         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53302         (gl_FUNC_FOPEN): Invoke it.
53303         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53304
53305 2008-09-28  Bruno Haible  <bruno@clisp.org>
53306
53307         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53308         SIGPIPE.
53309
53310 2008-09-28  Bruno Haible  <bruno@clisp.org>
53311
53312         * tests/test-sigaction.c (handler, main): Disable the check whether
53313         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53314         glibc systems with LinuxThreads.
53315
53316 2008-09-28  Bruno Haible  <bruno@clisp.org>
53317
53318         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53319
53320         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53321         with AIX xlc.
53322         * lib/fcntl.in.h (open): Likewise.
53323         Reported by Rainer Tammer <tammer@tammer.net>.
53324
53325 2008-09-28  Bruno Haible  <bruno@clisp.org>
53326
53327         * modules/posix_spawnp-tests: New file.
53328         * tests/test-posix_spawn.c: New file.
53329         * tests/test-posix_spawn.in.sh: New file.
53330
53331         New module 'posix_spawnp'.
53332         * modules/posix_spawnp: New file.
53333         * lib/spawnp.c: New file, from GNU libc with modifications.
53334         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53335
53336         New module 'posix_spawn'.
53337         * modules/posix_spawn: New file.
53338         * lib/spawn.c: New file, from GNU libc with modifications.
53339         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53340
53341         New module 'posix_spawnattr_destroy'.
53342         * modules/posix_spawnattr_destroy: New file.
53343         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53344         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53345         module.
53346
53347         New module 'posix_spawnattr_setsigmask'.
53348         * modules/posix_spawnattr_setsigmask: New file.
53349         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53350         modifications.
53351         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53352         new module.
53353
53354         New module 'posix_spawnattr_getsigmask'.
53355         * modules/posix_spawnattr_getsigmask: New file.
53356         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53357         modifications.
53358         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53359         new module.
53360
53361         New module 'posix_spawnattr_setsigdefault'.
53362         * modules/posix_spawnattr_setsigdefault: New file.
53363         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53364         modifications.
53365         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53366         new module.
53367
53368         New module 'posix_spawnattr_getsigdefault'.
53369         * modules/posix_spawnattr_getsigdefault: New file.
53370         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53371         modifications.
53372         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53373         new module.
53374
53375         New module 'posix_spawnattr_setschedpolicy'.
53376         * modules/posix_spawnattr_setschedpolicy: New file.
53377         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53378         modifications.
53379         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53380         new module.
53381
53382         New module 'posix_spawnattr_getschedpolicy'.
53383         * modules/posix_spawnattr_getschedpolicy: New file.
53384         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53385         modifications.
53386         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53387         new module.
53388
53389         New module 'posix_spawnattr_setschedparam'.
53390         * modules/posix_spawnattr_setschedparam: New file.
53391         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53392         modifications.
53393         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53394         new module.
53395
53396         New module 'posix_spawnattr_getschedparam'.
53397         * modules/posix_spawnattr_getschedparam: New file.
53398         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53399         modifications.
53400         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53401         new module.
53402
53403         New module 'posix_spawnattr_setpgroup'.
53404         * modules/posix_spawnattr_setpgroup: New file.
53405         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53406         modifications.
53407         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53408         module.
53409
53410         New module 'posix_spawnattr_getpgroup'.
53411         * modules/posix_spawnattr_getpgroup: New file.
53412         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53413         modifications.
53414         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53415         module.
53416
53417         New module 'posix_spawnattr_setflags'.
53418         * modules/posix_spawnattr_setflags: New file.
53419         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53420         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53421         module.
53422
53423         New module 'posix_spawnattr_getflags'.
53424         * modules/posix_spawnattr_getflags: New file.
53425         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53426         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53427         module.
53428
53429         New module 'posix_spawnattr_init'.
53430         * modules/posix_spawnattr_init: New file.
53431         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53432         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53433         module.
53434
53435         New module 'posix_spawn_file_actions_destroy'.
53436         * modules/posix_spawn_file_actions_destroy: New file.
53437         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53438         modifications.
53439         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53440         the new module.
53441
53442         New module 'posix_spawn_file_actions_addopen'.
53443         * modules/posix_spawn_file_actions_addopen: New file.
53444         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53445         modifications.
53446         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53447         the new module.
53448
53449         New module 'posix_spawn_file_actions_adddup2'.
53450         * modules/posix_spawn_file_actions_adddup2: New file.
53451         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53452         modifications.
53453         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53454         the new module.
53455
53456         New module 'posix_spawn_file_actions_addclose'.
53457         * modules/posix_spawn_file_actions_addclose: New file.
53458         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53459         modifications.
53460         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53461         the new module.
53462
53463         New module 'posix_spawn_file_actions_init'.
53464         * modules/posix_spawn_file_actions_init: New file.
53465         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53466         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53467         new module.
53468
53469         New module 'posix_spawn-internal'.
53470         * modules/posix_spawn-internal: New file.
53471         * lib/spawn_int.h: New file, from GNU libc with modifications.
53472         * lib/spawni.c: New file, from GNU libc with modifications.
53473         * m4/posix_spawn.m4: New file.
53474
53475         New module 'spawn'.
53476         * modules/spawn: New file.
53477         * lib/spawn.in.h: New file, from GNU libc with modifications.
53478         * m4/spawn_h.m4: New file.
53479         * doc/posix-headers/spawn.texi: Mention the new module.
53480
53481 2008-09-28  Bruno Haible  <bruno@clisp.org>
53482
53483         * modules/sched-tests: New file.
53484         * tests/test-sched.c: New file.
53485
53486         New module 'sched'.
53487         * modules/sched: New file.
53488         * lib/sched.in.h: New file.
53489         * m4/sched_h.m4: New file.
53490         * doc/posix-headers/sched.texi: Mention the new module.
53491
53492 2008-09-27  Eric Blake  <ebb9@byu.net>
53493
53494         Fix previous patch, and tweak references to $0.
53495         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53496         (func_version, func_gnulib_dir): Don't call this program
53497         gnulib-tool.
53498         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53499         with using $0 in function.
53500         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53501         (func_fatal_error): Reuse the name the user invoked us with.
53502
53503 2008-09-27  Bruno Haible  <bruno@clisp.org>
53504
53505         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53506         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53507         (gl_ICONV_H): Not here.
53508         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53509         instead of assigning ICONV_H directly.
53510
53511         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53513         WCHAR_H directly.
53514
53515 2008-09-27  Bruno Haible  <bruno@clisp.org>
53516
53517         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53518         * modules/arpa_inet (Depends-on): Add link-warning.
53519         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53520         * modules/unistd (Makefile.am): Likewise.
53521
53522 2008-09-26  Bruno Haible  <bruno@clisp.org>
53523
53524         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53525         variables.
53526         (func_version): Essentially copied from gnulib-tool.
53527         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53528         func_readlink): Copied from gnulib-tool.
53529
53530 2008-09-26  Bruno Haible  <bruno@clisp.org>
53531
53532         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53533         invoking git-version-gen.
53534
53535 2008-09-26  Bruno Haible  <bruno@clisp.org>
53536
53537         * posix-modules: Update to directory names changed on 2008-01-19.
53538         Remove commas in output before splitting into words. No more need to
53539         avoid 'ftruncate' since 2007-02-19.
53540
53541 2008-09-26  Bruno Haible  <bruno@clisp.org>
53542
53543         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53544
53545 2008-09-26  Bruno Haible  <bruno@clisp.org>
53546
53547         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53548         * modules/fwriteerror (Depends-on): Add errno.
53549
53550 2008-09-26  Bruno Haible  <bruno@clisp.org>
53551
53552         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53553         * tests/test-vc-list-files-cvs.sh: Likewise.
53554
53555 2008-09-26  Bruno Haible  <bruno@clisp.org>
53556
53557         * doc/posix-headers/sys_resource.texi: Reorder items.
53558
53559 2008-09-26  Jim Meyering  <meyering@redhat.com>
53560
53561         fts: tweak inode comparison function
53562         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53563         inode numbers, as documented.
53564
53565         fts: sort dirent entries on inode number before traversing
53566         This avoids a quadratic, seek-related performance penalty when
53567         operating on a directory containing many entries (measurable at 10k;
53568         3.5 hours at 2 million entries with a cold cache) on certain types
53569         of file systems, including ext3 and ext4, but not tmpfs.
53570         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53571         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53572         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53573         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53574         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53575         (fts_build): Set the stat.st_ino member from D_INO.
53576         If it is likely to be useful, sort dirent entries on inode number.
53577
53578         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53579         and the struct statfs.f_type member.
53580         * modules/fts (Depends-on): Add d-ino.
53581
53582 2008-09-26  Bruno Haible  <bruno@clisp.org>
53583
53584         * modules/sigpipe-die (Depends-on): Add sigpipe.
53585
53586         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53587         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53588         and GNULIB_STDIO_H_SIGPIPE are set.
53589         * lib/stdio-write.c: New file.
53590         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53591         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53592         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53593         REPLACE_STDIO_WRITE_FUNCS.
53594         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53595         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53596         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53597         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53598         * modules/stdio (Files): Add lib/stdio-write.c.
53599         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53600         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53601         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53602         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53603         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53604         REPLACE_FPRINTF_POSIX.
53605         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53606         REPLACE_PRINTF_POSIX.
53607         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53608         REPLACE_VFPRINTF_POSIX.
53609         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53610         REPLACE_VPRINTF_POSIX.
53611         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53612         SIGPIPE issue.
53613         * doc/posix-functions/fputc.texi: Likewise.
53614         * doc/posix-functions/fputs.texi: Likewise.
53615         * doc/posix-functions/fwrite.texi: Likewise.
53616         * doc/posix-functions/printf.texi: Likewise.
53617         * doc/posix-functions/putc.texi: Likewise.
53618         * doc/posix-functions/putchar.texi: Likewise.
53619         * doc/posix-functions/puts.texi: Likewise.
53620         * doc/posix-functions/vfprintf.texi: Likewise.
53621         * doc/posix-functions/vprintf.texi: Likewise.
53622
53623         * modules/safe-write (Depends-on): Add write.
53624
53625         * modules/sigpipe-tests: New file.
53626         * tests/test-sigpipe.c: New file.
53627         * tests/test-sigpipe.sh: New file.
53628
53629         * modules/write: New file.
53630         * lib/unistd.in.h: Include <sys/types.h>.
53631         (write): New declaration.
53632         * lib/write.c: New file.
53633         * m4/write.m4: New file.
53634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53635         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53636         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53637         GNULIB_WRITE, REPLACE_WRITE.
53638         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53639         and the SIGPIPE issue.
53640
53641         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53642         (raise): New declaration.
53643         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53644         (ext_signal): New function.
53645         (rpl_raise): New function.
53646         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53647         GNULIB_SIGNAL_H_SIGPIPE.
53648         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53649         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53650
53651         * modules/sigpipe: New file.
53652         * m4/sigpipe.m4: New file.
53653
53654 2008-09-25  Derek Price  <derek@ximbiot.com>
53655             Bruno Haible  <bruno@clisp.org>
53656
53657         * gnulib-tool (func_import): Report all license incompatibilities, not
53658         just the first one.
53659
53660 2008-09-25  Bruno Haible  <bruno@clisp.org>
53661
53662         * gnulib-tool (func_import): When computing the edits, consider not
53663         only the Makefile.ams that exist but also those that will be generated.
53664
53665 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53666
53667         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53668         fixes gnulib-tool --test warning about duplicate dependency.
53669
53670 2008-09-25  Bruno Haible  <bruno@clisp.org>
53671
53672         * gnulib-tool: Don't ask the user to perform edits in the generated
53673         Makefile.ams.
53674         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53675         apply to the Makefile.am being generated.
53676         (func_emit_tests_Makefile_am): Execute edits that apply to the
53677         Makefile.am being generated.
53678         (func_import): Setup list of Makefile.am edits before emitting the
53679         Makefile.ams, not at the end.
53680         (func_create_testdir): Update.
53681         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53682
53683 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53684
53685         * gnulib-tool (func_import): Store the --tests-base option in the
53686         comment in gnulib-cache.m4.
53687
53688 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53689
53690         * NEWS: Document increased portability that sys_select now provides.
53691
53692         * lib/sys_select.in.h: Install select wrapper.
53693         * lib/sys_socket.in.h: Use more descriptive name when there is no
53694         select wrapper.
53695         * lib/winsock-select.c: New.
53696         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53697         Require gl_HEADER_SYS_SOCKET.
53698         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53699         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53700         * tests/test-sys_select.c: Add functional tests.
53701
53702 2008-09-24  Eric Blake  <ebb9@byu.net>
53703
53704         open, fopen: close fd leak in last patch
53705         * lib/open.c (rpl_open): Close fd before returning error.
53706         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53707         * doc/posix-functions/open.texi (open): Document that Irix also
53708         has the bug.
53709         * doc/posix-functions/fopen.texi (fopen): Likewise.
53710         Reported by Paolo Bonzini.
53711
53712 2008-09-24  Bruno Haible  <bruno@clisp.org>
53713
53714         Ensure that a filename ending in a slash cannot be used to access a
53715         non-directory.
53716         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53717         to check whether it's really a directory.
53718         * lib/fopen.c: Include fcntl.h, unistd.h.
53719         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53720         and fdopen().
53721         * modules/fopen (Depends-on): Add unistd.
53722         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53723         * tests/test-fopen.c (main): Likewise.
53724         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53725         * doc/posix-functions/fopen.texi: Likewise.
53726         Reported by Eric Blake.
53727
53728 2008-09-23  Eric Blake  <ebb9@byu.net>
53729
53730         c-stack: avoid compiler optimizations when provoking overflow
53731         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53732         recursion harder to optimize, to ensure a stack overflow occurs.
53733         * tests/test-c-stack.c (recurse): Likewise.
53734         Borrowed from libsigsegv.
53735
53736         c-stack: work around Irix sigaltstack bug
53737         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53738         whether sigaltstack uses wrong end of stack_t (copied in part from
53739         libsigsegv).
53740         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53741         Irix bug, without requiring an over-allocation.
53742         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53743         bug.
53744
53745         fopen: document mingw bug on directories
53746         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53747         not allowing a stream visiting a directory, even though reading
53748         from such a stream is not portable.
53749
53750 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53751
53752         * lib/poll.c: Rewrite.
53753         * modules/poll: Depend on alloca.
53754
53755 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53756
53757         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53758         instead define prototypes for a full set of wrappers.  Ensure
53759         that Cygwin does not use the compatibility code, which is only
53760         for MinGW.
53761         * lib/winsock.c: New.
53762         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53763         * modules/sys_socket: Add lib/winsock.c.
53764
53765         * modules/poll-tests: Add errno and perror.
53766         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53767
53768 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53769
53770         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53771
53772 2008-09-23  Bruno Haible  <bruno@clisp.org>
53773
53774         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53775         * doc/glibc-functions/*: Likewise.
53776
53777 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53778
53779         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53780         success.
53781
53782 2008-09-22  Eric Blake  <ebb9@byu.net>
53783             Bruno Haible  <bruno@clisp.org>
53784
53785         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53786         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53787         supply %A but mishandle pseudo-NaN.
53788         Reported by Simon Josefsson.
53789
53790 2008-09-21  Bruno Haible  <bruno@clisp.org>
53791
53792         * tests/test-lock.c (main): Tweak skip message.
53793         * tests/test-tls.c (main): Likewise.
53794
53795 2008-09-21  Bruno Haible  <bruno@clisp.org>
53796
53797         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53798         whether 'struct sigaction' has sa_sigaction here...
53799         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53800         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53801
53802 2008-09-21  Bruno Haible  <bruno@clisp.org>
53803
53804         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53805         section.
53806         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53807         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53808         the new section.
53809         (Support for obsolete systems lacking POSIX:2001): New section.
53810         (String handling <string.h>): Move strdup to the new section.
53811         Suggested by Simon Josefsson and Paolo Bonzini.
53812
53813 2008-09-21  Bruno Haible  <bruno@clisp.org>
53814
53815         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53816         exponents in %e and %g results on 'long double'. Needed for mingw's
53817         improved *printf functions.
53818         * tests/test-vasprintf-posix.c (test_function): Likewise.
53819         * tests/test-snprintf-posix.h (test_function): Likewise.
53820         * tests/test-sprintf-posix.h (test_function): Likewise.
53821         Reported by Eric Blake.
53822
53823 2008-09-21  Bruno Haible  <bruno@clisp.org>
53824
53825         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53826         * tests/test-sprintf-posix.h (test_function): Likewise.
53827
53828 2008-09-21  Bruno Haible  <bruno@clisp.org>
53829
53830         * modules/getpass (Depends-on): Add strdup-posix.
53831
53832         New module 'strdup-posix'.
53833         * modules/strdup-posix: New file.
53834         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53835         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53836         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53837         REPLACE_STRDUP.
53838         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53839         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53840         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53841         strdup-posix.
53842
53843         * modules/strdup (Depends-on): Remove malloc-posix.
53844
53845 2008-09-20  Bruno Haible  <bruno@clisp.org>
53846
53847         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53848         Wildenhues.
53849
53850 2008-09-20  Bruno Haible  <bruno@clisp.org>
53851
53852         Ensure that wint_t gets defined on IRIX 5.3.
53853         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53854         * lib/wctype.in.h (wint_t): Likewise.
53855         (__wctype_wint_t): Remove type.
53856         (isw*): Use wint_t instead of __wctype_wint_t.
53857         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53858         * modules/wchar (Files): Add m4/wint_t.m4.
53859         (Makefile.am): Substitute HAVE_WINT_T.
53860         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53861         * tests/test-wctype.c: Check that wint_t is defined.
53862         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53863         * doc/posix-headers/wctype.texi: Likewise.
53864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53865
53866 2008-09-18  Bruno Haible  <bruno@clisp.org>
53867
53868         * gnulib-tool (func_exit): Update comment.
53869
53870 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53871
53872         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53873         assumes strdup exists and does not depend on strdup to return
53874         ENOMEM on out of memory conditions.
53875
53876 2008-09-18  Bruno Haible  <bruno@clisp.org>
53877
53878         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53879         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53880         digits for the exponent.
53881
53882 2008-09-18  Jim Meyering  <meyering@redhat.com>
53883             Bruno Haible  <bruno@clisp.org>
53884
53885         * lib/vasnprintf.c (decimal_point_char): Define also if
53886         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53887
53888 2008-09-16  Bruno Haible  <bruno@clisp.org>
53889         and Eric Blake  <ebb9@byu.net>
53890
53891         vasnprintf: support Irix 5.3
53892         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53893         that mishandle long double infinity.
53894         Reported by Tom G. Christensen.
53895
53896 2008-09-16  Bruno Haible  <bruno@clisp.org>
53897
53898         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53899         Solaris 9.
53900         * doc/glibc-functions/alphasort.texi: Likewise.
53901         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53902
53903 2008-09-16  Jim Meyering  <meyering@redhat.com>
53904
53905         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53906         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53907         a umask modification leak out of a subshell.  Otherwise, the
53908         opensolaris /bin/sh would be accepted and thus cause unwarranted
53909         failures in the coreutils test suite.
53910
53911 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53912
53913         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53914         to succeed.
53915
53916 2008-09-16  Jim Meyering  <meyering@redhat.com>
53917
53918         avoid spurious test failure when library is built without ACL support
53919         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53920         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53921         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53922         * tests/test-copy-acl.sh: Likewise.
53923
53924 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53925
53926         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53927         based on character occurrence counts.
53928
53929 2008-09-15  Eric Blake  <ebb9@byu.net>
53930
53931         tests: avoid some compiler warnings
53932         * tests/test-memchr.c (main): Pass NULL indirectly.
53933         * tests/test-closein.c (main): Avoid unused variable.
53934
53935 2008-09-15  Bruno Haible  <bruno@clisp.org>
53936
53937         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53938         are missing on OpenBSD 4.0 individually.
53939         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53940
53941 2008-09-15  Bruno Haible  <bruno@clisp.org>
53942
53943         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53944         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53945         * doc/posix-functions/perror.texi: Likewise.
53946         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53947         is missing.
53948         Reported by Eric Blake.
53949
53950         * lib/errno.in.h: Use replacement values >= 2000.
53951         Reported by Eric Blake.
53952
53953 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53954
53955         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53956         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53957         limit.
53958         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53959         compareseq was aborted.
53960
53961 2008-09-14  Bruno Haible  <bruno@clisp.org>
53962
53963         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53964         yvec_edit_count.
53965         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53966         (fstrcmp_bounded): Simplify result computation accordingly.
53967
53968 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53969
53970         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53971         (fstrcmp): Define in terms of fstrcmp_bounded.
53972         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53973         lower_bound argument.
53974         Return quickly if the result is certainly < lower_bound.
53975         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53976
53977 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53978
53979         * lib/diffseq.h (EARLY_ABORT): New macro.
53980         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53981         evaluates to true.
53982
53983 2008-09-14  Bruno Haible  <bruno@clisp.org>
53984
53985         * modules/perror-tests: New file.
53986         * tests/test-perror.sh: New file.
53987         * tests/test-perror.c: New file.
53988
53989         New module 'perror'.
53990         * lib/stdio.in.h (perror): New declaration.
53991         * lib/perror.c: New file.
53992         * m4/perror.m4: New file.
53993         * modules/perror: New file.
53994         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53995         * doc/posix-functions/perror.texi: Mention the perror module.
53996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53997         REPLACE_PERROR.
53998         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53999         REPLACE_PERROR.
54000
54001 2008-09-14  Bruno Haible  <bruno@clisp.org>
54002
54003         * modules/stdio (Makefile.am): Reorder to match the order in
54004         lib/stdio.in.h.
54005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54006
54007 2008-09-13  Bruno Haible  <bruno@clisp.org>
54008
54009         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54010
54011 2008-09-13  Bruno Haible  <bruno@clisp.org>
54012
54013         Extend strerror to cover the added errno values.
54014         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54015         (rpl_strerror): Provide error messages for the added errno values and
54016         for the WSA* values.
54017         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54018         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54019         strerror.
54020         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54021         * modules/strerror (Depends-on): Add errno.
54022         * doc/posix-functions/strerror.texi: Document the change.
54023         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54024         and EOVERFLOW.
54025
54026 2008-09-13  Bruno Haible  <bruno@clisp.org>
54027
54028         * modules/EOVERFLOW: Remove file.
54029         * m4/eoverflow.m4: Remove file.
54030         * modules/EOVERFLOW-tests: Remove file.
54031         * tests/test-EOVERFLOW.c: Remove file.
54032         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54033         * modules/ftell (Depends-on): Likewise.
54034         * modules/getdelim (Depends-on): Likewise.
54035         * modules/getugroups (Depends-on): Likewise.
54036         * modules/poll (Depends-on): Likewise.
54037         * modules/snprintf (Depends-on): Likewise.
54038         * modules/sprintf-posix (Depends-on): Likewise.
54039         * modules/vasnprintf (Depends-on): Likewise.
54040         * modules/vasprintf (Depends-on): Likewise.
54041         * modules/vfprintf-posix (Depends-on): Likewise.
54042         * modules/vsnprintf (Depends-on): Likewise.
54043         * modules/vsprintf-posix (Depends-on): Likewise.
54044         * modules/xvasprintf (Depends-on): Likewise.
54045         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54046         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54047         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54048         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54049         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54050         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54051         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54052         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54053         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54054         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54055         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54056         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54057         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54058         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54059         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54060         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54061         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54062         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54063         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54064         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54065         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54066         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54067         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54068         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54069         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54070         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54071         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54072         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54073         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54074         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54075         * MODULES.html.sh: Remove EOVERFLOW.
54076         * NEWS: Mention the change.
54077
54078 2008-09-13  Bruno Haible  <bruno@clisp.org>
54079
54080         * modules/errno-tests: New file.
54081         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54082
54083         * lib/errno.in.h: New file.
54084         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54085         * modules/errno: New file.
54086         * doc/posix-headers/errno.texi: Update documentation.
54087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54088
54089 2008-09-13  Bruno Haible  <bruno@clisp.org>
54090
54091         * tests/test-poll.c: Use #if for native Windows, rather than testing
54092         __MSVCRT__.
54093
54094 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54095             Bruno Haible  <bruno@clisp.org>
54096
54097         * lib/glob.c: Don't include <pwd.h> on native Windows.
54098         (WINDOWS32): New macro.
54099         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54100
54101 2008-09-13  Bruno Haible  <bruno@clisp.org>
54102
54103         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54104         (ETIMEDOUT): Remove macro.
54105         (glthread_cond_timedwait_multithreaded): New declaration.
54106         (glthread_cond_timedwait): Use it.
54107         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54108         (glthread_cond_timedwait_multithreaded): New function.
54109
54110 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54111
54112         * modules/poll-tests: Do not check for io.h.
54113         * tests/test-poll.c: Check for __MSVCRT__ instead.
54114
54115 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54116
54117         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54118         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54119         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54120
54121 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54122
54123         * modules/poll-tests: New.
54124         * tests/test-poll.c: New.
54125
54126 2008-09-12  Eric Blake  <ebb9@byu.net>
54127
54128         frexp: test for NetBSD failure on -0.0
54129         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54130         not all, bugs from NetBSD 3.0 have been fixed.
54131         * doc/posix-functions/frexp.texi (frexp): Document bug.
54132         Reported by Thomas Klausner.
54133
54134         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54135         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54136         literal -0.0.
54137         Reported by Jonathan C. Patschke <jp@centtech.com>.
54138
54139 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54140
54141         * lib/glthread/cond.h: Use dummy implementation also if
54142         USE_WIN32_THREADS.
54143
54144 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54145
54146         * modules/fnmatch-posix (License): Change to LGPLv2+.
54147         * modules/fnmatch-gnu (License): Likewise.
54148
54149 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54150
54151         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54152
54153 2008-09-11  Jim Meyering  <meyering@redhat.com>
54154
54155         * users.txt: Add gtk-vnc.
54156
54157 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54158
54159         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54160         rotate amounts.
54161
54162         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54163         required for 16-bit and 8-bit rotates.
54164         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54165         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54166         UINT8_MAX instead of hard-coded constants.
54167         Suggested by Paul Eggert.
54168
54169 2008-09-07  Bruno Haible  <bruno@clisp.org>
54170
54171         * tests/test-striconveh.c (main): Check behaviour when converting from
54172         UTF-7.
54173
54174         Make striconveh work better with stateful encodings.
54175         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54176         that iconv does not increment the inptr when returning -1/EINVAL.
54177
54178 2008-09-07  Bruno Haible  <bruno@clisp.org>
54179
54180         * build-aux/config.rpath: Update according to libtool-2.2.6.
54181         * build-aux/config.libpath: Likewise.
54182
54183 2008-09-06  Bruno Haible  <bruno@clisp.org>
54184
54185         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54186         * lib/freadptr.c (freadptr): Likewise.
54187         * lib/freadseek.c (freadptrinc): Likewise.
54188         Reported by Simon Josefsson.
54189
54190 2008-09-06  Bruno Haible  <bruno@clisp.org>
54191
54192         * modules/freadptr (License): Change to LGPLv2+.
54193         * modules/freadseek (License): Likewise.
54194         Suggested by Eric Blake.
54195
54196         * modules/memchr2 (License): Change to LGPLv2+.
54197         Approved by Eric Blake.
54198
54199 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54200             Bruno Haible  <bruno@clisp.org>
54201
54202         Make gnulib-tool work with native 'sed' on AIX.
54203         * gnulib-tool (sed_noop): New variable.
54204         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54205         func_add_or_update, func_create_testdir): Use it to initialize sed
54206         script variables.
54207         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54208
54209 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54210             Bruno Haible  <bruno@clisp.org>
54211
54212         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54213         also works after #include directives.
54214
54215 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
54216
54217         getdate.y: reject an out-of-range timezone value
54218         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54219         the range [-24...+24].  When specified with only one or two digits,
54220         * tests/test-getdate.c: Tests for the fix.
54221         * doc/getdate.texi: Document this change.
54222
54223 2008-09-03  Bruno Haible  <bruno@clisp.org>
54224
54225         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54226
54227 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54228
54229         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54230         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54231         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54232         Blake <ebb9@byu.net>.
54233
54234         * tests/test-bitrotate.c: Add more test vectors.
54235
54236 2008-09-02  Eric Blake  <ebb9@byu.net>
54237
54238         vasnprintf-posix: handle large precision via %.*d
54239         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54240         when handling it ourselves.
54241         * tests/test-vasnprintf-posix.c (test_function): Add test.
54242         * tests/test-snprintf-posix.h (test_function): Likewise.
54243         * tests/test-sprintf-posix.h (test_function): Likewise.
54244         * tests/test-vasprintf-posix.c (test_function): Likewise.
54245         Reported by Alain Guibert.
54246
54247 2008-09-01  Eric Blake  <ebb9@byu.net>
54248
54249         c-stack: make configure-time check more robust
54250         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54251         successful sigaction call.
54252         Reported by Tom G. Christensen.
54253
54254 2008-09-01  Bruno Haible  <bruno@clisp.org>
54255
54256         New module 'findprog-lgpl'.
54257         * modules/findprog-lgpl: New file.
54258         * lib/findprog-lgpl.c: New file.
54259         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54260         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54261         to decide whether to use strdup or xstrdup, concatenated_filename or
54262         xconcatenated_filename.
54263
54264 2008-09-01  Bruno Haible  <bruno@clisp.org>
54265
54266         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54267         'xconcat-filename' (GPL).
54268         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54269         (License): Change to LGPLv2+.
54270         * modules/xconcat-filename: New file.
54271         * lib/concat-filename.h (concatenated_filename): Change specification.
54272         (xconcatenated_filename): New declaration.
54273         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54274         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54275         memory situations.
54276         * lib/xconcat-filename.c: New file.
54277         * NEWS: Mention the change.
54278         * lib/findprog.c: Include concat-filename.h, not filename.h.
54279         (find_in_path): Use xconcatenated_filename instead of
54280         concatenated_filename.
54281         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54282         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54283         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54284         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54285         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54286         instead of concatenated_filename.
54287         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54288         (execute_java_class): Use xconcatenated_filename instead of
54289         concatenated_filename.
54290         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54291         * modules/javacomp (Depends-on): Likewise.
54292         * modules/javaexec (Depends-on): Likewise.
54293
54294 2008-09-01  Bruno Haible  <bruno@clisp.org>
54295
54296         Split module 'filename' into 'filename' and 'concat-filename'.
54297         * modules/filename: Keep only lib/filename.h.
54298         (License): Change to LGPLv2+.
54299         * modules/concat-filename: New file, extracted from modules/filename.
54300         * lib/filename.h (concatenated_filename): Remove declaration.
54301         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54302         * lib/concat-filename.c: Include concat-filename.h.
54303         * NEWS: Mention the change.
54304
54305 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54306
54307         * lib/bitrotate.h (rotl8, rotr8): Add.
54308
54309         * modules/bitrotate (configure.ac): Need
54310         AC_REQUIRE([AC_C_INLINE]).
54311         (Description): Mention stdint.h.  Reported by Bruno Haible
54312         <bruno@clisp.org>.
54313
54314         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54315         Paolo Bonzini <bonzini@gnu.org>.
54316
54317 2008-08-31  Bruno Haible  <bruno@clisp.org>
54318
54319         Assume Solaris specific bi-arch conventions on Solaris systems.
54320         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54321         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54322         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54323         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54324         like acl_libdirstem.
54325         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54326         acl_libdirstem.
54327         * NEWS: Mention the change.
54328         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54329
54330 2008-08-31  Jim Meyering  <meyering@redhat.com>
54331
54332         * lib/strftime.h: Add comments describing the two added arguments.
54333
54334         remove duplicate #include directives
54335         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54336         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54337
54338 2008-08-31  Bruno Haible  <bruno@clisp.org>
54339
54340         New module 'sigpipe-die'.
54341         * modules/sigpipe-die: New file.
54342         * lib/sigpipe-die.h: New file.
54343         * lib/sigpipe-die.c: New file.
54344         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54345
54346 2008-08-31  Bruno Haible  <bruno@clisp.org>
54347
54348         Don't override previously installed signal handlers.
54349         * lib/fatal-signal.c (saved_sigactions): New variable.
54350         (uninstall_handlers): Reset the signal to the saved handler, not
54351         to SIG_DFL (except when ignored).
54352         (install_handlers): Save the previous handlers.
54353
54354 2008-08-30  Bruno Haible  <bruno@clisp.org>
54355
54356         * gnulib-tool (func_reset_sigpipe): New function.
54357         (func_get_automake_snippet, func_modules_transitive_closure,
54358         func_import): Invoke it before a join command that reads from stdin,
54359         to avoid "echo: write error: Broken pipe" error messages on stderr.
54360         Reported by Sam Steingold <sds@gnu.org>.
54361
54362 2008-08-30  Bruno Haible  <bruno@clisp.org>
54363
54364         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54365         Code copied from m4/open.m4.
54366         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54367         access and the filename ends in a slash. Code copied from lib/open.c.
54368         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54369         * tests/test-fopen.c (main): Check against bug with trailing slash.
54370
54371 2008-08-29  Bruno Haible  <bruno@clisp.org>
54372
54373         Avoid some "gcc -pedantic" warnings.
54374         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54375         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54376         * lib/dirent.in.h: Likewise.
54377         * lib/fcntl.in.h: Likewise.
54378         * lib/float.in.h: Likewise.
54379         * lib/iconv.in.h: Likewise.
54380         * lib/inttypes.in.h: Likewise.
54381         * lib/locale.in.h: Likewise.
54382         * lib/math.in.h: Likewise.
54383         * lib/netinet_in.in.h: Likewise.
54384         * lib/search.in.h: Likewise.
54385         * lib/signal.in.h: Likewise.
54386         * lib/stdarg.in.h: Likewise.
54387         * lib/stdint.in.h: Likewise.
54388         * lib/stdio.in.h: Likewise.
54389         * lib/stdlib.in.h: Likewise.
54390         * lib/string.in.h: Likewise.
54391         * lib/strings.in.h: Likewise.
54392         * lib/sys_select.in.h: Likewise.
54393         * lib/sys_socket.in.h: Likewise.
54394         * lib/sys_stat.in.h: Likewise.
54395         * lib/sys_time.in.h: Likewise.
54396         * lib/sysexits.in.h: Likewise.
54397         * lib/time.in.h: Likewise.
54398         * lib/unistd.in.h: Likewise.
54399         * lib/wchar.in.h: Likewise.
54400         * lib/wctype.in.h: Likewise.
54401         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54402         * modules/fchdir (Makefile.am): Likewise.
54403         * modules/fcntl (Makefile.am): Likewise.
54404         * modules/float (Makefile.am): Likewise.
54405         * modules/iconv_open (Makefile.am): Likewise.
54406         * modules/inttypes (Makefile.am): Likewise.
54407         * modules/locale (Makefile.am): Likewise.
54408         * modules/math (Makefile.am): Likewise.
54409         * modules/netinet_in (Makefile.am): Likewise.
54410         * modules/search (Makefile.am): Likewise.
54411         * modules/signal (Makefile.am): Likewise.
54412         * modules/stdarg (Makefile.am): Likewise.
54413         * modules/stdint (Makefile.am): Likewise.
54414         * modules/stdio (Makefile.am): Likewise.
54415         * modules/stdlib (Makefile.am): Likewise.
54416         * modules/string (Makefile.am): Likewise.
54417         * modules/strings (Makefile.am): Likewise.
54418         * modules/sys_select (Makefile.am): Likewise.
54419         * modules/sys_socket (Makefile.am): Likewise.
54420         * modules/sys_stat (Makefile.am): Likewise.
54421         * modules/sys_time (Makefile.am): Likewise.
54422         * modules/sysexits (Makefile.am): Likewise.
54423         * modules/time (Makefile.am): Likewise.
54424         * modules/unistd (Makefile.am): Likewise.
54425         * modules/wchar (Makefile.am): Likewise.
54426         * modules/wctype (Makefile.am): Likewise.
54427         Reported by Reuben Thomas <rrt@sc3d.org>.
54428
54429 2008-08-29  Bruno Haible  <bruno@clisp.org>
54430
54431         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54432         any more.
54433
54434 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54435
54436         * MODULES.html.sh (Misc): Add bitrotate.
54437
54438         * modules/bitrotate: New file.
54439
54440         * lib/bitrotate.h: New file.
54441
54442         * modules/bitrotate-tests: New file.
54443
54444         * tests/test-bitrotate.c: New file.
54445
54446         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54447         on the bitrotate module.
54448
54449         * lib/arctwo.c: Use new bitrotate module.
54450
54451 2008-08-29  Jim Meyering  <meyering@redhat.com>
54452
54453         bootstrap: merge changes from coreutils
54454         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54455         of copied files.  Remove a kludge, now that this is fixed.
54456         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54457         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54458         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54459
54460 2008-08-29  Bruno Haible  <bruno@clisp.org>
54461
54462         * MODULES.html.sh: Remove --cvs-urls option.
54463
54464 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54465
54466         maint.mk: adjust to file name change
54467         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54468
54469 2008-08-28  Jim Meyering  <meyering@redhat.com>
54470
54471         * modules/getndelim2 (License): Relicense to LGPLv2+.
54472         Approved by Richard Stallman for the version of 1995, and by
54473         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54474
54475 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54476
54477         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54478         dummy if one is not available.  Do not touch them if
54479         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54480         (getc_maybe_unlocked): New.
54481         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54482
54483 2008-08-26  Eric Blake  <ebb9@byu.net>
54484
54485         doc/INSTALL: resync from autoconf
54486         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54487         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54488         moving...
54489         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54490         * INSTALL: Regenerate.
54491         * INSTALL.ISO: New file.
54492         * INSTALL.UTF-8: Likewise.
54493
54494 2008-08-26  Jim Meyering  <meyering@redhat.com>
54495
54496         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54497         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54498         these definitions conditional, so that they may be overridden, too.
54499
54500 2008-08-26  Bruno Haible  <bruno@clisp.org>
54501
54502         Generate INSTALL file variants with prettier quotes.
54503         * doc/Makefile (INSTALL_PRELUDE): New macro.
54504         (INSTALL): Use it.
54505         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54506
54507 2008-08-26  Bruno Haible  <bruno@clisp.org>
54508
54509         Run makeinfo in an English locale.
54510         * doc/Makefile (MAKEINFO): New variable.
54511
54512 2008-08-26  Bruno Haible  <bruno@clisp.org>
54513
54514         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54515         Suggested by Eric Blake.
54516
54517 2008-08-25  Bruno Haible  <bruno@clisp.org>
54518
54519         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54520
54521 2008-08-25  Eric Blake  <ebb9@byu.net>
54522
54523         c-stack: test that stack overflow can be caught
54524         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54525         that platform allows handling stack overflow; at least OS/2 EMX
54526         has sigaltstack, but crashes before transferring control to
54527         handler on stack overflow.
54528         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54529         check for HAVE_STACK_OVERFLOW_HANDLING.
54530         Reported by Elbert Pol.
54531
54532 2008-08-25  Bruno Haible  <bruno@clisp.org>
54533
54534         * doc/posix-functions/strftime.texi: Fix description of strftime
54535         module.
54536
54537 2008-08-24  Bruno Haible  <bruno@clisp.org>
54538
54539         * tests/uniwidth/test-uc_width2.c: New file.
54540         * tests/uniwidth/test-uc_width2.sh: New file.
54541         * modules/uniwidth/width-tests (Files): Add the new files.
54542         (TESTS): Add uniwidth/test-uc_width2.sh.
54543         (TESTS_ENVIRONMENT): New variable.
54544         (check_PROGRAMS): Add test-uc_width2.
54545         (test_uc_width2_SOURCES): New variable.
54546
54547         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54548         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54549         not 0x00AB.
54550         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54551
54552 2008-08-22  Eric Blake  <ebb9@byu.net>
54553
54554         test-lock, test-tls: mention why a test is skipped
54555         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54556         skipped.
54557         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54558
54559         count-one-bits: relax license
54560         * modules/count-one-bits (License): Relicense to LGPLv2+.
54561         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54562
54563 2008-08-22  Andreas Schwab  <schwab@suse.de>
54564
54565         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54566         Remove spurious space in assignment.
54567
54568 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54569
54570         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54571         Paul Eggert <eggert@CS.UCLA.EDU>.
54572
54573 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54574
54575         * modules/gettext: Add m4/threadlib.m4.
54576
54577 2008-08-19  Eric Blake  <ebb9@byu.net>
54578
54579         test-c-stack: fix compilation failure on FreeBSD 5.0
54580         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54581         headers before <sys/resource.h>.
54582         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54583         the bug.
54584         Reported by Nelson H. F. Beebe.
54585
54586         strverscmp: migrate from "strverscmp.h" to <string.h>
54587         * modules/string (Makefile.am): Add new hooks.
54588         * modules/strverscmp (Files): Remove strverscmp.h.
54589         (Depends-on): Add string.
54590         (configure.ac): Add indicator.
54591         (Include): Mention new header.
54592         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54593         defaults.
54594         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54595         results.
54596         * lib/strverscmp.h: Delete.
54597         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54598         * tests/test-strverscmp.c (includes): Adjust client.
54599         * lib/check-version.c (includes): Likewise.
54600         * NEWS: Document the change.
54601
54602         strverscmp: add unit test
54603         * modules/strverscmp-tests: New file.
54604         * tests/test-strverscmp.c: Likewise.
54605
54606 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54607
54608         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54609         regarding Windows crypto stuff, from Mono.
54610
54611 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54612
54613         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54614         if present, for intel RND.  Return error on failures.
54615
54616 2008-08-18  Ben Pfaff  <blp@gnu.org>
54617
54618         gitlog-to-changelog: give better diagnostic for failed pipe-open
54619         * build-aux/gitlog-to-changelog: Improve error message: suggest
54620         that the version of Git may be too old.
54621
54622 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54623
54624         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54625         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54626
54627 2008-08-18  Bruno Haible  <bruno@clisp.org>
54628
54629         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54630         pthread_in_use().
54631
54632 2008-08-18  Bruno Haible  <bruno@clisp.org>
54633
54634         * lib/glthread/threadlib.c: Include <pthread.h>.
54635
54636 2008-08-18  Bruno Haible  <bruno@clisp.org>
54637
54638         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54639         glthread_recursive_lock_* macros.
54640         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54641         Fix syntax error.
54642
54643 2008-08-18  Bruno Haible  <bruno@clisp.org>
54644
54645         * lib/glthread/thread.c: Avoid forcing a context switch right after
54646         thread creation.
54647
54648 2008-08-17  Bruno Haible  <bruno@clisp.org>
54649
54650         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54651         * lib/glthread/thread.h: Provide Win32 specific implementation.
54652         * modules/thread (Files): Add lib/glthread/thread.c.
54653         (Depends-on): Add lock.
54654         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54655
54656 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54657
54658         New module 'yield'.
54659         * modules/yield: New file.
54660         * lib/glthread/yield.h: New file.
54661         * m4/yield.m4: New file.
54662         * MODULES.html.sh (Multithreading): Add yield.
54663
54664 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54665
54666         New module 'thread'.
54667         * modules/thread: New file.
54668         * lib/glthread/thread.h: New file.
54669         * m4/thread.m4: New file.
54670         * MODULES.html.sh (Multithreading): Add thread.
54671
54672 2008-08-17  Bruno Haible  <bruno@clisp.org>
54673
54674         * lib/glthread/lock.h: Include <stdlib.h> always.
54675         * lib/glthread/tls.h: Likewise.
54676         * lib/glthread/cond.h: Likewise.
54677
54678 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54679
54680         New module 'cond'.
54681         * modules/cond: New file.
54682         * lib/glthread/cond.h: New file.
54683         * lib/glthread/cond.c: New file.
54684         * m4/cond.m4: New file.
54685         * MODULES.html.sh (Multithreading): Add cond.
54686
54687 2008-08-16  Eric Blake  <ebb9@byu.net>
54688
54689         c-stack: fix regression on Irix 5.3 from 2008-06-21
54690         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54691         sa_sigaction...
54692         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54693         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54694         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54695         * modules/signal (Makefile.am): Use the value.
54696         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54697         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54698         * doc/posix-headers/signal.texi (signal.h): Document this
54699         portability issue.
54700         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54701         Reported by Tom G. Christensen.
54702
54703 2008-08-17  Bruno Haible  <bruno@clisp.org>
54704
54705         New module 'threadlib'.
54706         * modules/threadlib: New file.
54707         * lib/glthread/threadlib.c: New file, extracted from
54708         lib/glthread/lock.c.
54709         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54710         functions.
54711         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54712         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54713         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54714         macros.
54715         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54716         (gl_DISABLE_THREADS): Remove macro.
54717         * modules/lock (Files): Remove build-aux/config.rpath.
54718         (Depends-on): Remove havelib. Add threadlib.
54719         (configure.ac-early): Remove section.
54720         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54721         * modules/tls (Depends-on): Remove lock. Add threadlib.
54722         (Link): New section, copied from threadlib.
54723         * MODULES.html.sh (Multithreading): Add threadlib.
54724
54725 2008-08-14  Bruno Haible  <bruno@clisp.org>
54726
54727         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54728         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54729         glthread_rwlock_unlock, glthread_rwlock_destroy,
54730         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54731         glthread_recursive_lock_destroy): Define as macros always.
54732         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54733         glthread_lock_lock.
54734         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54735         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54736         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54737         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54738         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54739         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54740         (glthread_recursive_lock_lock_func): Renamed from
54741         glthread_recursive_lock_lock.
54742         (glthread_recursive_lock_unlock_func): Renamed from
54743         glthread_recursive_lock_unlock.
54744         (glthread_recursive_lock_destroy_func): Renamed from
54745         glthread_recursive_lock_destroy.
54746
54747 2008-08-14  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/glthread/lock.h: Renamed from lib/lock.h.
54750         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54751         * lib/glthread/tls.h: Renamed from lib/tls.h.
54752         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54753         * lib/fstrcmp.c: Update includes.
54754         * lib/strsignal.c: Update includes.
54755         * modules/lock (Files, Makefile.am): Update.
54756         (Include): Change to "glthread/lock.h".
54757         * modules/tls (Files, Makefile.am): Update.
54758         (Include): Change to "glthread/tls.h".
54759         * tests/test-lock.c: Update includes.
54760         * tests/test-tls.c: Update includes.
54761         * NEWS: Mention the renamed header files.
54762
54763 2008-08-11  Jim Meyering  <meyering@redhat.com>
54764
54765         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54766
54767 2008-08-11  Eric Blake  <ebb9@byu.net>
54768
54769         test-c-stack: avoid C99-ism
54770         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54771         before statement.
54772         Reported by Alain Guibert.
54773
54774 2008-08-10  Jim Meyering  <meyering@redhat.com>
54775
54776         ensure that return value of uinttostr et al are not ignored
54777         * lib/inttostr.h (__GNUC_PREREQ): Define.
54778         (__attribute_warn_unused_result__): Define.
54779         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54780
54781 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54782
54783         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54784         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54785
54786 2008-08-07  Jim Meyering  <meyering@redhat.com>
54787
54788         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54789
54790         * modules/mkstemp (License): Relicense under LGPLv2+.
54791         * modules/tempname (License): Likewise.
54792
54793 2008-08-06  Bruno Haible  <bruno@clisp.org>
54794
54795         * lib/poll.c (poll): Further micro-optimization.
54796
54797 2008-08-06  Jim Meyering  <meyering@redhat.com>
54798
54799         inet_pton.c: use locale-independent tolower
54800         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54801         (inet_pton6): Use c_tolower rather than tolower.
54802         * modules/inet_pton (Depends-on): Add c-ctype.
54803
54804 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54805
54806         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54807         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54808
54809 2008-08-06  Jim Meyering  <meyering@redhat.com>
54810
54811         * modules/inet_pton (License): Relicense under LGPLv2+.
54812
54813 2008-08-03  Bruno Haible  <bruno@clisp.org>
54814
54815         Additional non-aborting API for lock and tls.
54816         * lib/lock.h: Include <errno.h>.
54817         (glthread_lock_init): New macro/function.
54818         (gl_lock_init): Define as wrapper around glthread_lock_init.
54819         (glthread_lock_lock): New macro/function.
54820         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54821         (glthread_lock_unlock): New macro/function.
54822         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54823         (glthread_lock_destroy): New macro/function.
54824         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54825         (glthread_rwlock_init): New macro/function.
54826         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54827         (glthread_rwlock_rdlock): New macro/function.
54828         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54829         (glthread_rwlock_wrlock): New macro/function.
54830         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54831         (glthread_rwlock_unlock): New macro/function.
54832         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54833         (glthread_rwlock_destroy): New macro/function.
54834         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54835         (glthread_recursive_lock_init): New macro/function.
54836         (gl_recursive_lock_init): Define as wrapper around
54837         glthread_recursive_lock_init.
54838         (glthread_recursive_lock_lock): New macro/function.
54839         (gl_recursive_lock_lock): Define as wrapper around
54840         glthread_recursive_lock_lock.
54841         (glthread_recursive_lock_unlock): New macro/function.
54842         (gl_recursive_lock_unlock): Define as wrapper around
54843         glthread_recursive_lock_unlock.
54844         (glthread_recursive_lock_destroy): New macro/function.
54845         (gl_recursive_lock_destroy): Define as wrapper around
54846         glthread_recursive_lock_destroy.
54847         (glthread_once): New macro/function.
54848         (gl_once): Define as wrapper around glthread_once.
54849         Update function declarations.
54850         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54851         glthread_rwlock_init. Return error code.
54852         (glthread_rwlock_rdlock_multithreaded): Renamed from
54853         glthread_rwlock_rdlock. Return error code.
54854         (glthread_rwlock_wrlock_multithreaded): Renamed from
54855         glthread_rwlock_wrlock. Return error code.
54856         (glthread_rwlock_unlock_multithreaded): Renamed from
54857         glthread_rwlock_unlock. Return error code.
54858         (glthread_rwlock_destroy_multithreaded): Renamed from
54859         glthread_rwlock_destroy. Return error code.
54860         (glthread_recursive_lock_init_multithreaded): Renamed from
54861         glthread_recursive_lock_init. Return error code.
54862         (glthread_recursive_lock_lock_multithreaded): Renamed from
54863         glthread_recursive_lock_lock. Return error code.
54864         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54865         glthread_recursive_lock_unlock. Return error code.
54866         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54867         glthread_recursive_lock_destroy. Return error code.
54868         (glthread_once_call): Make static.
54869         (glthread_once_multithreaded): Renamed from glthread_once.
54870         * lib/tls.h: Include <errno.h>.
54871         (glthread_tls_key_init): New macro/function.
54872         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54873         (glthread_tls_set): New macro/function.
54874         (gl_tls_set): Define as wrapper around glthread_tls_set.
54875         (glthread_tls_key_destroy): New macro/function.
54876         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54877         Update function declarations.
54878         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54879         glthread_tls_get.
54880         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54881
54882 2008-08-04  Eric Blake  <ebb9@byu.net>
54883
54884         gnumakefile: use space, not TAB, outside of targets
54885         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54886
54887 2008-08-02  Jim Meyering  <meyering@redhat.com>
54888
54889         getdate.y: avoid locale-dependent date parsing failure
54890         In Turkish locales, getdate would fail to recognize keywords
54891         containing a lowercase "i".  The solution is not to rely on
54892         locale-sensitive case-conversion.
54893         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54894         (lookup_word): Use c_toupper in place of toupper.
54895         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54896         Reported by Vefa Bicakci <bicave@superonline.com> in
54897         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54898         * modules/getdate (Depends-on): Add c-ctype.
54899
54900 2008-08-02  Bruno Haible  <bruno@clisp.org>
54901
54902         * gnulib-tool (func_import): When updating or creating a .gitignore
54903         file, prepend each added line with a slash, and ignore leading slashes
54904         from the existing lines.
54905         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54906
54907 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54908
54909         Portability fix for GNU make 3.79.1.
54910         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54911         versions do not understand.
54912
54913 2008-08-01  Bruno Haible  <bruno@clisp.org>
54914
54915         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54916         * tests/test-isnanf.h (zero): New variable.
54917         (main): Avoid literal -0.0f.
54918         * tests/test-isnand.h (zero): New variable.
54919         (main): Avoid literal -0.0.
54920         * tests/test-isnanl.h (zero): New variable.
54921         (main): Avoid literal -0.0L.
54922         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54923         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54924         -0.0, -0.0L.
54925         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54926         (test_signbitd): Avoid literal -0.0.
54927         (test_signbitl): Avoid literal -0.0L.
54928         * tests/test-ceilf1.c (zero): New variable.
54929         (main): Avoid literal -0.0f.
54930         * tests/test-ceill.c (zero): New variable.
54931         (main): Avoid literal -0.0L.
54932         * tests/test-floorf1.c (zero): New variable.
54933         (main): Avoid literal -0.0f.
54934         * tests/test-floorl.c (zero): New variable.
54935         (main): Avoid literal -0.0L.
54936         * tests/test-roundf1.c (zero): New variable.
54937         (main): Avoid literal -0.0f.
54938         * tests/test-round1.c (zero): New variable.
54939         (main): Avoid literal -0.0.
54940         * tests/test-roundl.c (zero): New variable.
54941         (main): Avoid literal -0.0L.
54942         * tests/test-truncf1.c (zero): New variable.
54943         (main): Avoid literal -0.0f.
54944         * tests/test-trunc1.c (zero): New variable.
54945         (main): Avoid literal -0.0.
54946         * tests/test-truncl.c (zero): New variable.
54947         (main): Avoid literal -0.0L.
54948         * tests/test-frexp.c (zero): New variable.
54949         (main): Avoid literal -0.0.
54950         * tests/test-frexpl.c (zero): New variable.
54951         (main): Avoid literal -0.0L.
54952         * tests/test-ldexpl.c (zero): New variable.
54953         (main): Avoid literal -0.0L.
54954         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54955         (zerod, zerol): New variables.
54956         (test_function): Avoid literals -0.0, -0.0L.
54957         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54958         (zerod, zerol): New variables.
54959         (test_function): Avoid literals -0.0, -0.0L.
54960         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54961         (zerod, zerol): New variables.
54962         (test_function): Avoid literals -0.0, -0.0L.
54963         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54964         (zerod, zerol): New variables.
54965         (test_function): Avoid literals -0.0, -0.0L.
54966         * tests/test-strtod.c (zero): New variable.
54967         (main): Avoid literal -0.0.
54968         Reported by Jonathan C. Patschke <jp@centtech.com>.
54969
54970 2008-07-31  Jim Meyering  <meyering@redhat.com>
54971
54972         sha256.h: correct definition of SHA224_DIGEST_SIZE
54973         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54974         Reported by Paulie Pena IV <paulie4@gmail.com>.
54975         Define as 224 / 8, rather than as a literal.
54976         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54977         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54978         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54979
54980 2008-07-31  Bruno Haible  <bruno@clisp.org>
54981
54982         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54983         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54984         Reported by Jonathan Patschke <jp@centtech.com>.
54985
54986 2008-07-31  Bruno Haible  <bruno@clisp.org>
54987
54988         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54989         Reported by Paolo Bonzini <bonzini@gnu.org>.
54990
54991 2008-07-30  Eric Blake  <ebb9@byu.net>
54992
54993         test-strtod: allow compilation without -lm
54994         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54995         Reported by Dennis Clarke <blastwave@gmail.com>.
54996
54997 2008-07-28  Jim Meyering  <meyering@redhat.com>
54998
54999         bootstrap: work also when there are no .po files in po/
55000         * build-aux/bootstrap (update_po_files): Complete the change
55001         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
55002
55003 2008-07-27  Jim Meyering  <meyering@redhat.com>
55004
55005         * users.txt: Add zile.
55006
55007 2008-07-26  Ben Pfaff  <blp@gnu.org>
55008
55009         Add missing dependencies on new m4/exponent[fdl].m4 files.
55010         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55011         * modules/isnand-nolibm: Add m4/exponentd.m4.
55012         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55013         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55014         m4/isnan[fdl].m4, because the macros actually used moved.
55015         Reported by Jim Meyering.
55016
55017 2008-07-14  Ben Pfaff  <blp@gnu.org>
55018
55019         Add isinf module.
55020         * lib/isinf.c: New file.
55021         * lib/math.in.h: Define isinf macro if we have decided to replace
55022         it.
55023         * m4/isinf.m4: New file.
55024         * m4/math_h.m4: Initialize and substitute variables for isinf
55025         module.
55026         * modules/isinf: New file.
55027         * modules/isinf-tests: New file.
55028         * modules/math: Add substitutions for new module.
55029         * tests/test-isinf.c: New file.
55030         * doc/posix-functions/isinf.texi: Mention new module.
55031         * MODULES.html.sh: Mention new module.
55032
55033 2008-07-14  Ben Pfaff  <blp@gnu.org>
55034
55035         Factor out some macros for use by additional modules.
55036         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55037         exponentf.m4.
55038         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55039         exponentd.m4.
55040         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55041         file exponentl.m4.
55042         * m4/exponentf.m4: New file.
55043         * m4/exponentd.m4: New file.
55044         * m4/exponentl.m4: New file.
55045         * modules/isnanf: Use new file m4/exponentf.m4.
55046         * modules/isnand: Use new file m4/exponentd.m4.
55047         * modules/isnanl: Use new file m4/exponentl.m4.
55048
55049 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55050
55051         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55052         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55053         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55054         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55055
55056         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55057         readlink on platforms without PATH_MAX.
55058
55059 2008-07-21  Eric Blake  <ebb9@byu.net>
55060
55061         Warn, not fail, on stale version.
55062         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55063
55064         Don't allow installation with stale devel version number.
55065         * top/GNUmakefile (_is-install-target): New macro.
55066         (_curr-ver): Forbid installation with stale version number.
55067
55068 2008-07-20  Bruno Haible  <bruno@clisp.org>
55069
55070         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55071         TESTS_ENVIRONMENT.
55072         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55073
55074 2008-07-20  Bruno Haible  <bruno@clisp.org>
55075
55076         * lib/c-stack.h (c_stack_action): Add documentation.
55077         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55078
55079 2008-07-20  Bruno Haible  <bruno@clisp.org>
55080
55081         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55082         * modules/readlink (License): Likewise.
55083
55084 2008-07-17  Eric Blake  <ebb9@byu.net>
55085
55086         * modules/c-stack (Link): Fix typo.
55087
55088         Make c-stack use libsigsegv, when available.
55089         * modules/c-stack (Depends-on): Add libsigsegv.
55090         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55091         needed.
55092         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55093         (segv_handler, overflow_handler, c_stack_action)
55094         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55095         implementation when libsigsegv is available, but only when using
55096         the library is necessary.
55097         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55098         comment, explaining why XSI check fails on Linux.
55099         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55100         * tests/test-c-stack2.sh: Tweak skip message.
55101         * NEWS: Document new link-time requirements.
55102
55103 2008-07-16  Eric Blake  <ebb9@byu.net>
55104
55105         c-stack: Expose false positives when not using libsigsegv.
55106         * modules/c-stack-tests (Files): Expand test.
55107         * tests/test-c-stack.c (main): Add means to conditionally trigger
55108         non-overflow SIGSEGV.
55109         * tests/test-c-stack2.sh: New file.
55110
55111 2008-07-14  Bruno Haible  <bruno@clisp.org>
55112
55113         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55114         Reported by Eric Blake.
55115
55116 2008-07-14  Sam Steingold  <sds@gnu.org>
55117             Bruno Haible  <bruno@clisp.org>
55118
55119         New module libsigsegv.
55120         * modules/libsigsegv: New file.
55121         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55122         modifications.
55123         * MODULES.html.sh (Signal handling): New section.
55124
55125 2008-07-14  Bruno Haible  <bruno@clisp.org>
55126
55127         * modules/unictype/ctype-* (Description): Add the word "function".
55128         Improves the resulting doc in MODULES.html.
55129
55130 2008-07-12  Ben Pfaff  <blp@gnu.org>
55131
55132         Add longlong module.
55133         * modules/longlong: New file.
55134
55135 2008-07-12  Bruno Haible  <bruno@clisp.org>
55136
55137         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55138         to empty.
55139
55140 2008-07-10  Ben Pfaff  <blp@gnu.org>
55141
55142         Add isnan module.
55143         * doc/posix-functions/isnan.texi: Mention new module.
55144         * lib/math.in.h: Define isnan macro if we have decided to replace
55145         it.
55146         * m4/isnan.m4: New file.
55147         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55148         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55149         also.
55150         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55151         redundancy.
55152         * m4/math_h.m4: Initialize and substitute variables for isnan
55153         module.
55154         * modules/isnan: New file.
55155         * modules/isnan-tests: New file.
55156         * modules/math: Add substitutions for new module.
55157         * tests/test-isnan.c: New file.
55158         * MODULES.html.sh: Mention new module.
55159
55160 2008-07-10  Ben Pfaff  <blp@gnu.org>
55161
55162         Add isnanf module.
55163         * lib/isnanf.m4: New file.
55164         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55165         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55166         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55167         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55168         * modules/isnanf: New file.
55169         * modules/isnanf-tests: New file.
55170         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55171         files.
55172         * tests/test-isnanf-nolibm.c: factored most of its contents into
55173         new file tests/test-isnanf.h.
55174         * tests/test-isnanf.h: New file.
55175         * tests/test-isnanf.c: New file.
55176         * MODULES.html.sh: Mention new module.
55177         * doc/glibc-functions/isnanf.texi: Mention new module.
55178
55179 2008-07-10  Ben Pfaff  <blp@gnu.org>
55180
55181         Add isnand module.
55182         * lib/isnand.h: New file.
55183         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55184         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55185         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55186         functionality also.
55187         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55188         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55189         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55190         * modules/isnand: New file.
55191         * modules/isnand-tests: New file.
55192         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55193         files.
55194         * tests/test-isnand-nolibm.c: factored most of its contents into
55195         new file tests/test-isnand.h.
55196         * tests/test-isnand.h: New file.
55197         * tests/test-isnand.c: New file.
55198         * MODULES.html.sh: Mention new module.
55199
55200 2008-07-10  Ben Pfaff  <blp@gnu.org>
55201
55202         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55203         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55204         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55205         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55206         * modules/isnanf-nolibm: Update references to renamed files.
55207         * modules/isnand-nolibm: Likewise.
55208         * modules/isnanf-nolibm-tests: Likewise.
55209         * modules/isnand-nolibm-tests: Likewise.
55210         * lib/frexp.c: Likewise.
55211         * lib/isfinite.c: Likewise.
55212         * lib/signbitd.c: Likewise.
55213         * lib/signbitf.c: Likewise.
55214         * lib/vasnprintf.c: Likewise.
55215         * tests/test-ceilf1.c: Likewise.
55216         * tests/test-ceilf2.c: Likewise.
55217         * tests/test-floorf1.c: Likewise.
55218         * tests/test-floorf2.c: Likewise.
55219         * tests/test-frexp.c: Likewise.
55220         * tests/test-round1.c: Likewise.
55221         * tests/test-round2.c: Likewise.
55222         * tests/test-roundf1.c: Likewise.
55223         * tests/test-strtod.c: Likewise.
55224         * tests/test-trunc1.c: Likewise.
55225         * tests/test-trunc2.c: Likewise.
55226         * tests/test-truncf1.c: Likewise.
55227         * tests/test-truncf2.c: Likewise.
55228         * NEWS: Mention the renamed header files.
55229
55230 2008-07-11  Jim Meyering  <meyering@redhat.com>
55231
55232         vc-list-files: make the last-resort awk code more portable
55233         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55234         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55235         does not support it.
55236
55237 2008-07-10  Eric Blake  <ebb9@byu.net>
55238
55239         Work with tar's bootstrap.
55240         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55241         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55242         an m4 comment.
55243
55244 2008-07-09  Jim Meyering  <meyering@redhat.com>
55245
55246         posix-shell.m4: fix typo that made this test malfunction
55247         * m4/posix-shell.m4: Remove capitalization in variable name.
55248
55249 2008-07-08  Bruno Haible  <bruno@clisp.org>
55250
55251         * m4/onceonly.m4: Update comments.
55252         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55253
55254 2008-07-04  Jim Meyering  <meyering@redhat.com>
55255
55256         * users.txt: Add vc-dwim.
55257         (bison, coreutils): Use the gitweb URL.
55258
55259 2008-07-03  Jim Meyering  <meyering@redhat.com>
55260
55261         * users.txt: Add libffcall.  From Sam Steingold.
55262
55263 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
55264
55265         getdate.y: do not ignore TZ with relative day, month or year offset
55266         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55267         relative-date-handling, since otherwise, the latter would clobber the
55268         sole output (an updated Start value) of the tz-handling block.
55269         * tests/test-getdate.c: Tests for the fix
55270
55271 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55272
55273         Recognize 'foo_LIBRARIES += libgnu.a'.
55274         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55275         makefile snippet has already specified an installation location,
55276         also using '+='.
55277
55278 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
55279
55280         getdate.y: factor out common actions
55281         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55282         Use them in place of open-coded actions.
55283
55284 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55285
55286         Add self-test for getdate module.
55287         * modules/getdate-tests: New file.
55288         * tests/test-getdate.c: New file.
55289
55290 2008-06-29  Bruno Haible  <bruno@clisp.org>
55291
55292         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55293         .gitignore.
55294         Reported by Sylvain Beucler <beuc@beuc.net>.
55295
55296 2008-06-29  Bruno Haible  <bruno@clisp.org>
55297
55298         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55299         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55300
55301 2008-06-29  Bruno Haible  <bruno@clisp.org>
55302
55303         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55304         EXTRA_DIST.
55305         Reported by Sylvain Beucler <beuc@beuc.net>.
55306
55307 2008-06-26  Jim Meyering  <meyering@redhat.com>
55308
55309         make several modules depend on the "open" module
55310         This provides slightly increased consistency when opening-for-write
55311         the name of a non-directory spelled with a trailing slash.
55312         * modules/chdir-safer: Likewise.
55313         * modules/chown: Likewise.
55314         * modules/clean-temp: Likewise.
55315         * modules/copy-file: Likewise.
55316         * modules/fchdir: Likewise.
55317         * modules/fcntl-safer: Likewise.
55318         * modules/pipe: Likewise.
55319         * modules/utime: Likewise.
55320         Prompted by Eric Blake and Bruno Haible.
55321
55322 2008-06-24  Andreas Schwab  <schwab@suse.de>
55323
55324         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55325         literals can be used as initializers for global variables.
55326
55327 2008-06-23  Eric Blake  <ebb9@byu.net>
55328
55329         Make gnulib-cache.m4 easier to diff.
55330         * gnulib-tool (func_import): Allow newlines when reading cached
55331         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55332
55333 2008-06-23  Bruno Haible  <bruno@clisp.org>
55334
55335         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55336         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55337         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55338         m4/signalblocking.m4.
55339         (gl_PREREQ_SIGACTION): Don't invoke it.
55340         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55341         gl_PREREQ_SIG_HANDLER_H.
55342         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55343         Don't check for sigaction here.
55344
55345 2008-06-23  Bruno Haible  <bruno@clisp.org>
55346
55347         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55348         (install_handlers): Don't set the SA_RESETHAND flag.
55349
55350 2008-06-23  Bruno Haible  <bruno@clisp.org>
55351
55352         * m4/sigaction.m4: Comment fixes.
55353         * lib/signal.in.h: Likewise.
55354
55355 2008-06-23  Eric Blake  <ebb9@byu.net>
55356
55357         Fix typo.
55358         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55359
55360         Avoid SA_ namespace.
55361         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55362         Reported by Ralf Wildenhues.
55363
55364         Avoid test failure due to SA_RESTORER.
55365         * tests/test-sigaction.c (SA_MASK): New macro.
55366         (main): Avoid failing due to extension flags being set.
55367         Reported by Jim Meyering.
55368
55369         Revert use of sig-handler.h in sigprocmask.c.
55370         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55371         it requires the existence of struct sigaction.
55372         * lib/sigprocmask.c (handler_t): Restore typedef.
55373         (rpl_signal, old_handlers): Use local type.
55374
55375 2008-06-22  Bruno Haible  <bruno@clisp.org>
55376
55377         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55378         conditionally.
55379         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55380
55381 2008-06-22  Bruno Haible  <bruno@clisp.org>
55382
55383         * doc/posix-functions/siginterrupt.texi: Move note.
55384
55385         * lib/signal.in.h (SA_RESTART): New macro.
55386         * lib/sigaction.c: Update comment.
55387
55388         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55389
55390         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55391         (gl_PREREQ_SIGPROCMASK): Invoke it.
55392         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55393
55394         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55395
55396         * lib/sigprocmask.c: Update a comment.
55397
55398 2008-06-21  Eric Blake  <ebb9@byu.net>
55399
55400         Use sigaction module rather than signal().
55401         * modules/c-stack (Depends-on): Add sigaction.
55402         * modules/fatal-signal (Depends-on): Likewise.
55403         * modules/nanosleep (Depends-on): Likewise.
55404         * modules/sigprocmask (Files): Add sig-handler.h.
55405         * modules/sigaction (Files): Likewise.
55406         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55407         Eggert.
55408         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55409         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55410         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55411         (init_fatal_signals): Likewise.
55412         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55413         (siginterrupt): Delete fallback.
55414         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55415         instead.
55416         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55417         siginterrupt.
55418
55419         New module sigaction, for mingw.
55420         * modules/sigaction: New module...
55421         * modules/sigaction-tests: ...and its test.
55422         * m4/sigaction.m4: New file.
55423         * lib/sigaction.c: Likewise.
55424         * tests/test-sigaction.c: Likewise.
55425         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55426         * modules/signal (Makefile.am): Likewise.
55427         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55428         needed.
55429         * doc/posix-headers/signal.texi (signal.h): Mention provided
55430         types.
55431         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55432         that sigaction is preferable.
55433         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55434         module.
55435         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55436         sigaction.
55437
55438         Improve robustness of sigprocmask by overriding signal.
55439         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55440         is in use.
55441         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55442         (SIGKILL, SIGSTOP): Provide fallbacks.
55443         (rpl_signal): Implement.
55444         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55445         signal can be called inside handlers.
55446
55447         Fix nanosleep module on mingw.
55448         * modules/nanosleep (Depends-on): Add sys_select.
55449         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55450
55451         Fix licensing of sigprocmask.
55452         * modules/raise (License): Relicense as LGPL.
55453
55454 2008-06-21  Bruno Haible  <bruno@clisp.org>
55455
55456         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55457         result if it contains question marks.
55458         Reported by Michael Geng <linux@michaelgeng.de>.
55459
55460 2008-06-19  Bruno Haible  <bruno@clisp.org>
55461
55462         Fix CVS-ism.
55463         * doc/gnulib.texi: Include updated-stamp.texi.
55464         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55465         (updated-stamp.texi): New rule.
55466         (gnulib.info): Depend on it.
55467         * doc/.gitignore: Add updated-stamp.texi.
55468         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55469
55470 2008-06-19  Bruno Haible  <bruno@clisp.org>
55471
55472         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55473         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55474
55475 2008-06-19  Eric Blake  <ebb9@byu.net>
55476
55477         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55478         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55479         Reported by Stepan Kasal.
55480
55481 2008-06-18  Bruno Haible  <bruno@clisp.org>
55482
55483         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55484         Reported by Eric Blake.
55485
55486 2008-06-18  Eric Blake  <ebb9@byu.net>
55487
55488         Work around cygwin 1.5.25 strsignal bug.
55489         * tests/test-strsignal.c: Allow for const char *.
55490         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55491
55492 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55493
55494         * users.txt: Update URL to article and add author/date
55495         information.
55496
55497 2008-06-17  Bruno Haible  <bruno@clisp.org>
55498
55499         New macro gl_DISABLE_THREADS.
55500         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55501         if the user did not pass --enable-threads or --disable-threads option.
55502         (gl_DISABLE_THREADS): New macro.
55503         Reported by Eric Blake <ebb9@byu.net>.
55504
55505 2008-06-17  Bruno Haible  <bruno@clisp.org>
55506
55507         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55508         when the macro ignores it.
55509         Based on a patch by Eric Blake <ebb9@byu.net>.
55510
55511 2008-06-17  Bruno Haible  <bruno@clisp.org>
55512
55513         * modules/tls (License): Change to LGPLv2+.
55514         Reported by Eric Blake.
55515
55516 2008-06-17  Eric Blake  <ebb9@byu.net>
55517
55518         Simplify c-stack prerequisites.
55519         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55521         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55522         check.
55523         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55524         <sys/resource.h>.
55525
55526         Move c-stack test into testsuite.
55527         * modules/c-stack-tests: New file.
55528         * lib/c-stack.c [DEBUG]: Move test program...
55529         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55530         fail test if sigaltstack is lacking.
55531         * tests/test-c-stack.sh: New driver file.
55532
55533 2008-06-16  Eric Blake  <ebb9@byu.net>
55534
55535         Use raise module consistently.
55536         * modules/fatal-signal (Depends-on): Add raise.
55537         * modules/sigprocmask (Depends-on): Likewise.
55538         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55539         * lib/sigprocmask.c (sigprocmask): Likewise.
55540         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55541         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55542
55543         Fix compliance bug in sigpending.
55544         * lib/sigprocmask.c (sigpending): Return pending array via
55545         parameter, not return value.
55546
55547 2008-06-14  Eric Blake  <ebb9@byu.net>
55548
55549         Improve obstack-printf test code.
55550         * tests/test-obstack-printf.c (test_function): Fix comment, and
55551         simplify usage of obstack_* in macros.  Add a test for coverage.
55552         Reported by Bruno Haible.
55553
55554 2008-06-14  Bruno Haible  <bruno@clisp.org>
55555
55556         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55557         array size as a constant, not as a const variable.
55558         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55559         AC_USE_SYSTEM_EXTENSIONS.
55560         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55561         Test whether the obstack_printf function actually exists.
55562         * modules/obstack-printf (Depends-on): Add extensions.
55563         (Include): Remove obstack.h.
55564         * modules/obstack-printf-posix (Depends-on): Add extensions.
55565         (Include): Remove obstack.h.
55566
55567 2008-06-13  Eric Blake  <ebb9@byu.net>
55568
55569         Add obstack-printf and obstack-printf-posix modules.
55570         * modules/obstack-printf: New file.
55571         * modules/obstack-printf-posix: Likewise.
55572         * MODULES.html.sh (Misc): Mention them.
55573         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55574         Likewise.
55575         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55576         Likewise.
55577         * modules/stdio (Makefile.am): Accomodate new modules.
55578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55579         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55580         Declare.
55581         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55582         functions.
55583         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55584         (gl_REPLACE_OBSTACK_PRINTF): New macros
55585         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55586         * tests/test-obstack-printf.c: New file.
55587         * modules/obstack-printf-tests: Likewise.
55588         * modules/obstack-printf-posix-tests: Likewise.
55589
55590 2008-06-11  Bruno Haible  <bruno@clisp.org>
55591
55592         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55593         * lib/open.c: Include errno.h.
55594         (open): Fail when attempting to write to a file that has a trailing
55595         slash.
55596         * tests/test-open.c (main): Test against trailing slash bug.
55597         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55598
55599 2008-06-10  Bruno Haible  <bruno@clisp.org>
55600
55601         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55602         for $? to work inside the trap command, with various /bin/sh-s.
55603         * tests/test-vc-list-files-cvs.sh: Likewise.
55604
55605 2008-06-10  Bruno Haible  <bruno@clisp.org>
55606
55607         * lib/acl-internal.h: Don't include gettext.h here.
55608         * lib/set-mode-acl.c: Include gettext.h here.
55609         * lib/copy-acl.c: Likewise.
55610
55611 2008-06-10  Bruno Haible  <bruno@clisp.org>
55612
55613         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55614         * lib/wait-process.c (wait_subprocess): Likewise.
55615         * lib/execute.h (execute): Add termsigp argument.
55616         * lib/execute.c (execute): Likewise.
55617         * lib/csharpcomp.c (compile_csharp_using_pnet,
55618         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55619         * lib/csharpexec.c (execute_csharp_using_pnet,
55620         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55621         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55622         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55623         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55624         is_jikes_present): Update.
55625         * lib/javaexec.c (execute_java_class): Update.
55626         * lib/javaversion.c (execute_and_read_line): Update.
55627         * NEWS: Document the changes.
55628         Reported by Eric Blake.
55629
55630 2008-06-10  Eric Blake  <ebb9@byu.net>
55631
55632         Add missing include.
55633         * tests/test-strstr.c (includes): Add <signal.h>.
55634         * tests/test-strcasestr.c (includes): Likewise.
55635         * tests/test-memmem.c (includes): Likewise.
55636
55637 2008-06-10  Bruno Haible  <bruno@clisp.org>
55638
55639         * lib/wait-process.c (wait_subprocess): Add an assertion.
55640
55641 2008-06-10  Bruno Haible  <bruno@clisp.org>
55642
55643         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55644
55645 2008-06-10  Bruno Haible  <bruno@clisp.org>
55646
55647         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55648         using alarm().
55649         * tests/test-strcasestr.c (main): Likewise.
55650         * tests/test-strstr.c (main): Likewise.
55651
55652 2008-06-09  Bruno Haible  <bruno@clisp.org>
55653
55654         Work around the Solaris 10 ACE ACLs ABI change.
55655         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55656         declare if ACL_NO_TRIVIAL is present.
55657         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55658         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55659         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55660         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55661         define if ACL_NO_TRIVIAL is present.
55662         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55663         and use the current ABI.
55664         (file_has_acl): Use same #if condition as elsewhere.
55665         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55666         in use, and use the current ABI.
55667         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55668         Reported by Jim Meyering.
55669
55670 2008-06-09  Eric Blake  <ebb9@byu.net>
55671
55672         Work around environments that (stupidly) ignore SIGALRM.
55673         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55674         before using alarm().
55675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55676         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55677         Reported by Ian Beckwith <ianb@erislabs.net>.
55678
55679         Produce autobuild blurb earlier in log.
55680         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55681
55682 2008-06-09  Jim Meyering  <meyering@redhat.com>
55683         and Ondřej Vašík  <ovasik@redhat.com>
55684
55685         utimens.c: correct kernel bug work-around
55686         Ondřej Vašík found that the invalid return value of 280 indicates
55687         failure, not success, and the kernel bug we're trying to work
55688         around affects not just the utimensat call, but also the fallback
55689         futimens call.
55690         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55691         not success.
55692         [HAVE_FUTIMENS]: Use the same work-around, here.
55693
55694 2008-06-09  Jim Meyering  <meyering@redhat.com>
55695
55696         add more guards around definition of ACE_-related code
55697         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55698         ALLOW and ACE_OWNER are also defined.
55699
55700 2008-06-08  Bruno Haible  <bruno@clisp.org>
55701
55702         * lib/acl-internal.h: Add me as co-author.
55703         * lib/file-has-acl.c: Likewise.
55704         * lib/set-mode-acl.c: Likewise.
55705         * lib/copy-acl.c: Likewise.
55706
55707 2008-06-08  Bruno Haible  <bruno@clisp.org>
55708
55709         Add support for AIX ACLs.
55710         * lib/acl-internal.h (acl_nontrivial): New declaration.
55711         * lib/file-has-acl.c (acl_nontrivial): New function.
55712         (file_has_acl): Add implementation using AIX 4 ACL API.
55713         * lib/set-mode-acl.c (qset_acl): Likewise.
55714         * lib/copy-acl.c (qcopy_acl): Likewise.
55715
55716 2008-06-08  Bruno Haible  <bruno@clisp.org>
55717
55718         Add support for HP-UX ACLs.
55719         * lib/acl-internal.h (acl_nontrivial): New declaration.
55720         * lib/file-has-acl.c (acl_nontrivial): New function.
55721         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55722         * lib/set-mode-acl.c (qset_acl): Likewise.
55723         * lib/copy-acl.c (qcopy_acl): Likewise.
55724
55725 2008-06-08  Bruno Haible  <bruno@clisp.org>
55726
55727         Add support for Cygwin ACLs.
55728         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55729         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55730         the chmod_or_fchmod call.
55731         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55732
55733 2008-06-08  Bruno Haible  <bruno@clisp.org>
55734
55735         Fix bug with setuid modes in Solaris 10+ code.
55736         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55737         succeeded, when the mode contains some special bits.
55738
55739 2008-06-08  Bruno Haible  <bruno@clisp.org>
55740
55741         Add support for Solaris 7..10 ACLs.
55742         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55743         declarations.
55744         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55745         functions.
55746         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55747         * lib/set-mode-acl.c (qset_acl): Likewise.
55748         * lib/copy-acl.c (qcopy_acl): Likewise.
55749
55750 2008-06-08  Bruno Haible  <bruno@clisp.org>
55751
55752         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55753         declaration.
55754         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55755         (acl_access_nontrivial): Remove MacOS X case.
55756         (file_has_acl): Use acl_extended_nontrivial.
55757         * lib/copy-acl.c (qcopy_acl): Likewise.
55758
55759 2008-06-08  Bruno Haible  <bruno@clisp.org>
55760
55761         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55762
55763 2008-06-08  Jim Meyering  <meyering@redhat.com>
55764
55765         * modules/acl (Maintainer): Add Bruno Haible.
55766
55767 2008-06-07  Bruno Haible  <bruno@clisp.org>
55768
55769         Improve support for Tru64 ACLs.
55770         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55771         ACL on OSF/1.
55772
55773 2008-06-07  Bruno Haible  <bruno@clisp.org>
55774
55775         Add support for MacOS X ACLs.
55776         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55777         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55778         * lib/set-mode-acl.c (qset_acl): Likewise.
55779         * lib/copy-acl.c (qcopy_acl): Likewise.
55780
55781 2008-06-07  Bruno Haible  <bruno@clisp.org>
55782
55783         Fix memory leak introduced on 2008-05-22.
55784         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55785         use.
55786
55787 2008-06-07  Bruno Haible  <bruno@clisp.org>
55788
55789         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55790         to construct an empty ACL.
55791
55792 2008-06-07  Bruno Haible  <bruno@clisp.org>
55793
55794         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55795         precisely.
55796         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55797
55798 2008-06-07  Bruno Haible  <bruno@clisp.org>
55799
55800         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55801         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55802
55803 2008-06-07  Bruno Haible  <bruno@clisp.org>
55804
55805         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55806         regardless of POSIX.
55807         * doc/posix-functions/_longjmp.texi: Likewise.
55808         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55809         SystemV platform in this case.
55810
55811 2008-06-06  Eric Blake  <ebb9@byu.net>
55812
55813         Document abort() bugs.
55814         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55815
55816         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55817         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55818         sigsetjmp.
55819         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55820         siglongjmp, but only as a macro.
55821         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55822         is obsolete.
55823         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55824
55825         Tweak documentation to cover cygwin argz bugs.
55826         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55827         argz bug fix; no code change needed since no cygwin releases
55828         occurred between the last fix and the bug being tested.
55829         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55830         module and recently fixed cygwin bugs.
55831         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55832         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55833         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55834         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55835         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55836         Likewise.
55837         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55838         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55839         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55840         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55841         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55842         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55843         Likewise.
55844
55845         Avoid gcc warning on cygwin.
55846         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55847         !ACL_NO_TRIVIAL]: Avoid unused variable.
55848
55849 2008-06-05  Eric Blake  <ebb9@byu.net>
55850
55851         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55852         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55853         git-version-gen fails to come up with a version.
55854         Reported by Simon Josefsson.
55855
55856 2008-06-05  Jim Meyering  <meyering@redhat.com>
55857             Paul Eggert  <eggert@cs.ucla.edu>
55858
55859         utimens.c: work around a probable Linux kernel bug
55860         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55861         appears to be a kernel bug that causes utimensat to return 280
55862         instead of 0, indicating success.
55863
55864 2008-06-04  Bruno Haible  <bruno@clisp.org>
55865
55866         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55867         2008-06-01 commit.
55868
55869 2008-06-04  Bruno Haible  <bruno@clisp.org>
55870
55871         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55872         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55873         (file_has_acl): Use it. Save errno afterwards.
55874         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55875
55876 2008-06-03  Bruno Haible  <bruno@clisp.org>
55877
55878         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55879         draft code. Simplify #ifs.
55880         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55881         Put Solaris code after POSIX-draft code. Fix comments regarding
55882         Solaris 10, HP-UX. Mention Cygwin.
55883         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55884
55885 2008-06-03  Eric Blake  <ebb9@byu.net>
55886
55887         Provide fallback for older kernels.
55888         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55889         Provide runtime fallback if kernel lacks support.
55890         Reported by Mike Frysinger.
55891
55892 2008-06-02  Bruno Haible  <bruno@clisp.org>
55893
55894         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55895         it exists.
55896
55897 2008-06-02  Bruno Haible  <bruno@clisp.org>
55898
55899         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55900         * lib/copy-acl.c (qcopy_acl): Update comment.
55901
55902 2008-06-02  Bruno Haible  <bruno@clisp.org>
55903
55904         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55905         like ACL APIs.
55906
55907 2008-06-02  Bruno Haible  <bruno@clisp.org>
55908
55909         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55910         * tests/test-set-mode-acl.sh: Likewise.
55911         * tests/test-copy-acl.sh: Likewise.
55912         * tests/test-copy-file.sh: Likewise.
55913
55914 2008-06-02  Bruno Haible  <bruno@clisp.org>
55915
55916         * tests/test-file-has-acl.sh: Remove unused code.
55917
55918 2008-06-01  Bruno Haible  <bruno@clisp.org>
55919
55920         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55921         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55922         messages.
55923         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55924
55925 2008-06-01  Bruno Haible  <bruno@clisp.org>
55926
55927         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55928         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55929         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55930         APIs.
55931         * modules/acl-tests (configure.ac): Remove tests now contained in
55932         m4/acl.m4.
55933
55934 2008-06-02  Jim Meyering  <meyering@redhat.com>
55935
55936         announce-gen: use a better key-server host name
55937         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55938         it may be more consistently reliable.  Suggested by Werner Koch
55939         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55940
55941 2008-06-01  Bruno Haible  <bruno@clisp.org>
55942
55943         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55944         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55945
55946 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55947
55948         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55949
55950 2008-06-01  Bruno Haible  <bruno@clisp.org>
55951
55952         New ACL tests.
55953         * tests/test-file-has-acl.sh: New file.
55954         * tests/test-file-has-acl.c: New file.
55955         * tests/test-set-mode-acl.sh: New file.
55956         * tests/test-set-mode-acl.c: New file.
55957         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55958         * tests/test-copy-acl.c: New file.
55959         * modules/acl-tests: New file, based on modules/copy-file-tests.
55960         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55961         (Depends-on): Add acl-tests.
55962         (configure.ac): Remove checks.
55963         (Makefile.am): Don't create test-sameacls program here any more.
55964
55965 2008-06-01  Bruno Haible  <bruno@clisp.org>
55966
55967         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55968         * tests/test-sameacls.c: Include progname.h.
55969         (main): Invoke set_program_name. Portability fixes for MacOS X,
55970         Solaris, HP-UX.
55971
55972 2008-06-01  Bruno Haible  <bruno@clisp.org>
55973
55974         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55975         function.
55976         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55977
55978 2008-06-01  Bruno Haible  <bruno@clisp.org>
55979
55980         * modules/rpmatch (Depends-on): Add strdup.
55981
55982 2008-06-01  Bruno Haible  <bruno@clisp.org>
55983
55984         * lib/pipe.c: Include unistd-safer.h.
55985         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55986         * modules/pipe (Depends-on): Add unistd-safer.
55987
55988 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55989
55990         * modules/autobuild (configure.ac): Call AB_INIT.
55991
55992 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55993
55994         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55995         Suggested by Bruno Haible <bruno@clisp.org>.
55996
55997 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55998
55999         * tests/test-base64.c: Cast size_t to unsigned long when invoking
56000         printf.  Use %lu instead of %d.  Reported by Bruno Haible
56001         <bruno@clisp.org>.
56002
56003 2008-05-29  Eric Blake  <ebb9@byu.net>
56004
56005         Prefer new POSIX 200x interfaces over futimesat.
56006         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
56007         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
56008         when available.
56009         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56010
56011 2008-05-28  Bruno Haible  <bruno@clisp.org>
56012
56013         * modules/stpcpy (License): Change to LGPLv2+.
56014         Requested by David Lutterkort <dlutter@redhat.com>.
56015
56016 2008-05-27  Bruno Haible  <bruno@clisp.org>
56017
56018         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56019         current mingw.
56020         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56021
56022 2008-05-27  Bruno Haible  <bruno@clisp.org>
56023
56024         * modules/iconv_open (Link): New section, from module 'iconv'.
56025         * modules/striconv (Link): Likewise.
56026         * modules/striconveh (Link): Likewise.
56027         * modules/xstriconv (Link): Likewise.
56028         * modules/unicodeio (Link): Likewise.
56029         * modules/propername (Link): Likewise.
56030         Reported by Jim Meyering.
56031
56032 2008-05-26  Jim Meyering  <meyering@redhat.com>
56033
56034         sha256: do not artificially restrict buffer length to be < 2^32
56035         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56036         uint32_t to size_t.
56037         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56038         to match.
56039
56040         avoid unaligned access errors, e.g., on sparc
56041         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56042         direct access through a possibly-unaligned uint64* pointer.
56043         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56044         direct access through a possibly-unaligned uint32* pointer.
56045         Prompted by this patch from Tom "spot" Callaway:
56046         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56047
56048         sha512.c: fix typo in comment
56049         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56050
56051 2008-05-25  Bruno Haible  <bruno@clisp.org>
56052
56053         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56054         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56055         (Makefile.am): Update lib_SOURCES.
56056
56057 2008-05-25  Bruno Haible  <bruno@clisp.org>
56058
56059         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56060
56061 2008-05-25  Jim Meyering  <meyering@redhat.com>
56062
56063         useless-if-before-free: freed expr may have white-space differences
56064         * build-aux/useless-if-before-free: Recognize cases in which the
56065         freed expression differs from the tested one in embedded white
56066         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56067         $1 was used, so we can't make any regexp shy.  Improved tests now
56068         detect this.
56069
56070         useless-if-before-free: accept white space in the expression.
56071         * build-aux/useless-if-before-free: For now, any white space
56072         in the expression must be identical in the free argument.
56073
56074         useless-if-before-free: efficiency tweak
56075         * build-aux/useless-if-before-free: Make the expression-matching
56076         regexp "shy".
56077         Make the *outer* regexp shy, not the expr-matching one.
56078
56079         update code-in-comment to accept cast of free arg
56080         * build-aux/useless-if-before-free: Update regexp.
56081
56082 2008-05-25  Bruno Haible  <bruno@clisp.org>
56083
56084         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56085         * modules/copy-file-tests (Files, Makefile.am): Update.
56086         * tests/test-copy-file.c (func_test_copy): Update.
56087
56088 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56089
56090         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56091
56092 2008-05-23  Bruno Haible  <bruno@clisp.org>
56093
56094         Improve support for ACLs on OSF/1.
56095         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56096         Remove fallback for unknown flavors of ACLs.
56097
56098 2008-05-22  Bruno Haible  <bruno@clisp.org>
56099
56100         Add support for ACLs on OSF/1.
56101         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56102         replacements.
56103         (acl_free_text): New macro fallback.
56104         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56105         acl_free.
56106         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56107         acl_free_text function. Require AC_C_INLINE.
56108
56109 2008-05-22  Bruno Haible  <bruno@clisp.org>
56110
56111         Make copy_acl work on MacOS X 10.5.
56112         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56113         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56114         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56115         If MODE_INSIDE_ACL, don't assume that every system has the same text
56116         representation for ACLs as FreeBSD.
56117         * lib/copy-acl.c (copy_acl): Add support for platforms with
56118         !MODE_INSIDE_ACL.
56119         * lib/file-has-acl.c (file_has_acl): Likewise.
56120         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56121         FreeBSD, MacOS X, or IRIX, respectively.
56122
56123 2008-05-22  Bruno Haible  <bruno@clisp.org>
56124
56125         * lib/acl.h: Don't include <sys/acl.h>.
56126         (GETACLCNT): Move fallback to lib/acl-internal.h.
56127         * lib/acl-internal.h: Include <sys/acl.h> here.
56128         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56129
56130 2008-05-22  Bruno Haible  <bruno@clisp.org>
56131
56132         Split off copy_acl function to separate file.
56133         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56134         * lib/acl.c (copy_acl): Moved function to separate file.
56135         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56136         * modules/acl (Files): Add lib/copy-acl.c.
56137         (Makefiles.am): Augment lib_SOURCES.
56138
56139 2008-05-22  Bruno Haible  <bruno@clisp.org>
56140
56141         * modules/copy-file-tests: New file.
56142         * tests/test-copy-file.sh: New file.
56143         * tests/test-copy-file.c: New file.
56144         * tests/test-copy-file-sameacls.c: New file.
56145
56146 2008-05-22  Eric Blake  <ebb9@byu.net>
56147
56148         Avoid gcc warning.
56149         * tests/test-memcmp.c (main): Pass NULL indirectly.
56150
56151 2008-05-21  Bruno Haible  <bruno@clisp.org>
56152
56153         Add reference doc about ACLs.
56154         * doc/acl-resources.txt: New file.
56155         * doc/acl-cygwin.txt: New file.
56156
56157 2008-05-21  Bruno Haible  <bruno@clisp.org>
56158
56159         Avoid one more warning from gcc.
56160         * lib/vasnprintf.c (IF_LINT): Update comments.
56161         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56162
56163 2008-05-21  Jim Meyering  <meyering@redhat.com>
56164
56165         avoid a warning from gcc
56166         * lib/vasnprintf.c (IF_LINT): Define.
56167         (scale10_round_decimal_long_double):
56168         Use it to avoid a "may be used uninitialized" warning.
56169         (scale10_round_decimal_double): Likewise.
56170
56171 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56172
56173         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56174         declared.
56175
56176 2008-05-20  Bruno Haible  <bruno@clisp.org>
56177
56178         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56179         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56180
56181 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56182
56183         * modules/memcmp-tests: New file.
56184         * tests/test-memcmp.c: New file.
56185
56186 2008-05-19  Bruno Haible  <bruno@clisp.org>
56187
56188         * modules/propername (Notice, configure.ac): Put quoted "..." into
56189         --keyword option.
56190         * lib/propername.h: Update comments accordingly.
56191         Reported by Eric Blake.
56192
56193 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56194
56195         * modules/getpass-gnu (Depends-on): Add fseeko.
56196
56197 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56198
56199         * modules/base64-tests: New file.
56200
56201 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56202
56203         * lib/base64.c (base64_decode_ctx): If a decode context structure
56204         was passed in use it to ignore newlines.  If a context structure
56205         was _not_ passed in, continue to treat newlines as garbage (this
56206         is the historical behavior).  Formerly base64_decode.
56207         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56208         takes a decode context structure.
56209         * lib/base64.h (base64_decode): Macro for four-argument calls.
56210         (base64_decode_alloc): Likewise.
56211         * lib/base64.c (base64_decode_ctx): If a decode context structure
56212         was passed in use it to ignore newlines.  If a context structure
56213         was _not_ passed in, continue to treat newlines as garbage (this
56214         is the historical behavior).  Formerly base64_decode.
56215         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56216         takes a decode context structure.
56217         * lib/base64.h (base64_decode): Macro for four-argument calls.
56218         (base64_decode_alloc): Likewise.
56219
56220 2008-05-19  Jim Meyering  <meyering@redhat.com>
56221
56222         avoid a warning from gcc
56223         * lib/trim.c (IF_LINT): Define.
56224         (trim2): Use it to avoid a "may be used uninitialized" warning.
56225
56226         Fix doc typo.
56227         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56228
56229 2008-05-19  Bruno Haible  <bruno@clisp.org>
56230
56231         * doc/glibc-functions/getpass.texi: Document limits of other
56232         implementations.
56233
56234 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56235             Bruno Haible <bruno@clisp.org>
56236
56237         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56238
56239 2008-05-18  Bruno Haible  <bruno@clisp.org>
56240
56241         * modules/propername: New file, from GNU gettext.
56242         * lib/propername.h: New file, from GNU gettext.
56243         * lib/propername.c: New file, from GNU gettext.
56244         * MODULES.html.sh (Internationalization functions): Add propername.
56245
56246 2008-05-16  Jim Meyering  <meyering@redhat.com>
56247             Bruno Haible  <bruno@clisp.org>
56248
56249         Avoid some warnings from "gcc -Wshadow".
56250         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56251
56252 2008-05-15  Eric Blake  <ebb9@byu.net>
56253
56254         Extend previous patch to cygwin 1.7.0.
56255         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56256         fast implementation in cygwin >= 1.7.0.
56257         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56259
56260 2008-05-15  Bruno Haible  <bruno@clisp.org>
56261
56262         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56263         implementation in glibc >= 2.9.
56264         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56266
56267 2008-05-15  Bruno Haible  <bruno@clisp.org>
56268
56269         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56270         (Unicode string functions): Add unilbrk/*.
56271         Reported by Karl Berry.
56272
56273 2008-05-15  Eric Blake  <ebb9@byu.net>
56274
56275         Fix violation of <stdbool.h> replacement in regex.
56276         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56277         * lib/regexec.c (re_search_internal): Likewise.
56278         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56279
56280 2008-05-15  Jim Meyering  <meyering@redhat.com>
56281
56282         avoid distracting test output when git or cvs is not found
56283         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56284         * tests/test-vc-list-files-git.sh: Likewise.
56285
56286 2008-05-15  Eric Blake  <ebb9@byu.net>
56287
56288         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56289         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56290         glibc version.
56291         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56292         * doc/posix-functions/strstr.texi (strstr): Likewise.
56293         * lib/str-two-way.h (MAX): Sychronize with glibc.
56294
56295 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56296
56297         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56298         opr.ctx_type.
56299         (calc_first): Initialize constraint field.
56300         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56301         Fix grammar.
56302         (duplicate_node): Merge constraint field for all node types.
56303         (calc_eclosure_iter): Look at constraint field for all node types.
56304         * lib/regex_internal.c (create_cd_newstate): Don't look at
56305         opr.ctx_type.
56306
56307 2008-05-14  Bruno Haible  <bruno@clisp.org>
56308
56309         Help GCC to do better code generation.
56310         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56311         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56312         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56313         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56314         Declare with attribute 'malloc' if supported.
56315
56316 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56317
56318         use "echo STR|wc -c" rather than unportable "expr length STR"
56319         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56320         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56321
56322 2008-05-14  Jim Meyering  <meyering@redhat.com>
56323
56324         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56325         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56326         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56327         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56328         via Collin Lasse.
56329
56330 2008-05-14  Eric Blake  <ebb9@byu.net>
56331
56332         Avoid quadratic growth in gl_LIBSOURCES.
56333         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56334         Suggested by Bruno Haible.
56335
56336         Test xmemdup0.
56337         * modules/xmemdup0-tests: New file.
56338         * tests/test-xmemdup0.c: Likewise.
56339
56340 2008-05-13  Eric Blake  <ebb9@byu.net>
56341
56342         Split xmemdup0 into its own module.
56343         * modules/xmemdup0: New file.
56344         * lib/xmemdup0.h: Likewise.
56345         * lib/xmemdup0.c: Likewise.
56346         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56347         * lib/xalloc.h (xmemdup0): Remove.
56348         * lib/xmalloc.c (xmemdup0): Likewise.
56349
56350 2008-05-13  Eric Blake  <ebb9@byu.net>
56351             Bruno Haible  <bruno@clisp.org>
56352
56353         Reduce number of forks required during autoconf.
56354         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56355         and gl_LIBSOURCES_DIR.
56356         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56357         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56358         m4_syscmd per file.
56359         <m4_foreach_w>: Move...
56360         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56361
56362 2008-05-13  Eric Blake  <ebb9@byu.net>
56363
56364         * gnulib-tool: Fix various comment typos.
56365
56366 2008-05-12  Bruno Haible  <bruno@clisp.org>
56367
56368         Tailor the linebreaking algorithm.
56369         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56370
56371 2008-05-12  Bruno Haible  <bruno@clisp.org>
56372
56373         Update to Unicode 5.0.0.
56374         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56375         LBP_JV, LBP_JT. Redistribute values.
56376         (unilbrk_table): Change size.
56377         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56378         Unicode TR#14 rev. 22.
56379         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56380         LBP_JV, LBP_JT. Redistribute values.
56381         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56382         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56383         Update.
56384         * lib/unilbrk/lbrkprop1.h: Regenerated.
56385         * lib/unilbrk/lbrkprop2.h: Regenerated.
56386         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56387         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56388         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56389         Likewise.
56390         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56391         Likewise.
56392         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56393         result.
56394         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56395         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56396         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56397         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56398         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56399         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56400
56401 2008-05-11  Bruno Haible  <bruno@clisp.org>
56402
56403         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56404
56405 2008-05-11  Bruno Haible  <bruno@clisp.org>
56406
56407         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56408         * modules/unilbrk/gen-lbrk: New file.
56409
56410 2008-05-11  Bruno Haible  <bruno@clisp.org>
56411
56412         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56413         * m4/sha512.m4 (gl_SHA512): Likewise.
56414
56415 2008-05-11  Jim Meyering  <meyering@redhat.com>
56416
56417         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56418         * modules/crypto/sha256: New file.
56419         * modules/crypto/sha512: Likewise.
56420         * lib/sha256.c: Likewise.
56421         * lib/sha256.h: Likewise.
56422         * lib/sha512.c: Likewise.
56423         * lib/sha512.h: Likewise.
56424         * lib/u64.h: Likewise.
56425         * m4/sha256.m4: Likewise.
56426         * m4/sha512.m4: Likewise.
56427         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56428
56429 2008-05-10  Bruno Haible  <bruno@clisp.org>
56430
56431         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56432         (Input/Output <stdio.h>): Add xprintf.
56433         (Signal handling <signal.h>): Add strsignal.
56434         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56435         (Core language properties): Add func.
56436         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56437         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56438         strings.
56439         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56440         (Input/output): New section.
56441         (File system functions): Add openat-die, stat-macros.
56442         (Networking functions): Add sockets.
56443         (Unicode string functions): Add unictype/*.
56444         (Support for building libraries and executables): Add gperf.
56445         (Support for building documentation): Add agpl-3.0.
56446         (Misc): Add nocrash.
56447
56448 2008-05-10  Bruno Haible  <bruno@clisp.org>
56449
56450         * modules/unictype/gen-ctype: New file.
56451
56452 2008-05-10  Jim Meyering  <meyering@redhat.com>
56453
56454         Make chdir-safer.c more efficient on a system with no symlinks.
56455         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56456         also if ELOOP is zero.  Suggested by Bruno Haible.
56457
56458         Make chdir-safer.c slightly safer.
56459         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56460         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56461
56462         Avoid compile failure on systems without ELOOP (like mingw).
56463         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56464         Reported by Bruno Haible.
56465
56466 2008-05-10  Bruno Haible  <bruno@clisp.org>
56467
56468         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56469         (is_utf8_encoding): Use a case-insensitive comparison.
56470         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56471         streq.
56472
56473 2008-05-10  Bruno Haible  <bruno@clisp.org>
56474
56475         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56476         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56477         * lib/unilbrk/ulc-common.h (iconv_string_length,
56478         iconv_string_keeping_offsets): Remove declarations.
56479         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56480         Don't include <iconv.h>, streq.h, xsize.h.
56481         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56482         conversion.
56483         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56484         <iconv.h>, streq.h, xsize.h.
56485         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56486         conversion.
56487         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56488         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56489         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56490         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56491
56492 2008-05-10  Bruno Haible  <bruno@clisp.org>
56493
56494         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56495         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56496
56497         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56498         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56499
56500         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56501         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56502
56503         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56504         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56505
56506         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56507         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56508
56509         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56510         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56511
56512         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56513         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56514
56515         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56516         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56517
56518 2008-05-10  Bruno Haible  <bruno@clisp.org>
56519
56520         Split up 'linebreak' module.
56521         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56522         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56523         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56524         modifications.
56525         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56526         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56527         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56528         lib/linebreak.c.
56529         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56530         lib/linebreak.c.
56531         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56532         lib/linebreak.c.
56533         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56534         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56535         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56536         lib/linebreak.c.
56537         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56538         lib/linebreak.c.
56539         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56540         lib/linebreak.c.
56541         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56542         lib/linebreak.c.
56543         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56544         lib/linebreak.c.
56545         * modules/unilbrk/base: New file.
56546         * modules/unilbrk/tables: New file.
56547         * modules/unilbrk/u8-possible-linebreaks: New file.
56548         * modules/unilbrk/u16-possible-linebreaks: New file.
56549         * modules/unilbrk/u32-possible-linebreaks: New file.
56550         * modules/unilbrk/ulc-common: New file.
56551         * modules/unilbrk/ulc-possible-linebreaks: New file.
56552         * modules/unilbrk/u8-width-linebreaks: New file.
56553         * modules/unilbrk/u16-width-linebreaks: New file.
56554         * modules/unilbrk/u32-width-linebreaks: New file.
56555         * modules/unilbrk/ulc-width-linebreaks: New file.
56556         * lib/linebreak.h: Remove file.
56557         * lib/linebreak.c: Remove file.
56558         * m4/linebreak.m4: Remove file.
56559         * modules/linebreak: Remove file.
56560         * NEWS: Mention the changes.
56561
56562 2008-05-09  Eric Blake  <ebb9@byu.net>
56563
56564         Add xmemdup0.
56565         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56566         implementation.
56567         * lib/xmalloc.c (xmemdup0): New C implementation.
56568
56569 2008-05-08  Bruno Haible  <bruno@clisp.org>
56570
56571         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56572
56573 2008-05-07  Eric Blake  <ebb9@byu.net>
56574
56575         Support cross-compilation of <wctype.h>.
56576         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56577         AC_CACHE_CHECK.
56578
56579 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56580
56581         * build-aux/vc-list-files: Add support for bzr.
56582
56583 2008-05-03  Jim Meyering  <meyering@redhat.com>
56584
56585         avoid failed assertion with tight malloc
56586         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56587
56588 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56589
56590         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56591         are needed from arpa/inet.h.
56592         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56593         Reported by Bruno Haible.
56594
56595 2008-05-02  Jim Meyering  <meyering@redhat.com>
56596
56597         avoid compilation error on FreeBSD 6
56598         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56599
56600 2008-05-01  Jim Meyering  <meyering@redhat.com>
56601
56602         useless-if-before-free: correct --help's exit status description
56603         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56604         for one or more matches, etc.  Reported by Bruno Haible.
56605
56606         vc-list-files: make the stand-alone gnulib test work
56607         * modules/vc-list-files-tests (configure.ac):
56608         Define and AC_SUBST abs_aux_dir.
56609         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56610         $(abs_top_srcdir) to each script and having each of them
56611         duplicate the work of setting PATH, set PATH here, using
56612         the new variable, abs_aux_dir instead.
56613         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56614         * tests/test-vc-list-files-git.sh: Likewise.
56615         Reported by Bruno Haible.
56616
56617 2008-05-01  Bruno Haible  <bruno@clisp.org>
56618
56619         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56620         reallocation. Rename 'done' to 'found_delimiter'.
56621
56622 2008-05-01  Jim Meyering  <meyering@redhat.com>
56623
56624         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56625         * build-aux/vc-list-files: Use `...`, not $(...).
56626
56627 2008-04-30  Jim Meyering  <meyering@redhat.com>
56628
56629         add tests for vc-list-files
56630         * modules/vc-list-files-tests: New module.
56631         * tests/test-vc-list-files-cvs.sh: New file.
56632         * tests/test-vc-list-files-git.sh: New file.
56633
56634         avoid a warning from gcc
56635         * lib/getndelim2.c (IF_LINT): Define.
56636         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56637
56638         vc-list-files: work properly with build-aux/cvsu, too
56639         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56640         to all cvs-based clauses.
56641
56642         vc-list-files: work properly in the CVS+awk case, too
56643         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56644
56645         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56646         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56647         take more than one file argument, so .  Add quotes, just in case $dir
56648         ever contains a shell meta-character.  Prompted by Soren Hansen in
56649         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56650
56651 2008-04-29  Eric Blake  <ebb9@byu.net>
56652
56653         Optimize getndelim2 to use block operations when possible.
56654         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56655         freadseek, and memchr2.
56656         * lib/getndelim2.c (getndelim2): Use them for block reads.
56657
56658 2008-04-29  Bruno Haible  <bruno@clisp.org>
56659
56660         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56661         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56662         * modules/inet_ntop (Depends-on): Add extensions.
56663         * modules/inet_pton (Depends-on): Likewise.
56664         Reported by Simon Josefsson.
56665
56666 2008-04-29  Jim Meyering  <meyering@redhat.com>
56667
56668         When the is more than one match in a block, match all of them.
56669         * build-aux/useless-if-before-free: Iterate through each block
56670         until there are no more matches.
56671
56672         Fix broken useless-if-before-free script.
56673         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56674         the expression to match cast of argument to free-like function.
56675
56676 2008-04-29  Eric Blake  <ebb9@byu.net>
56677
56678         Use new header.
56679         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56680
56681 2008-04-29  Jim Meyering  <meyering@redhat.com>
56682
56683         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56684         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56685         by gnulib to exist and to declare e.g., inet_ntop.
56686         Don't include "inet_ntop.h", now removed.
56687
56688         * m4/arpa_inet_h.m4: Remove trailing blanks.
56689
56690 2008-04-29  Eric Blake  <ebb9@byu.net>
56691
56692         Silence valgrind on safe reads beyond potential array bounds.
56693         * lib/rawmemchr.valgrind: New file.
56694         * lib/strchrnul.valgrind: Likewise.
56695         * modules/rawmemchr (Files): Distribute new file.
56696         * modules/strchrnul (Files): Likewise.
56697         Suggested by Bruno Haible.
56698
56699 2008-04-29  Bruno Haible  <bruno@clisp.org>
56700
56701         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56702         (inet_ntop, inet_pton): Change portability warning's wording.
56703         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56704         Invoke gl_CHECK_NEXT_HEADERS.
56705         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56706         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56707         set ARPA_INET_H.
56708         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56709         * modules/arpa_inet (Description): No longer only for systems that
56710         lack it.
56711         (Depends-on): Add include_next.
56712         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56713         HAVE_ARPA_INET_H.
56714
56715 2008-04-29  Jim Meyering  <meyering@redhat.com>
56716
56717         * modules/mkdir (License): Re-license as LGPLv2+.
56718
56719 2008-04-29  Bruno Haible  <bruno@clisp.org>
56720
56721         * modules/rawmemchr (Maintainer): Set to Eric.
56722         * modules/strchrnul (Maintainer): Likewise.
56723
56724 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56725
56726         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56727         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56728
56729         * modules/arpa_inet (arpa/inet.h): Use them.
56730
56731 2008-04-28  Eric Blake  <ebb9@byu.net>
56732
56733         Test getndelim2.
56734         * modules/getndelim2-tests: New file.
56735         * tests/test-getndelim2.c: Likewise.
56736         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56737         stream.
56738         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56739
56740         * MODULES.html.sh: Document new module.
56741
56742 2008-04-20  Bruno Haible  <bruno@clisp.org>
56743
56744         * lib/c-stack.c (die): Use raise.
56745         * modules/c-stack (Depends-on): Add raise.
56746
56747 2008-04-28  Bruno Haible  <bruno@clisp.org>
56748
56749         Expect rpmatch to be declared.
56750         * lib/yesno.c (rpmatch): Remove declaration.
56751
56752         Declare rpmatch.
56753         * lib/stdlib.in.h (rpmatch): New declaration.
56754         * lib/rpmatch.c: Include <stdlib.h> first.
56755         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56756         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56757         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56758         HAVE_RPMATCH.
56759         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56760         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56761         (Include): Set to <stdlib.h>.
56762         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56763         HAVE_RPMATCH.
56764         * NEWS: Document the change.
56765
56766 2008-04-28  Bruno Haible  <bruno@clisp.org>
56767
56768         Change rpmatch to use nl_langinfo when appropriate.
56769         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56770         (N_): New macro.
56771         (localized_pattern): New function/macro.
56772         (try): Remove match, nomatch arguments. Copy the pattern into safe
56773         memory before caching it.
56774         (rpmatch): Use localized_pattern. Add translator comments.
56775         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56776         Suggested by Eric Blake.
56777         * modules/rpmatch (Depends-on): Add stdbool.
56778
56779 2008-04-28  Eric Blake  <ebb9@byu.net>
56780
56781         Add rawmemchr module, matching glibc.
56782         * modules/string (Makefile.am): New indicator.
56783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56784         * lib/string.in.h (rawmemchr): Declare when appropriate.
56785         * modules/rawmemchr: New file.
56786         * m4/rawmemchr.m4: Likewise.
56787         * lib/rawmemchr.c: Likewise.
56788         * modules/rawmemchr-tests: Likewise.
56789         * tests/test-rawmemchr.c: Likewise.
56790         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56791         module.
56792         * modules/strchrnul (Depends-on): Add rawmemchr.
56793         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56794
56795         Whitespace cleanup.
56796         * tests/test-strchrnul.c: Reindent.
56797         * lib/strchrnul.c: Likewise.
56798
56799         Optimize and test strchrnul.
56800         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56801         * modules/strchrnul-tests: New file.
56802         * tests/test-strchrnul.c: Likewise.
56803
56804         Remove intprops dependency.
56805         * modules/memchr (Depends-on): Remove intprops.
56806         * modules/memrchr (Depends-on): Likewise.
56807         * modules/memchr2 (Depends-on): Likewise.
56808         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56809         * lib/memrchr.c (__memrchr): Likewise.
56810         * lib/memrchr2.c (memchr2): Likewise.
56811         Reported by Simon Josefsson.
56812
56813 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56814
56815         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56816         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56817
56818 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56819
56820         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56821
56822         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56823
56824         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56825
56826         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56827         declarations.
56828         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56829
56830         * m4/inet_pton.m4: Don't check for header files.
56831
56832         * m4/inet_ntop.m4: Don't check for header files.
56833
56834 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56835
56836         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56837         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56838         trigger for cygwin).
56839         Reported by Bruno Haible  <bruno@clisp.org>.
56840
56841 2008-04-28  Bruno Haible  <bruno@clisp.org>
56842
56843         * doc/posix-functions/strdup.texi: Mention mingw problem.
56844
56845 2008-04-27  Bruno Haible  <bruno@clisp.org>
56846
56847         * modules/stat-time-tests (Depends-on): Add sleep.
56848         * tests/test-stat-time.c (force_unlink): New function.
56849         (cleanup): Use it.
56850         (test_mtime): Remove the ctime related tests.
56851         (test_ctime): New function, containing the ctime related tests.
56852         (main): Call test_ctime, except on native Windows platforms.
56853
56854 2008-04-27  Bruno Haible  <bruno@clisp.org>
56855
56856         * lib/rpmatch.c (rpmatch): Add some comments.
56857         Reported by James Youngman <jay@gnu.org>.
56858
56859 2008-04-27  Bruno Haible  <bruno@clisp.org>
56860
56861         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56862         quiet NaNs.
56863
56864 2008-04-27  Bruno Haible  <bruno@clisp.org>
56865
56866         Make test-yesno.sh work on mingw.
56867         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56868         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56869         (main): Set stdin to binary mode.
56870         * modules/yesno-tests (Depends-on): Add binary-io.
56871
56872 2008-04-27  Bruno Haible  <bruno@clisp.org>
56873
56874         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56875         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56876         argument that lie outside the IEEE 854 domain.
56877         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56878         (gl_ISFINITE): Use it.
56879         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56880
56881 2008-04-27  Bruno Haible  <bruno@clisp.org>
56882
56883         Allow local renaming in config.h.
56884         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56885
56886 2008-04-27  Bruno Haible  <bruno@clisp.org>
56887
56888         * lib/memchr.c (__memchr): Change type of 'i'.
56889         * lib/memchr2.c (memchr2): Likewise.
56890
56891 2008-04-26  Eric Blake  <ebb9@byu.net>
56892         and Bruno Haible  <bruno@clisp.org>
56893
56894         Optimize and test memrchr.
56895         * modules/memrchr (Depends-on): Add intprops.
56896         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56897         * modules/memrchr-tests: New file.
56898         * tests/test-memrchr.c: New file.
56899
56900 2008-04-26  Bruno Haible  <bruno@clisp.org>
56901
56902         Add tentative support for DragonFly BSD.
56903         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56904         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56905         fp.
56906         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56907         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56908         * lib/fpurge.c (fpurge): Likewise.
56909         * lib/freadable.c (freaadable): Likewise.
56910         * lib/freadahead.c (freadahead): Likewise.
56911         * lib/freading.c (freading): Likewise.
56912         * lib/freadptr.c (freadptr): Likewise.
56913         * lib/freadseek.c (freadptrinc): Likewise.
56914         * lib/fseeko.c (fseeko): Likewise.
56915         * lib/fseterr.c (fseterr): Likewise.
56916         * lib/fwritable.c (fwritable): Likewise.
56917         * lib/fwriting.c (fwriting): Likewise.
56918
56919 2008-04-26  Bruno Haible  <bruno@clisp.org>
56920
56921         * lib/stdio-impl.h: New file.
56922         * lib/fbufmode.c: Include stdio-impl.h.
56923         (fbufmode): Use fp_, remove redundant #defines.
56924         * lib/fflush.c: Include stdio-impl.h.
56925         (clear_ungetc_buffer): Remove redundant #defines.
56926         * lib/fpurge.c: Include stdio-impl.h.
56927         (fpurge): Remove redundant #defines.
56928         * lib/freadable.c: Include stdio-impl.h.
56929         (freadable): Remove redundant #defines.
56930         * lib/freadahead.c: Include stdio-impl.h.
56931         (freadahead): Remove redundant #defines.
56932         * lib/freading.c: Include stdio-impl.h.
56933         (freading): Remove redundant #defines.
56934         * lib/freadptr.c: Include stdio-impl.h.
56935         (freadptr): Remove redundant #defines.
56936         * lib/freadseek.c: Include stdio-impl.h.
56937         (freadptrinc): Remove redundant #defines.
56938         * lib/fseeko.c: Include stdio-impl.h.
56939         (rpl_fseeko): Remove redundant #defines.
56940         * lib/fseterr.c: Include stdio-impl.h.
56941         (fseterr): Remove redundant #defines.
56942         * lib/fwritable.c: Include stdio-impl.h.
56943         (fwritable: Remove redundant #defines.
56944         * lib/fwriting.c: Include stdio-impl.h.
56945         (fwriting): Remove redundant #defines.
56946         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56947         * modules/fflush (Files): Likewise.
56948         * modules/fpurge (Files): Likewise.
56949         * modules/freadable (Files): Likewise.
56950         * modules/freadahead (Files): Likewise.
56951         * modules/freading (Files): Likewise.
56952         * modules/freadptr (Files): Likewise.
56953         * modules/freadseek (Files): Likewise.
56954         * modules/fseeko (Files): Likewise.
56955         * modules/fseterr (Files): Likewise.
56956         * modules/fwritable (Files): Likewise.
56957         * modules/fwriting (Files): Likewise.
56958
56959 2008-04-26  Bruno Haible  <bruno@clisp.org>
56960
56961         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56962         restore_seek_optimization, update_fpos_cache): New functions, extracted
56963         from rpl_fflush.
56964         (rpl_fflush): Use them.
56965         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56966         (gl_REPLACE_FFLUSH): Use it.
56967
56968 2008-04-26  Bruno Haible  <bruno@clisp.org>
56969
56970         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56971         on Solaris.
56972         * tests/test-xstrtoimax.sh: Likewise.
56973         * tests/test-xstrtoumax.sh: Likewise.
56974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56975
56976 2008-04-26  Bruno Haible  <bruno@clisp.org>
56977
56978         * modules/memchr-tests: New file.
56979         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56980
56981 2008-04-26  Eric Blake  <ebb9@byu.net>
56982             Bruno Haible  <bruno@clisp.org>
56983
56984         * lib/memchr.c: Include intprops.h.
56985         (__memchr): Optimize parallel detection of matching bytes. Rename local
56986         variables. Add explanatory comments.
56987
56988 2008-04-26  Bruno Haible  <bruno@clisp.org>
56989
56990         Fix module 'memchr', broken since 2000-10-28.
56991         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56992
56993 2008-04-26  Bruno Haible  <bruno@clisp.org>
56994
56995         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56996         comments.
56997
56998 2008-04-25  Eric Blake  <ebb9@byu.net>
56999
57000         Use native fstatat on cygwin 1.7.0.
57001         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
57002         first.
57003
57004 2008-04-23  Eric Blake  <ebb9@byu.net>
57005
57006         Improve memchr2 performance.
57007         * lib/memchr2.c (memchr2): Further optimize parallel detection of
57008         NUL bytes.
57009         * modules/memchr2 (Depends-on): Use intprops.h.
57010
57011 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57012
57013         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57014         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57015         <blp@cs.stanford.edu>.
57016
57017 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57018
57019         * lib/arpa_inet.in.h: New file.
57020
57021         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57022         (Makefile.am): Sed in substitute header file.
57023
57024         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57025         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57026
57027         * modules/inet_ntop (configure.ac): Use
57028         gl_ARPA_INET_MODULE_INDICATOR.
57029
57030         * modules/inet_pton (configure.ac): Use
57031         gl_ARPA_INET_MODULE_INDICATOR.
57032
57033 2008-04-22  Jim Meyering  <meyering@redhat.com>
57034
57035         * modules/verify (License): Re-license as LGPLv2+.
57036
57037 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57038
57039         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57040         parameter to void* as per POSIX standard (MinGW uses char*).
57041
57042 2008-04-21  Bruno Haible  <bruno@clisp.org>
57043
57044         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57045         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57046         Define to replacements if REPLACE_ISWCNTRL is 1.
57047         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57048         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57049         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57050         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57051         what it fixes.
57052         * doc/posix-functions/iswalpha.texi: Likewise.
57053         * doc/posix-functions/iswblank.texi: Likewise.
57054         * doc/posix-functions/iswcntrl.texi: Likewise.
57055         * doc/posix-functions/iswdigit.texi: Likewise.
57056         * doc/posix-functions/iswgraph.texi: Likewise.
57057         * doc/posix-functions/iswlower.texi: Likewise.
57058         * doc/posix-functions/iswprint.texi: Likewise.
57059         * doc/posix-functions/iswpunct.texi: Likewise.
57060         * doc/posix-functions/iswspace.texi: Likewise.
57061         * doc/posix-functions/iswupper.texi: Likewise.
57062         * doc/posix-functions/iswxdigit.texi: Likewise.
57063         Reported by Alain Guibert.
57064
57065 2008-04-21  Bruno Haible  <bruno@clisp.org>
57066
57067         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57068         Patch by Alain Guibert.
57069
57070 2008-04-21  Bruno Haible  <bruno@clisp.org>
57071
57072         Fix test failures on mingw.
57073         * tests/test-xstrtol.c (print_no_progname): New function.
57074         (main): Install it in error_print_progname hook.
57075         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57076         * tests/test-xstrtoimax.sh: Likewise.
57077         * tests/test-xstrtoumax.sh: Likewise.
57078
57079 2008-04-21  Bruno Haible  <bruno@clisp.org>
57080
57081         Fix test failure on mingw.
57082         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57083
57084 2008-04-21  Bruno Haible  <bruno@clisp.org>
57085
57086         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57087         Actually assign a value.
57088
57089 2008-04-20  Bruno Haible  <bruno@clisp.org>
57090
57091         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57092         take 2.
57093         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57094         'canonicalize-lgpl' module is also used.
57095         * lib/canonicalize-lgpl.c: Undo last change.
57096         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57097
57098 2008-04-20  Bruno Haible  <bruno@clisp.org>
57099
57100         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57101         config.h. Provide _mkdir based fallback for mingw.
57102         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57103         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57104         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57105         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57106         rather than defining mkdir in config.h.
57107         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57108         (gl_SYS_STAT_H_DEFAULTS): New macro.
57109         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57110         HAVE_IO_H any more.
57111         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57112         HAVE_DECL_MKDIR and HAVE_IO_H.
57113
57114 2008-04-20  Bruno Haible  <bruno@clisp.org>
57115
57116         * lib/isapipe.c: Port to native Windows platforms.
57117
57118 2008-04-20  Bruno Haible  <bruno@clisp.org>
57119
57120         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57121
57122 2008-04-21  Eric Blake  <ebb9@byu.net>
57123
57124         Work around preprocessors that don't handle UINTMAX_MAX.
57125         * lib/memchr2.c (memchr2): Avoid embedded #if.
57126         Reported by Alain Guibert, fix suggested by Bruno Haible.
57127
57128 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57129
57130         * doc/posix-functions/strftime.texi (strftime): Explain better
57131         Windows incompatibility.  Suggested by Micah Cowan
57132         <micah@cowan.name>.
57133
57134 2008-04-20  Bruno Haible  <bruno@clisp.org>
57135
57136         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57137         unistr/u8-mblen.
57138
57139 2008-04-20  Bruno Haible  <bruno@clisp.org>
57140
57141         Fix test failure on platforms with non-GNU iconv.
57142         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57143         (U_TO_U8): Use it, rather than u16_to_u8.
57144         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57145         units at the end of the input string.
57146         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57147
57148 2008-04-20  Bruno Haible  <bruno@clisp.org>
57149
57150         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57151         when the resulting length is 0.
57152         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57153
57154 2008-04-20  Bruno Haible  <bruno@clisp.org>
57155
57156         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57157         works.
57158         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57159
57160 2008-04-20  Bruno Haible  <bruno@clisp.org>
57161
57162         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57163         * modules/tsearch-tests (configure.ac): Test for initstate function.
57164
57165 2008-04-20  Bruno Haible  <bruno@clisp.org>
57166
57167         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57168         for nlink_t if missing.
57169         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57170
57171 2008-04-19  Bruno Haible  <bruno@clisp.org>
57172
57173         Work around snprintf bug on Linux libc5.
57174         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57176         gl_SNPRINTF_SIZE1.
57177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57178         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57179         that test failed.
57180         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57181         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57182         * modules/snprintf (Files): Add m4/printf.m4.
57183         * modules/vsnprintf (Files): Likewise.
57184         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57185         * doc/posix-functions/vsnprintf.texi: Likewise.
57186
57187 2008-04-19  Bruno Haible  <bruno@clisp.org>
57188
57189         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57190         from 0.0058 to less than 10^-7.
57191
57192 2008-04-19  Bruno Haible  <bruno@clisp.org>
57193
57194         Fix rounding when a precision is given.
57195         * lib/vasnprintf.c (is_borderline): New function.
57196         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57197         9...9x.
57198         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57199         %e, %g.
57200         * tests/test-vasprintf-posix.c (test_function): Likewise.
57201         * tests/test-snprintf-posix.h (test_function): Likewise.
57202         * tests/test-sprintf-posix.h (test_function): Likewise.
57203         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57204         * tests/test-printf-posix.h (test_function): Likewise.
57205         * tests/test-printf-posix.output: Update.
57206         Reported by John Darrington <john@darrington.wattle.id.au> via
57207         Ben Pfaff <blp@cs.stanford.edu>.
57208
57209 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57210
57211         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57212         Suggested by Bruno Haible <bruno@clisp.org>.
57213
57214 2008-04-17  Bruno Haible  <bruno@clisp.org>
57215
57216         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57217         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57218         implementation.
57219         Patch by Bruce Merry <bmerry@gmail.com>.
57220
57221 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57222
57223         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57224         doesn't work under Windows.
57225
57226 2008-04-16  Bruno Haible  <bruno@clisp.org>
57227
57228         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57229         New macros.
57230         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57231         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57232         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57233         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57234         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57235         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57236         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57237         macros.
57238         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57239         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57240         Northern Sotho, Uighur.
57241
57242 2008-04-16  Bruno Haible  <bruno@clisp.org>
57243
57244         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57245         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57246         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57247         Reported by Daniel Bergström <daniel@octocode.com>.
57248
57249 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57250             Bruno Haible  <bruno@clisp.org>
57251
57252         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57253         function.
57254         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57255         New functions, mostly extracted from gl_locale_name_default.
57256         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57257
57258 2008-04-16  Eric Blake  <ebb9@byu.net>
57259
57260         Adjust strtod detection to catch glibc 2.7 bug.
57261         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57262         Reported by John Gatewood Ham.
57263
57264 2008-04-16  Bruno Haible  <bruno@clisp.org>
57265
57266         Add tentative support for Linux libc5.
57267         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57268         * lib/fpurge.c (fpurge): Likewise.
57269         * lib/freadable.c (freadable): Likewise.
57270         * lib/freadahead.c (freadahead): Likewise.
57271         * lib/freading.c (freading): Likewise.
57272         * lib/freadptr.c (freadptr): Likewise.
57273         * lib/freadseek.c (freadptrinc): Likewise.
57274         * lib/fseeko.c (rpl_fseeko): Likewise.
57275         * lib/fseterr.c (fseterr): Likewise.
57276         * lib/fwritable.c (fwritable): Likewise.
57277         * lib/fwriting.c (fwriting): Likewise.
57278         Reported by Alain Guibert <alguibert+bts@free.fr>.
57279
57280 2008-04-15  Bruno Haible  <bruno@clisp.org>
57281
57282         * modules/mathl (configure.ac): Define module indicator.
57283
57284 2008-04-15  Bruno Haible  <bruno@clisp.org>
57285
57286         * lib/logl.c (logl): Remove unused variables.
57287
57288 2008-04-15  Bruno Haible  <bruno@clisp.org>
57289
57290         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57291         fails.
57292
57293 2008-04-15  Bruno Haible  <bruno@clisp.org>
57294
57295         * lib/trim.c (trim2): Fix argument of isspace() macro.
57296
57297 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57298
57299         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57300         to 0.
57301         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57302
57303 2008-04-14  Bruno Haible  <bruno@clisp.org>
57304
57305         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57306         AC_LANG_PROGRAM argument.
57307         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57308         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57309         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57310         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57311         * m4/math_h.m4 (gl_MATH_H): Likewise.
57312         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57313         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57314         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57315         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57316         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57317         * m4/regex.m4 (gl_REGEX): Likewise.
57318         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57319         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57320         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57321         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57322         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57323         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57324         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57325         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57326
57327 2008-04-14  Jim Meyering  <meyering@redhat.com>
57328
57329         test-strtod: fix typos: s/abs/fabs/
57330         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57331
57332 2008-04-13  Bruno Haible  <bruno@clisp.org>
57333
57334         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57335         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57336         module is also used and while not building the reloc-wrapper.
57337
57338 2008-04-13  Bruno Haible  <bruno@clisp.org>
57339
57340         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57341
57342 2008-04-13  Bruno Haible  <bruno@clisp.org>
57343
57344         Fix AIX compilation failure introduced on 2008-04-02.
57345         * tests/test-frexp.c (exp): Undefine before redefining.
57346         * tests/test-frexpl.c (exp): Likewise.
57347
57348 2008-04-13  Bruno Haible  <bruno@clisp.org>
57349
57350         Work around a HP-UX stdio bug.
57351         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57352         * tests/test-ftello.c (main): Likewise.
57353         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57354         * doc/posix-functions/ftello.texi: Likewise.
57355
57356 2008-04-13  Bruno Haible  <bruno@clisp.org>
57357
57358         Make test-signbit pass on HP-UX/hppa.
57359         * tests/test-signbit.c (minus_zerol): New variable.
57360         (test_signbitl): Use it.
57361
57362 2008-04-13  Bruno Haible  <bruno@clisp.org>
57363
57364         Make truncl work on OSF/1 4.0.
57365         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57366         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57367         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57369         HAVE_DECL_TRUNCL.
57370         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57371         HAVE_DECL_TRUNCL.
57372         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57373
57374 2008-04-13  Bruno Haible  <bruno@clisp.org>
57375
57376         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57377
57378 2008-04-13  Bruno Haible  <bruno@clisp.org>
57379
57380         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57381         expression, so as to avoid HP-UX 11 cc compiler bug.
57382
57383 2008-04-13  Bruno Haible  <bruno@clisp.org>
57384
57385         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57386
57387 2008-04-13  Bruno Haible  <bruno@clisp.org>
57388
57389         * lib/git-merge-changelog.c: Remove empty declaration outside of
57390         functions.
57391
57392 2008-04-13  Bruno Haible  <bruno@clisp.org>
57393
57394         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57395
57396 2008-04-13  Bruno Haible  <bruno@clisp.org>
57397
57398         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57399         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57400         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57401         also if it exists but lacks definitions of the SHUT_* macros.
57402         * modules/sys_socket (Description): Update.
57403         Reported by Elbert Pol <e.pol@chello.nl>.
57404
57405 2008-04-13  Bruno Haible  <bruno@clisp.org>
57406
57407         * lib/localcharset.c (OS2): Don't redefine if already defined.
57408         Reported by Elbert Pol <e.pol@chello.nl>.
57409
57410 2008-04-13  Bruno Haible  <bruno@clisp.org>
57411
57412         * lib/binary-io.h [__EMX__]: Include <io.h>.
57413         Reported by Elbert Pol <e.pol@chello.nl>.
57414
57415 2008-04-12  Bruno Haible  <bruno@clisp.org>
57416
57417         * lib/fpucw.h: Enable the definitions also for x86_64.
57418         Needed for NetBSD/x86_64.
57419         Reported by Thomas Klausner <tk@giga.or.at>.
57420
57421 2008-04-12  Bruno Haible  <bruno@clisp.org>
57422
57423         * tests/test-strtod.c: Include isnand.h.
57424         (main): Use isnand instead of isnan.
57425         Reported by Jim Meyering.
57426
57427 2008-04-12  Bruno Haible  <bruno@clisp.org>
57428
57429         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57430         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57431
57432 2008-04-12  Jim Meyering  <meyering@redhat.com>
57433
57434         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57435
57436 2008-04-12  Bruno Haible  <bruno@clisp.org>
57437
57438         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57439         Reported by Elbert Pol <e.pol@chello.nl>.
57440
57441 2008-04-12  Eric Blake  <ebb9@byu.net>
57442
57443         Work around Solaris 10 math.h bug.
57444         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57445         (gl_MATH_H_DEFAULTS): Set up default.
57446         * modules/math (Makefile.am): Replace new indicators.
57447         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57448         * tests/test-math.c (main): Test this.
57449         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57450         * doc/posix-headers/math.texi (math.h): Mention bug.
57451         Reported by Nelson H. F. Beebe and Jim Meyering.
57452
57453 2008-04-11  Bruno Haible  <bruno@clisp.org>
57454
57455         Adapt to future versions of Apple GCC.
57456         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57457         Reported by Peter O'Gorman <peter@pogma.com>.
57458
57459 2008-04-11  Bruno Haible  <bruno@clisp.org>
57460
57461         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57462
57463 2008-04-11  Bruno Haible  <bruno@clisp.org>
57464
57465         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57466
57467         * modules/getaddrinfo-tests (Makefile.am): Define
57468         test_getaddrinfo_LDADD.
57469
57470 2008-04-11  Bruno Haible  <bruno@clisp.org>
57471
57472         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57473         (init): Fix syntax error.
57474         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57475         is declared.
57476
57477 2008-04-11  Bruno Haible  <bruno@clisp.org>
57478
57479         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57480         * modules/glob (Depends-on): Add stdbool.
57481
57482 2008-04-11  Bruno Haible  <bruno@clisp.org>
57483
57484         * lib/trim.c: Include <string.h>.
57485
57486 2008-04-11  Eric Blake  <ebb9@byu.net>
57487
57488         Avoid compile failure on OS/2.
57489         * lib/regex_internal.h (internal_function): Disable optimization
57490         on OS/2 (__EMX__), where it caused compiler error.
57491         Reported by Elbert Pol.
57492
57493 2008-04-11  Bruno Haible  <bruno@clisp.org>
57494
57495         Flush the standard error stream before aborting. Needed on mingw.
57496         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57497         * tests/test-array_list.c (ASSERT): Likewise.
57498         * tests/test-array_oset.c (ASSERT): Likewise.
57499         * tests/test-avltree_list.c (ASSERT): Likewise.
57500         * tests/test-avltree_oset.c (ASSERT): Likewise.
57501         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57502         * tests/test-binary-io.c (ASSERT): Likewise.
57503         * tests/test-byteswap.c (ASSERT): Likewise.
57504         * tests/test-c-ctype.c (ASSERT): Likewise.
57505         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57506         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57507         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57508         * tests/test-c-strstr.c (ASSERT): Likewise.
57509         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57510         * tests/test-canonicalize.c (ASSERT): Likewise.
57511         * tests/test-carray_list.c (ASSERT): Likewise.
57512         * tests/test-ceilf1.c (ASSERT): Likewise.
57513         * tests/test-ceilf2.c (ASSERT): Likewise.
57514         * tests/test-ceill.c (ASSERT): Likewise.
57515         * tests/test-count-one-bits.c (ASSERT): Likewise.
57516         * tests/test-fbufmode.c (ASSERT): Likewise.
57517         * tests/test-fflush2.c (ASSERT): Likewise.
57518         * tests/test-floorf1.c (ASSERT): Likewise.
57519         * tests/test-floorf2.c (ASSERT): Likewise.
57520         * tests/test-floorl.c (ASSERT): Likewise.
57521         * tests/test-fopen.c (ASSERT): Likewise.
57522         * tests/test-fpending.c (ASSERT): Likewise.
57523         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57524         * tests/test-fpurge.c (ASSERT): Likewise.
57525         * tests/test-freadable.c (ASSERT): Likewise.
57526         * tests/test-freadahead.c (ASSERT): Likewise.
57527         * tests/test-freading.c (ASSERT): Likewise.
57528         * tests/test-freadptr.c (ASSERT): Likewise.
57529         * tests/test-freadptr2.c (ASSERT): Likewise.
57530         * tests/test-freadseek.c (ASSERT): Likewise.
57531         * tests/test-freopen.c (ASSERT): Likewise.
57532         * tests/test-frexp.c (ASSERT): Likewise.
57533         * tests/test-frexpl.c (ASSERT): Likewise.
57534         * tests/test-fseek.c (ASSERT): Likewise.
57535         * tests/test-fseeko.c (ASSERT): Likewise.
57536         * tests/test-fstrcmp.c (ASSERT): Likewise.
57537         * tests/test-ftell.c (ASSERT): Likewise.
57538         * tests/test-ftello.c (ASSERT): Likewise.
57539         * tests/test-func.c (ASSERT): Likewise.
57540         * tests/test-fwritable.c (ASSERT): Likewise.
57541         * tests/test-fwriting.c (ASSERT): Likewise.
57542         * tests/test-getdelim.c (ASSERT): Likewise.
57543         * tests/test-getline.c (ASSERT): Likewise.
57544         * tests/test-i-ring.c (ASSERT): Likewise.
57545         * tests/test-iconv-utf.c (ASSERT): Likewise.
57546         * tests/test-iconv.c (ASSERT): Likewise.
57547         * tests/test-isfinite.c (ASSERT): Likewise.
57548         * tests/test-isnand.c (ASSERT): Likewise.
57549         * tests/test-isnanf.c (ASSERT): Likewise.
57550         * tests/test-isnanl.h (ASSERT): Likewise.
57551         * tests/test-ldexpl.c (ASSERT): Likewise.
57552         * tests/test-linked_list.c (ASSERT): Likewise.
57553         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57554         * tests/test-localename.c (ASSERT): Likewise.
57555         * tests/test-lseek.c (ASSERT): Likewise.
57556         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57557         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57558         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57559         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57560         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57561         * tests/test-mbschr.c (ASSERT): Likewise.
57562         * tests/test-mbscspn.c (ASSERT): Likewise.
57563         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57564         * tests/test-mbspbrk.c (ASSERT): Likewise.
57565         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57566         * tests/test-mbsrchr.c (ASSERT): Likewise.
57567         * tests/test-mbsspn.c (ASSERT): Likewise.
57568         * tests/test-mbsstr1.c (ASSERT): Likewise.
57569         * tests/test-mbsstr2.c (ASSERT): Likewise.
57570         * tests/test-mbsstr3.c (ASSERT): Likewise.
57571         * tests/test-memchr2.c (ASSERT): Likewise.
57572         * tests/test-memmem.c (ASSERT): Likewise.
57573         * tests/test-open.c (ASSERT): Likewise.
57574         * tests/test-printf-frexp.c (ASSERT): Likewise.
57575         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57576         * tests/test-printf-posix.c (ASSERT): Likewise.
57577         * tests/test-quotearg.c (ASSERT): Likewise.
57578         * tests/test-rbtree_list.c (ASSERT): Likewise.
57579         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57580         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57581         * tests/test-round1.c (ASSERT): Likewise.
57582         * tests/test-roundf1.c (ASSERT): Likewise.
57583         * tests/test-roundl.c (ASSERT): Likewise.
57584         * tests/test-signbit.c (ASSERT): Likewise.
57585         * tests/test-sleep.c (ASSERT): Likewise.
57586         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57587         * tests/test-snprintf.c (ASSERT): Likewise.
57588         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57589         * tests/test-stat-time.c (ASSERT): Likewise.
57590         * tests/test-strcasestr.c (ASSERT): Likewise.
57591         * tests/test-strerror.c (ASSERT): Likewise.
57592         * tests/test-striconv.c (ASSERT): Likewise.
57593         * tests/test-striconveh.c (ASSERT): Likewise.
57594         * tests/test-striconveha.c (ASSERT): Likewise.
57595         * tests/test-strsignal.c (ASSERT): Likewise.
57596         * tests/test-strstr.c (ASSERT): Likewise.
57597         * tests/test-strtod.c (ASSERT): Likewise.
57598         * tests/test-trunc1.c (ASSERT): Likewise.
57599         * tests/test-trunc2.c (ASSERT): Likewise.
57600         * tests/test-truncf1.c (ASSERT): Likewise.
57601         * tests/test-truncf2.c (ASSERT): Likewise.
57602         * tests/test-truncl.c (ASSERT): Likewise.
57603         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57604         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57605         * tests/test-vasnprintf.c (ASSERT): Likewise.
57606         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57607         * tests/test-vasprintf.c (ASSERT): Likewise.
57608         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57609         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57610         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57611         * tests/test-vsnprintf.c (ASSERT): Likewise.
57612         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57613         * tests/test-wcwidth.c (ASSERT): Likewise.
57614         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57615         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57616         * tests/test-xvasprintf.c (ASSERT): Likewise.
57617         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57618         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57619         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57620         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57621         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57622         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57623         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57624         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57625         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57626         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57627         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57628         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57629         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57630         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57631         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57632         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57633         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57634         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57635         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57636         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57637         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57638         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57639         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57640         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57641         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57642         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57643         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57644         * tests/unictype/test-combining.c (ASSERT): Likewise.
57645         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57646         * tests/unictype/test-digit.c (ASSERT): Likewise.
57647         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57648         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57649         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57650         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57651         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57652         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57653         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57654         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57655         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57656         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57657         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57658         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57659         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57660         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57661         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57662         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57663         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57664         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57665         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57666         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57667         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57668         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57669         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57670         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57671         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57672         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57673         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57674         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57675         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57676         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57677         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57678         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57679         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57680         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57681         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57682         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57683         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57684         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57685         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57686         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57687         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57688         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57689         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57690         Reported by Eric Blake.
57691
57692 2008-04-11  Bruno Haible  <bruno@clisp.org>
57693
57694         * lib/wchar.in.h: Tweak comment.
57695
57696 2008-04-11  Bruno Haible  <bruno@clisp.org>
57697
57698         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57699         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57700         gl_COMMON.
57701         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57702
57703 2008-04-11  Bruno Haible  <bruno@clisp.org>
57704
57705         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57706
57707 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57708
57709         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57710         of attempting to use non-existing /dev/*random.  Based on patch
57711         from Adam Strzelecki <ono@java.pl> in
57712         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57713
57714 2008-04-08  Bruno Haible  <bruno@clisp.org>
57715
57716         Add tentative support for emx+gcc.
57717         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57718         * lib/fpurge.c (fpurge): Likewise.
57719         * lib/freadable.c (freadable): Likewise.
57720         * lib/freadahead.c (freadahead): Likewise.
57721         * lib/freading.c (freading): Likewise.
57722         * lib/freadptr.c (freadptr): Likewise.
57723         * lib/freadseek.c (freadptrinc): Likewise.
57724         * lib/fseeko.c (rpl_fseeko): Likewise.
57725         * lib/fseterr.c (fseterr): Likewise.
57726         * lib/fwritable.c (fwritable): Likewise.
57727         * lib/fwriting.c (fwriting): Likewise.
57728         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57729
57730 2008-04-09  Eric Blake  <ebb9@byu.net>
57731
57732         Avoid some autoconf warnings.
57733         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57734         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57735         * m4/afs.m4 (gl_AFS): Likewise.
57736         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57737         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57738         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57739         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57740         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57741         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57742         (AC_CHECK_DECLS_ONCE): Likewise.
57743         Rename file...
57744         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57745         gnulib-tool requires autoconf 2.59 or better.
57746         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57747
57748 2008-04-08  Eric Blake  <ebb9@byu.net>
57749
57750         Use 'git describe --match' if present (added in git 1.5.5).
57751         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57752         if possible.
57753
57754 2008-04-08  Bruno Haible  <bruno@clisp.org>
57755
57756         Add tentative support for OpenServer.
57757         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57758         _ptr, _cnt.
57759         * lib/fpurge.c (fpurge): Likewise.
57760         * lib/freadable.c (freadable): Likewise.
57761         * lib/freadahead.c (freadahead): Likewise.
57762         * lib/freading.c (freading): Likewise.
57763         * lib/freadptr.c (freadptr): Likewise.
57764         * lib/freadseek.c (freadptrinc): Likewise.
57765         * lib/fseeko.c (rpl_fseeko): Likewise.
57766         * lib/fseterr.c (fseterr): Likewise.
57767         * lib/fwritable.c (fwritable): Likewise.
57768         * lib/fwriting.c (fwriting): Likewise.
57769         Reported by Roger Cornelius <rac@tenzing.org> and
57770         Brian K. White <brian@aljex.com>.
57771
57772 2008-04-06  Jim Meyering  <meyering@redhat.com>
57773
57774         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57775
57776 2008-04-06  Bruno Haible  <bruno@clisp.org>
57777
57778         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57779         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57780         * tests/test-printf-posix.sh: Likewise.
57781         * tests/test-vfprintf-posix.sh: Likewise.
57782         * tests/test-vprintf-posix.sh: Likewise.
57783         * tests/test-xprintf-posix.sh: Likewise.
57784
57785 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57786
57787         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57788         hide error from 'ls', needed on OS/2.
57789         Report by Elbert Pol <elbert.pol@gmail.com>.
57790
57791 2008-04-04  Eric Blake  <ebb9@byu.net>
57792
57793         Make test-fseeko.c failures meaningful.
57794         * tests/test-fseeko.c: Print line number on failure.
57795         * tests/test-fseek.c: Likewise.
57796         Reported by Nelson H. F. Beebe.
57797
57798         Improve strtod bug detection check.
57799         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57800         required for Solaris 10.
57801         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57802
57803 2008-04-04  Bruno Haible  <bruno@clisp.org>
57804
57805         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57806         by m4/setenv.m4.
57807
57808 2008-04-03  Eric Blake  <ebb9@byu.net>
57809
57810         Ensure sane .version contents.
57811         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57812         version string.
57813         * build-aux/git-version-gen: Improve documentation.
57814
57815         Make GNU make output nicer.
57816         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57817         MAKECMDGOALS to enforce message for all command line targets.  Set
57818         srcdir for use in maint.mk.
57819
57820         Another maintainer tweak.
57821         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57822         a target that regenerates version.
57823
57824 2008-04-03  Jim Meyering  <meyering@redhat.com>
57825
57826         vc-list-files: don't cause coreutils "make po-check" failure
57827         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57828
57829 2008-04-03  Eric Blake  <ebb9@byu.net>
57830
57831         Allow VPATH usage of vc-list-files.
57832         * build-aux/vc-list-files (scriptversion): Add timestamp.
57833         (options): Add --help, --version, -C.
57834         (CVS): Support installed cvsu.
57835
57836 2008-04-02  Bruno Haible  <bruno@clisp.org>
57837
57838         Avoid some "statement with no effect" warnings from gcc.
57839         * tests/test-wctype.c (main): Explicitly ignore unused values.
57840         Reported by Jim Meyering.
57841
57842 2008-04-02  Jim Meyering  <meyering@redhat.com>
57843
57844         Avoid some warnings from "gcc -Wshadow".
57845         * tests/test-frexp.c (exp): Define to a different identifier.
57846         * tests/test-frexpl.c (exp): Likewise.
57847
57848 2008-04-03  Jim Meyering  <meyering@redhat.com>
57849
57850         bootstrap: remove dangling *.[ch] symlinks from lib
57851         * build-aux/bootstrap [dangling symlink removal]: Move find's
57852         -depth option to precede all others, to avoid a warning.
57853         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57854
57855 2008-04-02  Bruno Haible  <bruno@clisp.org>
57856
57857         Avoid some warnings from "gcc -Wshadow".
57858         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57859         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57860         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57861         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57862         Reported by Jim Meyering.
57863
57864 2008-04-01  Bruno Haible  <bruno@clisp.org>
57865
57866         Fix test to work on IRIX 6.5 with cc.
57867         * tests/test-math.c (numeric_equal): New function.
57868         (main): Use it.
57869
57870 2008-04-01  Bruno Haible  <bruno@clisp.org>
57871
57872         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57873
57874 2008-04-01  Bruno Haible  <bruno@clisp.org>
57875
57876         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57877         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57878         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57879         (Depends-on): Remove math.
57880
57881         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57882         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57883         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57884         (Depends-on): Remove math.
57885
57886         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57887         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57888         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57889         (Depends-on): Remove math.
57890         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57891         (Depends-on): Remove math.
57892
57893         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57894         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57895         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57896         (Depends-on): Remove math.
57897         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57898         (Depends-on): Remove math.
57899
57900         * tests/test-round1.c: Include nan.h.
57901         (main): Use NaNd instead of NAN.
57902         * modules/round-tests (Files): Add tests/nan.h.
57903
57904         * tests/test-trunc1.c: Include nan.h.
57905         (main): Use NaNd instead of NAN.
57906         * modules/trunc-tests (Files): Add tests/nan.h.
57907
57908         * tests/test-roundf1.c: Include nan.h.
57909         (main): Use NaNf instead of NAN.
57910         * modules/roundf-tests (Files): Add tests/nan.h.
57911
57912         * tests/test-truncf1.c: Include nan.h.
57913         (main): Use NaNf instead of NAN.
57914         * modules/truncf-tests (Files): Add tests/nan.h.
57915
57916         * tests/test-ceilf1.c: Include nan.h.
57917         (main): Use NaNf instead of NAN.
57918         * modules/ceilf-tests (Files): Add tests/nan.h.
57919
57920         * tests/test-floorf1.c: Include nan.h.
57921         (main): Use NaNf instead of NAN.
57922         * modules/floorf-tests (Files): Add tests/nan.h.
57923
57924         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57925         (main): Use NaNf instead of NAN.
57926         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57927
57928         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57929         (main): Use NaNd instead of NAN.
57930         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57931
57932         * tests/test-frexp.c: Include nan.h.
57933         (main): Use NaNd instead of NAN.
57934         * modules/frexp-tests (Files): Add tests/nan.h.
57935
57936         * lib/isnan.c: Don't include <math.h>.
57937         (FUNC): Don't use NAN macro.
57938         * modules/isnand-nolibm (Depends-on): Remove math.
57939         * modules/isnanf-nolibm (Depends-on): Remove math.
57940         * modules/isnanl (Depends-on): Remove math.
57941         * modules/isnanl-nolibm (Depends-on): Remove math.
57942
57943         * tests/nan.h: New file.
57944
57945 2008-04-01  Eric Blake  <ebb9@byu.net>
57946
57947         Fix typos.
57948         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57949         values to be the right type.
57950
57951         For now, cater to gnulib strtod inaccuracies.
57952         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57953         fractional results.  While not as nice from a QoI perspective, it
57954         is a quicker patch than correctly implementing decimal to binary
57955         rounding.
57956
57957 2008-03-31  Eric Blake  <ebb9@byu.net>
57958
57959         Guarantee a definition of NAN.
57960         * lib/math.in.h (NAN): Define if missing.
57961         * tests/test-math.c (main): Test it.
57962         * doc/posix-headers/math.texi (math.h): Document this.
57963         * lib/isnan.c (rpl_isnand): Use it.
57964         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57965         * tests/test-floorf1.c (NaN): Likewise.
57966         * tests/test-frexp.c (NaN): Likewise.
57967         * tests/test-isnand.c (NaN): Likewise.
57968         * tests/test-isnanf.c (NaN): Likewise.
57969         * tests/test-round1.c (NaN): Likewise.
57970         * tests/test-roundf1.c (NaN): Likewise.
57971         * tests/test-snprintf-posix.h (NaN): Likewise.
57972         * tests/test-sprintf-posix.h (NaN): Likewise.
57973         * tests/test-trunc1.c (NaN): Likewise.
57974         * tests/test-truncf1.c (NaN): Likewise.
57975         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57976         * tests/test-vasprintf-posix.c (NaN): Likewise.
57977         * modules/isnand-nolibm (Depends-on): Add math.
57978         * modules/isnanf-nolibm (Depends-on): Likewise.
57979         * modules/isnanl (Depends-on): Likewise.
57980         * modules/isnanl-nolibm (Depends-on): Likewise.
57981         * modules/snprintf-posix-tests (Depends-on): Likewise.
57982         * modules/sprintf-posix-tests (Depends-on): Likewise.
57983         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57984         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57985         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57986         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57987
57988 2008-03-31  Bruno Haible  <bruno@clisp.org>
57989
57990         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57991         * doc/posix-functions/strtod.texi: Likewise.
57992
57993 2008-03-31  Bruno Haible  <bruno@clisp.org>
57994
57995         * tests/test-strtod.c (main): Don't use C99 syntax.
57996
57997 2008-03-31  Bruno Haible  <bruno@clisp.org>
57998
57999         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
58000         Reported by Eric Blake.
58001
58002 2008-03-31  Jim Meyering  <meyering@redhat.com>
58003
58004         Don't compare actual signbit return values.
58005         * tests/test-strtod.c (main): Rather, compare only their
58006         zero/non-zero nature.
58007
58008 2008-03-31  Eric Blake  <ebb9@byu.net>
58009
58010         More strtod documentation.
58011         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58012         failures as distinct bugs.
58013
58014 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58015
58016         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58017         Problem reported by Erik Benada in
58018         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58019
58020 2008-03-30  Bruno Haible  <bruno@clisp.org>
58021
58022         * tests/test-strtod.c: Add comments about which assertion fails on which
58023         platform.
58024         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58025
58026 2008-03-30  Eric Blake  <ebb9@byu.net>
58027
58028         Test signbit behavior on zeros.
58029         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58030         (test_signbitd, test_signbitl): Likewise.
58031
58032         More strtod touchups.
58033         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58034         sign of negative underflow, for now.  Use .5, not .1.
58035         * doc/posix-functions/strtod.texi (strtod): Mention these
58036         limitations.
58037         Reported by Jim Meyering.
58038
58039 2008-03-30  Bruno Haible  <bruno@clisp.org>
58040
58041         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58042         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58043
58044 2008-03-30  Bruno Haible  <bruno@clisp.org>
58045
58046         Avoid failure when attempting to return empty iconv results on some
58047         platforms.
58048         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58049         allocation, don't report ENOMEM when the resulting string is empty.
58050
58051 2008-03-30  Bruno Haible  <bruno@clisp.org>
58052
58053         Fix buffer overrun.
58054         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58055         Don't consider the width for tmp_length. Check count against tmp_length
58056         before doing the padding. Ensure enough allocation during padding.
58057
58058 2008-03-30  Eric Blake  <ebb9@byu.net>
58059
58060         strtod touchups.
58061         * lib/strtod.c (strtod): Avoid compiler warnings.
58062         Reported by Jim Meyering.
58063
58064 2008-03-30  Bruno Haible  <bruno@clisp.org>
58065
58066         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58067         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58068         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58069         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58070         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58071         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58072         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58073         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58074
58075         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58076         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58077         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58078         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58079         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58080         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58081         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58082         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58083
58084         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58085         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58086         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58087         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58088         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58089         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58090         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58091         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58092
58093         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58094         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58095
58096         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58097         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58098
58099         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58100         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58101
58102         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58103         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58104         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58105
58106         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58107         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58108         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58109
58110         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58111         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58112         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58113
58114         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58115         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58116         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58117
58118         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58119         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58120         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58121         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58122         (Depends-on): Add EOVERFLOW.
58123         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58124         (Depends-on): Add EOVERFLOW.
58125         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58126         (Depends-on): Add EOVERFLOW.
58127         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58128         (Depends-on): Add EOVERFLOW.
58129         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58130         (Depends-on): Add EOVERFLOW.
58131         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58132         (Depends-on): Add EOVERFLOW.
58133         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58134         (Depends-on): Add EOVERFLOW.
58135         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58136         (Depends-on): Add EOVERFLOW.
58137
58138         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58139         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58140         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58141
58142         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58143         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58144         * modules/snprintf (Depends-on): Add EOVERFLOW.
58145
58146         * lib/poll.c (EOVERFLOW): Remove fallback.
58147         * modules/poll (Depends-on): Add EOVERFLOW.
58148
58149         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58150         * modules/getugroups (Depends-on): Add EOVERFLOW.
58151
58152         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58153         * modules/getdelim (Depends-on): Add EOVERFLOW.
58154
58155         * lib/ftell.c (EOVERFLOW): Remove fallback.
58156         * modules/ftell (Depends-on): Add EOVERFLOW.
58157
58158         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58159         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58160         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58161
58162         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58163
58164         * modules/EOVERFLOW-tests: New file.
58165         * tests/test-EOVERFLOW.c: New file.
58166
58167         * modules/EOVERFLOW: New file.
58168         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58169
58170 2008-03-30  Bruno Haible  <bruno@clisp.org>
58171
58172         Fix bug introduced on 2007-06-10.
58173         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58174         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58175
58176 2008-03-30  Bruno Haible  <bruno@clisp.org>
58177
58178         Improve freadseek's efficiency after ungetc.
58179         * lib/freadseek.c: Include freadahead.h.
58180         (freadptrinc): New function, extracted from freadseek.
58181         (freadseek): Use it in a loop. Use freadahead to determine the number
58182         of loop iterations.
58183         * modules/freadseek (Depends-on): Add freadahead.
58184         (configure.ac): Require AC_C_INLINE.
58185
58186 2008-03-30  Bruno Haible  <bruno@clisp.org>
58187
58188         * lib/freadseek.c (freadseek): Don't ignore the return value of
58189         freadptr.
58190
58191 2008-03-29  Eric Blake  <ebb9@byu.net>
58192
58193         Add hex float support.
58194         * modules/strtod (Depends-on): Add c-ctype.
58195         (Link): Mention POW_LIB.
58196         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58197         whitespace between 'e' and exponent.
58198         * tests/test-strtod.c (main): Enable hex float tests.
58199         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58200         now provides.
58201
58202         Document various strtod bugs, with some fixes.
58203         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58204         "-0x", "inf", "nan", and hex constants.
58205         * doc/posix-functions/atof.texi (atof): Likewise.
58206         * modules/stdlib (Makefile.am): Support strtod.
58207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58208         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58209         detect additional strtod bugs.
58210         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58211         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58212         bool where appropriate.  Parse 'inf' and 'nan'.
58213         * tests/test-strtod.c: New file.
58214         * modules/strtod (Depends-on): Add stdbool, stdlib.
58215         (configure.ac): Turn on module indicator.
58216         * modules/strtod-tests: New module.
58217
58218 2008-03-29  Eric Blake  <ebb9@byu.net>
58219
58220         Fix ftell on mingw.
58221         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58222         * modules/ftell-tests (Depends-on): Add binary-io.
58223         * modules/ftello-tests (Depends-on): Likewise.
58224         * tests/test-ftell.c (main): Enhance test to cover behavior after
58225         ungetc.  Enforce binary mode.
58226         * tests/test-ftello.c (main): Likewise.
58227
58228         Pass test-freadseek on cygwin.
58229         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58230         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58231         ungetc buffer.
58232
58233         * tests/test-fflush2.c (main): Fix typo.
58234
58235 2008-03-29  Bruno Haible  <bruno@clisp.org>
58236
58237         * tests/test-fflush2.c (main): Temporarily disable the contents of
58238         this test.
58239         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58240         Reported by Eric Blake.
58241
58242 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58243
58244         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58245         (GC_SHA224_DIGEST_SIZE): Add.
58246
58247         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58248         (gc_hash_digest_length): Likewise.
58249         (gc_hash_buffer): Likewise.
58250
58251 2008-03-25  Bruno Haible  <bruno@clisp.org>
58252
58253         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58254         detail which gettext release to use.
58255         Reported by Simon Josefsson.
58256
58257 2008-03-26  Jim Meyering  <meyering@redhat.com>
58258
58259         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58260         * modules/gnumakefile (clean-GNUmakefile): Also, use
58261         test ... && ... || : syntax rather than if-then ... fi.
58262
58263         gnumakefile: Don't double-quote-expand $(VPATH) value.
58264         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58265
58266 2008-03-24  Eric Blake  <ebb9@byu.net>
58267
58268         Alter GNUmakefile to install into top directory.
58269         * modules/maintainer-makefile: Split, and add dependency...
58270         * modules/gnumakefile: to this new module.
58271         * build-aux/GNUmakefile: Move...
58272         * top/GNUmakefile: ...here.
58273         * build-aux/maint.mk: Move...
58274         * top/maint.mk: ...here.
58275         * MODULES.html.sh (Support for maintaining...): Document new
58276         module.
58277
58278 2008-03-23  Bruno Haible  <bruno@clisp.org>
58279
58280         * gnulib-tool: New options --vc-files, --no-vc-files.
58281         (func_usage): Document them.
58282         (vc_files): New variable.
58283         (func_import): Consider vc_files.
58284         (func_create_testdir): Set vc_files to empty.
58285         Suggested by Jim Meyering and Karl Berry.
58286
58287 2008-03-23  Bruno Haible  <bruno@clisp.org>
58288
58289         Fix regex compilation error on HP-UX 11.
58290         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58291         * modules/regex (Files): Add m4/mbstate_t.m4.
58292         Reported by Ton Voon <ton.voon@altinity.com>.
58293
58294 2008-03-23  Bruno Haible  <bruno@clisp.org>
58295
58296         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58297
58298 2008-03-23  Eric Blake  <ebb9@byu.net>
58299             Bruno Haible  <bruno@clisp.org>
58300
58301         Install files from top/ in the destination directory.
58302         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58303         augmentation also for the files from top/.
58304         (func_import, func_create_testdir): Rewrite file names:
58305         top/filename -> filename.
58306
58307 2008-03-23  Bruno Haible  <bruno@clisp.org>
58308
58309         Tweak "gnulib --version" output.
58310         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58311
58312 2008-03-23  Bruno Haible  <bruno@clisp.org>
58313
58314         Tweak "gnulib --version" output.
58315         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58316         rather than contents of ChangeLog, when possible.
58317
58318 2008-03-21  Eric Blake  <ebb9@byu.net>
58319
58320         More --version tweaks.
58321         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58322         date of last ChangeLog entry.
58323
58324 2008-03-21  Jim Meyering  <meyering@redhat.com>
58325
58326         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58327
58328 2008-03-20  Eric Blake  <ebb9@byu.net>
58329
58330         VPATH fix.
58331         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58332
58333 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58334
58335         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58336         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58337
58338 2008-03-20  Eric Blake  <ebb9@byu.net>
58339
58340         Sync GNUmakefile with coreutils.
58341         * build-aux/GNUmakefile (have-Makefile): Rename...
58342         (_have-Makefile): ...to this, for namespace consideration.
58343         (GNUmakefile.cfg): Include, if present.
58344         (_autoreconf): Define a default.
58345         (_is-dist-target): New rule for rebuilds to pick up intra-release
58346         version.
58347         (maint-cfg.mk): Rename...
58348         (cfg.mk): ...to this.
58349
58350 2008-03-18  Jim Meyering  <meyering@redhat.com>
58351
58352         New script and module: mktempd
58353         * MODULES.html.sh (maint+release support): Add mktempd.
58354         * build-aux/mktempd: New file.
58355         * modules/mktempd: New file.
58356
58357 2008-03-15  Jim Meyering  <meyering@redhat.com>
58358
58359         Undo last change.
58360         * lib/sha1.c, lib/md5.c: 63 != ~63.
58361         Reported by Andreas Schwab.
58362
58363         sha1.c, md5.c: Hoist a redundant expression.
58364         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58365         "ctx->buflen" only once, before calling *_process_block.
58366         * lib/md5.c (md5_process_bytes): Likewise.
58367
58368 2008-03-14  Eric Blake  <ebb9@byu.net>
58369
58370         Bump copyright year in files generated by gnulib-tool.
58371         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58372         gnulib-tool, rather than hard-coding it.
58373
58374         Fix 'gnulib-tool --version' output to work with git.
58375         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58376         (startup): ...here.
58377         (func_version): Use it to invoke git-version-gen, rather than
58378         relying on CVS keyword expansion.  Modernize wording.
58379         (cvsdatestamp, last_checkin_date, version): Kill unused
58380         variables.
58381
58382 2008-03-12  Jim Meyering  <meyering@redhat.com>
58383
58384         Recognize optional cast of the argument to free.
58385         * build-aux/useless-if-before-free: Update regexps.
58386
58387         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58388
58389 2008-03-11  Bruno Haible  <bruno@clisp.org>
58390
58391         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58392         by a single package.
58393         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58394         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58395         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58396         Reported by Sam Steingold <sds@gnu.org>.
58397
58398 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58399
58400         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58401         repositories.
58402
58403 2008-03-11  Bruno Haible  <bruno@clisp.org>
58404
58405         Avoid conflicts between local macro definitions.
58406         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58407         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58408
58409 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58410             Bruno Haible  <bruno@clisp.org>
58411
58412         Make va_copy work with some version of xlc on AIX 5.1.
58413         * lib/stdarg.in.h: New file.
58414         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58415         On AIX, use a <stdarg.h> file substitute.
58416         * modules/stdarg (Files): Add lib/stdarg.in.h.
58417         (Depends-on): Add include_next.
58418         (Makefile.am): Build a stdarg.h substitute if requested.
58419         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58420
58421 2008-03-10  Bruno Haible  <bruno@clisp.org>
58422
58423         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58424         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58425         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58426
58427 2008-03-10  Bruno Haible  <bruno@clisp.org>
58428
58429         * modules/stdlib (Depends-on): Add include_next, remove
58430         absolute-header.
58431
58432 2008-03-09  Bruno Haible  <bruno@clisp.org>
58433
58434         * lib/freadahead.h (freadahead): Document more precisely.
58435         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58436         the sum of both buffer sizes.
58437         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58438         * NEWS: Document the change.
58439
58440 2008-03-09  Bruno Haible  <bruno@clisp.org>
58441
58442         Extend freadptr to return also the buffer size.
58443         * lib/freadptr.h (freadptr): Add sizep argument.
58444         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58445         (freadptr): Add sizep argument. Determine buffer size like freadahead
58446         does.
58447         * tests/test-freadptr.c: Don't include freadahead.h.
58448         (main): Adapt for new calling convention of freadptr.
58449         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58450         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58451         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58452         tests/test-freadptr2.sh.
58453         (Depends): Remove freadahead.
58454         (TESTS): Add test-freadptr2.sh.
58455         (check_PROGRAMS): Add test-freadptr2.
58456
58457 2008-03-09  Bruno Haible  <bruno@clisp.org>
58458
58459         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58460         Report and solution by Simon Josefsson.
58461
58462 2008-03-06  Bruno Haible  <bruno@clisp.org>
58463
58464         Make fflush after ungetc work on BSD platforms.
58465         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58466         * tests/test-fflush2.c: New file.
58467         * tests/test-fflush2.sh: New file.
58468         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58469         tests/test-fflush2.c.
58470         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58471         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58472
58473 2008-03-06  Eric Blake  <ebb9@byu.net>
58474
58475         Likewise for ftello.
58476         * modules/ftello (Dependencies): Add extensions.
58477         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58478
58479 2008-03-06  Bruno Haible  <bruno@clisp.org>
58480
58481         * modules/fseeko (Dependencies): Add extensions.
58482         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58483         Needed on glibc systems.
58484
58485 2008-03-06  Bruno Haible  <bruno@clisp.org>
58486
58487         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58488         email address.
58489         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58490
58491 2008-03-06  Bruno Haible  <bruno@clisp.org>
58492
58493         * users.txt: Add libgnupdf.
58494
58495 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58496
58497         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58498         (Header File Substitutes, Function Substitutes,
58499         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58500         (Build robot for gnulib): Fix typo.
58501
58502 2008-03-06  Bruno Haible  <bruno@clisp.org>
58503
58504         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58505         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58506
58507 2008-03-06  Bruno Haible  <bruno@clisp.org>
58508
58509         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58510         * doc/gnulib.texi: Include it.
58511
58512 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58513
58514         * modules/func (License): Change license to unlimited; there was
58515         no LGPL parts in the module anyway.
58516
58517 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58518
58519         * modules/__func__: Renamed to modules/func.
58520         * modules/__func__-tests: Renamed to modules/func-tests.
58521         * tests/test-__func__.c: Renamed to tests/test-func.c.
58522         * m4/__func__.m4: Renamed to m4/func.m4.
58523         * doc/gnulib.texi (__func__): Section renamed to func.
58524         Suggested by Eric Blake <ebb9@byu.net>.
58525
58526 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58527
58528         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58529         about __func__.  Make example self-contained.  Suggested by Eric
58530         Blake <ebb9@byu.net>.
58531
58532         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58533         Suggested by Eric Blake <ebb9@byu.net>.
58534
58535 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58536
58537         * modules/__func__: New file.
58538         * modules/__func__-tests: New file.
58539         * tests/test-__func__.c: New file.
58540         * m4/__func__.m4: New file.
58541         * doc/gnulib.texi (__func__): Document __func__ module.
58542
58543 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58544
58545         * modules/byteswap (License): Re-license as LGPLv2+.
58546
58547 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58548
58549         * doc/Makefile: Add pdf target.
58550
58551 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58552
58553         * modules/inline (License): Use 'unlimited', since there are only
58554         *.m4 files in this module.
58555
58556 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58557             Bruno Haible  <bruno@clisp.org>
58558
58559         Add support for HP C 7.1 on OpenVMS 8.3.
58560         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58561
58562 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58563
58564         Update VMS specifics.
58565         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58566
58567 2008-03-02  Jim Meyering  <meyering@redhat.com>
58568
58569         Remove the last dependency on the "free" module.
58570         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58571         Reported by Bob Proulx.
58572
58573         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58574
58575         Remove useless "if" tests before free.  Deprecate "free" module.
58576         * doc/posix-functions/free.texi: Mention that this
58577         module is no longer useful.
58578         * modules/free (Notice): Say this module is obsolete.
58579         * modules/readutmp (Depends-on): Remove free.
58580         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58581         * lib/putenv.c (putenv): Likewise.
58582         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58583         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58584         * tests/test-c-strcasestr.c (main): Likewise.
58585         * tests/test-c-strstr.c (main): Likewise.
58586         * tests/test-mbscasestr1.c (main): Likewise.
58587         * tests/test-mbscasestr2.c (main): Likewise.
58588         * tests/test-mbsstr1.c (main): Likewise.
58589         * tests/test-mbsstr2.c (main): Likewise.
58590         * tests/test-memmem.c (main): Likewise.
58591         * tests/test-strcasestr.c (main): Likewise.
58592         * tests/test-striconv.c (main): Likewise.
58593         * tests/test-striconveh.c (main): Likewise.
58594         * tests/test-striconveha.c (main): Likewise.
58595         * tests/test-strstr.c (main): Likewise.
58596
58597         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58598
58599         bootstrap: sync from coreutils again
58600         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58601
58602 2008-03-01  Jim Meyering  <meyering@redhat.com>
58603
58604         bootstrap: sync from coreutils
58605         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58606         also when the target doesn't exist.
58607
58608 2008-03-01  Eric Blake  <ebb9@byu.net>
58609
58610         Fix bugs in last patch.
58611         * lib/memchr2.c (memchr2): Fix typo.
58612         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58613         extension.
58614         Reported by Bruce Korb.
58615
58616         New module 'memchr2'.
58617         * modules/memchr2: New file.
58618         * modules/memchr2-tests: Likewise.
58619         * lib/memchr2.h: Likewise.
58620         * lib/memchr2.c: Likewise, based on memchr.c.
58621         * tests/test-memchr2.c: New test.
58622         * MODULES.html.sh (String handling): Add memchr2.
58623
58624 2008-02-29  Bruno Haible  <bruno@clisp.org>
58625
58626         * modules/freadseek-tests: New file.
58627         * tests/test-freadseek.sh: New file.
58628         * tests/test-freadseek.c: New file.
58629
58630         New module 'freadseek'.
58631         * modules/freadseek: New file.
58632         * lib/freadseek.h: New file.
58633         * lib/freadseek.c: New file.
58634         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58635
58636 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58637
58638         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58639         wydawca.
58640
58641         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58642         program_invocation_name and program_invocation_short_name are
58643         present.
58644
58645 2008-02-28  Bruno Haible  <bruno@clisp.org>
58646
58647         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58648         * tests/test-freadptr.sh: Also test non-seekable stdin.
58649
58650 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58651
58652         * build-aux/bootstrap (source_base, m4_base)
58653         (doc_base, tests_base): New variables.
58654         (gnulib_tool_options): Do not hardcode base directories, use
58655         the above variables instead.
58656
58657 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58658
58659         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58660
58661 2008-02-28  Bruno Haible  <bruno@clisp.org>
58662
58663         * modules/freadptr-tests: New file.
58664         * tests/test-freadptr.sh: New file.
58665         * tests/test-freadptr.c: New file.
58666
58667         New module 'freadptr'.
58668         * modules/freadptr: New file.
58669         * lib/freadptr.h: New file.
58670         * lib/freadptr.c: New file.
58671         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58672
58673 2008-02-26  Karl Berry  <karl@freefriends.org>
58674
58675         Sync from Libtool:
58676         * libltdl/argz.c (argz_add, argz_count): New functions.
58677         * libltdl/argz.in.h: Declare them.
58678         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58679
58680 2008-02-22  Bruno Haible  <bruno@clisp.org>
58681
58682         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58683         is a pointer type.  Needed for HP-UX 10.
58684         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58685         * doc/posix-functions/gmtime_r.texi: Likewise.
58686         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58687
58688 2008-02-24  Bruno Haible  <bruno@clisp.org>
58689
58690         * modules/environ-tests: New file.
58691         * tests/test-environ.c: New file.
58692
58693         New module 'environ'.
58694         * modules/environ: New file.
58695         * lib/unistd.in.h (environ): New declaration.
58696         * m4/environ.m4: New file.
58697         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58698         after use.
58699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58700         HAVE_DECL_ENVIRON.
58701         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58702         HAVE_DECL_ENVIRON.
58703         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58704         wrong claim that 'environ' is missing on some systems.
58705         * modules/execute (Depends-on): Add environ.
58706         * lib/execute.c (environ): Remove fallback declaration.
58707         * modules/pipe (Depends-on): Add environ.
58708         * lib/pipe.c (environ): Remove fallback declaration.
58709         * modules/setenv (Depends-on): Add environ.
58710         * lib/setenv.c (environ): Remove fallback declaration.
58711         * modules/unsetenv (Depends-on): Add environ.
58712         * lib/unsetenv.c (environ): Remove fallback declaration.
58713         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58714         m4/environ.m4.
58715         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58716         (gl_PREREQ_UNSETENV): Likewise.
58717
58718 2008-02-24  Bruno Haible  <bruno@clisp.org>
58719
58720         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58721
58722 2008-02-20  Bob Proulx  <bob@proulx.com>
58723
58724         Enable use of older two part flavor 'git describe'.
58725         * build-aux/git-version-gen: If using the older two part flavor of
58726         git version then recreate the third part now present in the
58727         newer three part flavor of git describe.
58728
58729 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58730
58731         * lib/fts.c (fts_build): Typo correction to comment.
58732
58733 2008-02-17  Bruno Haible  <bruno@clisp.org>
58734
58735         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58736         generating no-op conflicts.
58737
58738 2008-02-17  Bruno Haible  <bruno@clisp.org>
58739
58740         Speed up by 10%.
58741         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58742         result_entries, rather than an index-based loop.
58743
58744 2008-02-17  Bruno Haible  <bruno@clisp.org>
58745
58746         Speed up by 25%.
58747         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58748         'hashcode_cached'.
58749         (entry_create): New function.
58750         (entry_hashcode): Use the cached hashcode if possible.
58751         (read_changelog_file, try_split_merged_entry): Use entry_create.
58752
58753 2008-02-17  Bruno Haible  <bruno@clisp.org>
58754
58755         Speed up from O(n^2) to O(n) for long ChangeLog files.
58756         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58757         (read_changelog_file): Change implementation of entries_reversed list
58758         to rbtreehash.
58759         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58760
58761 2008-02-17  Bruno Haible  <bruno@clisp.org>
58762
58763         New option --split-merged-entry.
58764         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58765         (find_paragraph_end, try_split_merged_entry): New functions.
58766         (long_options): Add option --split-merged-entry.
58767         (usage): Document option --split-merged-entry.
58768         (main): Implement option --split-merged-entry.
58769         Reported by Eric Blake.
58770
58771 2008-02-17  Bruno Haible  <bruno@clisp.org>
58772
58773         * lib/git-merge-changelog.c: Include c-strstr.h.
58774         (main): Support the "git pull --rebase" situation.
58775         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58776         Reported by Eric Blake.
58777
58778 2008-02-16  Eric Blake  <ebb9@byu.net>
58779
58780         Avoid doubling \ in common case of "c-maybe" quoting style.
58781         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58782         eliding outer quotes.
58783         * lib/quotearg.h: Document this.
58784         * tests/test-quotearg.c (result_strings, inputs, results_g)
58785         (flag_results, locale_results): Test it by adding a new string to
58786         each test group.
58787         (compare_strings): Test new string.
58788
58789 2008-02-13  Eric Blake  <ebb9@byu.net>
58790
58791         Avoid trigraph quoting in default output.
58792         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58793         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58794         unless explicitly requested.
58795         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58796
58797 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58798
58799         Don't rely on signed integer overflowing to negative value.
58800         * lib/getugroups.c (getugroups): Include <limits.h>.
58801         Instead, compare against INT_MAX, and increment only if the test passes.
58802
58803 2008-02-13  Jim Meyering  <meyering@redhat.com>
58804         and Eric Blake  <ebb9@byu.net>
58805
58806         Avoid shadowing warning and compile errors on Linux.
58807         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58808         forwarding macros on Linux.
58809         (dcgettext): Define a stub, for Linux.
58810         (results_g, main): Avoid warnings.
58811
58812 2008-02-12  Eric Blake  <ebb9@byu.net>
58813
58814         Silence warning in last patch.
58815         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58816
58817         Quotearg part 4: add tests, fix c-maybe colon quoting.
58818         * lib/quotearg.h: Improve documentation.
58819         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58820         escapes when adding outer quotes.  When quoting trigraphs, use
58821         valid C notation.  When quoting NUL, omit extra characters if next
58822         character is not digit.  Alter prototype.
58823         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58824         callers.
58825         * modules/quotearg-tests: New module.
58826         * tests/test-quotearg.c: New test.
58827
58828 2008-02-07  Eric Blake  <ebb9@byu.net>
58829
58830         Quotearg part 3: add flag to control outer quote elision.
58831         * lib/quotearg.h (c_maybe_quoting_style): New style.
58832         (enum quoting_flags): Better documentation of flags.
58833         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58834         c-maybe style.
58835         (quotearg_buffer_restyled): Handle new flag to elide outer
58836         quotes.
58837
58838         Quotearg part 2: add flag that can control NUL elision.
58839         * lib/quotearg.h (set_quoting_flags): New prototype.
58840         * lib/quotearg.c (struct quoting_options): Add flag field.
58841         (set_quoting_flags): New function.
58842         (quotearg_buffer_restyled): Add flags parameter.
58843         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58844         (quotearg_n_options): Set the flag, since length cannot be
58845         returned.
58846         (quoting_options_from_style): Default flags correctly.
58847
58848         Quotearg part 1: more wrappers, restore quotearg_char state.
58849         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58850         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58851         (quotearg_colon_mem): New wrappers.
58852         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58853         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58854         functions.
58855         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58856         (quotearg_colon_mem): New functions.
58857
58858 2008-02-11  Bruno Haible  <bruno@clisp.org>
58859
58860         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58861         library in the current directory: it does not work with parallel make.
58862         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58863
58864 2008-02-11  Bruno Haible  <bruno@clisp.org>
58865
58866         * .gitattributes: New file.
58867
58868 2008-02-11  Jim Meyering  <meyering@redhat.com>
58869
58870         useless-if-before-free: Fix reversed exit values.
58871         * build-aux/useless-if-before-free: Use correct values
58872         for EXIT_MATCH and EXIT_NO_MATCH.
58873
58874         * build-aux/useless-if-before-free: Close stdout carefully.
58875
58876 2008-02-10  Bruno Haible  <bruno@clisp.org>
58877
58878         New module 'git-merge-changelog'.
58879         * modules/git-merge-changelog: New file.
58880         * lib/git-merge-changelog.c: New file.
58881
58882 2008-02-10  Jim Meyering  <meyering@redhat.com>
58883
58884         useless-if-before-free: New option: --list (-l).
58885
58886         useless-if-before-free: Don't exit immediately upon open failure.
58887         * build-aux/useless-if-before-free: Exit 2 for errors.
58888         Upon failure to open a file, don't exit immediately.
58889         Rather, just warn and continue with any remaining files.
58890
58891 2008-02-10  Bruno Haible  <bruno@clisp.org>
58892
58893         New abstract list operation 'node_set_value'.
58894         * lib/gl_list.h (gl_list_node_set_value): New function.
58895         (struct gl_list_implementation): New field node_set_value.
58896         * lib/gl_list.c (gl_list_node_set_value): New function.
58897         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58898         (gl_array_list_implementation): Update.
58899         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58900         (gl_carray_list_implementation): Update.
58901         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58902         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58903         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58904         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58905         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58906         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58907         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58908         Update.
58909         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58910         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58911         (gl_sublist_list_implementation): Update.
58912
58913 2008-02-10  Bruno Haible  <bruno@clisp.org>
58914
58915         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58916         Needed when ELEMENT is #defined to 'some_type *'.
58917
58918 2008-02-10  Jim Meyering  <meyering@redhat.com>
58919
58920         New script and module: useless-if-before-free
58921         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58922         * build-aux/useless-if-before-free: New file.
58923         * modules/useless-if-before-free: New file.
58924
58925         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58926
58927         xstrtol_error: Fix typo.
58928         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58929         s/exit_failure/exit_status/.
58930
58931 2008-02-09  Jim Meyering  <meyering@redhat.com>
58932
58933         New script and module: gitlog-to-changelog
58934         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58935         * modules/gitlog-to-changelog: New file.
58936         * build-aux/gitlog-to-changelog: New file.
58937
58938 2008-02-08  Jim Meyering  <meyering@redhat.com>
58939
58940         Avoid two "parameter unused" warnings.
58941         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58942         Mark "st" as used.
58943
58944         Use "git COMMAND", not "git-COMMAND".
58945         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58946         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58947         * build-aux/git-version-gen: Use "git status", not "git-status".
58948
58949 2008-02-07  Bruno Haible  <bruno@clisp.org>
58950
58951         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58952         Avoids a crash on Windows Vista.
58953         Reported by Adam Strzelecki <ono@java.pl> via
58954         Simon Josefsson <simon@josefsson.org>.
58955
58956 2008-02-06  Bruno Haible  <bruno@clisp.org>
58957
58958         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58959         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58960         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58962         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58963         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58964         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58965         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58966         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58967         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58968         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58969         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58970         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58971         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58972         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58973         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58974         left-adjust flag.
58975         * tests/test-snprintf-posix.h (test_function): Likewise.
58976         * tests/test-sprintf-posix.h (test_function): Likewise.
58977         * tests/test-vasprintf-posix.c (test_function): Likewise.
58978         * doc/posix-functions/fprintf.texi: Update.
58979         * doc/posix-functions/printf.texi: Update.
58980         * doc/posix-functions/snprintf.texi: Update.
58981         * doc/posix-functions/sprintf.texi: Update.
58982         * doc/posix-functions/vfprintf.texi: Update.
58983         * doc/posix-functions/vprintf.texi: Update.
58984         * doc/posix-functions/vsnprintf.texi: Update.
58985         * doc/posix-functions/vsprintf.texi: Update.
58986         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58987
58988 2008-02-06  Bruno Haible  <bruno@clisp.org>
58989
58990         Fix bug introduced on 2008-01-26.
58991         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58992
58993 2008-02-06  Bruno Haible  <bruno@clisp.org>
58994
58995         Fix bug introduced on 2007-06-10.
58996         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58997         !NEED_PRINTF_FLAG_ZERO.
58998
58999 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
59000
59001         getloadavg: use libperfstat on AIX5
59002         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
59003
59004 2008-02-03  Bruno Haible  <bruno@clisp.org>
59005
59006         * lib/diffseq.h: Add comments about required #includes.
59007         Reported by Michael Biggs <gnulib@doubleplum.net>.
59008
59009 2008-02-01  Bruno Haible  <bruno@clisp.org>
59010
59011         * users.txt: Add gnuit.
59012
59013 2008-01-31  Bruno Haible  <bruno@clisp.org>
59014
59015         * lib/md4.c (set_uint32): Mark as inline.
59016         * lib/md5.c (set_uint32): Likewise.
59017         * lib/sha1.c (set_uint32): Likewise.
59018         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59019         * m4/md5.m4 (gl_MD5): Likewise.
59020         * m4/sha1.m4 (gl_SHA1): Likewise.
59021
59022 2008-01-31  Jim Meyering  <meyering@redhat.com>
59023
59024         Use "sizeof VAR", rather than a literal "4".
59025         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59026         * lib/md4.c (md4_read_ctx): Likewise.
59027         * lib/sha1.c (sha1_read_ctx): Likewise.
59028
59029 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59030
59031         * tests/test-sha1.c: New file, based on test-md5.c.
59032
59033         * modules/crypto/sha1-tests: New file.
59034
59035 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59036
59037         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59038
59039 2008-01-31  Jim Meyering  <meyering@redhat.com>
59040
59041         Prefer "sizeof v" over the equivalent "4".
59042         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59043         * lib/md5.c (set_uint32): Likewise.
59044         * lib/sha1.c (set_uint32): Likewise.
59045
59046 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59047
59048         * lib/sha1.c (set_uint32): Mark function as static.
59049
59050 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59051
59052         md2: clarify comments to say that alignment is not required.
59053         * lib/md2.h: Remove warning about alignment in comment.
59054         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59055         never been required.
59056
59057 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59058
59059         md4: adapt alignment constraint fix from sha1.
59060         * lib/md4.c (set_uint32): New function, from sha1.c
59061         (md4_read_ctx): Use it.
59062         (md4_finish_ctx): Doc fix.
59063         * lib/md4.h: Doc fix.
59064
59065 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59066
59067         md5: adapt alignment constraint fix from sha1.
59068         * lib/md5.c (set_uint32): New function, from sha1.c
59069         (md5_read_ctx): Use it.
59070         (md5_finish_ctx): Doc fix.
59071         * lib/md5.h: Doc fix.
59072
59073 2008-01-30  Peter Palfrader  <weasel@debian.org>
59074
59075         sha1: remove the result buffer alignment constraint
59076         * lib/sha1.c (set_uint32): New function.
59077         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59078         constraint.
59079         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59080         * lib/sha1.h: Likewise.
59081
59082 2008-01-30  Andreas Schwab  <schwab@suse.de>
59083             Bruno Haible  <bruno@clisp.org>
59084
59085         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59086         correct definition of LDBL_MIN_EXP.
59087
59088 2008-01-30  Karl Berry  <karl@gnu.org>
59089
59090         * config/srclist-update: try to preserve x bit on updates.
59091         * config/srclistvars.sh: update for karl.
59092
59093 2008-01-29  Jim Meyering  <meyering@redhat.com>
59094
59095         vasnprintf.c: Avoid warning about unused label
59096         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59097         "overflow" label definition and associated code with the
59098         same cpp condition that guards the sole use of that label.
59099
59100 2008-01-26  Bruno Haible  <bruno@clisp.org>
59101
59102         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59103         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59104         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59105         * lib/isnanl-nolibm.h (isnanl): Likewise.
59106         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59107
59108 2008-01-26  Bruno Haible  <bruno@clisp.org>
59109
59110         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59111         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59112
59113 2008-01-26  Bruno Haible  <bruno@clisp.org>
59114
59115         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59116         GCC >= 4.0 built-in.
59117         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59118
59119 2008-01-26  Bruno Haible  <bruno@clisp.org>
59120
59121         Rename isnan, applicable to 'double' only, to isnand.
59122         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59123         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59124         (configure.ac): Update.
59125         (Include): Replace "isnan.h" with "isnand.h".
59126         * m4/isnand.m4: Renamed from m4/isnan.m4.
59127         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59128         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59129         instead of isnan.c.
59130         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59131         instead of HAVE_ISNAN_IN_LIBC.
59132         (isnand): Renamed from isnan.
59133         * lib/isnand.c: New file.
59134         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59135         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59136         (Makefile.am): Update.
59137         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59138         Include isnand.h instead of isnan.h.
59139         (main): Test isnand instead of isnan.
59140         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59141         isnan-nolibm.
59142         * modules/frexp (Depends-on): Likewise.
59143         * modules/frexp-tests (Depends-on): Likewise.
59144         * modules/frexp-nolibm (Depends-on): Likewise.
59145         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59146         * modules/isfinite (Depends-on): Likewise.
59147         * modules/round-tests (Depends-on): Likewise.
59148         * modules/signbit (Depends-on): Likewise.
59149         * modules/signbit-tests (Depends-on): Likewise.
59150         * modules/snprintf-posix (Depends-on): Likewise.
59151         * modules/sprintf-posix (Depends-on): Likewise.
59152         * modules/trunc-tests (Depends-on): Likewise.
59153         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59154         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59155         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59156         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59157         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59158         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59159         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59160         * modules/vasnprintf-posix (Depends-on): Likewise.
59161         * modules/vasprintf-posix (Depends-on): Likewise.
59162         * modules/vfprintf-posix (Depends-on): Likewise.
59163         * modules/vsnprintf-posix (Depends-on): Likewise.
59164         * modules/vsprintf-posix (Depends-on): Likewise.
59165         * lib/frexp.c: Include isnand.h instead of isnan.h.
59166         (ISNAN): Set to isnand instead of isnan.
59167         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59168         (gl_isfinited): Use isnand instead of isnan.
59169         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59170         (gl_signbitd): Use isnand instead of isnan.
59171         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59172         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59173         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59174         (main): Use isnand instead of isnan.
59175         * tests/test-round1.c: Include isnand.h.
59176         (main): Use isnand instead of isnan.
59177         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59178         (ISNAN): Set to isnand instead of isnan.
59179         * tests/test-trunc1.c: Include isnand.h.
59180         (main): Use isnand instead of isnan.
59181         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59182         (equal): Use isnand instead of isnan.
59183         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59184         isnand-nolibm.
59185         * NEWS: Mention the change.
59186
59187 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59188             Bruno Haible  <bruno@clisp.org>
59189
59190         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59191         the GCC builtins for signbits are present and set
59192         REPLACE_SIGNBIT_USING_GCC if so.
59193         * lib/math.in.h (signbit): Define using GCC builtins if
59194         REPLACE_SIGNBIT_USING_GCC is set.
59195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59196         REPLACE_SIGNBIT_USING_GCC.
59197         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59198
59199 2008-01-25  Jim Meyering  <meyering@redhat.com>
59200
59201         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59202         * lib/poll.c: Include <config.h>, not "config.h".
59203         * tests/test-getaddrinfo.c: Likewise.
59204
59205 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59206
59207         * modules/sockets-tests: New file.
59208
59209 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59210
59211         * modules/sockets: New module, can be used to call WSA_Startup and
59212         WSA_Cleanup when needed.
59213
59214         * lib/sockets.h, lib/sockets.c: New files.
59215
59216         * m4/sockets.m4: New file.
59217
59218         * tests/test-sockets.c: New file.
59219
59220 2008-01-19  Bruno Haible  <bruno@clisp.org>
59221
59222         * doc/posix-headers: Renamed from doc/headers.
59223         * doc/posix-functions: Renamed from doc/functions.
59224         * doc/gnulib.texi: Update.
59225
59226 2008-01-19  Bruno Haible  <bruno@clisp.org>
59227
59228         * doc/glibc-functions/strcasestr.texi: Include contents of
59229         doc/functions/strcasestr.texi, fixing the list of platforms.
59230         * doc/functions/strcasestr.texi: Remove file.
59231
59232 2008-01-19  Bruno Haible  <bruno@clisp.org>
59233
59234         * doc/glibc-functions/memmem.texi: Include contents of
59235         doc/functions/memmem.texi.
59236         * doc/functions/memmem.texi: Remove file.
59237
59238 2008-01-18  Bruno Haible  <bruno@clisp.org>
59239
59240         * doc/glibc-functions/*.texi: New files.
59241         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59242         to use the new files.
59243
59244 2008-01-17  Bruno Haible  <bruno@clisp.org>
59245
59246         * tests/test-gethostname.c (main): Fix printf statement.
59247
59248 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59249
59250         * modules/gethostname-tests: New file.
59251
59252         * tests/test-gethostname.c: New file.
59253
59254 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59255
59256         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59257         used by the UNAME case.  Reported by Bruno Haible
59258         <bruno@clisp.org>.
59259
59260 2008-01-17  Eric Blake  <ebb9@byu.net>
59261
59262         Convert c-strcasestr to be more efficient.
59263         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59264         (Depends-on): Add c-strcase, remove malloca, strnlen.
59265         * tests/test-c-strcasestr.c (main): Enhance test.
59266         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59267
59268 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59269
59270         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59271         Use it in creating po/Makevars.
59272
59273 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59274
59275         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59276         Applications that requires it should initialize libgcrypt
59277         manually.
59278
59279 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59280
59281         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59282
59283 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59284
59285         Fix problem with getdate on mingw32 reported by Simon Josefsson
59286         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59287         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59288         tzname", when deciding whether to declare tzname.
59289         * lib/strftime.c (tzname): Likewise.
59290
59291 2008-01-15  Bruno Haible  <bruno@clisp.org>
59292
59293         Work around a MacOS X 10.5 bug in frexpl().
59294         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59295         * doc/functions/frexpl.texi: Document the bug.
59296         Reported by Elias Pipping <pipping@gentoo.org>.
59297
59298 2008-01-14  Eric Blake  <ebb9@byu.net>
59299
59300         Touch up previous patch.
59301         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59302         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59303
59304         Convert strcasestr module to use Two-Way algorithm.
59305         * modules/strcasestr-simple: New module, based on the old
59306         strcasestr, but with Two-Way rather than KMP.
59307         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59308         * lib/string.in.h (rpl_strcasestr): Declare.
59309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59310         performance.
59311         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59312         * modules/string (Makefile.am): Support strcasestr.
59313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59314         * modules/strcasestr-tests (Depends-on): Check for alarm.
59315         * tests/test-strcasestr.c: Augment test.
59316         * lib/str-two-way.h: Clean up stray macro.
59317         * NEWS: Document new module.
59318         * MODULES.html.sh (string handling): Likewise.
59319         * doc/functions/strcasestr.texi: New file.
59320         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59321         here, since it is not a POSIX function.
59322
59323 2008-01-14  Colin Watson  <cjwatson@debian.org>
59324             Bruno Haible  <bruno@clisp.org>
59325
59326         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59327         works fine; if not, set REPLACE_STRSIGNAL.
59328         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59330         REPLACE_STRSIGNAL.
59331         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59332         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59333         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59334
59335 2008-01-14  Bruno Haible  <bruno@clisp.org>
59336
59337         * modules/strsignal (Include): Change to <string.h>.
59338
59339 2008-01-14  Colin Watson  <cjwatson@debian.org>
59340
59341         * modules/argp (Notice): Add a notice recommending to change
59342         XGETTEXT_OPTIONS.
59343         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59344
59345 2008-01-13  Colin Watson  <cjwatson@debian.org>
59346
59347         * modules/strsignal-tests: New file.
59348         * tests/test-strsignal.c: New file.
59349
59350         * lib/strsignal.c: New file, from glibc with modifications.
59351         * lib/siglist.h: New file, from glibc with modifications.
59352         * lib/string.in.h (strsignal): New declaration.
59353         * m4/strsignal.m4: New file.
59354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59355         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59356         * modules/strsignal: New file.
59357         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59358         HAVE_DECL_STRSIGNAL.
59359
59360 2008-01-13  Bruno Haible  <bruno@clisp.org>
59361
59362         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59363         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59364         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59365         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59366
59367 2008-01-13  Bruno Haible  <bruno@clisp.org>
59368
59369         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59370         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59371         * lib/argp.h (__attribute__): Likewise.
59372         * lib/c-stack.c (__attribute__): Likewise.
59373         * lib/error.h (__attribute__): Likewise.
59374         * lib/fts.c (__attribute__): Likewise.
59375         * lib/openat.h (__attribute__): Likewise.
59376         * lib/stdio.in.h (__attribute__): Likewise.
59377         * lib/string.in.h (__attribute__): Likewise.
59378         * lib/utimens.c (__attribute__): Likewise.
59379         * lib/vasnprintf.h (__attribute__): Likewise.
59380         * lib/xalloc.h (__attribute__): Likewise.
59381         * lib/xprintf.h (__attribute__): Likewise.
59382         * lib/xstrtol.h (__attribute__): Likewise.
59383         * lib/xvasprintf.h (__attribute__): Likewise.
59384
59385 2008-01-12  Bruno Haible  <bruno@clisp.org>
59386
59387         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59388         * doc/glibc-headers/a.out.texi: New file.
59389         * doc/glibc-headers/aliases.texi: New file.
59390         * doc/glibc-headers/alloca.texi: New file.
59391         * doc/glibc-headers/ar.texi: New file.
59392         * doc/glibc-headers/argp.texi: New file.
59393         * doc/glibc-headers/argz.texi: New file.
59394         * doc/glibc-headers/byteswap.texi: New file.
59395         * doc/glibc-headers/crypt.texi: New file.
59396         * doc/glibc-headers/endian.texi: New file.
59397         * doc/glibc-headers/envz.texi: New file.
59398         * doc/glibc-headers/err.texi: New file.
59399         * doc/glibc-headers/error.texi: New file.
59400         * doc/glibc-headers/execinfo.texi: New file.
59401         * doc/glibc-headers/fpu_control.texi: New file.
59402         * doc/glibc-headers/fstab.texi: New file.
59403         * doc/glibc-headers/fts.texi: New file.
59404         * doc/glibc-headers/getopt.texi: New file.
59405         * doc/glibc-headers/ieee754.texi: New file.
59406         * doc/glibc-headers/ifaddrs.texi: New file.
59407         * doc/glibc-headers/libintl.texi: New file.
59408         * doc/glibc-headers/mcheck.texi: New file.
59409         * doc/glibc-headers/mntent.texi: New file.
59410         * doc/glibc-headers/obstack.texi: New file.
59411         * doc/glibc-headers/paths.texi: New file.
59412         * doc/glibc-headers/printf.texi: New file.
59413         * doc/glibc-headers/pty.texi: New file.
59414         * doc/glibc-headers/resolv.texi: New file.
59415         * doc/glibc-headers/shadow.texi: New file.
59416         * doc/glibc-headers/sysexits.texi: New file.
59417         * doc/glibc-headers/ttyent.texi: New file.
59418
59419 2008-01-12  Jim Meyering  <meyering@redhat.com>
59420
59421         announce-gen: emit Gnulib's git-based version string.
59422         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59423         New option --gnulib-version=V, where V is expected to be
59424         the output of running git describe in the gnulib directory.
59425         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59426         not useful, and plan to stop publishing an xdelta file with each
59427         coreutils release.
59428
59429         * build-aux/announce-gen: Also check for lzma-compressed files.
59430
59431 2008-01-11  Bruno Haible  <bruno@clisp.org>
59432
59433         * tests/test-memmem.c (main): Increase maximum allowed time.
59434         * tests/test-strstr.c (main): Likewise.
59435
59436 2008-01-11  Bruno Haible  <bruno@clisp.org>
59437
59438         * doc/functions/memmem.texi: Add more precisions about platforms.
59439         * doc/functions/strstr.texi: Likewise.
59440
59441 2008-01-10  Eric Blake  <ebb9@byu.net>
59442
59443         * m4/strstr.m4: Delete cruft from copy-n-paste.
59444         Reported by Bruno Haible.
59445
59446 2008-01-10  Bruno Haible  <bruno@clisp.org>
59447
59448         Make c-strstr rely on strstr.
59449         * lib/c-strstr.c: Don't include str-kmp.h.
59450         (c_strstr): Define in terms of strstr.
59451         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59452         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59453
59454 2008-01-10  Bruno Haible  <bruno@clisp.org>
59455
59456         * doc/gnulib.texi (String Functions in C Locale): New section.
59457         * doc/c-ctype.texi: New file.
59458         * doc/c-strcase.texi: New file.
59459         * doc/c-strcaseeq.texi: New file.
59460         * doc/c-strcasestr.texi: New file.
59461         * doc/c-strstr.texi: New file.
59462         * doc/c-strtod.texi: New file.
59463         * doc/c-strtold.texi: New file.
59464
59465 2008-01-10  Eric Blake  <ebb9@byu.net>
59466
59467         * lib/relocatable.h: Fix a comment.
59468
59469 2008-01-10  Eric Blake  <ebb9@byu.net>
59470
59471         Share two-way algorithm.
59472         * lib/str-two-way.h: New file, merged from...
59473         * lib/memmem.c: ...here...
59474         * lib/strstr.c: ...and here.
59475         * modules/memmem (Files): Use it.
59476         * modules/strstr (Files): Likewise.
59477
59478         Avoid quadratic strstr implementations.
59479         * lib/strstr.c: New file.
59480         * m4/strstr.m4: Likewise.
59481         * modules/strstr: Likewise.
59482         * modules/strstr-tests: Likewise.
59483         * tests/test-strstr.c: Likewise.
59484         * lib/string.in.h (rpl_strstr): Declare.
59485         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59487         * modules/string (Makefile.am): Likewise.
59488         * MODULES.html.sh (string handling): Mention new module.
59489         * doc/functions/strstr.texi (strstr): Document the bug.
59490
59491 2008-01-10  Bruno Haible  <bruno@clisp.org>
59492
59493         * lib/relocatable.h (relocate): State whether result is freshly
59494         allocated or not.
59495         * lib/relocatable.c (relocate): Return a freshly allocated string
59496         instead of a pointer to a privately held string.
59497         Reported by Sylvain Beucler <beuc@gnu.org>.
59498
59499 2008-01-10  Colin Watson  <cjwatson@debian.org>
59500
59501         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59502         s/S_ISNLK/S_ISLNK/.
59503
59504 2008-01-09  Bruno Haible  <bruno@clisp.org>
59505
59506         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59507         and other files.
59508         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59509         if it's only a guess.
59510         * modules/memmem: Simplify by depending on memmem-simple.
59511
59512 2008-01-09  Bruno Haible  <bruno@clisp.org>
59513
59514         Work around OpenBSD 4.0 tdelete() bug.
59515         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59516         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59517         macros and don't redefine the enum values.
59518         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59519         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59520         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59521
59522 2008-01-09  Bruno Haible  <bruno@clisp.org>
59523
59524         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59525         (main): Don't perform the tests if setlocale did not install a UTF-8
59526         locale. Needed on OpenBSD 4.0.
59527         * modules/wcwidth-tests (Depends-on): Add localcharset.
59528
59529 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59530
59531         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59532         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59533         * NEWS: announce this.
59534         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59535
59536 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59537         and Eric Blake  <ebb9@byu.net>
59538
59539         Add memmem-simple module.
59540         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59541         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59542         * modules/memmem-simple: New file.
59543         * modules/memmem (Description): Tweak.
59544         * MODULES.html.sh (string handling): Mention new module.
59545         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59546         addressed by memmem-simple.
59547         * NEWS: Document the difference.
59548
59549 2008-01-09  Eric Blake  <ebb9@byu.net>
59550
59551         Give gcc some memmem optimization hints.
59552         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59553         (strcasestr): Declare as pure.
59554         * modules/memmem (Maintainer): Claim my implementation.
59555
59556 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59557
59558         Support AIX 6.1 and higher.
59559         * build-aux/config.libpath: Likewise.
59560         * build-aux/config.rpath: Likewise.
59561
59562 2008-01-08  Jim Meyering  <meyering@redhat.com>
59563             Bruno Haible  <bruno@clisp.org>
59564
59565         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59566         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59567         Reported by Peter Fales in
59568         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59569
59570 2008-01-08  Bruno Haible  <bruno@clisp.org>
59571
59572         * modules/unictype/category-of (Depends-on): Add
59573         unictype/category-none.
59574         * modules/unictype/category-and-tests (Depends-on): Add
59575         unictype/category-{L,N,Lu,Nd}.
59576         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59577         * modules/unictype/category-or-tests (Depends-on): Add
59578         unictype/category-{L,N}.
59579         * modules/unictype/category-name-tests (Depends-on): Add
59580         unictype/category-{Z,Nl}.
59581         Reported by Simon Josefsson.
59582
59583 2008-01-08  Bruno Haible  <bruno@clisp.org>
59584
59585         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59586         convention better.
59587         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59588         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59589         Reported by Peter Miller <millerp@canb.auug.org.au>.
59590
59591 2008-01-08  Eric Blake  <ebb9@byu.net>
59592
59593         Rewrite memmem to guarantee linear complexity without malloc.
59594         * lib/memmem.c (memmem): Use Two-Way rather than
59595         Knuth-Morris-Pratt, to allow O(1) space usage.
59596         (critical_factorization, two_way_short_needle)
59597         (two_way_long_needle): New functions.
59598         (knuth_morris_pratt): Delete.
59599         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59600         Add stdint.
59601         * tests/test-memmem.c (main): Add tests for periodic needle and
59602         sublinear performance.
59603         * doc/functions/memmem.texi (memmem): Document other deficiencies
59604         in cygwin and older glibc.
59605
59606 2008-01-08  Bruno Haible  <bruno@clisp.org>
59607
59608         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59609         augmentation.
59610
59611 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59612
59613         Add a configure time option: --disable-acl.
59614         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59615         AC_ARG_ENABLE(acl).
59616
59617 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59618
59619         * tests/test-localename.c: Don't include obsolete "setenv.h".
59620
59621         * modules/localename-tests (Depends-on): Need unsetenv.
59622
59623 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59624
59625         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59626
59627 2008-01-06  Colin Watson  <cjwatson@debian.org>
59628
59629         * users.txt: Add man-db.
59630
59631 2008-01-07  Bruno Haible  <bruno@clisp.org>
59632
59633         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59634         previous section name.
59635
59636 2008-01-07  Bruno Haible  <bruno@clisp.org>
59637
59638         * lib/progname.c (set_program_name): Don't strip off a leading
59639         "lt-" prefix outside a .libs directory.
59640         Suggested by Paul Eggert.
59641
59642 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59643             Bruno Haible  <bruno@clisp.org>
59644
59645         Improve memory cleanup in 'relocatable' module.
59646         * lib/relocatable.h (compute_curr_prefix): Change return type to
59647         'char *'.
59648         * lib/relocatable.c (compute_curr_prefix): Change return type to
59649         'char *'. Free curr_installdir after use.
59650         (relocate): Free curr_prefix_better after use.
59651         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59652
59653 2008-01-01  Bruno Haible  <bruno@clisp.org>
59654
59655         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59656         failure on older glibc systems.
59657         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59658
59659 2008-01-05  Eric Blake  <ebb9@byu.net>
59660
59661         Avoid quadratic system memmem.
59662         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59663         Reported by Ralf Wildenhues.
59664
59665         Fix memmem test for mingw.
59666         * modules/memmem-tests (configure.ac): Check for alarm.
59667         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59668         it.
59669         * doc/functions/memmem.texi: New file.
59670         * doc/gnulib.texi (Function Substitutes): Add memmem.
59671         Reported by Bruno Haible.
59672
59673 2008-01-04  Bruno Haible  <bruno@clisp.org>
59674
59675         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59676         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59677         gl_HEADER_STRING_H_DEFAULTS.
59678
59679 2008-01-04  Eric Blake  <ebb9@byu.net>
59680
59681         Shorten duration of memmem test.
59682         * tests/test-memmem.c (main): Use alarm to declare failure if test
59683         is taking too long.
59684         Reported by Ralf Wildenhues.
59685
59686 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59687
59688         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59689         string, needed by strerror.
59690
59691 2008-01-03  Colin Watson  <cjwatson@debian.org>
59692             Bruno Haible  <bruno@clisp.org>
59693
59694         * doc/gnulib-tool.texi (Localization): New section.
59695
59696 2008-01-02  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59699         variables to 'unsigned char *' type.
59700         Reported by Paul Eggert.
59701
59702 2008-01-02  Jim Meyering  <jim@meyering.net>
59703
59704         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59705
59706 2007-12-31  Jim Meyering  <jim@meyering.net>
59707
59708         Avoid use of private FTS type name.
59709         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59710
59711 2007-12-30  Karl Berry  <karl@gnu.org>
59712
59713         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59714         work around defect in Texinfo and/or the standalone Info browser.
59715
59716 2007-12-30  Bruno Haible  <bruno@clisp.org>
59717
59718         Unify 5 copies of the KMP code.
59719         * lib/str-kmp.h: New file.
59720         * lib/c-strcasestr.c: Include str-kmp.h.
59721         (knuth_morris_pratt): Remove function.
59722         (c_strcasestr): Update.
59723         * lib/c-strstr.c: Include str-kmp.h.
59724         (knuth_morris_pratt): Remove function.
59725         (c_strcasestr): Update.
59726         * lib/mbscasestr.c: Include str-kmp.h.
59727         (knuth_morris_pratt_unibyte): Remove function.
59728         * lib/mbsstr.c: Include str-kmp.h.
59729         (knuth_morris_pratt_unibyte): Remove function.
59730         * lib/strcasestr.c: Include str-kmp.h.
59731         (knuth_morris_pratt): Remove function.
59732         (strcasestr): Update.
59733         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59734         * modules/c-strstr (Files): Likewise.
59735         * modules/mbscasestr (Files): Likewise.
59736         * modules/mbsstr (Files): Likewise.
59737         * modules/strcasestr (Files): Likewise.
59738         Suggested by Paul Eggert.
59739
59740 2007-12-30  Bruno Haible  <bruno@clisp.org>
59741
59742         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59743         defined.
59744
59745 2007-12-30  Bruno Haible  <bruno@clisp.org>
59746
59747         * lib/xmalloca.h: Include xalloc.h.
59748         (xnmalloca): New macro.
59749
59750 2007-12-30  Bruno Haible  <bruno@clisp.org>
59751
59752         * lib/malloca.h (nmalloca): New macro.
59753         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59754         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59755         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59756         knuth_morris_pratt_multibyte): Likewise.
59757         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59758         knuth_morris_pratt_multibyte): Likewise.
59759         * lib/memmem.c (knuth_morris_pratt): Likewise.
59760         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59761
59762 2007-12-25  Bruno Haible  <bruno@clisp.org>
59763
59764         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59765         * lib/glob.c: Don't include openat.h.
59766         (link_exists2_p): Add back the code that deals with the
59767         !GLOB_ALTDIRFUNC case.
59768         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59769         let it do the filename concatenation.
59770         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59771         * modules/glob (Depends-on): Remove openat.
59772
59773 2007-12-31  Bruno Haible  <bruno@clisp.org>
59774
59775         * modules/dirfd (License): Change to LGPLv2+.
59776         Approved by Jim Meyering.
59777
59778 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59779
59780         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59781         when multiplying M by sizeof (size_t).
59782
59783 2007-12-10  Martin Lambers  <marlam@marlam.de>
59784
59785         Override getpagesize on mingw.
59786         * lib/getpagesize.c: New file.
59787         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59788         * modules/getpagesize (Files): Add lib/getpagesize.c.
59789         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59791         REPLACE_GETPAGESIZE.
59792         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59793
59794 2007-12-25  Bruno Haible  <bruno@clisp.org>
59795
59796         * modules/localcharset (Notice): New field.
59797         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59798         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59799
59800 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59801             Bruno Haible  <bruno@clisp.org>
59802
59803         Avoid using the syntax symbol() in formatted documentation.
59804         * MODULES.html.sh (func_module): When replacing symbol() with a
59805         hyperlink, remove the parentheses. Show an error if some remain.
59806         Recognize and render the '...' syntax.
59807         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59808         Rework. Add paragraph about GCC's inlining.
59809         * doc/alloca.texi: Likewise.
59810         * doc/error.texi: Remove parentheses from symbol reference.
59811         * doc/gnulib-intro.texi: Likewise.
59812         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59813         * modules/fnmatch (Description): Reword to say "the ... function".
59814         * modules/full-read (Description): Likewise.
59815         * modules/full-write (Description): Likewise.
59816         * modules/safe-read (Description): Likewise.
59817         * modules/safe-write (Description): Likewise.
59818         * modules/strchrnul (Description): Likewise.
59819         * modules/trim (Description): Likewise.
59820         * modules/error (Description): Remove parentheses from symbol
59821         references.
59822         * modules/verror (Description): Likewise.
59823         Reported by Karl Berry.
59824
59825 2007-12-25  Bruno Haible  <bruno@clisp.org>
59826
59827         Fixup after 2007-10-16 commit.
59828         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59829
59830 2007-12-24  Bruno Haible  <bruno@clisp.org>
59831
59832         Make --enable-relocatable work with DESTDIR.
59833         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59834         to compute installdir from destprog.
59835         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59836         also set the RELOC_DESTDIR variable.
59837         Reported by Левашев Иван <octagram@bluebottle.com>.
59838
59839 2007-12-24  Bruno Haible  <bruno@clisp.org>
59840
59841         Fix link error due to xalloc_die().
59842         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59843         of xreadlink.
59844         * lib/relocwrapper.c: Update comments.
59845         * build-aux/install-reloc: Remove xreadlink.c from file list.
59846         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59847         xreadlink.c.
59848         Reported by Левашев Иван <octagram@bluebottle.com>.
59849
59850 2007-12-24  Bruno Haible  <bruno@clisp.org>
59851
59852         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59853         * lib/setenv.h: Remove file.
59854         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59855         lib/setenv.h.
59856         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59857         (Depends-on): Add stdlib.
59858         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59859         gl_FUNC_UNSETENV.
59860         (Include): Replace setenv.h with <stdlib.h>.
59861         * modules/unsetenv: New file.
59862         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59863         * lib/unsetenv.c: Include <stdlib.h> first.
59864         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59865         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59866         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59867         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59868         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59869         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59871         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59872         * doc/functions/unsetenv.texi: Update.
59873         * modules/xsetenv (Depends-on): Add unsetenv.
59874         * modules/getdate (Depends-on): Likewise.
59875         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59876         * lib/xsetenv.c: Don't include setenv.h.
59877         * lib/getdate.y: Likewise.
59878         * lib/relocwrapper.c: Likewise.
59879         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59880         (Depends-on): Add stdlib.
59881         * NEWS: Mention the changes.
59882         Reported by Левашев Иван <octagram@bluebottle.com>.
59883
59884 2007-12-23  Bruno Haible  <bruno@clisp.org>
59885
59886         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59887         indentation.
59888
59889 2007-12-23  Bruno Haible  <bruno@clisp.org>
59890
59891         * lib/c-strcasestr.c: Add more comments.
59892         * lib/c-strstr.c: Likewise.
59893         * lib/mbscasestr.c: Likewise.
59894         * lib/mbsstr.c: Likewise.
59895         * lib/strcasestr.c: Likewise.
59896         * lib/memmem.c: Likewise.
59897
59898 2007-12-23  Bruno Haible  <bruno@clisp.org>
59899
59900         * tests/test-memmem.c: Include <string.h> first.
59901
59902 2007-12-22  Bruno Haible  <bruno@clisp.org>
59903
59904         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59905         the contents of $testsbase.
59906         Reported by Ralf Wildenhues.
59907
59908 2007-12-22  Bruno Haible  <bruno@clisp.org>
59909
59910         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59911         two variables local_ldadd_before, local_ldadd_last.
59912
59913 2007-12-20  Eric Blake  <ebb9@byu.net>
59914
59915         Work around circular library issue when cross-compiling.
59916         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59917         that progname.o does not need to pull in rpl_memcmp.
59918
59919 2007-12-19  Eric Blake  <ebb9@byu.net>
59920
59921         Fix memmem to avoid O(n^2) worst-case complexity.
59922         * lib/memmem.c (knuth_morris_pratt): New function.
59923         (memmem): Use it if first few naive iterations fail.
59924         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59925         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59926         * modules/memchr (License): Likewise.
59927         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59928         malloca.
59929         * tests/test-memmem.c: Rewrite, borrowing ideas from
59930         test-mbsstr1.c; the old version wouldn't even compile!
59931         * modules/memmem-tests: New file.
59932         * lib/string.in.h (rpl_memmem): Add declaration.
59933         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59935         REPLACE_MEMMEM.
59936
59937 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59938
59939         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59940         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59941         before any system include files, and undef after them all.  This
59942         should fix a problem on VMS reported by John E. Malmberg in
59943         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59944
59945 2007-12-17  Eric Blake  <ebb9@byu.net>
59946
59947         Revert addition of verify, for BSD/OS.
59948         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59949         can't handle large files, for the sake of obsolete platforms.
59950         * modules/fseeko (Depends-on): Remove verify.
59951         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59952         * doc/functions/ftello.texi (ftello): Likewise.
59953         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59954         Reported by Larry Jones.
59955
59956 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59957
59958         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59959         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59960
59961 2007-12-17  Jim Meyering  <meyering@redhat.com>
59962
59963         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59964         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59965         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59966         * modules/getcwd (Depends-on): Add openat.
59967         Reported by Petr Salinger.
59968
59969 2007-12-17  Bruno Haible  <bruno@clisp.org>
59970
59971         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59972         avoid a segmentation fault of the configure test on x86_64 systems.
59973
59974 2007-12-15  Jim Meyering  <meyering@redhat.com>
59975
59976         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59977
59978 2007-12-13  Eric Blake  <ebb9@byu.net>
59979
59980         Another fseek test.
59981         * tests/test-fseek.c (main): Also test ungetc handling.
59982         * tests/test-fseeko.c (main): Likewise.
59983         * modules/fseeko (Depends-on): Add verify.
59984         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59985         large.
59986         Reported by Larry Jones.
59987
59988         Fix fseeko on mingw.
59989         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59990         seek.
59991
59992         Beef up fseek tests.
59993         * tests/test-fseek.c (main): Also test eof handling.
59994         * tests/test-fseeko.c (main): Likewise.
59995         Reported by Larry Jones.
59996
59997 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59998
59999         Fix fseeko on BSD-based platforms.
60000         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
60001         successful seek.
60002
60003 2007-12-12  Eric Blake  <ebb9@byu.net>
60004
60005         Allow circular dependency of separate libtests.a
60006         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
60007         when use_libtests.
60008
60009 2007-12-11  Eric Blake  <ebb9@byu.net>
60010
60011         Fix bug with -0.0L in previous patch.
60012         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60013         * tests/test-isnan.c (main): Also test on zeroes.
60014         * tests/test-isnanf.c (main): Likewise.
60015         * tests/test-isnanl.h (main): Likewise.
60016
60017         Detect pseudo-denormals on x86 even when cross-compiling.
60018         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60019         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60020         invalid bit patterns that happen to satisfy ==.
60021
60022         Avoid link failures with separate libtests.a.
60023         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60024         last, to satisfy circular dependencies.
60025
60026 2007-12-11  Eric Blake  <ebb9@byu.net>
60027         and Bruno Haible  <bruno@clisp.org>
60028
60029         Fix OpenBSD 4.0 <float.h> handling of long double.
60030         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60031         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60032         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60033
60034 2007-12-11  Jim Meyering  <meyering@redhat.com>
60035
60036         * users.txt: Add libvirt.
60037
60038         Support versions of autoconf prior to 2.59c.
60039         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60040         if it is not already defined.
60041
60042 2007-12-09  Bruno Haible  <bruno@clisp.org>
60043
60044         Let 'gnulib-tool --import' collect sources needed for the tests in
60045         tests/ rather than in lib/.
60046         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60047         argument. If true, add rules to generate libtests.a, and put libtests.a
60048         into $(LDADD). Consider source files in subdirectories and set
60049         uses_subdirs.
60050         (func_emit_initmacro_start, func_emit_initmacro_end,
60051         func_emit_initmacro_done): Pass all arguments explicitly.
60052         (func_import): Determine two module lists main_modules,
60053         testsrelated_modules. Determine use_libtests. Determine two variables
60054         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60055         instead of just sed_transform_lib_file. Determine two variables
60056         main_files and testsrelated_files. Compute 'files' as the union of
60057         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60058         func_add_or_update. In the generated gnulib-comp.m4, collect the
60059         object files for tests/ in different variables than those for lib/.
60060         Substitute LIBTESTS_LIBDEPS.
60061         (func_create_testdir): Combine the uses_subdirs results from
60062         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60063
60064 2007-12-09  Bruno Haible  <bruno@clisp.org>
60065
60066         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60067         the build-aux directory.
60068
60069 2007-12-09  Bruno Haible  <bruno@clisp.org>
60070
60071         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60072         introduced on 2006-09-09.
60073
60074 2007-12-07  Jim Meyering  <meyering@redhat.com>
60075
60076         Let these macros work also with autoconf-2.59.
60077         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60078         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60080
60081 2007-12-06  Jim Meyering  <meyering@redhat.com>
60082
60083         Avoid a configure-time syntax error in gl_FUNC_ACL.
60084         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60085         function in each branch, before testing the cache variable.
60086
60087 2007-12-04  Eric Blake  <ebb9@byu.net>
60088
60089         Make scripts executable.
60090         * build-aux/config.guess: Add execute permissions.
60091         * build-aux/config.sub: Likewise.
60092         * build-aux/gendocs.sh: Likewise.
60093
60094         Fix frexp on mingw.
60095         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60096         cross-compiling.
60097         * doc/functions/frexp.texi (frexp): Document the bug.
60098
60099         Make cygwin fseeko check more reliable.
60100         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60101         version numbers, rather than unrelated feature check.
60102         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60103         * doc/functions/ftello.texi (ftello): Likewise.
60104         Reported by Bruno Haible.
60105
60106         * m4/strerror.m4: Bump version number.
60107
60108 2007-12-03  Bruno Haible  <bruno@clisp.org>
60109
60110         * doc/functions/mprotect.texi: Mention the mingw problem.
60111
60112 2007-12-03  Eric Blake  <ebb9@byu.net>
60113
60114         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60115         REPLACE_STRERROR is initialized before this macro.
60116
60117 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60118
60119         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60120         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60121         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60122         put -lsec in even for programs other than 'ls'.  This fixes a problem
60123         for gettext reported by Bruno Haible in
60124         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60125         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60126         Add support for Solaris 10.  This isn't efficient, but should get the
60127         job done for now.
60128
60129 2007-12-03  James Youngman  <jay@gnu.org>
60130
60131         * doc/regexprops-generic.texi: change "an close-group" to "a
60132         close-group" and "illegal" to "not allowed".
60133
60134 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60135
60136         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60137         pr_byname.h. Needed for the rare case when the maintainer has done
60138         "make maintainer-clean" in the source directory and then attempts a
60139         build outside the source directory.
60140         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60141         scripts_byname.h.
60142
60143 2007-12-02  Martin Lambers <marlam@marlam.de>
60144             Bruno Haible  <bruno@clisp.org>
60145
60146         * lib/getpagesize.h: Remove file.
60147         * lib/unistd.in.h: Include declaration of getpagesize here.
60148         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60149         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60150         HAVE_SYS_PARAM_H.
60151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60152         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60153         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60154         (Depends-on): Add unistd.
60155         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60156         (Include): Use <unistd.h> instead of getpagesize.h.
60157         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60158         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60159         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60160         gl_GETPAGESIZE invocation, already handled by module dependency.
60161         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60162
60163 2007-12-02  Bruno Haible  <bruno@clisp.org>
60164
60165         * modules/strings-tests: New file.
60166         * tests/test-strings.c: New file.
60167
60168         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60169         * lib/strings.in.h: New file.
60170         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60171         * m4/strings_h.m4: New file.
60172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60173         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60174         * modules/strings: New file.
60175         * modules/string (Makefile.am): Update.
60176         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60177         Reported by Karl Berry.
60178
60179 2007-12-01  Eric Blake  <ebb9@byu.net>
60180
60181         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60182         accommodate fix in cygwin 1.5.25.
60183
60184 2007-12-01  Jim Meyering  <meyering@redhat.com>
60185
60186         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60187         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60188         that would inhibit utf8-optimization of a regexp containing line-
60189         or buffer-anchors, e.g., `^', `$'.
60190
60191 2007-11-30  Bruno Haible  <bruno@clisp.org>
60192
60193         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60194         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60195         glthread_recursive_lock_init.
60196         * lib/lock.c (glthread_recursive_lock_init)
60197         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60198         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60199
60200 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60201
60202         New function qset_acl, like set_acl but with syscall semantics.
60203         * lib/acl.h (qset_acl): New decl.
60204         * lib/acl.c (qset_acl): New function.
60205         (set_acl): Use new function.  Use more-consistent diagnostics.
60206
60207 2007-11-28  Jim Meyering  <meyering@redhat.com>
60208
60209         * modules/physmem (License): Change from GPL to LGPLv2+.
60210
60211 2007-11-26  Bruno Haible  <bruno@clisp.org>
60212
60213         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60214         'long double' type has excess precision.
60215         Reported by Jim Meyering in
60216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60217
60218 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60219
60220         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60221         Sync from <http://gnu.org/licenses>.
60222         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60223         with license text from same location.
60224         * doc/maintain.texi, doc/standards.texi:  Sync from
60225         <http://savannah.gnu.org/projects/gnustandards>.
60226
60227 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
60228         and Jim Meyering  <meyering@redhat.com>
60229
60230         Adjust getdate' grammar to accept a slightly more regular language.
60231         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60232         Before, the former was rejected.
60233         * lib/getdate.y (digits_to_date_time): New function, factored
60234         out of ...
60235         (number): ...here.  Just call digits_to_date_time.
60236         (hybrid): New non-terminal to handle an <unsigned number,
60237         signed relative offset> sequence consistently.
60238
60239 2007-11-18  Jim Meyering  <meyering@redhat.com>
60240
60241         Pull my changes from coreutils:
60242         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60243         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60244         use of $gnulib_tool_option_extras, so that it's separated from the
60245         preceding argument.
60246
60247         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60248         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60249         parent destination directories before copying a file into place.
60250
60251 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60252
60253         bootstrap: work also with 4-argument variant of AC_INIT
60254         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60255
60256 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60257
60258         Port test-getaddrinfo to Solaris.
60259         Problem reported by Bruno Haible in
60260         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60261         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60262         explanation of setting 'hints'.
60263         Don't reject an implementation merely because it returns EAI_SERVICE.
60264         (EAI_SERVICE): Define to 0 if not defined.
60265
60266 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60267
60268         The license of gnu-make and posix-shell is now "GPLed build tool".
60269         * modules/gnu-make (License): Likewise.
60270         * modules/posix-shell (License): Likewise.
60271
60272         New module posix-shell, for determining a POSIX shell
60273         or perhaps something that is close enough to a POSIX shell.
60274         * m4/posix-shell.m4: New file.
60275         * modules/posix-shell: New file.
60276
60277         * MODULES.html.sh: Mention new module.
60278
60279         New module gnu-make, for determining whether we're using GNU Make.
60280         * m4/gnu-make.m4: New file.
60281         * modules/gnu-make: New file.
60282         * MODULES.html.sh: Mention new module.
60283
60284 2007-11-14  Jim Meyering  <meyering@redhat.com>
60285
60286         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60287         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60288         use this macro to create a function _definition_.
60289         Remove useless "#undef ARGMATCH_DIE".
60290
60291 2007-11-14  Bruno Haible  <bruno@clisp.org>
60292
60293         * lib/config.charset: Update for OpenBSD 4.1.
60294         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60295
60296 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60297
60298         Document 64-bit #if problems in stdint.texi.
60299         * doc/headers/stdint.texi (stdint.h): Mention problems with
60300         64-bit-#if, and how to work around them.
60301
60302         Don't insist on 'long long int' support in the preprocessor.  It
60303         breaks too many things.  For example, PRIdMAX still uses a 'long
60304         long int' format with the latest Sun compiler, even though
60305         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60306         preprocessor problem.  This causes the latest coreutils to dump
60307         core on Solaris 10 sparc with the Sun C compiler.
60308         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60309         the troublesome expressions at configure-time, not at #if-time.
60310         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60311         preprocessor.
60312         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60313         compile-time C checks, done at 'configure'-time.
60314         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60315         * modules/inttypes (Makefile): Substitute the new symbols that
60316         gl_INTTYPES_H now generates.
60317         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60318
60319 2007-11-12  Bruno Haible  <bruno@clisp.org>
60320
60321         Tests for Unicode character classification functions.
60322
60323         * modules/unictype/bidicategory-byname-tests: New file.
60324         * modules/unictype/bidicategory-name-tests: New file.
60325         * modules/unictype/bidicategory-of-tests: New file.
60326         * modules/unictype/bidicategory-test-tests: New file.
60327         * modules/unictype/block-list-tests: New file.
60328         * modules/unictype/block-of-tests: New file.
60329         * modules/unictype/block-test-tests: New file.
60330         * modules/unictype/category-C-tests: New file.
60331         * modules/unictype/category-Cc-tests: New file.
60332         * modules/unictype/category-Cf-tests: New file.
60333         * modules/unictype/category-Cn-tests: New file.
60334         * modules/unictype/category-Co-tests: New file.
60335         * modules/unictype/category-Cs-tests: New file.
60336         * modules/unictype/category-L-tests: New file.
60337         * modules/unictype/category-Ll-tests: New file.
60338         * modules/unictype/category-Lm-tests: New file.
60339         * modules/unictype/category-Lo-tests: New file.
60340         * modules/unictype/category-Lt-tests: New file.
60341         * modules/unictype/category-Lu-tests: New file.
60342         * modules/unictype/category-M-tests: New file.
60343         * modules/unictype/category-Mc-tests: New file.
60344         * modules/unictype/category-Me-tests: New file.
60345         * modules/unictype/category-Mn-tests: New file.
60346         * modules/unictype/category-N-tests: New file.
60347         * modules/unictype/category-Nd-tests: New file.
60348         * modules/unictype/category-Nl-tests: New file.
60349         * modules/unictype/category-No-tests: New file.
60350         * modules/unictype/category-P-tests: New file.
60351         * modules/unictype/category-Pc-tests: New file.
60352         * modules/unictype/category-Pd-tests: New file.
60353         * modules/unictype/category-Pe-tests: New file.
60354         * modules/unictype/category-Pf-tests: New file.
60355         * modules/unictype/category-Pi-tests: New file.
60356         * modules/unictype/category-Po-tests: New file.
60357         * modules/unictype/category-Ps-tests: New file.
60358         * modules/unictype/category-S-tests: New file.
60359         * modules/unictype/category-Sc-tests: New file.
60360         * modules/unictype/category-Sk-tests: New file.
60361         * modules/unictype/category-Sm-tests: New file.
60362         * modules/unictype/category-So-tests: New file.
60363         * modules/unictype/category-Z-tests: New file.
60364         * modules/unictype/category-Zl-tests: New file.
60365         * modules/unictype/category-Zp-tests: New file.
60366         * modules/unictype/category-Zs-tests: New file.
60367         * modules/unictype/category-and-not-tests: New file.
60368         * modules/unictype/category-and-tests: New file.
60369         * modules/unictype/category-byname-tests: New file.
60370         * modules/unictype/category-name-tests: New file.
60371         * modules/unictype/category-none-tests: New file.
60372         * modules/unictype/category-of-tests: New file.
60373         * modules/unictype/category-or-tests: New file.
60374         * modules/unictype/category-test-withtable-tests: New file.
60375         * modules/unictype/combining-class-tests: New file.
60376         * modules/unictype/ctype-alnum-tests: New file.
60377         * modules/unictype/ctype-alpha-tests: New file.
60378         * modules/unictype/ctype-blank-tests: New file.
60379         * modules/unictype/ctype-cntrl-tests: New file.
60380         * modules/unictype/ctype-digit-tests: New file.
60381         * modules/unictype/ctype-graph-tests: New file.
60382         * modules/unictype/ctype-lower-tests: New file.
60383         * modules/unictype/ctype-print-tests: New file.
60384         * modules/unictype/ctype-punct-tests: New file.
60385         * modules/unictype/ctype-space-tests: New file.
60386         * modules/unictype/ctype-upper-tests: New file.
60387         * modules/unictype/ctype-xdigit-tests: New file.
60388         * modules/unictype/decimal-digit-tests: New file.
60389         * modules/unictype/digit-tests: New file.
60390         * modules/unictype/mirror-tests: New file.
60391         * modules/unictype/numeric-tests: New file.
60392         * modules/unictype/property-alphabetic-tests: New file.
60393         * modules/unictype/property-ascii-hex-digit-tests: New file.
60394         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60395         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60396         * modules/unictype/property-bidi-block-separator-tests: New file.
60397         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60398         * modules/unictype/property-bidi-common-separator-tests: New file.
60399         * modules/unictype/property-bidi-control-tests: New file.
60400         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60401         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60402         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60403         * modules/unictype/property-bidi-european-digit-tests: New file.
60404         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60405         * modules/unictype/property-bidi-left-to-right-tests: New file.
60406         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60407         * modules/unictype/property-bidi-other-neutral-tests: New file.
60408         * modules/unictype/property-bidi-pdf-tests: New file.
60409         * modules/unictype/property-bidi-segment-separator-tests: New file.
60410         * modules/unictype/property-bidi-whitespace-tests: New file.
60411         * modules/unictype/property-byname-tests: New file.
60412         * modules/unictype/property-combining-tests: New file.
60413         * modules/unictype/property-composite-tests: New file.
60414         * modules/unictype/property-currency-symbol-tests: New file.
60415         * modules/unictype/property-dash-tests: New file.
60416         * modules/unictype/property-decimal-digit-tests: New file.
60417         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60418         * modules/unictype/property-deprecated-tests: New file.
60419         * modules/unictype/property-diacritic-tests: New file.
60420         * modules/unictype/property-extender-tests: New file.
60421         * modules/unictype/property-format-control-tests: New file.
60422         * modules/unictype/property-grapheme-base-tests: New file.
60423         * modules/unictype/property-grapheme-extend-tests: New file.
60424         * modules/unictype/property-grapheme-link-tests: New file.
60425         * modules/unictype/property-hex-digit-tests: New file.
60426         * modules/unictype/property-hyphen-tests: New file.
60427         * modules/unictype/property-id-continue-tests: New file.
60428         * modules/unictype/property-id-start-tests: New file.
60429         * modules/unictype/property-ideographic-tests: New file.
60430         * modules/unictype/property-ids-binary-operator-tests: New file.
60431         * modules/unictype/property-ids-trinary-operator-tests: New file.
60432         * modules/unictype/property-ignorable-control-tests: New file.
60433         * modules/unictype/property-iso-control-tests: New file.
60434         * modules/unictype/property-join-control-tests: New file.
60435         * modules/unictype/property-left-of-pair-tests: New file.
60436         * modules/unictype/property-line-separator-tests: New file.
60437         * modules/unictype/property-logical-order-exception-tests: New file.
60438         * modules/unictype/property-lowercase-tests: New file.
60439         * modules/unictype/property-math-tests: New file.
60440         * modules/unictype/property-non-break-tests: New file.
60441         * modules/unictype/property-not-a-character-tests: New file.
60442         * modules/unictype/property-numeric-tests: New file.
60443         * modules/unictype/property-other-alphabetic-tests: New file.
60444         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60445         * modules/unictype/property-other-grapheme-extend-tests: New file.
60446         * modules/unictype/property-other-id-continue-tests: New file.
60447         * modules/unictype/property-other-id-start-tests: New file.
60448         * modules/unictype/property-other-lowercase-tests: New file.
60449         * modules/unictype/property-other-math-tests: New file.
60450         * modules/unictype/property-other-uppercase-tests: New file.
60451         * modules/unictype/property-paired-punctuation-tests: New file.
60452         * modules/unictype/property-paragraph-separator-tests: New file.
60453         * modules/unictype/property-pattern-syntax-tests: New file.
60454         * modules/unictype/property-pattern-white-space-tests: New file.
60455         * modules/unictype/property-private-use-tests: New file.
60456         * modules/unictype/property-punctuation-tests: New file.
60457         * modules/unictype/property-quotation-mark-tests: New file.
60458         * modules/unictype/property-radical-tests: New file.
60459         * modules/unictype/property-sentence-terminal-tests: New file.
60460         * modules/unictype/property-soft-dotted-tests: New file.
60461         * modules/unictype/property-space-tests: New file.
60462         * modules/unictype/property-terminal-punctuation-tests: New file.
60463         * modules/unictype/property-test-tests: New file.
60464         * modules/unictype/property-titlecase-tests: New file.
60465         * modules/unictype/property-unassigned-code-value-tests: New file.
60466         * modules/unictype/property-unified-ideograph-tests: New file.
60467         * modules/unictype/property-uppercase-tests: New file.
60468         * modules/unictype/property-variation-selector-tests: New file.
60469         * modules/unictype/property-white-space-tests: New file.
60470         * modules/unictype/property-xid-continue-tests: New file.
60471         * modules/unictype/property-xid-start-tests: New file.
60472         * modules/unictype/property-zero-width-tests: New file.
60473         * modules/unictype/scripts-tests: New file.
60474         * modules/unictype/syntax-c-ident-tests: New file.
60475         * modules/unictype/syntax-c-whitespace-tests: New file.
60476         * modules/unictype/syntax-java-ident-tests: New file.
60477         * modules/unictype/syntax-java-whitespace-tests: New file.
60478         * tests/unictype/test-bidi_byname.c: New file.
60479         * tests/unictype/test-bidi_name.c: New file.
60480         * tests/unictype/test-bidi_of.c: New file.
60481         * tests/unictype/test-bidi_test.c: New file.
60482         * tests/unictype/test-block_list.c: New file.
60483         * tests/unictype/test-block_of.c: New file.
60484         * tests/unictype/test-block_test.c: New file.
60485         * tests/unictype/test-categ_and.c: New file.
60486         * tests/unictype/test-categ_and_not.c: New file.
60487         * tests/unictype/test-categ_byname.c: New file.
60488         * tests/unictype/test-categ_name.c: New file.
60489         * tests/unictype/test-categ_none.c: New file.
60490         * tests/unictype/test-categ_of.c: New file.
60491         * tests/unictype/test-categ_or.c: New file.
60492         * tests/unictype/test-categ_test_withtable.c: New file.
60493         * tests/unictype/test-combining.c: New file.
60494         * tests/unictype/test-decdigit.c: New file.
60495         * tests/unictype/test-digit.c: New file.
60496         * tests/unictype/test-mirror.c: New file.
60497         * tests/unictype/test-numeric.c: New file.
60498         * tests/unictype/test-pr_byname.c: New file.
60499         * tests/unictype/test-pr_test.c: New file.
60500         * tests/unictype/test-predicate-part1.h: New file.
60501         * tests/unictype/test-predicate-part2.h: New file.
60502         * tests/unictype/test-scripts.c: New file.
60503         * tests/unictype/test-sy_c_ident.c: New file.
60504         * tests/unictype/test-sy_java_ident.c: New file.
60505
60506         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60507         for Unicode 5.0.0.
60508         * tests/unictype/test-categ_Cc.c: Likewise.
60509         * tests/unictype/test-categ_Cf.c: Likewise.
60510         * tests/unictype/test-categ_Cn.c: Likewise.
60511         * tests/unictype/test-categ_Co.c: Likewise.
60512         * tests/unictype/test-categ_Cs.c: Likewise.
60513         * tests/unictype/test-categ_L.c: Likewise.
60514         * tests/unictype/test-categ_Ll.c: Likewise.
60515         * tests/unictype/test-categ_Lm.c: Likewise.
60516         * tests/unictype/test-categ_Lo.c: Likewise.
60517         * tests/unictype/test-categ_Lt.c: Likewise.
60518         * tests/unictype/test-categ_Lu.c: Likewise.
60519         * tests/unictype/test-categ_M.c: Likewise.
60520         * tests/unictype/test-categ_Mc.c: Likewise.
60521         * tests/unictype/test-categ_Me.c: Likewise.
60522         * tests/unictype/test-categ_Mn.c: Likewise.
60523         * tests/unictype/test-categ_N.c: Likewise.
60524         * tests/unictype/test-categ_Nd.c: Likewise.
60525         * tests/unictype/test-categ_Nl.c: Likewise.
60526         * tests/unictype/test-categ_No.c: Likewise.
60527         * tests/unictype/test-categ_P.c: Likewise.
60528         * tests/unictype/test-categ_Pc.c: Likewise.
60529         * tests/unictype/test-categ_Pd.c: Likewise.
60530         * tests/unictype/test-categ_Pe.c: Likewise.
60531         * tests/unictype/test-categ_Pf.c: Likewise.
60532         * tests/unictype/test-categ_Pi.c: Likewise.
60533         * tests/unictype/test-categ_Po.c: Likewise.
60534         * tests/unictype/test-categ_Ps.c: Likewise.
60535         * tests/unictype/test-categ_S.c: Likewise.
60536         * tests/unictype/test-categ_Sc.c: Likewise.
60537         * tests/unictype/test-categ_Sk.c: Likewise.
60538         * tests/unictype/test-categ_Sm.c: Likewise.
60539         * tests/unictype/test-categ_So.c: Likewise.
60540         * tests/unictype/test-categ_Z.c: Likewise.
60541         * tests/unictype/test-categ_Zl.c: Likewise.
60542         * tests/unictype/test-categ_Zp.c: Likewise.
60543         * tests/unictype/test-categ_Zs.c: Likewise.
60544         * tests/unictype/test-ctype_alnum.c: Likewise.
60545         * tests/unictype/test-ctype_alpha.c: Likewise.
60546         * tests/unictype/test-ctype_blank.c: Likewise.
60547         * tests/unictype/test-ctype_cntrl.c: Likewise.
60548         * tests/unictype/test-ctype_digit.c: Likewise.
60549         * tests/unictype/test-ctype_graph.c: Likewise.
60550         * tests/unictype/test-ctype_lower.c: Likewise.
60551         * tests/unictype/test-ctype_print.c: Likewise.
60552         * tests/unictype/test-ctype_punct.c: Likewise.
60553         * tests/unictype/test-ctype_space.c: Likewise.
60554         * tests/unictype/test-ctype_upper.c: Likewise.
60555         * tests/unictype/test-ctype_xdigit.c: Likewise.
60556         * tests/unictype/test-decdigit.h: Likewise.
60557         * tests/unictype/test-digit.h: Likewise.
60558         * tests/unictype/test-numeric.h: Likewise.
60559         * tests/unictype/test-pr_alphabetic.c: Likewise.
60560         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60561         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60562         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60563         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60564         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60565         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60566         * tests/unictype/test-pr_bidi_control.c: Likewise.
60567         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60568         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60569         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60570         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60571         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60572         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60573         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60574         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60575         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60576         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60577         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60578         * tests/unictype/test-pr_combining.c: Likewise.
60579         * tests/unictype/test-pr_composite.c: Likewise.
60580         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60581         * tests/unictype/test-pr_dash.c: Likewise.
60582         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60583         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60584         * tests/unictype/test-pr_deprecated.c: Likewise.
60585         * tests/unictype/test-pr_diacritic.c: Likewise.
60586         * tests/unictype/test-pr_extender.c: Likewise.
60587         * tests/unictype/test-pr_format_control.c: Likewise.
60588         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60589         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60590         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60591         * tests/unictype/test-pr_hex_digit.c: Likewise.
60592         * tests/unictype/test-pr_hyphen.c: Likewise.
60593         * tests/unictype/test-pr_id_continue.c: Likewise.
60594         * tests/unictype/test-pr_id_start.c: Likewise.
60595         * tests/unictype/test-pr_ideographic.c: Likewise.
60596         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60597         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60598         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60599         * tests/unictype/test-pr_iso_control.c: Likewise.
60600         * tests/unictype/test-pr_join_control.c: Likewise.
60601         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60602         * tests/unictype/test-pr_line_separator.c: Likewise.
60603         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60604         * tests/unictype/test-pr_lowercase.c: Likewise.
60605         * tests/unictype/test-pr_math.c: Likewise.
60606         * tests/unictype/test-pr_non_break.c: Likewise.
60607         * tests/unictype/test-pr_not_a_character.c: Likewise.
60608         * tests/unictype/test-pr_numeric.c: Likewise.
60609         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60610         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60611         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60612         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60613         * tests/unictype/test-pr_other_id_start.c: Likewise.
60614         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60615         * tests/unictype/test-pr_other_math.c: Likewise.
60616         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60617         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60618         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60619         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60620         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60621         * tests/unictype/test-pr_private_use.c: Likewise.
60622         * tests/unictype/test-pr_punctuation.c: Likewise.
60623         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60624         * tests/unictype/test-pr_radical.c: Likewise.
60625         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60626         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60627         * tests/unictype/test-pr_space.c: Likewise.
60628         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60629         * tests/unictype/test-pr_titlecase.c: Likewise.
60630         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60631         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60632         * tests/unictype/test-pr_uppercase.c: Likewise.
60633         * tests/unictype/test-pr_variation_selector.c: Likewise.
60634         * tests/unictype/test-pr_white_space.c: Likewise.
60635         * tests/unictype/test-pr_xid_continue.c: Likewise.
60636         * tests/unictype/test-pr_xid_start.c: Likewise.
60637         * tests/unictype/test-pr_zero_width.c: Likewise.
60638         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60639         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60640
60641 2007-11-12  Bruno Haible  <bruno@clisp.org>
60642
60643         Unicode character classification functions.
60644         * lib/unictype.h: New file.
60645         * modules/unictype/base: New file.
60646         * modules/unictype/category-L: New file.
60647         * modules/unictype/category-Lu: New file.
60648         * modules/unictype/category-Ll: New file.
60649         * modules/unictype/category-Lt: New file.
60650         * modules/unictype/category-Lm: New file.
60651         * modules/unictype/category-Lo: New file.
60652         * modules/unictype/category-M: New file.
60653         * modules/unictype/category-Mn: New file.
60654         * modules/unictype/category-Mc: New file.
60655         * modules/unictype/category-Me: New file.
60656         * modules/unictype/category-N: New file.
60657         * modules/unictype/category-Nd: New file.
60658         * modules/unictype/category-Nl: New file.
60659         * modules/unictype/category-No: New file.
60660         * modules/unictype/category-P: New file.
60661         * modules/unictype/category-Pc: New file.
60662         * modules/unictype/category-Pd: New file.
60663         * modules/unictype/category-Ps: New file.
60664         * modules/unictype/category-Pe: New file.
60665         * modules/unictype/category-Pi: New file.
60666         * modules/unictype/category-Pf: New file.
60667         * modules/unictype/category-Po: New file.
60668         * modules/unictype/category-S: New file.
60669         * modules/unictype/category-Sm: New file.
60670         * modules/unictype/category-Sc: New file.
60671         * modules/unictype/category-Sk: New file.
60672         * modules/unictype/category-So: New file.
60673         * modules/unictype/category-Z: New file.
60674         * modules/unictype/category-Zs: New file.
60675         * modules/unictype/category-Zl: New file.
60676         * modules/unictype/category-Zp: New file.
60677         * modules/unictype/category-C: New file.
60678         * modules/unictype/category-Cc: New file.
60679         * modules/unictype/category-Cf: New file.
60680         * modules/unictype/category-Cs: New file.
60681         * modules/unictype/category-Co: New file.
60682         * modules/unictype/category-Cn: New file.
60683         * modules/unictype/category-or: New file.
60684         * modules/unictype/category-of: New file.
60685         * modules/unictype/category-test: New file.
60686         * modules/unictype/category-test-withtable: New file.
60687         * modules/unictype/category-byname: New file.
60688         * modules/unictype/category-none: New file.
60689         * modules/unictype/category-and: New file.
60690         * modules/unictype/category-and-not: New file.
60691         * modules/unictype/category-name: New file.
60692         * modules/unictype/combining-class: New file.
60693         * modules/unictype/category-all: New file.
60694         * modules/unictype/bidicategory-all: New file.
60695         * modules/unictype/bidicategory-byname: New file.
60696         * modules/unictype/bidicategory-name: New file.
60697         * modules/unictype/bidicategory-of: New file.
60698         * modules/unictype/bidicategory-test: New file.
60699         * modules/unictype/decimal-digit: New file.
60700         * modules/unictype/digit: New file.
60701         * modules/unictype/numeric: New file.
60702         * modules/unictype/mirror: New file.
60703         * modules/unictype/property-white-space: New file.
60704         * modules/unictype/property-alphabetic: New file.
60705         * modules/unictype/property-other-alphabetic: New file.
60706         * modules/unictype/property-not-a-character: New file.
60707         * modules/unictype/property-default-ignorable-code-point: New file.
60708         * modules/unictype/property-other-default-ignorable-code-point: New
60709         file.
60710         * modules/unictype/property-deprecated: New file.
60711         * modules/unictype/property-logical-order-exception: New file.
60712         * modules/unictype/property-variation-selector: New file.
60713         * modules/unictype/property-private-use: New file.
60714         * modules/unictype/property-unassigned-code-value: New file.
60715         * modules/unictype/property-uppercase: New file.
60716         * modules/unictype/property-other-uppercase: New file.
60717         * modules/unictype/property-lowercase: New file.
60718         * modules/unictype/property-other-lowercase: New file.
60719         * modules/unictype/property-titlecase: New file.
60720         * modules/unictype/property-soft-dotted: New file.
60721         * modules/unictype/property-id-start: New file.
60722         * modules/unictype/property-other-id-start: New file.
60723         * modules/unictype/property-id-continue: New file.
60724         * modules/unictype/property-other-id-continue: New file.
60725         * modules/unictype/property-xid-start: New file.
60726         * modules/unictype/property-xid-continue: New file.
60727         * modules/unictype/property-pattern-white-space: New file.
60728         * modules/unictype/property-pattern-syntax: New file.
60729         * modules/unictype/property-join-control: New file.
60730         * modules/unictype/property-grapheme-base: New file.
60731         * modules/unictype/property-grapheme-extend: New file.
60732         * modules/unictype/property-other-grapheme-extend: New file.
60733         * modules/unictype/property-grapheme-link: New file.
60734         * modules/unictype/property-bidi-control: New file.
60735         * modules/unictype/property-bidi-left-to-right: New file.
60736         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60737         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60738         * modules/unictype/property-bidi-european-digit: New file.
60739         * modules/unictype/property-bidi-eur-num-separator: New file.
60740         * modules/unictype/property-bidi-eur-num-terminator: New file.
60741         * modules/unictype/property-bidi-arabic-digit: New file.
60742         * modules/unictype/property-bidi-common-separator: New file.
60743         * modules/unictype/property-bidi-block-separator: New file.
60744         * modules/unictype/property-bidi-segment-separator: New file.
60745         * modules/unictype/property-bidi-whitespace: New file.
60746         * modules/unictype/property-bidi-non-spacing-mark: New file.
60747         * modules/unictype/property-bidi-boundary-neutral: New file.
60748         * modules/unictype/property-bidi-pdf: New file.
60749         * modules/unictype/property-bidi-embedding-or-override: New file.
60750         * modules/unictype/property-bidi-other-neutral: New file.
60751         * modules/unictype/property-hex-digit: New file.
60752         * modules/unictype/property-ascii-hex-digit: New file.
60753         * modules/unictype/property-ideographic: New file.
60754         * modules/unictype/property-unified-ideograph: New file.
60755         * modules/unictype/property-radical: New file.
60756         * modules/unictype/property-ids-binary-operator: New file.
60757         * modules/unictype/property-ids-trinary-operator: New file.
60758         * modules/unictype/property-zero-width: New file.
60759         * modules/unictype/property-space: New file.
60760         * modules/unictype/property-non-break: New file.
60761         * modules/unictype/property-iso-control: New file.
60762         * modules/unictype/property-format-control: New file.
60763         * modules/unictype/property-dash: New file.
60764         * modules/unictype/property-hyphen: New file.
60765         * modules/unictype/property-punctuation: New file.
60766         * modules/unictype/property-line-separator: New file.
60767         * modules/unictype/property-paragraph-separator: New file.
60768         * modules/unictype/property-quotation-mark: New file.
60769         * modules/unictype/property-sentence-terminal: New file.
60770         * modules/unictype/property-terminal-punctuation: New file.
60771         * modules/unictype/property-currency-symbol: New file.
60772         * modules/unictype/property-math: New file.
60773         * modules/unictype/property-other-math: New file.
60774         * modules/unictype/property-paired-punctuation: New file.
60775         * modules/unictype/property-left-of-pair: New file.
60776         * modules/unictype/property-combining: New file.
60777         * modules/unictype/property-composite: New file.
60778         * modules/unictype/property-decimal-digit: New file.
60779         * modules/unictype/property-numeric: New file.
60780         * modules/unictype/property-diacritic: New file.
60781         * modules/unictype/property-extender: New file.
60782         * modules/unictype/property-ignorable-control: New file.
60783         * modules/unictype/property-test: New file.
60784         * modules/unictype/property-byname: New file.
60785         * modules/unictype/property-all: New file.
60786         * modules/unictype/scripts: New file.
60787         * modules/unictype/scripts-all: New file.
60788         * modules/unictype/block-of: New file.
60789         * modules/unictype/block-test: New file.
60790         * modules/unictype/block-list: New file.
60791         * modules/unictype/block-all: New file.
60792         * modules/unictype/syntax-c-whitespace: New file.
60793         * modules/unictype/syntax-java-whitespace: New file.
60794         * modules/unictype/syntax-c-ident: New file.
60795         * modules/unictype/syntax-java-ident: New file.
60796         * modules/unictype/ctype-alnum: New file.
60797         * modules/unictype/ctype-alpha: New file.
60798         * modules/unictype/ctype-cntrl: New file.
60799         * modules/unictype/ctype-digit: New file.
60800         * modules/unictype/ctype-graph: New file.
60801         * modules/unictype/ctype-lower: New file.
60802         * modules/unictype/ctype-print: New file.
60803         * modules/unictype/ctype-punct: New file.
60804         * modules/unictype/ctype-space: New file.
60805         * modules/unictype/ctype-upper: New file.
60806         * modules/unictype/ctype-xdigit: New file.
60807         * modules/unictype/ctype-blank: New file.
60808         * lib/unictype/bidi_byname.c: New file.
60809         * lib/unictype/bidi_name.c: New file.
60810         * lib/unictype/bidi_of.c: New file.
60811         * lib/unictype/bidi_test.c: New file.
60812         * lib/unictype/bitmap.h: New file.
60813         * lib/unictype/block_test.c: New file.
60814         * lib/unictype/blocks.c: New file.
60815         * lib/unictype/categ_C.c: New file.
60816         * lib/unictype/categ_Cc.c: New file.
60817         * lib/unictype/categ_Cf.c: New file.
60818         * lib/unictype/categ_Cn.c: New file.
60819         * lib/unictype/categ_Co.c: New file.
60820         * lib/unictype/categ_Cs.c: New file.
60821         * lib/unictype/categ_L.c: New file.
60822         * lib/unictype/categ_Ll.c: New file.
60823         * lib/unictype/categ_Lm.c: New file.
60824         * lib/unictype/categ_Lo.c: New file.
60825         * lib/unictype/categ_Lt.c: New file.
60826         * lib/unictype/categ_Lu.c: New file.
60827         * lib/unictype/categ_M.c: New file.
60828         * lib/unictype/categ_Mc.c: New file.
60829         * lib/unictype/categ_Me.c: New file.
60830         * lib/unictype/categ_Mn.c: New file.
60831         * lib/unictype/categ_N.c: New file.
60832         * lib/unictype/categ_Nd.c: New file.
60833         * lib/unictype/categ_Nl.c: New file.
60834         * lib/unictype/categ_No.c: New file.
60835         * lib/unictype/categ_P.c: New file.
60836         * lib/unictype/categ_Pc.c: New file.
60837         * lib/unictype/categ_Pd.c: New file.
60838         * lib/unictype/categ_Pe.c: New file.
60839         * lib/unictype/categ_Pf.c: New file.
60840         * lib/unictype/categ_Pi.c: New file.
60841         * lib/unictype/categ_Po.c: New file.
60842         * lib/unictype/categ_Ps.c: New file.
60843         * lib/unictype/categ_S.c: New file.
60844         * lib/unictype/categ_Sc.c: New file.
60845         * lib/unictype/categ_Sk.c: New file.
60846         * lib/unictype/categ_Sm.c: New file.
60847         * lib/unictype/categ_So.c: New file.
60848         * lib/unictype/categ_Z.c: New file.
60849         * lib/unictype/categ_Zl.c: New file.
60850         * lib/unictype/categ_Zp.c: New file.
60851         * lib/unictype/categ_Zs.c: New file.
60852         * lib/unictype/categ_and.c: New file.
60853         * lib/unictype/categ_and_not.c: New file.
60854         * lib/unictype/categ_byname.c: New file.
60855         * lib/unictype/categ_name.c: New file.
60856         * lib/unictype/categ_none.c: New file.
60857         * lib/unictype/categ_of.c: New file.
60858         * lib/unictype/categ_or.c: New file.
60859         * lib/unictype/categ_test.c: New file.
60860         * lib/unictype/combining.c: New file.
60861         * lib/unictype/ctype_alnum.c: New file.
60862         * lib/unictype/ctype_alpha.c: New file.
60863         * lib/unictype/ctype_blank.c: New file.
60864         * lib/unictype/ctype_cntrl.c: New file.
60865         * lib/unictype/ctype_digit.c: New file.
60866         * lib/unictype/ctype_graph.c: New file.
60867         * lib/unictype/ctype_lower.c: New file.
60868         * lib/unictype/ctype_print.c: New file.
60869         * lib/unictype/ctype_punct.c: New file.
60870         * lib/unictype/ctype_space.c: New file.
60871         * lib/unictype/ctype_upper.c: New file.
60872         * lib/unictype/ctype_xdigit.c: New file.
60873         * lib/unictype/decdigit.c: New file.
60874         * lib/unictype/digit.c: New file.
60875         * lib/unictype/identsyntaxmap.h: New file.
60876         * lib/unictype/mirror.c: New file.
60877         * lib/unictype/numeric.c: New file.
60878         * lib/unictype/pr_alphabetic.c: New file.
60879         * lib/unictype/pr_ascii_hex_digit.c: New file.
60880         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60881         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60882         * lib/unictype/pr_bidi_block_separator.c: New file.
60883         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60884         * lib/unictype/pr_bidi_common_separator.c: New file.
60885         * lib/unictype/pr_bidi_control.c: New file.
60886         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60887         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60888         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60889         * lib/unictype/pr_bidi_european_digit.c: New file.
60890         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60891         * lib/unictype/pr_bidi_left_to_right.c: New file.
60892         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60893         * lib/unictype/pr_bidi_other_neutral.c: New file.
60894         * lib/unictype/pr_bidi_pdf.c: New file.
60895         * lib/unictype/pr_bidi_segment_separator.c: New file.
60896         * lib/unictype/pr_bidi_whitespace.c: New file.
60897         * lib/unictype/pr_byname.c: New file.
60898         * lib/unictype/pr_byname.gperf: New file.
60899         * lib/unictype/pr_combining.c: New file.
60900         * lib/unictype/pr_composite.c: New file.
60901         * lib/unictype/pr_currency_symbol.c: New file.
60902         * lib/unictype/pr_dash.c: New file.
60903         * lib/unictype/pr_decimal_digit.c: New file.
60904         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60905         * lib/unictype/pr_deprecated.c: New file.
60906         * lib/unictype/pr_diacritic.c: New file.
60907         * lib/unictype/pr_extender.c: New file.
60908         * lib/unictype/pr_format_control.c: New file.
60909         * lib/unictype/pr_grapheme_base.c: New file.
60910         * lib/unictype/pr_grapheme_extend.c: New file.
60911         * lib/unictype/pr_grapheme_link.c: New file.
60912         * lib/unictype/pr_hex_digit.c: New file.
60913         * lib/unictype/pr_hyphen.c: New file.
60914         * lib/unictype/pr_id_continue.c: New file.
60915         * lib/unictype/pr_id_start.c: New file.
60916         * lib/unictype/pr_ideographic.c: New file.
60917         * lib/unictype/pr_ids_binary_operator.c: New file.
60918         * lib/unictype/pr_ids_trinary_operator.c: New file.
60919         * lib/unictype/pr_ignorable_control.c: New file.
60920         * lib/unictype/pr_iso_control.c: New file.
60921         * lib/unictype/pr_join_control.c: New file.
60922         * lib/unictype/pr_left_of_pair.c: New file.
60923         * lib/unictype/pr_line_separator.c: New file.
60924         * lib/unictype/pr_logical_order_exception.c: New file.
60925         * lib/unictype/pr_lowercase.c: New file.
60926         * lib/unictype/pr_math.c: New file.
60927         * lib/unictype/pr_non_break.c: New file.
60928         * lib/unictype/pr_not_a_character.c: New file.
60929         * lib/unictype/pr_numeric.c: New file.
60930         * lib/unictype/pr_other_alphabetic.c: New file.
60931         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60932         * lib/unictype/pr_other_grapheme_extend.c: New file.
60933         * lib/unictype/pr_other_id_continue.c: New file.
60934         * lib/unictype/pr_other_id_start.c: New file.
60935         * lib/unictype/pr_other_lowercase.c: New file.
60936         * lib/unictype/pr_other_math.c: New file.
60937         * lib/unictype/pr_other_uppercase.c: New file.
60938         * lib/unictype/pr_paired_punctuation.c: New file.
60939         * lib/unictype/pr_paragraph_separator.c: New file.
60940         * lib/unictype/pr_pattern_syntax.c: New file.
60941         * lib/unictype/pr_pattern_white_space.c: New file.
60942         * lib/unictype/pr_private_use.c: New file.
60943         * lib/unictype/pr_punctuation.c: New file.
60944         * lib/unictype/pr_quotation_mark.c: New file.
60945         * lib/unictype/pr_radical.c: New file.
60946         * lib/unictype/pr_sentence_terminal.c: New file.
60947         * lib/unictype/pr_soft_dotted.c: New file.
60948         * lib/unictype/pr_space.c: New file.
60949         * lib/unictype/pr_terminal_punctuation.c: New file.
60950         * lib/unictype/pr_test.c: New file.
60951         * lib/unictype/pr_titlecase.c: New file.
60952         * lib/unictype/pr_unassigned_code_value.c: New file.
60953         * lib/unictype/pr_unified_ideograph.c: New file.
60954         * lib/unictype/pr_uppercase.c: New file.
60955         * lib/unictype/pr_variation_selector.c: New file.
60956         * lib/unictype/pr_white_space.c: New file.
60957         * lib/unictype/pr_xid_continue.c: New file.
60958         * lib/unictype/pr_xid_start.c: New file.
60959         * lib/unictype/pr_zero_width.c: New file.
60960         * lib/unictype/scripts.c: New file.
60961         * lib/unictype/sy_c_ident.c: New file.
60962         * lib/unictype/sy_c_whitespace.c: New file.
60963         * lib/unictype/sy_java_ident.c: New file.
60964         * lib/unictype/sy_java_whitespace.c: New file.
60965
60966         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60967         Unicode 5.0.0.
60968         * lib/unictype/blocks.h: Likewise.
60969         * lib/unictype/categ_C.h: Likewise.
60970         * lib/unictype/categ_Cc.h: Likewise.
60971         * lib/unictype/categ_Cf.h: Likewise.
60972         * lib/unictype/categ_Cn.h: Likewise.
60973         * lib/unictype/categ_Co.h: Likewise.
60974         * lib/unictype/categ_Cs.h: Likewise.
60975         * lib/unictype/categ_L.h: Likewise.
60976         * lib/unictype/categ_Ll.h: Likewise.
60977         * lib/unictype/categ_Lm.h: Likewise.
60978         * lib/unictype/categ_Lo.h: Likewise.
60979         * lib/unictype/categ_Lt.h: Likewise.
60980         * lib/unictype/categ_Lu.h: Likewise.
60981         * lib/unictype/categ_M.h: Likewise.
60982         * lib/unictype/categ_Mc.h: Likewise.
60983         * lib/unictype/categ_Me.h: Likewise.
60984         * lib/unictype/categ_Mn.h: Likewise.
60985         * lib/unictype/categ_N.h: Likewise.
60986         * lib/unictype/categ_Nd.h: Likewise.
60987         * lib/unictype/categ_Nl.h: Likewise.
60988         * lib/unictype/categ_No.h: Likewise.
60989         * lib/unictype/categ_P.h: Likewise.
60990         * lib/unictype/categ_Pc.h: Likewise.
60991         * lib/unictype/categ_Pd.h: Likewise.
60992         * lib/unictype/categ_Pe.h: Likewise.
60993         * lib/unictype/categ_Pf.h: Likewise.
60994         * lib/unictype/categ_Pi.h: Likewise.
60995         * lib/unictype/categ_Po.h: Likewise.
60996         * lib/unictype/categ_Ps.h: Likewise.
60997         * lib/unictype/categ_S.h: Likewise.
60998         * lib/unictype/categ_Sc.h: Likewise.
60999         * lib/unictype/categ_Sk.h: Likewise.
61000         * lib/unictype/categ_Sm.h: Likewise.
61001         * lib/unictype/categ_So.h: Likewise.
61002         * lib/unictype/categ_Z.h: Likewise.
61003         * lib/unictype/categ_Zl.h: Likewise.
61004         * lib/unictype/categ_Zp.h: Likewise.
61005         * lib/unictype/categ_Zs.h: Likewise.
61006         * lib/unictype/categ_of.h: Likewise.
61007         * lib/unictype/combining.h: Likewise.
61008         * lib/unictype/ctype_alnum.h: Likewise.
61009         * lib/unictype/ctype_alpha.h: Likewise.
61010         * lib/unictype/ctype_blank.h: Likewise.
61011         * lib/unictype/ctype_cntrl.h: Likewise.
61012         * lib/unictype/ctype_digit.h: Likewise.
61013         * lib/unictype/ctype_graph.h: Likewise.
61014         * lib/unictype/ctype_lower.h: Likewise.
61015         * lib/unictype/ctype_print.h: Likewise.
61016         * lib/unictype/ctype_punct.h: Likewise.
61017         * lib/unictype/ctype_space.h: Likewise.
61018         * lib/unictype/ctype_upper.h: Likewise.
61019         * lib/unictype/ctype_xdigit.h: Likewise.
61020         * lib/unictype/decdigit.h: Likewise.
61021         * lib/unictype/digit.h: Likewise.
61022         * lib/unictype/mirror.h: Likewise.
61023         * lib/unictype/numeric.h: Likewise.
61024         * lib/unictype/pr_alphabetic.h: Likewise.
61025         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61026         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61027         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61028         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61029         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61030         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61031         * lib/unictype/pr_bidi_control.h: Likewise.
61032         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61033         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61034         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61035         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61036         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61037         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61038         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61039         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61040         * lib/unictype/pr_bidi_pdf.h: Likewise.
61041         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61042         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61043         * lib/unictype/pr_combining.h: Likewise.
61044         * lib/unictype/pr_composite.h: Likewise.
61045         * lib/unictype/pr_currency_symbol.h: Likewise.
61046         * lib/unictype/pr_dash.h: Likewise.
61047         * lib/unictype/pr_decimal_digit.h: Likewise.
61048         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61049         * lib/unictype/pr_deprecated.h: Likewise.
61050         * lib/unictype/pr_diacritic.h: Likewise.
61051         * lib/unictype/pr_extender.h: Likewise.
61052         * lib/unictype/pr_format_control.h: Likewise.
61053         * lib/unictype/pr_grapheme_base.h: Likewise.
61054         * lib/unictype/pr_grapheme_extend.h: Likewise.
61055         * lib/unictype/pr_grapheme_link.h: Likewise.
61056         * lib/unictype/pr_hex_digit.h: Likewise.
61057         * lib/unictype/pr_hyphen.h: Likewise.
61058         * lib/unictype/pr_id_continue.h: Likewise.
61059         * lib/unictype/pr_id_start.h: Likewise.
61060         * lib/unictype/pr_ideographic.h: Likewise.
61061         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61062         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61063         * lib/unictype/pr_ignorable_control.h: Likewise.
61064         * lib/unictype/pr_iso_control.h: Likewise.
61065         * lib/unictype/pr_join_control.h: Likewise.
61066         * lib/unictype/pr_left_of_pair.h: Likewise.
61067         * lib/unictype/pr_line_separator.h: Likewise.
61068         * lib/unictype/pr_logical_order_exception.h: Likewise.
61069         * lib/unictype/pr_lowercase.h: Likewise.
61070         * lib/unictype/pr_math.h: Likewise.
61071         * lib/unictype/pr_non_break.h: Likewise.
61072         * lib/unictype/pr_not_a_character.h: Likewise.
61073         * lib/unictype/pr_numeric.h: Likewise.
61074         * lib/unictype/pr_other_alphabetic.h: Likewise.
61075         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61076         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61077         * lib/unictype/pr_other_id_continue.h: Likewise.
61078         * lib/unictype/pr_other_id_start.h: Likewise.
61079         * lib/unictype/pr_other_lowercase.h: Likewise.
61080         * lib/unictype/pr_other_math.h: Likewise.
61081         * lib/unictype/pr_other_uppercase.h: Likewise.
61082         * lib/unictype/pr_paired_punctuation.h: Likewise.
61083         * lib/unictype/pr_paragraph_separator.h: Likewise.
61084         * lib/unictype/pr_pattern_syntax.h: Likewise.
61085         * lib/unictype/pr_pattern_white_space.h: Likewise.
61086         * lib/unictype/pr_private_use.h: Likewise.
61087         * lib/unictype/pr_punctuation.h: Likewise.
61088         * lib/unictype/pr_quotation_mark.h: Likewise.
61089         * lib/unictype/pr_radical.h: Likewise.
61090         * lib/unictype/pr_sentence_terminal.h: Likewise.
61091         * lib/unictype/pr_soft_dotted.h: Likewise.
61092         * lib/unictype/pr_space.h: Likewise.
61093         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61094         * lib/unictype/pr_titlecase.h: Likewise.
61095         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61096         * lib/unictype/pr_unified_ideograph.h: Likewise.
61097         * lib/unictype/pr_uppercase.h: Likewise.
61098         * lib/unictype/pr_variation_selector.h: Likewise.
61099         * lib/unictype/pr_white_space.h: Likewise.
61100         * lib/unictype/pr_xid_continue.h: Likewise.
61101         * lib/unictype/pr_xid_start.h: Likewise.
61102         * lib/unictype/pr_zero_width.h: Likewise.
61103         * lib/unictype/scripts.h: Likewise.
61104         * lib/unictype/scripts_byname.gperf: Likewise.
61105         * lib/unictype/sy_c_ident.h: Likewise.
61106         * lib/unictype/sy_c_whitespace.h: Likewise.
61107         * lib/unictype/sy_java_ident.h: Likewise.
61108         * lib/unictype/sy_java_whitespace.h: Likewise.
61109
61110         * lib/unictype/Makefile: New file.
61111         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61112         glibc.
61113         * lib/unictype/3level.h: New file, copied from glibc.
61114         * lib/unictype/3levelbit.h: New file.
61115
61116 2007-11-11  Bruno Haible  <bruno@clisp.org>
61117
61118         * modules/gperf: New file.
61119         * modules/iconv_open (Depends-on): Add it.
61120         (Makefile.am): Remove the GPERF definition.
61121
61122 2007-11-11  Bruno Haible  <bruno@clisp.org>
61123
61124         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61125         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61126
61127 2007-11-11  Bruno Haible  <bruno@clisp.org>
61128
61129         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61130         (usage): Remove function.
61131
61132 2007-11-11  Bruno Haible  <bruno@clisp.org>
61133
61134         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61135         gl_FUNC_CEILF_LIBS.
61136         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61137         gl_FUNC_CEIL_LIBS.
61138         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61139         gl_FUNC_CEILL_LIBS.
61140         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61141         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61142         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61143
61144 2007-11-11  Bruno Haible  <bruno@clisp.org>
61145
61146         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61147         roundf were declared but do not exist on functions.
61148         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61149         roundl were declared but do not exist on functions.
61150         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61151         HAVE_FLOORL_AND_CEILL, respectively.
61152         Needed for Sun C on Solaris 10.
61153
61154 2007-11-11  Bruno Haible  <bruno@clisp.org>
61155
61156         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61157         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61158         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61159         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61160         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61161         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61162         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61163         HAVE_DECL_ROUNDF.
61164         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61165         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61166         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61167         of HAVE_DECL_ROUND*.
61168         * modules/math (Makefile.am): Update.
61169
61170 2007-11-10  Bruno Haible  <bruno@clisp.org>
61171
61172         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61173         ptrdiff_t as m4/intl.m4.
61174
61175 2007-11-10  Jim Meyering  <meyering@redhat.com>
61176
61177         Avoid link failure for the argmatch test.
61178         * tests/test-argmatch.c (usage): Define function to avoid a link
61179         failure: argmatch_die requires a usage function.
61180
61181 2007-11-09  Bruno Haible  <bruno@clisp.org>
61182
61183         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61184         * doc/functions/vsnprintf.texi: Likewise.
61185         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61186         with a size argument < 2.
61187
61188 2007-11-09  Bruno Haible  <bruno@clisp.org>
61189
61190         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61191         buffer. Fixes an inefficiency introduced on 2007-11-03.
61192
61193 2007-11-09  Bruno Haible  <bruno@clisp.org>
61194
61195         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61196         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61197
61198 2007-11-08  Jim Meyering  <meyering@redhat.com>
61199
61200         Change cache variable name prefix "jm_" to "gl_" everywhere.
61201         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61202         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61203         * m4/uptime.m4: s/gl_/jm_/
61204
61205 2007-11-07  Bruno Haible  <bruno@clisp.org>
61206
61207         Update to GNU gettext 0.17.
61208         * m4/intl.m4: Update to GNU gettext 0.17.
61209         * m4/po.m4: Likewise.
61210         * modules/gettext (Files): Remove m4/ulonglong.m4.
61211         (configure.ac): Require gettext infrastructure from version 0.17.
61212
61213 2007-11-06  Bruno Haible  <bruno@clisp.org>
61214
61215         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61216         symbolic values are not defined in a public header.
61217         * lib/freadable.c (freadable) [QNX]: Likewise.
61218         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61219         * lib/freading.c (freading) [QNX]: Likewise.
61220         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61221         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61222         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61223         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61224         Reported by Alain Magloire.
61225
61226         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61227
61228 2007-11-05  Bruno Haible  <bruno@clisp.org>
61229
61230         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61231         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61232         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61233         Reported by Eric Blake.
61234
61235 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61236             Bruno Haible  <bruno@clisp.org>
61237
61238         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61239         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61240         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61241         (malloc): Undefine also before including <stdlib.h>.
61242         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61243         Needed on OSF/1 4.0.
61244
61245 2007-11-05  Jim Meyering  <meyering@redhat.com>
61246
61247         git-version-gen: sync from coreutils.
61248         * build-aux/git-version-gen: Add comments.
61249         Change the first '-' to '.' in the snapshot version string,
61250         e.g., 6.9-377-08144 -> 6.9.377-08144
61251         Remove first parameter.
61252         Don't declare a version "-dirty" merely because a time
61253         stamp has changed.
61254
61255 2007-11-04  Bruno Haible  <bruno@clisp.org>
61256
61257         * lib/lock.h: Protect all macro definitions containing an 'if'
61258         statement through a "do { ... } while (0)".
61259         * lib/tls.h: Likewise.
61260
61261 2007-11-04  Bruno Haible  <bruno@clisp.org>
61262
61263         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61264
61265 2007-11-04  Bruno Haible  <bruno@clisp.org>
61266
61267         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61268         * modules/fprintf-posix (Depends-on): Add nocrash.
61269         * modules/snprintf-posix (Depends-on): Likewise.
61270         * modules/sprintf-posix (Depends-on): Likewise.
61271         * modules/vasnprintf-posix (Depends-on): Likewise.
61272         * modules/vasprintf-posix (Depends-on): Likewise.
61273         * modules/vfprintf-posix (Depends-on): Likewise.
61274         * modules/vsnprintf-posix (Depends-on): Likewise.
61275         * modules/vsprintf-posix (Depends-on): Likewise.
61276         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61277         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61278         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61279         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61280         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61281         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61282         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61283
61284 2007-11-04  Bruno Haible  <bruno@clisp.org>
61285
61286         * modules/nocrash: New file.
61287         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61288         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61289
61290 2007-11-04  Bruno Haible  <bruno@clisp.org>
61291
61292         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61293         precision handling.
61294         * tests/test-vasprintf-posix.c (test_function): Likewise.
61295         * tests/test-snprintf-posix.h (test_function): Likewise.
61296         * tests/test-sprintf-posix.h (test_function): Likewise.
61297
61298         Fix *printf behaviour for large precisions on mingw and BeOS.
61299         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61300         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61301         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61302         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61303         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61304         gl_PRINTF_PRECISION and test its result. Invoke
61305         gl_PREREQ_VASNPRINTF_PRECISION.
61306         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61308         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61309         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61310         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61311         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61312         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61313         * doc/functions/fprintf.texi: Update.
61314         * doc/functions/printf.texi: Update.
61315         * doc/functions/snprintf.texi: Update.
61316         * doc/functions/sprintf.texi: Update.
61317         * doc/functions/vfprintf.texi: Update.
61318         * doc/functions/vprintf.texi: Update.
61319         * doc/functions/vsnprintf.texi: Update.
61320         * doc/functions/vsprintf.texi: Update.
61321
61322 2007-11-04  Bruno Haible  <bruno@clisp.org>
61323
61324         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61325
61326 2007-11-04  Bruno Haible  <bruno@clisp.org>
61327
61328         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61329         Reported by Sylvain Beucler <beuc@gnu.org>.
61330
61331 2007-11-03  Bruno Haible  <bruno@clisp.org>
61332
61333         * tests/test-fprintf-posix2.sh: New file.
61334         * tests/test-fprintf-posix2.c: New file.
61335         * modules/fprintf-posix-tests (Files): Add them.
61336         (TESTS): Add test-fprintf-posix2.sh.
61337         (configure.ac): Check for getrlimit and setrlimit.
61338         (check_PROGRAMS): Add test-fprintf-posix2.
61339
61340         * tests/test-printf-posix2.sh: New file.
61341         * tests/test-printf-posix2.c: New file.
61342         * modules/printf-posix-tests (Files): Add them.
61343         (TESTS): Add test-printf-posix2.sh.
61344         (configure.ac): Check for getrlimit and setrlimit.
61345         (check_PROGRAMS): Add test-printf-posix2.
61346
61347         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61348         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61349         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61350         (decode_double): New function, copied from decode_long_double.
61351         (scale10_round_decimal_decoded): New function, extracted from
61352         scale10_round_decimal_long_double.
61353         (scale10_round_decimal_long_double): Use it.
61354         (scale10_round_decimal_double): New function.
61355         (floorlog10): New function.
61356         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61357         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61358         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61359         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61360         gl_PRINTF_ENOMEM and test its result. Invoke
61361         gl_PREREQ_VASNPRINTF_ENOMEM.
61362         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61363         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61364         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61365         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61366         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61367         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61368         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61369         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61370         * modules/snprintf-posix (Depends-on): Likewise.
61371         * modules/sprintf-posix (Depends-on): Likewise.
61372         * modules/vasnprintf-posix (Depends-on): Likewise.
61373         * modules/vasprintf-posix (Depends-on): Likewise.
61374         * modules/vfprintf-posix (Depends-on): Likewise.
61375         * modules/vsnprintf-posix (Depends-on): Likewise.
61376         * modules/vsprintf-posix (Depends-on): Likewise.
61377         * doc/functions/fprintf.texi: Update.
61378         * doc/functions/printf.texi: Update.
61379         * doc/functions/snprintf.texi: Update.
61380         * doc/functions/sprintf.texi: Update.
61381         * doc/functions/vfprintf.texi: Update.
61382         * doc/functions/vprintf.texi: Update.
61383         * doc/functions/vsnprintf.texi: Update.
61384         * doc/functions/vsprintf.texi: Update.
61385
61386 2007-11-03  Bruno Haible  <bruno@clisp.org>
61387
61388         * modules/frexp-nolibm-tests: New file.
61389
61390         * modules/frexp-nolibm: New file.
61391         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61392
61393 2007-11-03  Bruno Haible  <bruno@clisp.org>
61394
61395         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61396         value is C99 compliant.
61397         Needed for OSF/1 5.1.
61398
61399 2007-11-03  Bruno Haible  <bruno@clisp.org>
61400
61401         Fix out-of-memory handling of vasnprintf.
61402         * lib/printf-parse.c: Include <errno.h>.
61403         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61404         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61405         is already set.
61406
61407 2007-11-02  Eric Blake  <ebb9@byu.net>
61408
61409         Fix tests on cygwin.
61410         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61411
61412 2007-11-01  Bruno Haible  <bruno@clisp.org>
61413
61414         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61415         warning.
61416         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61417         needed for POSIX compatibility.
61418
61419 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61420
61421         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61422         for compatibility with GNU.
61423
61424 2007-11-01  Bruno Haible  <bruno@clisp.org>
61425
61426         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61427         (putenv): Renamed from rpl_putenv. Change argument type from
61428         'const char *' to 'char *'.
61429         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61430         of defining putenv in config.h, just set REPLACE_PUTENV.
61431         * modules/putenv (Depends-on): Add stdlib.
61432         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61433         (Include): Use <stdlib.h>.
61434         * lib/stdlib.in.h (putenv): New declaration.
61435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61436         REPLACE_PUTENV.
61437         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61438         REPLACE_PUTENV.
61439         Needed for MacOS X 10.5.0.
61440         Reported by Peter O'Gorman <peter@pogma.com>.
61441
61442 2007-11-01  Jim Meyering  <meyering@redhat.com>
61443
61444         Treat an empty date string exactly like "0".
61445         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61446         if the remaining date string (to be parsed) is empty, use "0".
61447         Reported by Mischa Molhoek and discussed in this thread:
61448         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61449
61450 2007-10-31  Bruno Haible  <bruno@clisp.org>
61451
61452         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61453         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61454         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61455         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61456         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61457         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61458
61459 2007-10-31  Bruno Haible  <bruno@clisp.org>
61460
61461         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61462         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61463         (AC_TYPE_LONG_LONG_INT): Use it.
61464         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61465         it as well.
61466         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61467         to m4/longlong.m4.
61468         * modules/stdint (Files): Remove m4/ulonglong.m4.
61469         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61470         m4/ulonglong.m4.
61471         * modules/strtoumax (Files): Likewise.
61472
61473 2007-10-30  Bruno Haible  <bruno@clisp.org>
61474
61475         * modules/xvasprintf-posix: New file.
61476         Suggested by Eric Blake.
61477
61478 2007-10-30  Bruno Haible  <bruno@clisp.org>
61479
61480         * modules/xprintf-posix-tests: New file.
61481         * tests/test-xprintf-posix.sh: New file.
61482         * tests/test-xprintf-posix.c: New file.
61483         * tests/test-xfprintf-posix.c: New file.
61484
61485         * modules/xprintf-posix: New file.
61486
61487 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61488
61489         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61490         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61491         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61492
61493 2007-10-29  Bruno Haible  <bruno@clisp.org>
61494
61495         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61496         contain the special marker '_cv_'.
61497         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61498         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61499         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61500         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61501         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61502         Reported by Ralf Wildenhues.
61503
61504 2007-10-29  Bruno Haible  <bruno@clisp.org>
61505
61506         * gnulib-tool (func_import): When --lgpl is not specified, set
61507         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61508         GPLv3.
61509         Reported by Simon Josefsson.
61510
61511 2007-10-28  Bruno Haible  <bruno@clisp.org>
61512
61513         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61514         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61515         HAVE_DECL_ISFINITE.
61516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61517         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61518         HAVE_DECL_ISFINITE.
61519
61520 2007-10-28  Bruno Haible  <bruno@clisp.org>
61521
61522         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61523         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61524
61525 2007-10-28  Bruno Haible  <bruno@clisp.org>
61526
61527         Fix link errors with Sun C 5.0 on Solaris 10.
61528         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61529         function is declared but not present in the compiler's libm.
61530         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61531         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61532         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61533         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61534         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61535         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61536         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61538         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61539         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61540         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61541         HAVE_DECL_FLOORL.
61542
61543 2007-10-28  Bruno Haible  <bruno@clisp.org>
61544
61545         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61546         gl_FUNC_FLOORL. Cache the result.
61547         (gl_FUNC_FLOORL): Use it.
61548         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61549         gl_FUNC_CEILL. Cache the result.
61550         (gl_FUNC_CEILL): Use it.
61551
61552         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61553         gl_FUNC_FLOOR. Cache the result.
61554         (gl_FUNC_FLOOR): Use it.
61555         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61556         gl_FUNC_CEIL. Cache the result.
61557         (gl_FUNC_CEIL): Use it.
61558
61559         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61560         gl_FUNC_FLOORF. Cache the result.
61561         (gl_FUNC_FLOORF): Use it.
61562         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61563         gl_FUNC_CEILF. Cache the result.
61564         (gl_FUNC_CEILF): Use it.
61565
61566 2007-10-28  Bruno Haible  <bruno@clisp.org>
61567
61568         * gnulib-tool: Allow specifying the LGPL version number through
61569         --lgpl=2 or --lgpl=3.
61570         (func_usage): Document --lgpl with argument.
61571         Handle --lgpl=... arguments.
61572         (func_import): Recognize also gl_LGPL calls with an argument. When
61573         --lgpl=2 is used and the module's license is just LGPL, report an
61574         error. Set sed_transform_lib_file according to the lgpl variable. In
61575         the generated files, use --lgpl or gl_LGPL invocations with argument,
61576         if necessary.
61577         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61578         an LGPv2+ license.
61579         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61580         gl_LGPL macro.
61581
61582 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61583             Bruno Haible  <bruno@clisp.org>
61584
61585         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61586         (u16_uctomb_aux): Likewise.
61587         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61588         !HAVE_INLINE.
61589         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61590
61591 2007-10-28  Bruno Haible  <bruno@clisp.org>
61592
61593         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61594         Invoke AM_GETTEXT_OPTION if it exists.
61595         * modules/vasprintf: Likewise.
61596         * modules/verror: Likewise.
61597         * modules/xprintf: Likewise.
61598         * modules/xvasprintf: Likewise.
61599
61600 2007-10-27  Ben Pfaff  <blp@gnu.org>
61601
61602         * lib/math.in.h: Define isfinite macro and prototypes for
61603         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61604         implementations.
61605         * m4/math_h.m4: New substitutions for isfinite module.
61606         * lib/isfinite.c: New file.
61607         * m4/isfinite.m4: New file.
61608         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61609         * modules/isfinite: New file.
61610         * modules/isfinite-tests: New file.
61611         * tests/tests-isfinite.c: New file.
61612         * doc/functions/isfinite.texi: Mention isfinite module.
61613         * MODULES.html.sh: Mention new module.
61614
61615 2007-10-27  Ben Pfaff  <blp@gnu.org>
61616
61617         Ralf Wildenhues reported that Tru64 4.0D declares the round
61618         functions but does not have definitions.
61619         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61620         cannot be found in any library, set the output variable to
61621         "missing" instead of "".
61622         * m4/round.m4: Also use our substitute if we cannot find round in
61623         any library, even if it is declared.
61624         * m4/roundf.m4: Likewise for roundf.
61625         * m4/roundl.m4: Likewise for roundl.
61626         * lib/math.in.h: Undefine roundf, round, roundl before defining
61627         their replacements, to allow for hypothetical systems where these
61628         may be defined as macros but not available in libraries.
61629
61630 2007-10-27  Bruno Haible  <bruno@clisp.org>
61631
61632         * doc/gnulib.texi: Invoke @firstparagraphindent.
61633         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61634         changes in gnulib.
61635         (Source changes): New section.
61636
61637 2007-10-26  Bruno Haible  <bruno@clisp.org>
61638
61639         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61640         borrowed from autoconf.
61641
61642 2007-10-26  Bruno Haible  <bruno@clisp.org>
61643
61644         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61645         strerror returned the empty string. Needed on HP-UX 11.00.
61646
61647 2007-10-24  Micah Cowan  <micah@cowan.name>
61648
61649         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61650         * build-aux/bootstrap: Remove support for now-unnecessary option,
61651         --cvs-user, and envvars CVS_USER, CVS_RSH.
61652
61653 2007-10-24  Jim Meyering  <meyering@redhat.com>
61654
61655         Avoid diagnostics from sha1sum when there is no cached checksum.
61656         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61657         if the po.s1 file hasn't been created yet.
61658
61659         * build-aux/bootstrap: Sync from coreutils:
61660         2007-10-24  Jim Meyering  <meyering@redhat.com>
61661         Get gnulib from the git repository, not from an obsolete cvs one.
61662         * build-aux/bootstrap: Suggestion from Micah Cowan.
61663         2007-10-04  Jim Meyering  <jim@meyering.net>
61664         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61665         (update_po_files): Work also when there are no .po files in po/.
61666
61667 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61668
61669         * README: Append ".git" to git and cg examples.
61670         Problem reported by Benoit Sigoure.
61671
61672 2007-10-23  Micah Cowan  <micah@cowan.name>
61673
61674         * users.txt: Add wget.
61675
61676 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61677
61678         Fix linking of some unistdio tests on FreeBSD.
61679         * modules/unistdio/u16-vsnprintf-tests
61680         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61681         * modules/unistdio/u16-vsprintf-tests
61682         (test_u16_vsnprintf1_LDADD): Likewise.
61683         * modules/unistdio/u32-vsnprintf-tests
61684         (test_u32_vsnprintf1_LDADD): Likewise.
61685         * modules/unistdio/u32-vsprintf-tests
61686         (test_u32_vsprintf1_LDADD): Likewise.
61687         * modules/unistdio/u8-vsnprintf-tests
61688         (test_u8_vsnprintf1_LDADD): Likewise.
61689         * modules/unistdio/u8-vsprintf-tests
61690         (test_u8_vsprintf1_LDADD): Likewise.
61691         * modules/unistdio/ulc-vsnprintf-tests
61692         (test_ulc_vsnprintf1_LDADD): Likewise.
61693         * modules/unistdio/ulc-vsprintf-tests
61694         (test_ulc_vsprintf1_LDADD): Likewise.
61695
61696         Fix linking of some uniconv tests on FreeBSD.
61697         * modules/uniconv/u16-conv-from-enc-tests
61698         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61699         * modules/uniconv/u16-conv-to-enc-tests
61700         (test_u16_conv_to_enc_LDADD): Likewise.
61701         * modules/uniconv/u16-strconv-from-enc-tests
61702         (test_u16_strconv_from_enc_LDADD): Likewise.
61703         * modules/uniconv/u16-strconv-to-enc-tests
61704         (test_u16_strconv_to_enc_LDADD): Likewise.
61705         * modules/uniconv/u32-conv-from-enc-tests
61706         (test_u32_conv_from_enc_LDADD): Likewise.
61707         * modules/uniconv/u32-conv-to-enc-tests
61708         (test_u32_conv_to_enc_LDADD): Likewise.
61709         * modules/uniconv/u32-strconv-from-enc-tests
61710         (test_u32_strconv_from_enc_LDADD): Likewise.
61711         * modules/uniconv/u32-strconv-to-enc-tests
61712         (test_u32_strconv_to_enc_LDADD): Likewise.
61713         * modules/uniconv/u8-conv-from-enc-tests
61714         (test_u8_conv_from_enc_LDADD): Likewise.
61715         * modules/uniconv/u8-conv-to-enc-tests
61716         (test_u8_conv_to_enc_LDADD): Likewise.
61717         * modules/uniconv/u8-strconv-from-enc-tests
61718         (test_u8_strconv_from_enc_LDADD): Likewise.
61719         * modules/uniconv/u8-strconv-to-enc-tests
61720         (test_u8_strconv_to_enc_LDADD): Likewise.
61721
61722 2007-10-22  Bruno Haible  <bruno@clisp.org>
61723
61724         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61725         size.
61726
61727 2007-10-22  Eric Blake  <ebb9@byu.net>
61728
61729         Tweak x*printf documentation.
61730         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61731         variable name and comments.
61732         Suggested by Bruno Haible.
61733
61734 2007-10-22  Bruno Haible  <bruno@clisp.org>
61735
61736         * lib/acl.c (copy_acl): Fix file name in comment.
61737
61738 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61739
61740         Fix Tru64 problem with stdbool.h.
61741         * lib/stdbool.in.h (false, true):
61742         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61743         Don't declare as an enum in this situation; it runs afoul of Tru64.
61744         Problem reported by Steven M. Schweda in
61745         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61746
61747 2007-10-22  Eric Blake  <ebb9@byu.net>
61748
61749         Also wrap vf?printf.
61750         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61751         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61752         (xvprintf, xvfprintf): New functions.
61753
61754 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61755
61756         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61757         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61758
61759         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61760         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61761
61762 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61763
61764         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61765         by Bruno Haible.
61766
61767 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61768
61769         * lib/getloadavg.c
61770         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61771         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61772
61773         * tests/test-i-ring.c: Work for C89.
61774
61775 2007-10-22  Bruno Haible  <bruno@clisp.org>
61776
61777         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61778         -1u, in preprocessor expression, so that we don't test for the bug
61779         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61780         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61781
61782 2007-10-22  Eric Blake  <ebb9@byu.net>
61783
61784         * tests/test-yesno.sh: Silence stderr during test.
61785
61786 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61787
61788         * modules/crypto/gc-camellia: New file.
61789
61790         * m4/gc-camellia.m4: New file.
61791
61792         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61793
61794         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61795
61796 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61797
61798         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61799         --help to stdout.  Reported by sms@antinode.org (Steven
61800         M. Schweda).
61801
61802 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61803
61804         * users.txt: Fix link to libksba.
61805
61806 2007-10-21  Ben Pfaff  <blp@gnu.org>
61807
61808         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61809         round.c roundf implementation that depends on floorf and ceilf to
61810         be tested unconditionally.
61811
61812 2007-10-21  Ben Pfaff  <blp@gnu.org>
61813
61814         * m4/check-libm-func.m4: Removed.
61815         * m4/check-math-lib.m4: New file.
61816         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61817         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61818         definition and lack of AC_LIBOBJ([roundf]).
61819         * m4/roundl.m4: Ditto, and similarly for roundl.
61820         * modules/round: Reference new m4 file.
61821         * modules/roundf: Ditto.
61822         * modules/roundl: Ditto.
61823         * tests/test-round2.c (main): Use ROUND instead of round.
61824         Bug report from Bruno Haible.
61825
61826 2007-10-21  Bruno Haible  <bruno@clisp.org>
61827
61828         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61829         context.
61830
61831 2007-10-21  Bruno Haible  <bruno@clisp.org>
61832
61833         * tests/test-wcwidth.c (main): Allow negative result for some control
61834         characters.
61835
61836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61837         Needed on OSF/1 5.1.
61838
61839 2007-10-21  Bruno Haible  <bruno@clisp.org>
61840
61841         * tests/test-floorf1.c: Include isnanf.h.
61842         (main): Use isnanf() instead of isnan().
61843         * tests/test-ceilf1.c: Include isnanf.h.
61844         (main): Use isnanf() instead of isnan().
61845         * tests/test-truncf1.c: Include isnanf.h.
61846         (main): Use isnanf() instead of isnan().
61847         * tests/test-roundf1.c: Include isnanf.h.
61848         (main): Use isnanf() instead of isnan().
61849
61850 2007-10-21  Eric Blake  <ebb9@byu.net>
61851
61852         * users.txt: Update URL for m4.
61853
61854 2007-10-21  Bruno Haible  <bruno@clisp.org>
61855
61856         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61857
61858 2007-10-21  Bruno Haible  <bruno@clisp.org>
61859
61860         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61861         Git's management files if the CVS files are not present.
61862
61863 2007-10-20  Bruno Haible  <bruno@clisp.org>
61864
61865         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61866         gcc-3.4.x.
61867
61868 2007-10-20  Ben Pfaff  <blp@gnu.org>
61869
61870         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61871         implementations.
61872         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61873         * lib/round.c: New file.
61874         * lib/roundf.c: New file.
61875         * lib/roundl.c: New file.
61876         * m4/round.m4: New file.
61877         * m4/roundf.m4: New file.
61878         * m4/roundl.m4: New file.
61879         * m4/check-libm-func-m4: New file.
61880         * modules/math: Replace round, roundf, roundl related @VARS@ in
61881         math.in.h.
61882         * modules/round: New file.
61883         * modules/round-tests: New file.
61884         * modules/roundf: New file.
61885         * modules/roundf-tests: New file.
61886         * modules/roundl: New file.
61887         * modules/roundl-tests: New file.
61888         * tests/test-round1.c: New file.
61889         * tests/test-round2.c: New file.
61890         * tests/test-roundf1.c: New file.
61891         * tests/test-roundf2.c: New file.
61892         * tests/test-roundl.c: New file.
61893         * doc/functions/round.texi: Mention round module.
61894         * doc/functions/roundf.texi: Mention roundf module.
61895         * doc/functions/roundl.texi: Mention roundl module.
61896         * MODULES.html.sh: Mention new modules.
61897         Thanks to Bruno Haible for suggestions.
61898
61899 2007-10-20  Jim Meyering  <meyering@redhat.com>
61900
61901         * lib/xprintf.c: Include <config.h> unconditionally.
61902
61903         Change xprintf's license to GPL.
61904         * modules/xprintf (License): s/LGPL/GPL/, since this module
61905         depends on modules (exit and exitfail) which are GPL.
61906         Suggestion from Bruno Haible.
61907
61908         xprintf fixes.
61909         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61910         Use a clearer diagnostic.
61911         Patch from Bruno Haible.
61912
61913 2007-10-20  Bruno Haible  <bruno@clisp.org>
61914
61915         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61916         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61917         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61918
61919 2007-10-20  Bruno Haible  <bruno@clisp.org>
61920
61921         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61922         precision in the comparison result > x - 1 or similar.
61923         * tests/test-ceilf2.c (correct_result_p): Likewise.
61924         * tests/test-truncf2.c (correct_result_p): Likewise.
61925         * tests/test-trunc2.c (correct_result_p): Likewise.
61926         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61927
61928 2007-10-20  Bruno Haible  <bruno@clisp.org>
61929
61930         * modules/ceil: New file.
61931         * m4/ceil.m4: New file.
61932         * doc/functions/ceil.texi: Mention the 'ceil' module.
61933
61934 2007-10-20  Bruno Haible  <bruno@clisp.org>
61935
61936         * modules/floor: New file.
61937         * m4/floor.m4: New file.
61938         * doc/functions/floor.texi: Mention the 'floor' module.
61939
61940 2007-10-20  Bruno Haible  <bruno@clisp.org>
61941
61942         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61943         of %a.
61944         * modules/floorf-tests (Depends-on): Likewise.
61945         * modules/truncf-tests (Depends-on): Likewise.
61946         * modules/trunc-tests (Depends-on): Likewise.
61947         Reported by Ben Pfaff.
61948
61949 2007-10-19  Jim Meyering  <meyering@redhat.com>
61950
61951         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61952         Don't bother testing specific errno values.  Just test ferror.
61953
61954         New module: xprintf
61955         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61956
61957 2007-10-19  Bruno Haible  <bruno@clisp.org>
61958
61959         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61960         syntax.
61961         * modules/javaexec (Makefile.am): Likewise.
61962         * modules/relocatable-prog (Makefile.am): Likewise.
61963         Suggested by Jim Meyering.
61964
61965 2007-10-18  Bruno Haible  <bruno@clisp.org>
61966
61967         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61968         Reported by Jim Meyering.
61969
61970 2007-10-18  Eric Blake  <ebb9@byu.net>
61971
61972         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61973
61974 2007-10-18  Bruno Haible  <bruno@clisp.org>
61975
61976         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61977         the format string into writable memory. Needed in Fortify conditions.
61978
61979 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61980             Bruno Haible  <bruno@clisp.org>
61981
61982         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61983         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61984         * modules/trim (Depends-on): Add mbchar.
61985         (configure.ac): Add gl_FUNC_MBRTOWC.
61986         (Makefile.am): Augment lib_SOURCES.
61987
61988 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61989
61990         Modify glob.c to use fstatat and dirfd, to simplify it.
61991         Suggested by Eric Blake.
61992         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61993         Don't include <stdbool.h>; not used.
61994         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61995         (link_exists_p): Simplify implementation, since we can now assume
61996         dirfd and fstatat.
61997         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61998
61999 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62000
62001         * gnulib-tool (func_get_dependencies): Fix sed script to
62002         match only tests.
62003
62004 2007-10-17  Bruno Haible  <bruno@clisp.org>
62005
62006         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
62007         allow locale names without encoding suffix.
62008         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62009         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62010
62011 2007-10-16  Bruno Haible  <bruno@clisp.org>
62012
62013         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62014         * lib/getgroups.c (getgroups): Likewise.
62015         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62016
62017 2007-10-16  Bruno Haible  <bruno@clisp.org>
62018
62019         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62020         * modules/malloc-posix (License): Likewise.
62021         * modules/realloc-posix (License): Likewise.
62022         * modules/calloc-posix (License): Likewise.
62023         * modules/intprops (License): Change from GPL to LGPL, with
62024         Paul Eggert's approval.
62025
62026 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62027
62028         Merge glibc changes into lib/glob.c.
62029
62030         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62031         2007-10-15 04:59:03 UTC.  Here are the changes:
62032
62033         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62034
62035         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62036
62037         * lib/glob.c: Add some branch prediction throughout.
62038
62039         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62040
62041         [BZ #5103]
62042         * lib/glob.c (glob): Recognize patterns starting \/.
62043
62044         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62045
62046         [BZ #3996]
62047         * lib/glob.c (attribute_hidden): Define if not defined.
62048         (glob): Unescape dirname, filename or username when needed and not
62049         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62050         is NULL.  Handle unescaped [ in pattern without closing ].
62051         Don't pass GLOB_CHECK down to recursive glob for directories.
62052         (__glob_pattern_type): New function.
62053         (__glob_pattern_p): Implement using __glob_pattern_type.
62054         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62055         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62056         Remove unreachable code.
62057
62058         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62059
62060         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62061         explain why there are no leaks.
62062
62063         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62064
62065         [BZ #3253]
62066         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62067         time, rather allocate increasingly bigger arrays of pointers, if
62068         possible with alloca, if too large with malloc.
62069
62070 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62073         Problem reported by H.Merijn Brand in
62074         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62075         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62076         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62077
62078 2007-10-15  Bruno Haible  <bruno@clisp.org>
62079
62080         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62081         with explicit rpl_ prefix.
62082         * lib/fopen.c (fopen): Likewise.
62083         * lib/freopen.c (freopen): Likewise.
62084         * lib/iconv.c (iconv): Likewise.
62085         * lib/iconv_close.c (iconv_close): Likewise.
62086
62087 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62088
62089         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62090
62091 2007-10-15  Bruno Haible  <bruno@clisp.org>
62092
62093         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62094         <stddef.h> instead of <stdlib.h> since we only need NULL.
62095         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62096
62097 2007-10-15  Bruno Haible  <bruno@clisp.org>
62098
62099         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62100         Replace paragraph talking about LIBOBJS.
62101         Reported by Colin Watson <cjwatson@debian.org>.
62102
62103 2007-10-15  Bruno Haible  <bruno@clisp.org>
62104
62105         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62106         <stdlib.h> before using NULL.
62107
62108 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62109
62110         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62111         Reported by Albert Chin <china@thewrittenword.com>.
62112
62113 2007-10-14  Bruno Haible  <bruno@clisp.org>
62114
62115         * modules/iconv_open-utf-tests: New file.
62116         * tests/test-iconv-utf.c: New file.
62117
62118         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62119         * modules/iconv_open-utf: New file.
62120         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62121         (iconv, iconv_close): New declarations.
62122         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62123         be defined.
62124         (iconv_open): Add special handling of conversion between UTF-8 and
62125         UTF-{16,32}{BE,LE}.
62126         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62127         * lib/iconv_close.c: New file.
62128         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62129         gl_FUNC_ICONV_OPEN.
62130         (gl_FUNC_ICONV_OPEN): Use it.
62131         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62132         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62133         and REPLACE_ICONV_UTF.
62134         * modules/iconv_open (Depends-on): Add c-strcase.
62135         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62136         ICONV_CONST.
62137         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62138
62139 2007-10-13  Albert Chin  <china@thewrittenword.com>
62140             Bruno Haible  <bruno@clisp.org>
62141
62142         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62143         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62144
62145 2007-10-13  Bruno Haible  <bruno@clisp.org>
62146
62147         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62148         defined, use the ISO C99 inline semantics.
62149         * lib/argp.h (ARGP_EI): Likewise.
62150
62151 2007-10-13  Bruno Haible  <bruno@clisp.org>
62152
62153         Handle 'inline' change in gcc 4.3.0.
62154         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62155         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62156         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62157         argp_fmtstream_point): Disable 'extern' declaration if the function
62158         definition is going to be provided inline.
62159         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62160         semantics, not the ISO C99 inline semantics.
62161         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62162         'extern' declaration if the function definition is going to be provided
62163         inline.
62164         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62165         the GNU C inline semantics, not the ISO C99 inline semantics. With
62166         GCC 4.2, avoid a warning.
62167
62168 2007-10-13  Bruno Haible  <bruno@clisp.org>
62169
62170         * lib/freading.h (freading): Enable the use of __freading for
62171         glibc >= 2.7.
62172         * lib/freading.c (freading): Likewise.
62173
62174 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62175
62176         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62177         "warning: C99 inline functions are not supported; using GNU89".
62178
62179 2007-10-12  Bruno Haible  <bruno@clisp.org>
62180
62181         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62182         of 2.
62183         * tests/test-ceilf2.c: New file.
62184         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62185
62186         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62187         * modules/ceilf-tests: Update.
62188
62189 2007-10-12  Bruno Haible  <bruno@clisp.org>
62190
62191         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62192         of 2.
62193         * tests/test-floorf2.c: New file.
62194         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62195
62196         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62197         * modules/floorf-tests: Update.
62198
62199 2007-10-12  Bruno Haible  <bruno@clisp.org>
62200
62201         * tests/test-trunc2.c: New file.
62202         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62203
62204         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62205         * modules/trunc-tests: Update.
62206
62207 2007-10-12  Bruno Haible  <bruno@clisp.org>
62208
62209         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62210         of 2.
62211         * tests/test-truncf2.c: New file.
62212         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62213
62214         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62215         * modules/truncf-tests: Update.
62216
62217 2007-10-11  Eric Blake  <ebb9@byu.net>
62218
62219         Don't claim strerror is broken on Interix.
62220         * doc/functions/strerror.texi (strerror): Known broken systems are
62221         now Solaris 8, and not Interix.
62222         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62223         Interix on cross-compile.
62224         Reported by Martin Koeppe in
62225         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62226
62227 2007-10-11  Bruno Haible  <bruno@clisp.org>
62228
62229         * modules/i-ring-tests: New file.
62230         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62231         instead of assert.
62232
62233 2007-10-11  Bruno Haible  <bruno@clisp.org>
62234
62235         * modules/filenamecat-tests: New file.
62236         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62237         * lib/filenamecat.c: Remove test code.
62238
62239 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62240
62241         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62242
62243         * lib/strerror.c: Include <string.h> always, to test interface,
62244         and to remove the need for the dummy.
62245         Include intprops.h to compute width instead of doing it ourselves
62246         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62247         (strerror): Define it to return NULL if there's no system strerror.
62248         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62249         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62250         ancient pre-strerror Unix systems well any more.  Saying "unknown
62251         system error" is enough.
62252         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62253         simpler strerror.c implementation.
62254         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62255         Simplify the tests to reflect the simpler strerror implementation.
62256         * modules/strerror (Depends-on): Add intprops.
62257
62258 2007-10-09  Eric Blake  <ebb9@byu.net>
62259
62260         Silence test-fpending.
62261         * modules/fpending-tests (Files): Add wrapper script.
62262         * tests/test-fpending.sh: New file.
62263
62264 2007-10-09  Bruno Haible  <bruno@clisp.org>
62265
62266         * MODULES.html.sh (func_module): Don't create a hyperlink for
62267         function names like 'printf_frexp'.
62268         (Misc): Add crc, memxor.
62269         (Characteristics of floating types): New section.
62270         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62271         isnanf-nolibm, signbit, trunc, truncf, truncl.
62272         (Enhancements for ISO C 99 functions): New subsection Input/output.
62273         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62274         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62275         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62276         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62277         (Enhancements for POSIX:2001 functions): Add chdir-long.
62278         (File system functions): Add areadlink, chdir-safer, read-file.
62279         Remove cycle-check.
62280         (File system as inode set): New section.
62281         (Date and time): Add gethrxtime.
62282         (Multithreading): Add openmp.
62283         (Internationalization functions): Add localename.
62284         (Unicode string functions): Add unistr/u*-mbsnlen.
62285         (Support for maintaining and releasing projects): Add git-version-gen.
62286         (Lone files): Remove directories.
62287
62288 2007-10-08  Ben Pfaff  <blp@gnu.org>
62289
62290         * lib/xmalloca.h: Fix typo in comment.
62291
62292 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62293
62294         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62295         when avoiding problems with integer overflow.  Use a portable test
62296         instead.
62297
62298 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62299
62300         * modules/dummy (License): Change to LGPLv2+.
62301         * modules/float (License): Likewise
62302         * modules/realloc (License): Likewise
62303         * modules/stdlib (License): Likewise
62304
62305 2007-10-07  Bruno Haible  <bruno@clisp.org>
62306
62307         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62308         * floor.c (TWO_MANT_DIG): Likewise.
62309         * ceil.c (TWO_MANT_DIG): Likewise.
62310         Reported by Ben Pfaff.
62311
62312 2007-10-07  Bruno Haible  <bruno@clisp.org>
62313
62314         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62315         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62316         * lib/frexp.c (FUNC): Likewise.
62317         * lib/printf-frexp.h (printf_frexp): Likewise.
62318         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62319         * lib/printf-frexp.c (FUNC): Likewise.
62320         Suggested by Jim Meyering.
62321
62322 2007-10-07  Jim Meyering  <meyering@redhat.com>
62323
62324         Make xnanosleep's integer overflow test more robust.
62325         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62326         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62327
62328 2007-10-07  Bruno Haible  <bruno@clisp.org>
62329
62330         * NEWS: Mention the license change.
62331
62332         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62333         abbreviations in the modules files.
62334
62335         Change copyright notice from GPLv2+ to GPLv3+.
62336         * README: Change copyright notice.
62337         * MODULES.html.sh: Likewise.
62338         * build-aux/bootstrap.conf: Likewise.
62339         * build-aux/config.libpath: Likewise.
62340         * build-aux/csharpcomp.sh.in: Likewise.
62341         * build-aux/csharpexec.sh.in: Likewise.
62342         * build-aux/install-reloc: Likewise.
62343         * build-aux/javacomp.sh.in: Likewise.
62344         * build-aux/javaexec.sh.in: Likewise.
62345         * build-aux/ldd.sh.in: Likewise.
62346         * build-aux/reloc-ldflags: Likewise.
62347         * build-aux/relocatable.sh.in: Likewise.
62348         * build-aux/x-to-1.in: Likewise.
62349         * check-module: Likewise.
62350         * config/srclistvars.sh: Likewise.
62351         * gnulib-tool: Likewise.
62352         * lib/acl-internal.h: Likewise.
62353         * lib/acl.c: Likewise.
62354         * lib/acl.h: Likewise.
62355         * lib/acl_entries.c: Likewise.
62356         * lib/areadlink-with-size.c: Likewise.
62357         * lib/areadlink.c: Likewise.
62358         * lib/areadlink.h: Likewise.
62359         * lib/argmatch.c: Likewise.
62360         * lib/argmatch.h: Likewise.
62361         * lib/argp-ba.c: Likewise.
62362         * lib/argp-eexst.c: Likewise.
62363         * lib/argp-fmtstream.c: Likewise.
62364         * lib/argp-fmtstream.h: Likewise.
62365         * lib/argp-fs-xinl.c: Likewise.
62366         * lib/argp-help.c: Likewise.
62367         * lib/argp-namefrob.h: Likewise.
62368         * lib/argp-parse.c: Likewise.
62369         * lib/argp-pin.c: Likewise.
62370         * lib/argp-pv.c: Likewise.
62371         * lib/argp-pvh.c: Likewise.
62372         * lib/argp-xinl.c: Likewise.
62373         * lib/argp.h: Likewise.
62374         * lib/at-func.c: Likewise.
62375         * lib/atanl.c: Likewise.
62376         * lib/backupfile.c: Likewise.
62377         * lib/backupfile.h: Likewise.
62378         * lib/basename.c: Likewise.
62379         * lib/binary-io.h: Likewise.
62380         * lib/byteswap.in.h: Likewise.
62381         * lib/c-stack.c: Likewise.
62382         * lib/c-stack.h: Likewise.
62383         * lib/c-strcasestr.c: Likewise.
62384         * lib/c-strcasestr.h: Likewise.
62385         * lib/c-strstr.c: Likewise.
62386         * lib/c-strstr.h: Likewise.
62387         * lib/c-strtod.c: Likewise.
62388         * lib/calloc.c: Likewise.
62389         * lib/canon-host.c: Likewise.
62390         * lib/canon-host.h: Likewise.
62391         * lib/canonicalize-lgpl.c: Likewise.
62392         * lib/canonicalize.c: Likewise.
62393         * lib/canonicalize.h: Likewise.
62394         * lib/ceil.c: Likewise.
62395         * lib/ceilf.c: Likewise.
62396         * lib/ceill.c: Likewise.
62397         * lib/chdir-long.c: Likewise.
62398         * lib/chdir-long.h: Likewise.
62399         * lib/chdir-safer.c: Likewise.
62400         * lib/chdir-safer.h: Likewise.
62401         * lib/chown.c: Likewise.
62402         * lib/classpath.c: Likewise.
62403         * lib/classpath.h: Likewise.
62404         * lib/clean-temp.c: Likewise.
62405         * lib/clean-temp.h: Likewise.
62406         * lib/cloexec.c: Likewise.
62407         * lib/close-stream.c: Likewise.
62408         * lib/closein.c: Likewise.
62409         * lib/closein.h: Likewise.
62410         * lib/closeout.c: Likewise.
62411         * lib/closeout.h: Likewise.
62412         * lib/concat-filename.c: Likewise.
62413         * lib/copy-file.c: Likewise.
62414         * lib/copy-file.h: Likewise.
62415         * lib/count-one-bits.h: Likewise.
62416         * lib/crc.c: Likewise.
62417         * lib/crc.h: Likewise.
62418         * lib/creat-safer.c: Likewise.
62419         * lib/csharpcomp.c: Likewise.
62420         * lib/csharpcomp.h: Likewise.
62421         * lib/csharpexec.c: Likewise.
62422         * lib/csharpexec.h: Likewise.
62423         * lib/cycle-check.c: Likewise.
62424         * lib/cycle-check.h: Likewise.
62425         * lib/diacrit.c: Likewise.
62426         * lib/diacrit.h: Likewise.
62427         * lib/diffseq.h: Likewise.
62428         * lib/dirchownmod.c: Likewise.
62429         * lib/dirent.in.h: Likewise.
62430         * lib/dirfd.c: Likewise.
62431         * lib/dirfd.h: Likewise.
62432         * lib/dirname.c: Likewise.
62433         * lib/dirname.h: Likewise.
62434         * lib/dummy.c: Likewise.
62435         * lib/dup-safer.c: Likewise.
62436         * lib/dup2.c: Likewise.
62437         * lib/eealloc.h: Likewise.
62438         * lib/error.c: Likewise.
62439         * lib/error.h: Likewise.
62440         * lib/euidaccess.c: Likewise.
62441         * lib/exclude.c: Likewise.
62442         * lib/exclude.h: Likewise.
62443         * lib/execute.c: Likewise.
62444         * lib/execute.h: Likewise.
62445         * lib/exitfail.c: Likewise.
62446         * lib/exitfail.h: Likewise.
62447         * lib/expl.c: Likewise.
62448         * lib/fatal-signal.c: Likewise.
62449         * lib/fatal-signal.h: Likewise.
62450         * lib/fbufmode.c: Likewise.
62451         * lib/fbufmode.h: Likewise.
62452         * lib/fchdir.c: Likewise.
62453         * lib/fchmodat.c: Likewise.
62454         * lib/fchownat.c: Likewise.
62455         * lib/fcntl--.h: Likewise.
62456         * lib/fcntl-safer.h: Likewise.
62457         * lib/fcntl.in.h: Likewise.
62458         * lib/fd-safer.c: Likewise.
62459         * lib/fflush.c: Likewise.
62460         * lib/file-has-acl.c: Likewise.
62461         * lib/file-set.c: Likewise.
62462         * lib/file-type.c: Likewise.
62463         * lib/file-type.h: Likewise.
62464         * lib/fileblocks.c: Likewise.
62465         * lib/filemode.c: Likewise.
62466         * lib/filemode.h: Likewise.
62467         * lib/filename.h: Likewise.
62468         * lib/filenamecat.c: Likewise.
62469         * lib/filenamecat.h: Likewise.
62470         * lib/findprog.c: Likewise.
62471         * lib/findprog.h: Likewise.
62472         * lib/float.in.h: Likewise.
62473         * lib/floor.c: Likewise.
62474         * lib/floorf.c: Likewise.
62475         * lib/floorl.c: Likewise.
62476         * lib/fopen-safer.c: Likewise.
62477         * lib/fopen.c: Likewise.
62478         * lib/fpending.c: Likewise.
62479         * lib/fpending.h: Likewise.
62480         * lib/fprintf.c: Likewise.
62481         * lib/fprintftime.h: Likewise.
62482         * lib/fpucw.h: Likewise.
62483         * lib/fpurge.c: Likewise.
62484         * lib/fpurge.h: Likewise.
62485         * lib/freadable.c: Likewise.
62486         * lib/freadable.h: Likewise.
62487         * lib/freadahead.c: Likewise.
62488         * lib/freadahead.h: Likewise.
62489         * lib/freading.c: Likewise.
62490         * lib/freading.h: Likewise.
62491         * lib/free.c: Likewise.
62492         * lib/freopen.c: Likewise.
62493         * lib/frexp.c: Likewise.
62494         * lib/frexpl.c: Likewise.
62495         * lib/fseek.c: Likewise.
62496         * lib/fseterr.c: Likewise.
62497         * lib/fseterr.h: Likewise.
62498         * lib/fstatat.c: Likewise.
62499         * lib/fstrcmp.c: Likewise.
62500         * lib/fstrcmp.h: Likewise.
62501         * lib/fsusage.c: Likewise.
62502         * lib/fsusage.h: Likewise.
62503         * lib/ftell.c: Likewise.
62504         * lib/ftello.c: Likewise.
62505         * lib/fts-cycle.c: Likewise.
62506         * lib/fts.c: Likewise.
62507         * lib/fts_.h: Likewise.
62508         * lib/full-read.c: Likewise.
62509         * lib/full-read.h: Likewise.
62510         * lib/full-write.c: Likewise.
62511         * lib/full-write.h: Likewise.
62512         * lib/fwritable.c: Likewise.
62513         * lib/fwritable.h: Likewise.
62514         * lib/fwriteerror.c: Likewise.
62515         * lib/fwriteerror.h: Likewise.
62516         * lib/fwriting.c: Likewise.
62517         * lib/fwriting.h: Likewise.
62518         * lib/gcd.c: Likewise.
62519         * lib/gcd.h: Likewise.
62520         * lib/getcwd.c: Likewise.
62521         * lib/getdate.h: Likewise.
62522         * lib/getdate.y: Likewise.
62523         * lib/getdomainname.c: Likewise.
62524         * lib/getdomainname.h: Likewise.
62525         * lib/getgroups.c: Likewise.
62526         * lib/gethostname.c: Likewise.
62527         * lib/gethrxtime.c: Likewise.
62528         * lib/gethrxtime.h: Likewise.
62529         * lib/getloadavg.c: Likewise.
62530         * lib/getndelim2.c: Likewise.
62531         * lib/getndelim2.h: Likewise.
62532         * lib/getnline.c: Likewise.
62533         * lib/getnline.h: Likewise.
62534         * lib/getopt.c: Likewise.
62535         * lib/getopt.in.h: Likewise.
62536         * lib/getopt1.c: Likewise.
62537         * lib/getopt_int.h: Likewise.
62538         * lib/getpagesize.h: Likewise.
62539         * lib/getsubopt.c: Likewise.
62540         * lib/gettime.c: Likewise.
62541         * lib/getugroups.c: Likewise.
62542         * lib/getugroups.h: Likewise.
62543         * lib/getusershell.c: Likewise.
62544         * lib/gl_anyavltree_list1.h: Likewise.
62545         * lib/gl_anyavltree_list2.h: Likewise.
62546         * lib/gl_anyhash_list1.h: Likewise.
62547         * lib/gl_anyhash_list2.h: Likewise.
62548         * lib/gl_anylinked_list1.h: Likewise.
62549         * lib/gl_anylinked_list2.h: Likewise.
62550         * lib/gl_anyrbtree_list1.h: Likewise.
62551         * lib/gl_anyrbtree_list2.h: Likewise.
62552         * lib/gl_anytree_list1.h: Likewise.
62553         * lib/gl_anytree_list2.h: Likewise.
62554         * lib/gl_anytree_oset.h: Likewise.
62555         * lib/gl_anytreehash_list1.h: Likewise.
62556         * lib/gl_anytreehash_list2.h: Likewise.
62557         * lib/gl_array_list.c: Likewise.
62558         * lib/gl_array_list.h: Likewise.
62559         * lib/gl_array_oset.c: Likewise.
62560         * lib/gl_array_oset.h: Likewise.
62561         * lib/gl_avltree_list.c: Likewise.
62562         * lib/gl_avltree_list.h: Likewise.
62563         * lib/gl_avltree_oset.c: Likewise.
62564         * lib/gl_avltree_oset.h: Likewise.
62565         * lib/gl_avltreehash_list.c: Likewise.
62566         * lib/gl_avltreehash_list.h: Likewise.
62567         * lib/gl_carray_list.c: Likewise.
62568         * lib/gl_carray_list.h: Likewise.
62569         * lib/gl_linked_list.c: Likewise.
62570         * lib/gl_linked_list.h: Likewise.
62571         * lib/gl_linkedhash_list.c: Likewise.
62572         * lib/gl_linkedhash_list.h: Likewise.
62573         * lib/gl_list.c: Likewise.
62574         * lib/gl_list.h: Likewise.
62575         * lib/gl_oset.c: Likewise.
62576         * lib/gl_oset.h: Likewise.
62577         * lib/gl_rbtree_list.c: Likewise.
62578         * lib/gl_rbtree_list.h: Likewise.
62579         * lib/gl_rbtree_oset.c: Likewise.
62580         * lib/gl_rbtree_oset.h: Likewise.
62581         * lib/gl_rbtreehash_list.c: Likewise.
62582         * lib/gl_rbtreehash_list.h: Likewise.
62583         * lib/gl_sublist.c: Likewise.
62584         * lib/gl_sublist.h: Likewise.
62585         * lib/group-member.c: Likewise.
62586         * lib/group-member.h: Likewise.
62587         * lib/hard-locale.c: Likewise.
62588         * lib/hard-locale.h: Likewise.
62589         * lib/hash-pjw.c: Likewise.
62590         * lib/hash-pjw.h: Likewise.
62591         * lib/hash-triple.c: Likewise.
62592         * lib/hash.c: Likewise.
62593         * lib/hash.h: Likewise.
62594         * lib/human.c: Likewise.
62595         * lib/human.h: Likewise.
62596         * lib/i-ring.c: Likewise.
62597         * lib/i-ring.h: Likewise.
62598         * lib/idcache.c: Likewise.
62599         * lib/imaxabs.c: Likewise.
62600         * lib/imaxdiv.c: Likewise.
62601         * lib/inet_pton.c: Likewise.
62602         * lib/inet_pton.h: Likewise.
62603         * lib/intprops.h: Likewise.
62604         * lib/inttostr.c: Likewise.
62605         * lib/inttostr.h: Likewise.
62606         * lib/inttypes.in.h: Likewise.
62607         * lib/isapipe.c: Likewise.
62608         * lib/isdir.c: Likewise.
62609         * lib/isnan.c: Likewise.
62610         * lib/isnan.h: Likewise.
62611         * lib/isnanf.c: Likewise.
62612         * lib/isnanf.h: Likewise.
62613         * lib/isnanl-nolibm.h: Likewise.
62614         * lib/isnanl.c: Likewise.
62615         * lib/isnanl.h: Likewise.
62616         * lib/javacomp.c: Likewise.
62617         * lib/javacomp.h: Likewise.
62618         * lib/javaexec.c: Likewise.
62619         * lib/javaexec.h: Likewise.
62620         * lib/javaversion.c: Likewise.
62621         * lib/javaversion.h: Likewise.
62622         * lib/javaversion.java: Likewise.
62623         * lib/lbrkprop.h: Likewise.
62624         * lib/lchmod.h: Likewise.
62625         * lib/lchown.c: Likewise.
62626         * lib/ldexpl.c: Likewise.
62627         * lib/linebreak.c: Likewise.
62628         * lib/linebreak.h: Likewise.
62629         * lib/linebuffer.c: Likewise.
62630         * lib/linebuffer.h: Likewise.
62631         * lib/locale.in.h: Likewise.
62632         * lib/logl.c: Likewise.
62633         * lib/long-options.c: Likewise.
62634         * lib/long-options.h: Likewise.
62635         * lib/lstat.c: Likewise.
62636         * lib/lstat.h: Likewise.
62637         * lib/math.in.h: Likewise.
62638         * lib/mbchar.c: Likewise.
62639         * lib/mbchar.h: Likewise.
62640         * lib/mbfile.h: Likewise.
62641         * lib/mbiter.h: Likewise.
62642         * lib/mbscasecmp.c: Likewise.
62643         * lib/mbscasestr.c: Likewise.
62644         * lib/mbschr.c: Likewise.
62645         * lib/mbscspn.c: Likewise.
62646         * lib/mbslen.c: Likewise.
62647         * lib/mbsncasecmp.c: Likewise.
62648         * lib/mbsnlen.c: Likewise.
62649         * lib/mbspbrk.c: Likewise.
62650         * lib/mbspcasecmp.c: Likewise.
62651         * lib/mbsrchr.c: Likewise.
62652         * lib/mbssep.c: Likewise.
62653         * lib/mbsspn.c: Likewise.
62654         * lib/mbsstr.c: Likewise.
62655         * lib/mbstok_r.c: Likewise.
62656         * lib/mbswidth.c: Likewise.
62657         * lib/mbswidth.h: Likewise.
62658         * lib/mbuiter.h: Likewise.
62659         * lib/memcasecmp.c: Likewise.
62660         * lib/memcasecmp.h: Likewise.
62661         * lib/memchr.c: Likewise.
62662         * lib/memcmp.c: Likewise.
62663         * lib/memcoll.c: Likewise.
62664         * lib/memcoll.h: Likewise.
62665         * lib/memcpy.c: Likewise.
62666         * lib/memrchr.c: Likewise.
62667         * lib/mkancesdirs.c: Likewise.
62668         * lib/mkdir-p.c: Likewise.
62669         * lib/mkdir-p.h: Likewise.
62670         * lib/mkdir.c: Likewise.
62671         * lib/mkdirat.c: Likewise.
62672         * lib/mkdtemp.c: Likewise.
62673         * lib/mkstemp-safer.c: Likewise.
62674         * lib/mkstemp.c: Likewise.
62675         * lib/modechange.c: Likewise.
62676         * lib/modechange.h: Likewise.
62677         * lib/mountlist.c: Likewise.
62678         * lib/mountlist.h: Likewise.
62679         * lib/mpsort.c: Likewise.
62680         * lib/nanosleep.c: Likewise.
62681         * lib/obstack.c: Likewise.
62682         * lib/obstack.h: Likewise.
62683         * lib/open-safer.c: Likewise.
62684         * lib/open.c: Likewise.
62685         * lib/openat-die.c: Likewise.
62686         * lib/openat-priv.h: Likewise.
62687         * lib/openat-proc.c: Likewise.
62688         * lib/openat.c: Likewise.
62689         * lib/openat.h: Likewise.
62690         * lib/pagealign_alloc.c: Likewise.
62691         * lib/pagealign_alloc.h: Likewise.
62692         * lib/physmem.c: Likewise.
62693         * lib/physmem.h: Likewise.
62694         * lib/pipe-safer.c: Likewise.
62695         * lib/pipe.c: Likewise.
62696         * lib/pipe.h: Likewise.
62697         * lib/posixtm.c: Likewise.
62698         * lib/posixtm.h: Likewise.
62699         * lib/posixver.c: Likewise.
62700         * lib/printf-frexp.c: Likewise.
62701         * lib/printf-frexp.h: Likewise.
62702         * lib/printf-frexpl.c: Likewise.
62703         * lib/printf-frexpl.h: Likewise.
62704         * lib/printf.c: Likewise.
62705         * lib/progname.c: Likewise.
62706         * lib/progname.h: Likewise.
62707         * lib/progreloc.c: Likewise.
62708         * lib/putenv.c: Likewise.
62709         * lib/quote.c: Likewise.
62710         * lib/quote.h: Likewise.
62711         * lib/quotearg.c: Likewise.
62712         * lib/quotearg.h: Likewise.
62713         * lib/raise.c: Likewise.
62714         * lib/readline.c: Likewise.
62715         * lib/readline.h: Likewise.
62716         * lib/readlink.c: Likewise.
62717         * lib/readtokens.c: Likewise.
62718         * lib/readtokens.h: Likewise.
62719         * lib/readtokens0.c: Likewise.
62720         * lib/readtokens0.h: Likewise.
62721         * lib/readutmp.c: Likewise.
62722         * lib/readutmp.h: Likewise.
62723         * lib/realloc.c: Likewise.
62724         * lib/relocwrapper.c: Likewise.
62725         * lib/rename-dest-slash.c: Likewise.
62726         * lib/rename.c: Likewise.
62727         * lib/rmdir.c: Likewise.
62728         * lib/rpmatch.c: Likewise.
62729         * lib/safe-read.c: Likewise.
62730         * lib/safe-read.h: Likewise.
62731         * lib/safe-write.c: Likewise.
62732         * lib/safe-write.h: Likewise.
62733         * lib/same-inode.h: Likewise.
62734         * lib/same.c: Likewise.
62735         * lib/same.h: Likewise.
62736         * lib/save-cwd.c: Likewise.
62737         * lib/save-cwd.h: Likewise.
62738         * lib/savedir.c: Likewise.
62739         * lib/savedir.h: Likewise.
62740         * lib/savewd.c: Likewise.
62741         * lib/savewd.h: Likewise.
62742         * lib/search.in.h: Likewise.
62743         * lib/setenv.c: Likewise.
62744         * lib/setenv.h: Likewise.
62745         * lib/settime.c: Likewise.
62746         * lib/sh-quote.c: Likewise.
62747         * lib/sh-quote.h: Likewise.
62748         * lib/sig2str.c: Likewise.
62749         * lib/sig2str.h: Likewise.
62750         * lib/signal.in.h: Likewise.
62751         * lib/signbitd.c: Likewise.
62752         * lib/signbitf.c: Likewise.
62753         * lib/signbitl.c: Likewise.
62754         * lib/sigprocmask.c: Likewise.
62755         * lib/sincosl.c: Likewise.
62756         * lib/sleep.c: Likewise.
62757         * lib/sprintf.c: Likewise.
62758         * lib/sqrtl.c: Likewise.
62759         * lib/stat-time.h: Likewise.
62760         * lib/stdio--.h: Likewise.
62761         * lib/stdio-safer.h: Likewise.
62762         * lib/stdlib--.h: Likewise.
62763         * lib/stdlib-safer.h: Likewise.
62764         * lib/stdlib.in.h: Likewise.
62765         * lib/stpcpy.c: Likewise.
62766         * lib/stpncpy.c: Likewise.
62767         * lib/strchrnul.c: Likewise.
62768         * lib/strcspn.c: Likewise.
62769         * lib/strerror.c: Likewise.
62770         * lib/strftime.c: Likewise.
62771         * lib/strftime.h: Likewise.
62772         * lib/striconveh.c: Likewise.
62773         * lib/striconveh.h: Likewise.
62774         * lib/striconveha.c: Likewise.
62775         * lib/striconveha.h: Likewise.
62776         * lib/stripslash.c: Likewise.
62777         * lib/strnlen1.c: Likewise.
62778         * lib/strnlen1.h: Likewise.
62779         * lib/strtod.c: Likewise.
62780         * lib/strtoimax.c: Likewise.
62781         * lib/strtok_r.c: Likewise.
62782         * lib/strtol.c: Likewise.
62783         * lib/strtoll.c: Likewise.
62784         * lib/strtoul.c: Likewise.
62785         * lib/strtoull.c: Likewise.
62786         * lib/sysexits.in.h: Likewise.
62787         * lib/tempname.c: Likewise.
62788         * lib/tempname.h: Likewise.
62789         * lib/timespec.h: Likewise.
62790         * lib/tls.c: Likewise.
62791         * lib/tls.h: Likewise.
62792         * lib/tmpdir.c: Likewise.
62793         * lib/tmpdir.h: Likewise.
62794         * lib/tmpfile-safer.c: Likewise.
62795         * lib/tmpfile.c: Likewise.
62796         * lib/trigl.c: Likewise.
62797         * lib/trigl.h: Likewise.
62798         * lib/trim.c: Likewise.
62799         * lib/trim.h: Likewise.
62800         * lib/trunc.c: Likewise.
62801         * lib/truncf.c: Likewise.
62802         * lib/truncl.c: Likewise.
62803         * lib/tsearch.c: Likewise.
62804         * lib/unicodeio.c: Likewise.
62805         * lib/unicodeio.h: Likewise.
62806         * lib/unistd--.h: Likewise.
62807         * lib/unistd-safer.h: Likewise.
62808         * lib/unistdio/ulc-fprintf.c: Likewise.
62809         * lib/unistdio/ulc-vfprintf.c: Likewise.
62810         * lib/unlinkdir.c: Likewise.
62811         * lib/unlinkdir.h: Likewise.
62812         * lib/unlocked-io.h: Likewise.
62813         * lib/unsetenv.c: Likewise.
62814         * lib/userspec.c: Likewise.
62815         * lib/utime.c: Likewise.
62816         * lib/utimecmp.c: Likewise.
62817         * lib/utimecmp.h: Likewise.
62818         * lib/utimens.c: Likewise.
62819         * lib/verify.h: Likewise.
62820         * lib/verror.c: Likewise.
62821         * lib/verror.h: Likewise.
62822         * lib/version-etc-fsf.c: Likewise.
62823         * lib/version-etc.c: Likewise.
62824         * lib/version-etc.h: Likewise.
62825         * lib/vfprintf.c: Likewise.
62826         * lib/vprintf.c: Likewise.
62827         * lib/vsprintf.c: Likewise.
62828         * lib/w32spawn.h: Likewise.
62829         * lib/wait-process.c: Likewise.
62830         * lib/wait-process.h: Likewise.
62831         * lib/wcwidth.c: Likewise.
62832         * lib/write-any-file.c: Likewise.
62833         * lib/xalloc-die.c: Likewise.
62834         * lib/xalloc.h: Likewise.
62835         * lib/xasprintf.c: Likewise.
62836         * lib/xgetcwd.c: Likewise.
62837         * lib/xgetcwd.h: Likewise.
62838         * lib/xgetdomainname.c: Likewise.
62839         * lib/xgetdomainname.h: Likewise.
62840         * lib/xgethostname.c: Likewise.
62841         * lib/xmalloc.c: Likewise.
62842         * lib/xmalloca.c: Likewise.
62843         * lib/xmalloca.h: Likewise.
62844         * lib/xmemcoll.c: Likewise.
62845         * lib/xnanosleep.c: Likewise.
62846         * lib/xreadlink.c: Likewise.
62847         * lib/xreadlink.h: Likewise.
62848         * lib/xsetenv.c: Likewise.
62849         * lib/xsetenv.h: Likewise.
62850         * lib/xstriconv.c: Likewise.
62851         * lib/xstriconv.h: Likewise.
62852         * lib/xstrndup.c: Likewise.
62853         * lib/xstrndup.h: Likewise.
62854         * lib/xstrtod.c: Likewise.
62855         * lib/xstrtod.h: Likewise.
62856         * lib/xstrtol-error.c: Likewise.
62857         * lib/xstrtol.c: Likewise.
62858         * lib/xstrtol.h: Likewise.
62859         * lib/xtime.h: Likewise.
62860         * lib/xvasprintf.c: Likewise.
62861         * lib/xvasprintf.h: Likewise.
62862         * lib/yesno.c: Likewise.
62863         * lib/yesno.h: Likewise.
62864         * posix-modules: Likewise.
62865         * tests/test-alloca-opt.c: Likewise.
62866         * tests/test-arcfour.c: Likewise.
62867         * tests/test-arctwo.c: Likewise.
62868         * tests/test-argmatch.c: Likewise.
62869         * tests/test-argp-2.sh: Likewise.
62870         * tests/test-argp.c: Likewise.
62871         * tests/test-arpa_inet.c: Likewise.
62872         * tests/test-array_list.c: Likewise.
62873         * tests/test-array_oset.c: Likewise.
62874         * tests/test-atexit.c: Likewise.
62875         * tests/test-avltree_list.c: Likewise.
62876         * tests/test-avltree_oset.c: Likewise.
62877         * tests/test-avltreehash_list.c: Likewise.
62878         * tests/test-base64.c: Likewise.
62879         * tests/test-binary-io.c: Likewise.
62880         * tests/test-byteswap.c: Likewise.
62881         * tests/test-c-ctype.c: Likewise.
62882         * tests/test-c-strcasecmp.c: Likewise.
62883         * tests/test-c-strcasestr.c: Likewise.
62884         * tests/test-c-strncasecmp.c: Likewise.
62885         * tests/test-c-strstr.c: Likewise.
62886         * tests/test-canonicalize-lgpl.c: Likewise.
62887         * tests/test-canonicalize.c: Likewise.
62888         * tests/test-carray_list.c: Likewise.
62889         * tests/test-ceilf.c: Likewise.
62890         * tests/test-ceill.c: Likewise.
62891         * tests/test-count-one-bits.c: Likewise.
62892         * tests/test-crc.c: Likewise.
62893         * tests/test-dirname.c: Likewise.
62894         * tests/test-fbufmode.c: Likewise.
62895         * tests/test-fcntl.c: Likewise.
62896         * tests/test-fflush.c: Likewise.
62897         * tests/test-floorf.c: Likewise.
62898         * tests/test-floorl.c: Likewise.
62899         * tests/test-fopen.c: Likewise.
62900         * tests/test-fprintf-posix.c: Likewise.
62901         * tests/test-fprintf-posix.h: Likewise.
62902         * tests/test-fpurge.c: Likewise.
62903         * tests/test-freadable.c: Likewise.
62904         * tests/test-freadahead.c: Likewise.
62905         * tests/test-freading.c: Likewise.
62906         * tests/test-freopen.c: Likewise.
62907         * tests/test-frexp.c: Likewise.
62908         * tests/test-frexpl.c: Likewise.
62909         * tests/test-fseek.c: Likewise.
62910         * tests/test-fseeko.c: Likewise.
62911         * tests/test-fseterr.c: Likewise.
62912         * tests/test-fstrcmp.c: Likewise.
62913         * tests/test-ftell.c: Likewise.
62914         * tests/test-ftello.c: Likewise.
62915         * tests/test-fwritable.c: Likewise.
62916         * tests/test-fwriting.c: Likewise.
62917         * tests/test-getaddrinfo.c: Likewise.
62918         * tests/test-getpass.c: Likewise.
62919         * tests/test-gettimeofday.c: Likewise.
62920         * tests/test-hmac-md5.c: Likewise.
62921         * tests/test-hmac-sha1.c: Likewise.
62922         * tests/test-iconv.c: Likewise.
62923         * tests/test-iconvme.c: Likewise.
62924         * tests/test-inttypes.c: Likewise.
62925         * tests/test-isnan.c: Likewise.
62926         * tests/test-isnanf.c: Likewise.
62927         * tests/test-isnanl-nolibm.c: Likewise.
62928         * tests/test-isnanl.c: Likewise.
62929         * tests/test-isnanl.h: Likewise.
62930         * tests/test-ldexpl.c: Likewise.
62931         * tests/test-linked_list.c: Likewise.
62932         * tests/test-linkedhash_list.c: Likewise.
62933         * tests/test-locale.c: Likewise.
62934         * tests/test-localename.c: Likewise.
62935         * tests/test-lock.c: Likewise.
62936         * tests/test-lseek.c: Likewise.
62937         * tests/test-malloca.c: Likewise.
62938         * tests/test-math.c: Likewise.
62939         * tests/test-mbscasecmp.c: Likewise.
62940         * tests/test-mbscasestr1.c: Likewise.
62941         * tests/test-mbscasestr2.c: Likewise.
62942         * tests/test-mbscasestr3.c: Likewise.
62943         * tests/test-mbscasestr4.c: Likewise.
62944         * tests/test-mbschr.c: Likewise.
62945         * tests/test-mbscspn.c: Likewise.
62946         * tests/test-mbsncasecmp.c: Likewise.
62947         * tests/test-mbspbrk.c: Likewise.
62948         * tests/test-mbspcasecmp.c: Likewise.
62949         * tests/test-mbsrchr.c: Likewise.
62950         * tests/test-mbsspn.c: Likewise.
62951         * tests/test-mbsstr1.c: Likewise.
62952         * tests/test-mbsstr2.c: Likewise.
62953         * tests/test-mbsstr3.c: Likewise.
62954         * tests/test-md5.c: Likewise.
62955         * tests/test-memmem.c: Likewise.
62956         * tests/test-netinet_in.c: Likewise.
62957         * tests/test-open.c: Likewise.
62958         * tests/test-printf-frexp.c: Likewise.
62959         * tests/test-printf-frexpl.c: Likewise.
62960         * tests/test-printf-posix.c: Likewise.
62961         * tests/test-printf-posix.h: Likewise.
62962         * tests/test-rbtree_list.c: Likewise.
62963         * tests/test-rbtree_oset.c: Likewise.
62964         * tests/test-rbtreehash_list.c: Likewise.
62965         * tests/test-read-file.c: Likewise.
62966         * tests/test-rijndael.c: Likewise.
62967         * tests/test-search.c: Likewise.
62968         * tests/test-signbit.c: Likewise.
62969         * tests/test-sleep.c: Likewise.
62970         * tests/test-snprintf-posix.c: Likewise.
62971         * tests/test-snprintf-posix.h: Likewise.
62972         * tests/test-snprintf.c: Likewise.
62973         * tests/test-sprintf-posix.c: Likewise.
62974         * tests/test-sprintf-posix.h: Likewise.
62975         * tests/test-stat-time.c: Likewise.
62976         * tests/test-stdbool.c: Likewise.
62977         * tests/test-stdint.c: Likewise.
62978         * tests/test-stdio.c: Likewise.
62979         * tests/test-stdlib.c: Likewise.
62980         * tests/test-stpncpy.c: Likewise.
62981         * tests/test-strcasestr.c: Likewise.
62982         * tests/test-striconv.c: Likewise.
62983         * tests/test-striconveh.c: Likewise.
62984         * tests/test-striconveha.c: Likewise.
62985         * tests/test-string.c: Likewise.
62986         * tests/test-sys_select.c: Likewise.
62987         * tests/test-sys_socket.c: Likewise.
62988         * tests/test-sys_stat.c: Likewise.
62989         * tests/test-sys_time.c: Likewise.
62990         * tests/test-sysexits.c: Likewise.
62991         * tests/test-time.c: Likewise.
62992         * tests/test-tls.c: Likewise.
62993         * tests/test-trunc.c: Likewise.
62994         * tests/test-truncf.c: Likewise.
62995         * tests/test-truncl.c: Likewise.
62996         * tests/test-unistd.c: Likewise.
62997         * tests/test-vasnprintf-posix.c: Likewise.
62998         * tests/test-vasnprintf-posix2.c: Likewise.
62999         * tests/test-vasnprintf.c: Likewise.
63000         * tests/test-vasprintf-posix.c: Likewise.
63001         * tests/test-vasprintf.c: Likewise.
63002         * tests/test-verify.c: Likewise.
63003         * tests/test-vfprintf-posix.c: Likewise.
63004         * tests/test-vprintf-posix.c: Likewise.
63005         * tests/test-vsnprintf-posix.c: Likewise.
63006         * tests/test-vsnprintf.c: Likewise.
63007         * tests/test-vsprintf-posix.c: Likewise.
63008         * tests/test-wchar.c: Likewise.
63009         * tests/test-wctype.c: Likewise.
63010         * tests/test-wcwidth.c: Likewise.
63011         * tests/test-xstrtol.c: Likewise.
63012         * tests/test-xvasprintf.c: Likewise.
63013         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63014         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63015         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63016         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63017         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63018         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63019         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63020         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63021         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63022         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63023         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63024         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63025         * tests/uniname/test-uninames.c: Likewise.
63026         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63027         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63028         * tests/unistdio/test-u16-printf1.h: Likewise.
63029         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63030         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63031         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63032         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63033         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63034         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63035         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63036         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63037         * tests/unistdio/test-u32-printf1.h: Likewise.
63038         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63039         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63040         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63041         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63042         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63043         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63044         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63045         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63046         * tests/unistdio/test-u8-printf1.h: Likewise.
63047         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63048         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63049         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63050         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63051         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63052         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63053         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63054         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63055         * tests/unistdio/test-ulc-printf1.h: Likewise.
63056         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63057         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63058         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63059         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63060         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63061         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63062         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63063         * tests/uniwidth/test-u16-width.c: Likewise.
63064         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63065         * tests/uniwidth/test-u32-width.c: Likewise.
63066         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63067         * tests/uniwidth/test-u8-width.c: Likewise.
63068         * tests/uniwidth/test-uc_width.c: Likewise.
63069         * config/srclist-update: Likewise.
63070         (fixlicense): Update to GPLv3+.
63071
63072         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63073         * tests/test-tsearch.c: Change copyright notice.
63074
63075         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63076         * lib/c-strcaseeq.h: Change copyright notice.
63077         * lib/streq.h: Likewise.
63078         * lib/uniconv.h: Likewise.
63079         * lib/uniconv/u-conv-from-enc.h: Likewise.
63080         * lib/uniconv/u-conv-to-enc.h: Likewise.
63081         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63082         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63083         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63084         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63085         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63086         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63087         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63088         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63089         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63090         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63091         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63092         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63093         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63094         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63095         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63096         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63097         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63098         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63099         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63100         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63101         * lib/uniname.h: Likewise.
63102         * lib/uniname/uniname.c: Likewise.
63103         * lib/unistdio.h: Likewise.
63104         * lib/unistdio/u-asnprintf.h: Likewise.
63105         * lib/unistdio/u-asprintf.h: Likewise.
63106         * lib/unistdio/u-printf-args.c: Likewise.
63107         * lib/unistdio/u-printf-args.h: Likewise.
63108         * lib/unistdio/u-printf-parse.h: Likewise.
63109         * lib/unistdio/u-snprintf.h: Likewise.
63110         * lib/unistdio/u-sprintf.h: Likewise.
63111         * lib/unistdio/u-vasprintf.h: Likewise.
63112         * lib/unistdio/u-vsnprintf.h: Likewise.
63113         * lib/unistdio/u-vsprintf.h: Likewise.
63114         * lib/unistdio/u16-asnprintf.c: Likewise.
63115         * lib/unistdio/u16-asprintf.c: Likewise.
63116         * lib/unistdio/u16-printf-parse.c: Likewise.
63117         * lib/unistdio/u16-snprintf.c: Likewise.
63118         * lib/unistdio/u16-sprintf.c: Likewise.
63119         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63120         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63121         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63122         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63123         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63124         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63125         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63126         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63127         * lib/unistdio/u16-vasnprintf.c: Likewise.
63128         * lib/unistdio/u16-vasprintf.c: Likewise.
63129         * lib/unistdio/u16-vsnprintf.c: Likewise.
63130         * lib/unistdio/u16-vsprintf.c: Likewise.
63131         * lib/unistdio/u32-asnprintf.c: Likewise.
63132         * lib/unistdio/u32-asprintf.c: Likewise.
63133         * lib/unistdio/u32-printf-parse.c: Likewise.
63134         * lib/unistdio/u32-snprintf.c: Likewise.
63135         * lib/unistdio/u32-sprintf.c: Likewise.
63136         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63137         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63138         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63139         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63140         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63141         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63142         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63143         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63144         * lib/unistdio/u32-vasnprintf.c: Likewise.
63145         * lib/unistdio/u32-vasprintf.c: Likewise.
63146         * lib/unistdio/u32-vsnprintf.c: Likewise.
63147         * lib/unistdio/u32-vsprintf.c: Likewise.
63148         * lib/unistdio/u8-asnprintf.c: Likewise.
63149         * lib/unistdio/u8-asprintf.c: Likewise.
63150         * lib/unistdio/u8-printf-parse.c: Likewise.
63151         * lib/unistdio/u8-snprintf.c: Likewise.
63152         * lib/unistdio/u8-sprintf.c: Likewise.
63153         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63154         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63155         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63156         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63157         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63158         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63159         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63160         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63161         * lib/unistdio/u8-vasnprintf.c: Likewise.
63162         * lib/unistdio/u8-vasprintf.c: Likewise.
63163         * lib/unistdio/u8-vsnprintf.c: Likewise.
63164         * lib/unistdio/u8-vsprintf.c: Likewise.
63165         * lib/unistdio/ulc-asnprintf.c: Likewise.
63166         * lib/unistdio/ulc-asprintf.c: Likewise.
63167         * lib/unistdio/ulc-printf-parse.c: Likewise.
63168         * lib/unistdio/ulc-snprintf.c: Likewise.
63169         * lib/unistdio/ulc-sprintf.c: Likewise.
63170         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63171         * lib/unistdio/ulc-vasprintf.c: Likewise.
63172         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63173         * lib/unistdio/ulc-vsprintf.c: Likewise.
63174         * lib/unistr.h: Likewise.
63175         * lib/unistr/u-cpy-alloc.h: Likewise.
63176         * lib/unistr/u-cpy.h: Likewise.
63177         * lib/unistr/u-endswith.h: Likewise.
63178         * lib/unistr/u-move.h: Likewise.
63179         * lib/unistr/u-set.h: Likewise.
63180         * lib/unistr/u-startswith.h: Likewise.
63181         * lib/unistr/u-stpcpy.h: Likewise.
63182         * lib/unistr/u-stpncpy.h: Likewise.
63183         * lib/unistr/u-strcat.h: Likewise.
63184         * lib/unistr/u-strcpy.h: Likewise.
63185         * lib/unistr/u-strcspn.h: Likewise.
63186         * lib/unistr/u-strdup.h: Likewise.
63187         * lib/unistr/u-strlen.h: Likewise.
63188         * lib/unistr/u-strncat.h: Likewise.
63189         * lib/unistr/u-strncpy.h: Likewise.
63190         * lib/unistr/u-strnlen.h: Likewise.
63191         * lib/unistr/u-strpbrk.h: Likewise.
63192         * lib/unistr/u-strspn.h: Likewise.
63193         * lib/unistr/u-strstr.h: Likewise.
63194         * lib/unistr/u-strtok.h: Likewise.
63195         * lib/unistr/u16-check.c: Likewise.
63196         * lib/unistr/u16-chr.c: Likewise.
63197         * lib/unistr/u16-cmp.c: Likewise.
63198         * lib/unistr/u16-cpy-alloc.c: Likewise.
63199         * lib/unistr/u16-cpy.c: Likewise.
63200         * lib/unistr/u16-endswith.c: Likewise.
63201         * lib/unistr/u16-mblen.c: Likewise.
63202         * lib/unistr/u16-mbsnlen.c: Likewise.
63203         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63204         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63205         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63206         * lib/unistr/u16-mbtouc.c: Likewise.
63207         * lib/unistr/u16-mbtoucr.c: Likewise.
63208         * lib/unistr/u16-move.c: Likewise.
63209         * lib/unistr/u16-next.c: Likewise.
63210         * lib/unistr/u16-prev.c: Likewise.
63211         * lib/unistr/u16-set.c: Likewise.
63212         * lib/unistr/u16-startswith.c: Likewise.
63213         * lib/unistr/u16-stpcpy.c: Likewise.
63214         * lib/unistr/u16-stpncpy.c: Likewise.
63215         * lib/unistr/u16-strcat.c: Likewise.
63216         * lib/unistr/u16-strchr.c: Likewise.
63217         * lib/unistr/u16-strcmp.c: Likewise.
63218         * lib/unistr/u16-strcpy.c: Likewise.
63219         * lib/unistr/u16-strcspn.c: Likewise.
63220         * lib/unistr/u16-strdup.c: Likewise.
63221         * lib/unistr/u16-strlen.c: Likewise.
63222         * lib/unistr/u16-strmblen.c: Likewise.
63223         * lib/unistr/u16-strmbtouc.c: Likewise.
63224         * lib/unistr/u16-strncat.c: Likewise.
63225         * lib/unistr/u16-strncmp.c: Likewise.
63226         * lib/unistr/u16-strncpy.c: Likewise.
63227         * lib/unistr/u16-strnlen.c: Likewise.
63228         * lib/unistr/u16-strpbrk.c: Likewise.
63229         * lib/unistr/u16-strrchr.c: Likewise.
63230         * lib/unistr/u16-strspn.c: Likewise.
63231         * lib/unistr/u16-strstr.c: Likewise.
63232         * lib/unistr/u16-strtok.c: Likewise.
63233         * lib/unistr/u16-to-u32.c: Likewise.
63234         * lib/unistr/u16-to-u8.c: Likewise.
63235         * lib/unistr/u16-uctomb-aux.c: Likewise.
63236         * lib/unistr/u16-uctomb.c: Likewise.
63237         * lib/unistr/u32-check.c: Likewise.
63238         * lib/unistr/u32-chr.c: Likewise.
63239         * lib/unistr/u32-cmp.c: Likewise.
63240         * lib/unistr/u32-cpy-alloc.c: Likewise.
63241         * lib/unistr/u32-cpy.c: Likewise.
63242         * lib/unistr/u32-endswith.c: Likewise.
63243         * lib/unistr/u32-mblen.c: Likewise.
63244         * lib/unistr/u32-mbsnlen.c: Likewise.
63245         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63246         * lib/unistr/u32-mbtouc.c: Likewise.
63247         * lib/unistr/u32-mbtoucr.c: Likewise.
63248         * lib/unistr/u32-move.c: Likewise.
63249         * lib/unistr/u32-next.c: Likewise.
63250         * lib/unistr/u32-prev.c: Likewise.
63251         * lib/unistr/u32-set.c: Likewise.
63252         * lib/unistr/u32-startswith.c: Likewise.
63253         * lib/unistr/u32-stpcpy.c: Likewise.
63254         * lib/unistr/u32-stpncpy.c: Likewise.
63255         * lib/unistr/u32-strcat.c: Likewise.
63256         * lib/unistr/u32-strchr.c: Likewise.
63257         * lib/unistr/u32-strcmp.c: Likewise.
63258         * lib/unistr/u32-strcpy.c: Likewise.
63259         * lib/unistr/u32-strcspn.c: Likewise.
63260         * lib/unistr/u32-strdup.c: Likewise.
63261         * lib/unistr/u32-strlen.c: Likewise.
63262         * lib/unistr/u32-strmblen.c: Likewise.
63263         * lib/unistr/u32-strmbtouc.c: Likewise.
63264         * lib/unistr/u32-strncat.c: Likewise.
63265         * lib/unistr/u32-strncmp.c: Likewise.
63266         * lib/unistr/u32-strncpy.c: Likewise.
63267         * lib/unistr/u32-strnlen.c: Likewise.
63268         * lib/unistr/u32-strpbrk.c: Likewise.
63269         * lib/unistr/u32-strrchr.c: Likewise.
63270         * lib/unistr/u32-strspn.c: Likewise.
63271         * lib/unistr/u32-strstr.c: Likewise.
63272         * lib/unistr/u32-strtok.c: Likewise.
63273         * lib/unistr/u32-to-u16.c: Likewise.
63274         * lib/unistr/u32-to-u8.c: Likewise.
63275         * lib/unistr/u32-uctomb.c: Likewise.
63276         * lib/unistr/u8-check.c: Likewise.
63277         * lib/unistr/u8-chr.c: Likewise.
63278         * lib/unistr/u8-cmp.c: Likewise.
63279         * lib/unistr/u8-cpy-alloc.c: Likewise.
63280         * lib/unistr/u8-cpy.c: Likewise.
63281         * lib/unistr/u8-endswith.c: Likewise.
63282         * lib/unistr/u8-mblen.c: Likewise.
63283         * lib/unistr/u8-mbsnlen.c: Likewise.
63284         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63285         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63286         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63287         * lib/unistr/u8-mbtouc.c: Likewise.
63288         * lib/unistr/u8-mbtoucr.c: Likewise.
63289         * lib/unistr/u8-move.c: Likewise.
63290         * lib/unistr/u8-next.c: Likewise.
63291         * lib/unistr/u8-prev.c: Likewise.
63292         * lib/unistr/u8-set.c: Likewise.
63293         * lib/unistr/u8-startswith.c: Likewise.
63294         * lib/unistr/u8-stpcpy.c: Likewise.
63295         * lib/unistr/u8-stpncpy.c: Likewise.
63296         * lib/unistr/u8-strcat.c: Likewise.
63297         * lib/unistr/u8-strchr.c: Likewise.
63298         * lib/unistr/u8-strcmp.c: Likewise.
63299         * lib/unistr/u8-strcpy.c: Likewise.
63300         * lib/unistr/u8-strcspn.c: Likewise.
63301         * lib/unistr/u8-strdup.c: Likewise.
63302         * lib/unistr/u8-strlen.c: Likewise.
63303         * lib/unistr/u8-strmblen.c: Likewise.
63304         * lib/unistr/u8-strmbtouc.c: Likewise.
63305         * lib/unistr/u8-strncat.c: Likewise.
63306         * lib/unistr/u8-strncmp.c: Likewise.
63307         * lib/unistr/u8-strncpy.c: Likewise.
63308         * lib/unistr/u8-strnlen.c: Likewise.
63309         * lib/unistr/u8-strpbrk.c: Likewise.
63310         * lib/unistr/u8-strrchr.c: Likewise.
63311         * lib/unistr/u8-strspn.c: Likewise.
63312         * lib/unistr/u8-strstr.c: Likewise.
63313         * lib/unistr/u8-strtok.c: Likewise.
63314         * lib/unistr/u8-to-u16.c: Likewise.
63315         * lib/unistr/u8-to-u32.c: Likewise.
63316         * lib/unistr/u8-uctomb-aux.c: Likewise.
63317         * lib/unistr/u8-uctomb.c: Likewise.
63318         * lib/unitypes.h: Likewise.
63319         * lib/uniwidth.h: Likewise.
63320         * lib/uniwidth/cjk.h: Likewise.
63321         * lib/uniwidth/u16-strwidth.c: Likewise.
63322         * lib/uniwidth/u16-width.c: Likewise.
63323         * lib/uniwidth/u32-strwidth.c: Likewise.
63324         * lib/uniwidth/u32-width.c: Likewise.
63325         * lib/uniwidth/u8-strwidth.c: Likewise.
63326         * lib/uniwidth/u8-width.c: Likewise.
63327         * lib/uniwidth/width.c: Likewise.
63328
63329 2007-10-07  Bruno Haible  <bruno@clisp.org>
63330
63331         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63332         The file is still under LGPL (see modules/inttypes).
63333
63334 2007-10-06  Bruno Haible  <bruno@clisp.org>
63335
63336         * modules/trunc (Dependencies): Add 'extensions'.
63337         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63338         Reported by Ben Pfaff <blp@gnu.org>.
63339
63340 2007-10-06  Bruno Haible  <bruno@clisp.org>
63341
63342         * modules/freopen-tests: New file.
63343         * tests/test-freopen.c: New file.
63344
63345         * modules/fopen-tests: New file.
63346         * tests/test-fopen.c: New file.
63347
63348         * modules/fopen: New file.
63349         * lib/fopen.c: New file.
63350         * m4/fopen.m4: New file.
63351         * modules/freopen: New file.
63352         * lib/freopen.c: New file.
63353         * m4/freopen.m4: New file.
63354         * lib/stdio.in.h (fopen, freopen): New declarations.
63355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63356         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63357         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63358         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63359         * doc/functions/fopen.texi: Mention the 'fopen' module.
63360         * doc/functions/freopen.texi: Mention the 'freopen' module.
63361
63362 2007-10-06  Bruno Haible  <bruno@clisp.org>
63363
63364         * modules/open-tests: New file.
63365         * tests/test-open.c: New file.
63366
63367         * modules/open: New file.
63368         * lib/open.c: New file.
63369         * m4/open.m4: New file.
63370         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63371         lib/open.c does.
63372         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63373         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63374         macros.
63375         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63376         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63377         REPLACE_OPEN.
63378         * doc/functions/open.texi: Mention the 'open' module.
63379
63380 2007-10-04  Bruno Haible  <bruno@clisp.org>
63381
63382         * modules/ceill-tests: New file.
63383         * tests/test-ceill.c: New file.
63384
63385         * modules/ceill: New file.
63386         * lib/ceill.c: Replace entire file.
63387         * m4/ceill.m4: New file.
63388         * lib/math.in.h (ceill): Replace declaration.
63389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63390         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63391         * doc/functions/ceill.texi: Mention the 'ceill' module.
63392         * modules/mathl (Files): Remove lib/ceill.c.
63393         (Depends-on): Add ceill.
63394
63395 2007-10-04  Bruno Haible  <bruno@clisp.org>
63396
63397         * modules/ceilf-tests: New file.
63398         * tests/test-ceilf.c: New file.
63399
63400         * modules/ceilf: New file.
63401         * lib/ceil.c: New file.
63402         * lib/ceilf.c: New file.
63403         * m4/ceilf.m4: New file.
63404         * lib/math.in.h (ceilf): New declaration.
63405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63406         HAVE_DECL_CEILF.
63407         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63408         HAVE_DECL_CEILF.
63409         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63410
63411 2007-10-04  Bruno Haible  <bruno@clisp.org>
63412
63413         * modules/floorl-tests: New file.
63414         * tests/test-floorl.c: New file.
63415
63416         * modules/floorl: New file.
63417         * lib/floorl.c: Replace entire file.
63418         * m4/floorl.m4: New file.
63419         * lib/math.in.h (floorl): Replace declaration.
63420         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63421         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63422         * doc/functions/floorl.texi: Mention the 'floorl' module.
63423         * modules/mathl (Files): Remove lib/floorl.c.
63424         (Depends-on): Add floorl.
63425
63426 2007-10-04  Bruno Haible  <bruno@clisp.org>
63427
63428         * modules/floorf-tests: New file.
63429         * tests/test-floorf.c: New file.
63430
63431         * modules/floorf: New file.
63432         * lib/floor.c: New file.
63433         * lib/floorf.c: New file.
63434         * m4/floorf.m4: New file.
63435         * lib/math.in.h (floorf): New declaration.
63436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63437         HAVE_DECL_FLOORF.
63438         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63439         HAVE_DECL_FLOORF.
63440         * doc/functions/floorf.texi: Mention the 'floorf' module.
63441
63442 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63443             Bruno Haible  <bruno@clisp.org>
63444
63445         Advertise for the Git server instead of the CVS server.
63446         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63447         repository instead of the CVS one.
63448         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63449         about all VCS systems generically.
63450         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63451
63452 2007-10-04  Bruno Haible  <bruno@clisp.org>
63453
63454         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63455         means.
63456         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63457
63458 2007-10-04  Bruno Haible  <bruno@clisp.org>
63459
63460         * modules/truncl-tests: New file.
63461         * tests/test-truncl.c: New file.
63462
63463         * modules/truncl: New file.
63464         * lib/truncl.c: New file.
63465         * m4/truncl.m4: New file.
63466         * lib/math.in.h (truncl): New declaration.
63467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63468         HAVE_DECL_TRUNCL.
63469         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63470         HAVE_DECL_TRUNCL.
63471         * doc/functions/truncl.texi: Mention the 'truncl' module.
63472
63473 2007-10-04  Bruno Haible  <bruno@clisp.org>
63474
63475         * modules/truncf-tests: New file.
63476         * tests/test-truncf.c: New file.
63477
63478         * modules/truncf: New file.
63479         * lib/trunc.c: Make paramerizable through USE_* macros.
63480         * lib/truncf.c: New file.
63481         * m4/truncf.m4: New file.
63482         * lib/math.in.h (truncf): New declaration.
63483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63484         HAVE_DECL_TRUNCF.
63485         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63486         HAVE_DECL_TRUNCF.
63487         * doc/functions/truncf.texi: Mention the 'truncf' module.
63488
63489 2007-10-03  Bruno Haible  <bruno@clisp.org>
63490
63491         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63492         augmentation also for tests modules.
63493         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63494         * modules/atexit-tests (Makefile.am): Likewise.
63495         * modules/binary-io-tests (Makefile.am): Likewise.
63496         * modules/c-strcase-tests (Makefile.am): Likewise.
63497         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63498         * modules/canonicalize-tests (Makefile.am): Likewise.
63499         * modules/closein-tests (Makefile.am): Likewise.
63500         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63501         * modules/freadahead-tests (Makefile.am): Likewise.
63502         * modules/fseek-tests (Makefile.am): Likewise.
63503         * modules/fseeko-tests (Makefile.am): Likewise.
63504         * modules/ftell-tests (Makefile.am): Likewise.
63505         * modules/ftello-tests (Makefile.am): Likewise.
63506         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63507         * modules/isnanl-tests (Makefile.am): Likewise.
63508         * modules/lseek-tests (Makefile.am): Likewise.
63509         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63510         * modules/mbscasestr-tests (Makefile.am): Likewise.
63511         * modules/mbschr-tests (Makefile.am): Likewise.
63512         * modules/mbscspn-tests (Makefile.am): Likewise.
63513         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63514         * modules/mbspbrk-tests (Makefile.am): Likewise.
63515         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63516         * modules/mbsrchr-tests (Makefile.am): Likewise.
63517         * modules/mbsspn-tests (Makefile.am): Likewise.
63518         * modules/mbsstr-tests (Makefile.am): Likewise.
63519         * modules/printf-posix-tests (Makefile.am): Likewise.
63520         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63521         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63522         * modules/tsearch-tests (Makefile.am): Likewise.
63523         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63524         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63525         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63526         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63527         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63528         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63529         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63530         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63531         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63532         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63533         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63534         * modules/xstrtol-tests (Makefile.am): Likewise.
63535         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63536         * modules/yesno-tests (Makefile.am): Likewise.
63537
63538 2007-10-03  Bruno Haible  <bruno@clisp.org>
63539
63540         * modules/trunc-tests: New file.
63541         * tests/test-trunc.c: New file.
63542
63543         * modules/trunc: New file.
63544         * lib/trunc.c: New file.
63545         * m4/trunc.m4: New file.
63546         * lib/math.in.h (trunc): New declaration.
63547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63548         HAVE_DECL_TRUNC.
63549         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63550         HAVE_DECL_TRUNC.
63551         * doc/functions/trunc.texi: Mention the 'trunc' module.
63552
63553 2007-10-03  Bruno Haible  <bruno@clisp.org>
63554
63555         * tests/test-fpending.c: New file, mostly copied
63556         from coreutils/lib/t-fpending.c.
63557         * modules/fpending-tests: New file.
63558
63559 2007-10-03  Bruno Haible  <bruno@clisp.org>
63560
63561         Port the stdio extensions to QNX (untested).
63562         * lib/fseterr.c (fseterr): Add support for QNX.
63563         * lib/fbufmode.c (fbufmode): Likewise.
63564         * lib/freadable.c (freadable): Likewise.
63565         * lib/fwritable.c (fwritable): Likewise.
63566         * lib/freading.c (freading): Likewise.
63567         * lib/fwriting.c (fwriting): Likewise.
63568         * lib/freadahead.c (freadahed): Likewise.
63569         * lib/fpurge.c (fpurge): Likewise.
63570         * lib/fseeko.c (rpl_fseeko): Likewise.
63571
63572 2007-10-03  Bruno Haible  <bruno@clisp.org>
63573             Jim Meyering  <jim@meyering.net>
63574             Eric Blake  <ebb9@byu.net>
63575
63576         * doc/relocatable.texi: Use @command instead of @program.
63577
63578 2007-10-02  Jim Meyering  <jim@meyering.net>
63579
63580         Perform one more "_.h" -> ".in.h" substitution.
63581         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63582         instead of unistd_.h here, too.
63583
63584 2007-10-01  Bruno Haible  <bruno@clisp.org>
63585
63586         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63587         Needed for the alloca-opt module.
63588
63589 2007-09-30  Bruno Haible  <bruno@clisp.org>
63590
63591         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63592         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63593         alloca_.h.
63594         * lib/argz.in.h: Renamed from lib/argz_.h.
63595         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63596         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63597         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63598         byteswap_.h.
63599         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63600         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63601         dirent_.h.
63602         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63603         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63604         fcntl_.h.
63605         * lib/float.in.h: Renamed from lib/float_.h.
63606         * modules/float (Files, Makefile.am): Use float.in.h instead of
63607         float_.h.
63608         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63609         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63610         fnmatch_.h.
63611         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63612         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63613         getopt_.h.
63614         * lib/glob.in.h: Renamed from lib/glob_.h.
63615         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63616         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63617         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63618         iconv_.h.
63619         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63620         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63621         inttypes_.h.
63622         * lib/locale.in.h: Renamed from lib/locale_.h.
63623         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63624         locale_.h.
63625         * lib/math.in.h: Renamed from lib/math_.h.
63626         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63627         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63628         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63629         of netinet_in_.h. Add dependency.
63630         * lib/poll.in.h: Renamed from lib/poll_.h.
63631         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63632         * lib/search.in.h: Renamed from lib/search_.h.
63633         * modules/search (Files, Makefile.am): Use search.in.h instead of
63634         search_.h.
63635         * lib/signal.in.h: Renamed from lib/signal_.h.
63636         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63637         _signal.h.
63638         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63639         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63640         stdbool_.h.
63641         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63642         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63643         stdint_.h.
63644         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63645         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63646         stdio_.h.
63647         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63648         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63649         stdlib_.h.
63650         * lib/string.in.h: Renamed from lib/string_.h.
63651         * modules/string (Files, Makefile.am): Use string.in.h instead of
63652         string_.h.
63653         * doc/gnulib-tool.texi (Initial import): Update.
63654         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63655         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63656         of sys_select_.h. Add dependency.
63657         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63658         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63659         of sys_socket_.h.
63660         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63661         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63662         sys_stat_.h.
63663         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63664         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63665         sys_time_.h.
63666         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63667         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63668         sysexits_.h.
63669         * lib/time.in.h: Renamed from lib/time_.h.
63670         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63671         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63672         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63673         unistd_.h.
63674         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63675         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63676         wchar_.h.
63677         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63678         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63679         wctype_.h.
63680         * build-aux/bootstrap (slurp): Update.
63681         * lib/.cppi-disable: Update.
63682
63683 2007-09-30  Bruno Haible  <bruno@clisp.org>
63684
63685         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63686         Needed on BeOS.
63687
63688 2007-09-30  Bruno Haible  <bruno@clisp.org>
63689
63690         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63691
63692 2007-09-29  Bruno Haible  <bruno@clisp.org>
63693
63694         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63695
63696 2007-09-29  Bruno Haible  <bruno@clisp.org>
63697
63698         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63699         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63700         * build-aux/install-reloc: Compile also areadlink.c.
63701         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63702
63703 2007-09-29  Bruno Haible  <bruno@clisp.org>
63704
63705         * gnulib-tool (func_emit_initmacro_done): Indentation.
63706
63707 2007-09-29  Bruno Haible  <bruno@clisp.org>
63708
63709         * README: Add CVS checkout update instructions.
63710         Info from Bob Proulx <bob@proulx.com>.
63711
63712 2007-09-28  Eric Blake  <ebb9@byu.net>
63713
63714         Provide move-if-change.
63715         * build-aux/move-if-change: New file, based on best practice
63716         rather than any canonical upstream location.
63717
63718 2007-09-28  Jim Meyering  <jim@meyering.net>
63719
63720         Fix canonicalize loop-detection corner case.
63721         Do not attempt to stat the symlink values stored via seen_triple.
63722         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63723         on linux-2.6.18, (but not 2.6.22).
63724         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63725         triple_compare.  The former compares dev,ino,filename, while the latter
63726         would actually stat dirname(filename) when dev and ino were equal.
63727         * lib/hash-triple.c: Install <string.h>.
63728         (STREQ): Define.
63729         (triple_compare_ino_str): New function.
63730         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63731
63732 2007-09-28  Eric Blake  <ebb9@byu.net>
63733
63734         Enforce that AC_REPLACE_FUNCS files exist.
63735         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63736         override check for typos.
63737
63738         Fix test-closein on Solaris 10.
63739         * tests/test-closein.c (main): Don't assume stdin can be inherited
63740         closed on all systems.
63741         * tests/test-closein.sh: Likewise.
63742         Reported by Piotr Tarnowski.
63743
63744 2007-09-28  Jim Meyering  <jim@meyering.net>
63745
63746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63747
63748 2007-09-27  Jim Meyering  <jim@meyering.net>
63749
63750         canonicalize: Avoid a false-positive cycle failure.
63751         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63752         Sort.  Remove cycle-check.
63753         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63754         not cycle-check.h.
63755         (seen_triple): New function.
63756         (canonicalize_filename_mode): Use it instead of cycle-check.
63757         * tests/test-canonicalize.c: Add a test for this bug.
63758         * tests/test-canonicalize.sh: Set up and run the test.
63759
63760         New module, file-set, from coreutils.
63761         * modules/file-set: Define it.
63762         * lib/file-set.c, lib/file-set.h: Implement.
63763
63764         New module, hash-triple, from coreutils.
63765         * modules/hash-triple: Define it.
63766         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63767
63768 2007-09-25  Eric Blake  <ebb9@byu.net>
63769
63770         Fix strerror on Interix.
63771         * lib/string_.h (strerror): Declare replacement.
63772         * doc/functions/strerror.texi (strerror): Document the Interix
63773         shortcoming.
63774         * modules/string (Makefile.am): Support new hooks.
63775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63776         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63777         gl_FUNC_STRERROR_SEPARATE.
63778         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63779         * lib/strerror.c (rpl_strerror): Provide replacement.
63780         * modules/strerror (Depends-on): Add string.
63781         (configure.ac): Detect use of module.
63782         * tests/test-strerror.c: New file.
63783         * modules/strerror-tests: New test module.
63784         * modules/argp (Depends-on): Add strerror.
63785         * modules/error (Depends-on): Likewise.
63786         Reported by Martin Koeppe.
63787
63788 2007-09-24  Bruno Haible  <bruno@clisp.org>
63789
63790         * README: Update git instructions.
63791
63792 2007-09-24  Eric Blake  <ebb9@byu.net>
63793
63794         Revert fpending breakage from 2007-09-08.
63795         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63796         __fpending.c.
63797
63798 2007-09-24  Jim Meyering  <jim@meyering.net>
63799
63800         filenamecat.c: Add a test.
63801         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63802         showing how the function works when DIR is the empty string.
63803
63804 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63805
63806         * tests/test-canonicalize.sh: Turn on executable bit.
63807
63808 2007-09-19  Eric Blake  <ebb9@byu.net>
63809
63810         * README: Update CVS instructions.
63811
63812 2007-09-18  Bruno Haible  <bruno@clisp.org>
63813
63814         * modules/areadlink: New file.
63815         * lib/areadlink.h (areadlink): New declaration.
63816         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63817
63818 2007-09-17  Jim Meyering  <jim@meyering.net>
63819
63820         * lib/savewd.c (ESTALE) [!defined]: Define.
63821         Reported to be required on Interix by Martin Koeppe.
63822
63823 2007-09-17  Bruno Haible  <bruno@clisp.org>
63824
63825         * gnulib-tool (func_version): Use $version.
63826
63827 2007-09-16  Bruno Haible  <bruno@clisp.org>
63828
63829         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63830         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63831         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63832         Reported by Greg Schafer <gschafer@zip.com.au>.
63833
63834 2007-09-15  Bruno Haible  <bruno@clisp.org>
63835
63836         * gnulib-tool (sed): Try a little harder to make bash understand the
63837         alias.
63838         Reported by Bruce Korb <bruce.korb@gmail.com>.
63839
63840 2007-09-13  Eric Blake  <ebb9@byu.net>
63841
63842         * ChangeLog: Remove conflict markers.
63843
63844 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63845
63846         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63847         Reported by Bruno Haible <bruno@clisp.org>.
63848
63849 2007-09-12  Bruno Haible  <bruno@clisp.org>
63850
63851         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63852         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63853         is not defined.
63854
63855 2007-09-12  Eric Blake  <ebb9@byu.net>
63856
63857         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63858         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63859         Autoconf definition.
63860         * modules/euidaccess (Depends-on): Add extensions, for
63861         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63862         * modules/fnmatch (Depends-on): Likewise.
63863         * modules/getaddrinfo (Depends-on): Likewise.
63864         * modules/getdelim (Depends-on): Likewise.
63865         * modules/getline (Depends-on): Likewise.
63866         * modules/getsubopt (Depends-on): Likewise.
63867         * modules/gettext (Depends-on): Likewise.
63868         * modules/group-member (Depends-on): Likewise.
63869         * modules/mbchar (Depends-on): Likewise.
63870         * modules/memmem (Depends-on): Likewise.
63871         * modules/mempcpy (Depends-on): Likewise.
63872         * modules/memrchr (Depends-on): Likewise.
63873         * modules/pagealign_alloc (Depends-on): Likewise.
63874         * modules/readutmp (Depends-on): Likewise.
63875         * modules/stpcpy (Depends-on): Likewise.
63876         * modules/stpncpy (Depends-on): Likewise.
63877         * modules/strchrnul (Depends-on): Likewise.
63878         * modules/strndup (Depends-on): Likewise.
63879         * modules/strsep (Depends-on): Likewise.
63880         * modules/strverscmp (Depends-on): Likewise.
63881         * modules/vasprintf (Depends-on): Likewise.
63882         * modules/wcwidth (Depends-on): Likewise.
63883         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63884         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63885         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63886         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63887         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63888         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63889         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63890         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63891         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63892         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63893         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63894         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63895         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63896         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63897         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63898         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63899         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63900         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63902         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63903         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63904         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63905         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63906         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63907         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63909         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63910         so that lock.m4 can be used in gettext without extensions module.
63911
63912 2007-09-11  Bruno Haible  <bruno@clisp.org>
63913
63914         * m4/isc-posix.m4: Remove file.
63915         Suggested by Eric Blake.
63916
63917 2007-09-11  Eric Blake  <ebb9@byu.net>
63918
63919         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63920
63921 2007-09-10  Bruno Haible  <bruno@clisp.org>
63922
63923         * posix-modules: Fix typo in error message.
63924         Reported by Matt <mkraai@beckman.com>.
63925
63926 2007-09-09  Bruno Haible  <bruno@clisp.org>
63927
63928         * doc/functions/getdelim.texi: Update list of platforms lacking the
63929         function.
63930         * doc/functions/getline.texi: Likewise.
63931
63932 2007-09-09  Jim Meyering  <jim@meyering.net>
63933
63934         * lib/hash.c (hash_initialize): Detect calloc failure.
63935         Reported by Bruno Haible.
63936
63937 2007-09-09  Bruno Haible  <bruno@clisp.org>
63938
63939         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63940         malloc or realloc fails.
63941
63942 2007-09-09  Bruno Haible  <bruno@clisp.org>
63943
63944         * modules/getcwd (Depends-on): Add malloc-posix.
63945         * modules/glob (Depends-on): Likewise.
63946         * modules/putenv (Depends-on): Likewise.
63947         * modules/strdup (Depends-on): Likewise.
63948         * modules/getdelim (Depends-on): Add realloc-posix.
63949         * modules/read-file (Depends-on): Likewise.
63950
63951 2007-09-09  Bruno Haible  <bruno@clisp.org>
63952
63953         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63954         (gl_FUNC_MALLOC_POSIX): Require it.
63955         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63956         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63957         * modules/realloc (Files): Add m4/malloc.m4.
63958         * modules/calloc (Files): Likewise.
63959
63960 2007-09-09  Bruno Haible  <bruno@clisp.org>
63961
63962         * modules/malloc-posix: New file.
63963         * modules/malloc (Depends-on): Add malloc-posix.
63964         * lib/malloc.c: Include errno.h.
63965         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63966         and a POSIX-compatible malloc into a single function. Set ENOMEM
63967         when returning NULL.
63968         * m4/malloc.m4: New file.
63969         * doc/functions/malloc.texi: Mention the malloc-posix module.
63970         * lib/stdlib_.h (malloc): New declaration.
63971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63972         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63973         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63974         and HAVE_MALLOC_POSIX.
63975
63976 2007-09-09  Bruno Haible  <bruno@clisp.org>
63977
63978         * modules/realloc-posix: New file.
63979         * modules/realloc (Depends-on): Add realloc-posix.
63980         * lib/realloc.c: Include errno.h.
63981         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63982         and a POSIX-compatible realloc into a single function. Set ENOMEM
63983         when returning NULL.
63984         * m4/realloc.m4: New file.
63985         * doc/functions/realloc.texi: Mention the realloc-posix module.
63986         * lib/stdlib_.h (realloc): New declaration.
63987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63988         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63989         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63990         and HAVE_REALLOC_POSIX.
63991
63992 2007-09-09  Bruno Haible  <bruno@clisp.org>
63993
63994         * modules/calloc-posix: New file.
63995         * modules/calloc (Depends-on): Add calloc-posix.
63996         * lib/calloc.c: Include errno.h.
63997         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63998         and a POSIX-compatible calloc into a single function. Set ENOMEM
63999         when returning NULL.
64000         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
64001         * doc/functions/calloc.texi: Mention the calloc-posix module.
64002         * lib/stdlib_.h (calloc): New declaration.
64003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64004         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
64005         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
64006         and HAVE_CALLOC_POSIX.
64007
64008 2007-09-09  Bruno Haible  <bruno@clisp.org>
64009
64010         Allow for modules to show an arbitrary notice.
64011         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64012         * gnulib-tool: New option --extract-notice.
64013         (func_usage): Document it.
64014         (sed_extract_prog): Update.
64015         (func_get_notice): New function.
64016         (func_modules_notice): New function.
64017         (func_import, func_create_testdir): Invoke it.
64018         Suggested by Jim Meyering.
64019
64020 2007-09-09  Bruno Haible  <bruno@clisp.org>
64021
64022         * gnulib-tool: New options --verbose, --quiet.
64023         (func_usage): Document them.
64024         (verbose): New variable.
64025         (func_execute_command): New function.
64026         (func_import): Don't show the module list and the file list if
64027         $verbose < 0.
64028         (func_create_testdir): Likewise. Use func_execute_command.
64029         (func_create_megatestdir): Use func_execute_command.
64030
64031 2007-09-08  Bruno Haible  <bruno@clisp.org>
64032
64033         * gnulib-tool (func_import): Prefer rsync over wget when available,
64034         for fetching the PO files.
64035
64036 2007-09-08  Bruno Haible  <bruno@clisp.org>
64037
64038         * posix-modules: New file. Portions copied from gnulib-tool.
64039         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64040
64041 2007-09-08  Jim Meyering  <jim@meyering.net>
64042
64043         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64044         * lib/fpending.h: Rename from __fpending.h.
64045         * lib/fpending.c: Rename from __fpending.c.
64046         Include "fpending.h", not "__fpending.h".
64047         * lib/__fpending.h, lib/__fpending.c: Remove files.
64048         * modules/fpending (Files): Reflect new file names.
64049         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64050
64051 2007-09-08  Bruno Haible  <bruno@clisp.org>
64052
64053         * m4/inttypes-h.m4: Remove stub file.
64054
64055 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64056
64057         * doc/headers/stdint.texi: Discuss #include_next issue.
64058
64059 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64060
64061         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64062
64063 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64064
64065         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64066         in variable name.
64067
64068 2007-09-03  Jim Meyering  <jim@meyering.net>
64069
64070         New module: git-version-gen.
64071         * modules/git-version-gen: New file.
64072
64073         Import changes from coreutils for bootstrap script.
64074
64075         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64076
64077         bootstrap: uses rsync to download the .po files
64078         * build-aux/bootstrap (po_download_command_format): New global.
64079         (download_po_files): Use rsync.
64080         (update_po_files): Don't remove .po files after download,
64081         so future rsync runs can take advantage of the copies.
64082
64083         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64084
64085         Solve the unnecessary-.po-file-regeneration problem once and for all.
64086         * build-aux/bootstrap (download_po_files): New function, renamed from
64087         get_translations.  Now, downloads, but doesn't update LINGUAS.
64088         (update_po_files): New function.
64089
64090         bootstrap: Ignore more.
64091         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64092         uniwidth to e.g., lib/.gitignore.
64093         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64094
64095         * build-aux/bootstrap: New setting: vc_ignore.
64096         (insert_sorted_if_absent): Create $file if absent.
64097         Adapt to new, possibly empty, list: $vc_ignore.
64098
64099         bootstrap: generate more ignorable names
64100         * build-aux/bootstrap (slurp): When generating ignorable names,
64101         also map .sin to .sed, .gperf to .c, and .y to .c.
64102
64103 2007-09-03  Jim Meyering  <jim@meyering.net>
64104
64105         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64106         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64107
64108 2007-09-02  Bruno Haible  <bruno@clisp.org>
64109
64110         Fix mis-recognition of 'mcs' on QNX 6.
64111         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64112         output contains the string "Mono".
64113         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64114         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64115
64116 2007-09-01  Bruno Haible  <bruno@clisp.org>
64117
64118         Fix collision between uniwidth/* and linebreak modules.
64119         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64120         u32_width): Remove declarations.
64121         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64122         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64123         streq3, streq2, streq1, streq0): Remove functions.
64124         (STREQ): Remove macro.
64125         (is_cjk_encoding): Remove function.
64126         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64127         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64128         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64129         * NEWS: Document the change.
64130
64131 2007-09-01  Bruno Haible  <bruno@clisp.org>
64132
64133         * lib/streq.h: Add double-inclusion guard.
64134
64135 2007-09-01  Karl Berry  <karl@gnu.org>
64136
64137         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64138
64139 2007-08-28  Jim Meyering  <jim@meyering.net>
64140
64141         Rename mreadlink_with_size to areadlink_with_size.
64142         * NEWS: Document the change.
64143         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64144         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64145         * lib/mreadlink.h: Rename this to...
64146         * lib/areadlink.h: ...this.
64147         * modules/mreadlink-with-size: Rename this to...
64148         * modules/areadlink-with-size: ...this.
64149         * lib/canonicalize.c: Reflect the renaming.
64150         * modules/canonicalize: Likewise.
64151
64152 2007-08-26  Bruno Haible  <bruno@clisp.org>
64153
64154         * gnulib-tool (func_import): When deciding which files to remove,
64155         consider also dangling symbolic links.
64156         Reported by Eric Blake.
64157
64158 2007-08-26  Bruno Haible  <bruno@clisp.org>
64159
64160         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64161
64162 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64163
64164         * lib/readline.c: Don't include getline.h, the prototype is now
64165         found in stdio.h.
64166
64167 2007-08-23  Jim Meyering  <jim@meyering.net>
64168
64169         Getdelim touchup.
64170         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64171         around the funlockfile call, since funlockfile never sets errno.
64172         Don't set errno upon failed realloc.
64173
64174 2007-08-22  Eric Blake  <ebb9@byu.net>
64175
64176         Getline touchups.
64177         * lib/getdelim.c (getdelim): Revert regression that required *n to
64178         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64180         getdelim, rather than whether implementation is missing.
64181         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64182         * lib/stdio_.h (getline): Also declare if replacement is
64183         required.
64184         * doc/functions/getdelim.texi: New file.
64185         * doc/functions/getline.texi: Likewise.
64186         * doc/gnulib.texi (Function Substitutes): Add new files.
64187         Reported by Bruno Haible.
64188
64189 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64190
64191         * users.txt: Add Guile.
64192
64193 2007-08-22  Eric Blake  <ebb9@byu.net>
64194
64195         * tests/test-getdelim.c (main): Use remove, not unlink.
64196         * tests/test-getline.c (main): Likewise.
64197
64198         Move getline and getdelim into stdio.h, per POSIX 200x.
64199         * modules/getline (Files): Remove getline.h.
64200         (Depends-on): Add stdio.
64201         (configure.ac): Add module indicator.
64202         * modules/getdelim (Files): Remove getdelim.h.
64203         (Depends-on): Add stdio.
64204         (configure.ac): Add module indicator.
64205         * modules/stdio (Makefile.am): Work with new indicators.
64206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64207         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64208         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64209         * lib/getdelim.h: Delete.
64210         * lib/getline.h: Delete.
64211         * lib/stdio_.h (getdelim, getline): Declare.
64212         * modules/getdelim-tests: New module.
64213         * modules/getline-tests: Likewise.
64214         * tests/test-getdelim.c: New file.
64215         * tests/test-getline.c: Likewise.
64216         * NEWS: Document the change.
64217         * lib/getline.c: Update choice of header.
64218         * lib/csharpcomp.c: Likewise.
64219         * lib/getpass.c: Likewise.
64220         * lib/javacomp.c: Likewise.
64221         * lib/javaversion.c: Likewise.
64222         * lib/yesno.c: Likewise.
64223         * lib/getdelim.c: Likewise.
64224         (getdelim): Set errno on failure, and avoid memory leak.
64225
64226 2007-08-19  Bruno Haible  <bruno@clisp.org>
64227
64228         * modules/closein (Depends-on): Add freadahead.
64229         * lib/closein.c: Include freadahead.h.
64230         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64231         is zero.
64232
64233 2007-08-19  Bruno Haible  <bruno@clisp.org>
64234
64235         * modules/freadahead-tests: New file.
64236         * tests/test-freadahead.sh: New file.
64237         * tests/test-freadahead.c: New file.
64238
64239         * modules/freadahead: New file.
64240         * lib/freadahead.h: New file.
64241         * lib/freadahead.c: New file.
64242         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64243         fbufmode, fpurge, freadable, fwritable.
64244
64245 2007-08-19  Eric Blake  <ebb9@byu.net>
64246
64247         Test yesno in combination with closein.
64248         * lib/yesno.c (yesno): Document use of stdin.
64249         * modules/yesno-tests (Files): New module.
64250         * tests/test-yesno.c (main): New file.
64251         * tests/test-yesno.sh: Likewise.
64252
64253 2007-08-19  Bruno Haible  <bruno@clisp.org>
64254
64255         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64256         * lib/fseeko.c (rpl_fseeko): Likewise.
64257         * lib/fseterr.c (fseterr): Likewise.
64258
64259 2007-08-19  Bruno Haible  <bruno@clisp.org>
64260
64261         * tests/test-lseek.c (main): Disable a test for BeOS.
64262         * doc/functions/lseek.texi: Document the BeOS bug.
64263
64264 2007-08-19  Bruno Haible  <bruno@clisp.org>
64265             Eric Blake  <ebb9@byu.net>
64266
64267         * lib/lseek.c: Include <sys/stat.h>.
64268         (rpl_lseek): Add workaround code also for Unix platforms.
64269         Needed for BeOS.
64270         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64271         * doc/functions/lseek.texi: Document BeOS definiency.
64272
64273 2007-08-18  Bruno Haible  <bruno@clisp.org>
64274
64275         * modules/fstrcmp-tests: New file.
64276         * tests/test-fstrcmp.c: New file.
64277
64278 2007-08-18  Bruno Haible  <bruno@clisp.org>
64279
64280         * modules/fstrcmp: New file, from GNU gettext with modifications.
64281         * lib/fstrcmp.h: New file, from GNU gettext.
64282         * lib/fstrcmp.c: New file, from GNU gettext.
64283         * MODULES.html.sh (String handling): Add fstrcmp.
64284
64285 2007-08-18  Bruno Haible  <bruno@clisp.org>
64286
64287         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64288         'bool'.
64289         (diag, compareseq): Remove const from the ctxt argument.
64290         (USE_HEURISTIC): Undefine at the end.
64291
64292 2007-08-18  Jim Meyering  <jim@meyering.net>
64293
64294         New file: lib/idcache.h
64295         * NEWS: Mention the addition.
64296         * modules/idcache (Files): Add lib/idcache.h
64297         * lib/idcache.c: Include "idcache.h".
64298         Don't include <sys/types.h>.
64299         Add a FIXME comment.
64300         Move file-scoped "static" declarations to the top.
64301         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64302
64303 2007-08-17  Bruno Haible  <bruno@clisp.org>
64304         and Paul Eggert  <eggert@cs.ucla.edu>
64305
64306         * MODULES.html.sh: Add diffseq.
64307         * modules/diffseq: New file.
64308         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64309         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64310
64311 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64312
64313         Import changes from coreutils for bootstrap script.
64314
64315         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64316
64317         * build-aux/bootstrap (slurp): Work even in environments where
64318         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64319         current code does not slurp files whose names start with ".", and
64320         this looks like it might be a troublesome area.
64321
64322         2007-07-11  Jim Meyering  <jim@meyering.net>
64323
64324         If there's a GPL vN copyright comment, require that N == 3.
64325
64326         2007-07-08  Jim Meyering  <jim@meyering.net>
64327
64328         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64329         * build-aux/bootstrap (mam_template): Move definition out of loop.
64330
64331         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64332
64333         * build-aux/bootstrap (symlink_to_dir): Rename function from
64334         symlink_to_gnulib.  Add a directory parameter.  Update all
64335         callers.
64336         (cp_mark_as_generated): Also check for -- and link to -- files in
64337         gl/.
64338
64339         2007-07-08  Jim Meyering  <jim@meyering.net>
64340
64341         Adapt to deeper hierarchy in gnulib.
64342         * build-aux/bootstrap (symlink_to_dir): If the destination
64343         directory doesn't exist, create it. This is required at least for
64344         "lib/uniwidth/cjk.h".
64345
64346         2007-05-15  Jim Meyering  <jim@meyering.net>
64347
64348         * build-aux/bootstrap: Now that generated Makefile.am files
64349         are no longer under version control, they must be created at
64350         bootstrap time.
64351
64352 2007-08-14  Ben Pfaff  <blp@gnu.org>
64353
64354         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64355
64356 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64357
64358         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64359         given the changes below.
64360         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64361         even on hosts that have padding bits beyond the supported 64.
64362
64363 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64364
64365         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64366         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64367         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64368         depends on it.
64369         (xstrtol_error): Remove.
64370         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64371         but with a different signature.
64372         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64373         * lib/xstrtol-error.c: Include exitfail.h.
64374         (xstrtol_fatal): New function, with a different signature from the
64375         old xstrtol_error, so that the caller need not worry about passing
64376         in an exit status, or about storage management of the option argument.
64377         (xstrtol_error): Now a static function.  Redo signature to
64378         implement xstrtol_fatal.  Output the correct number of hyphens in
64379         front of the option so that the caller need not worry about
64380         storage management.
64381         (N_): New macro.
64382         (_): Remove; not used now.
64383         * modules/xstrtol: Depend on getopt.
64384         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64385         of old STRTOL_FATAL_ERROR macro.
64386         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64387         of test program.
64388         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64389         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64390
64391 2007-08-08  Eric Blake  <ebb9@byu.net>
64392
64393         * lib/xstrtol-error.c: Add missing include.
64394
64395         Move xstrtol messages into gnulib domain, when --pobase is used.
64396         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64397         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64398         * modules/xstrtol (Files): Distribute new file.
64399         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64400         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64401         * tests/test-xstrtol.c: ...into new file.
64402         * tests/test-xstrtoul.c: Also test xstrtoul.
64403         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64404         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64405         * tests/test-xstrtol.sh: Drive the tests.
64406         * tests/test-xstrtoimax.sh: Likewise.
64407         * tests/test-xstrtoumax.sh: Likewise.
64408         * modules/xstrtol-tests: New module.
64409         * modules/xstrtoimax-tests: Likewise.
64410         * modules/xstrtoumax-tests: Likewise.
64411
64412 2007-08-08  Jim Meyering  <jim@meyering.net>
64413
64414         New function: mfile_name_concat.
64415         * lib/filenamecat.c (mfile_name_concat): New function, just like
64416         file_name_concat, but return NULL upon failure rather than exiting
64417         with a diagnostic.
64418         * lib/filenamecat.h: Declare it.
64419
64420 2007-08-07  Bruno Haible  <bruno@clisp.org>
64421
64422         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64423         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64424         warning from gcc.
64425         Reported by Eric Blake.
64426
64427 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64428
64429         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64430         * modules/crypto/arcfour (License): Likewise.
64431         * modules/crypto/des-tests (License): Likewise.
64432         * modules/crypto/gc-arctwo-tests (License): Likewise.
64433         * modules/crypto/gc-des-tests (License): Likewise.
64434         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64435         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64436         * modules/crypto/gc-md2-tests (License): Likewise.
64437         * modules/crypto/gc-md4-tests (License): Likewise.
64438         * modules/crypto/gc-md5-tests (License): Likewise.
64439         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64440         * modules/crypto/gc-rijndael-tests (License): Likewise.
64441         * modules/crypto/gc-sha1-tests (License): Likewise.
64442         * modules/crypto/gc-tests (License): Likewise.
64443         * modules/crypto/hmac-md5 (License): Likewise.
64444         * modules/crypto/hmac-sha1 (License): Likewise.
64445         * modules/crypto/md2-tests (License): Likewise.
64446         * modules/crypto/md4-tests (License): Likewise.
64447         * modules/crypto/md5 (License): Likewise.
64448         * modules/crypto/rijndael (License): Likewise.
64449         * modules/crypto/sha1 (License): Likewise.
64450         * modules/memxor (License): Likewise.
64451
64452 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64453         and Bruno Haible  <bruno@clisp.org>
64454
64455         * NEWS: Describe interface changes to human, xstrtol.
64456         * lib/human.h: Include <xstrtol.h>.
64457         (human_options): Return enum strtol_error, not int.  Remove
64458         bool arg; take int * instead.
64459         * lib/human.c: Don't include "gettext.h".
64460         (_): Remove; no longer used.
64461         Don't include <xstrtol.h>, since human.h does it.
64462         (human_options): Adjust to abovementioned interface changes.
64463         Do not report error to stderr; that's now the caller's
64464         responsibility.
64465         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64466         interface change.
64467         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64468         Str, Argument_type_string.  All uses changed.  Put " argument"
64469         in diagnostics to make them clearer.  Change wording of suffix
64470         message for clarity.
64471         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64472         Argument_type_string.
64473         (STRTOL_FATAL_WARN): Remove; no longer used.
64474         * modules/human (Depends-on): Remove gettext-h.
64475
64476 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64477
64478         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64479
64480 2007-07-31  Bruno Haible  <bruno@clisp.org>
64481
64482         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64483         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64484         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64485
64486 2007-07-31  Bruno Haible  <bruno@clisp.org>
64487
64488         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64489         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64490
64491 2007-07-30  Bruno Haible  <bruno@clisp.org>
64492
64493         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64494         * modules/c-ctype (License): Likewise.
64495         * modules/c-strcase (License): Likewise.
64496         * modules/check-version (License): Likewise.
64497         * modules/iconv (License): Likewise.
64498         * modules/iconv_open (License): Likewise.
64499         * modules/read-file (License): Likewise.
64500         * modules/striconv (License): Likewise.
64501         * modules/strverscmp (License): Likewise.
64502         * modules/vasprintf (License): Likewise.
64503         * modules/crypto/des (License): Likewise.
64504         * modules/crypto/gc (License): Likewise.
64505         * modules/crypto/gc-arcfour (License): Likewise.
64506         * modules/crypto/gc-arctwo (License): Likewise.
64507         * modules/crypto/gc-des (License): Likewise.
64508         * modules/crypto/gc-hmac-md5 (License): Likewise.
64509         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64510         * modules/crypto/gc-md2 (License): Likewise.
64511         * modules/crypto/gc-md4 (License): Likewise.
64512         * modules/crypto/gc-md5 (License): Likewise.
64513         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64514         * modules/crypto/gc-random (License): Likewise.
64515         * modules/crypto/gc-rijndael (License): Likewise.
64516         * modules/crypto/gc-sha1 (License): Likewise.
64517         * modules/crypto/md2 (License): Likewise.
64518         * modules/crypto/md4 (License): Likewise.
64519
64520 2007-07-30  Jim Meyering  <jim@meyering.net>
64521
64522         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64523         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64524         it has valid stat data.  This bug would cause du not to count the
64525         sizes of inaccessible directories.
64526         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64527         in <http://bugzilla.redhat.com/250077>.
64528
64529 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64530             Bruno Haible  <bruno@clisp.org>
64531
64532         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64533         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64534         #include_next, gives a diagnostic about it, but reports no error in
64535         the exit code.
64536         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64537
64538 2007-07-24  Ben Pfaff  <blp@gnu.org>
64539
64540         Improve name: "count-one-bits" is better than "popcount".
64541         * MODULES.html.sh: Update name.
64542         * lib/popcount.h: Renamed lib/count-one-bits.h.
64543         (popcount): Renamed count_one_bits.
64544         (popcountl): Renamed count_one_bits_l.
64545         (popcountll): Renamed count_one_bits_ll.
64546         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64547         * modules/popcount: Renamed module/count-one-bits.
64548         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64549         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64550
64551 2007-07-23  Ben Pfaff  <blp@gnu.org>
64552
64553         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64554         better code generation, and add U to large constants to avoid
64555         warnings, in non-GCC case.
64556         Suggested by Bruno Haible.
64557
64558 2007-07-23  Ben Pfaff  <blp@gnu.org>
64559
64560         * lib/popcount.h: Use verify_true instead of if...abort.
64561         * modules/popcount: Depend on verify module.
64562         Suggested by Jim Meyering.
64563
64564 2007-07-23  Bruno Haible  <bruno@clisp.org>
64565
64566         * gnulib-tool (func_import): Create a .cvsignore file also when the
64567         directory is not yet in CVS but the toplevel directory is. When
64568         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64569         Reported by Karl Berry.
64570
64571 2007-07-22  Ben Pfaff  <blp@gnu.org>
64572
64573         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64574         case.
64575         Suggested by Eric Blake.
64576
64577 2007-07-22  Ben Pfaff  <blp@gnu.org>
64578
64579         New module: popcount.
64580         * MODULES.html.sh: Add popcount.
64581         * modules/popcount: New file.
64582         * modules/popcount-tests: New file.
64583         * tests/test-popcount.c: New file.
64584         * lib/popcount.h: New file.
64585         * m4/popcount.m4: New file.
64586
64587 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64588
64589         * build-aux/announce-gen: Update to GPLv3.
64590
64591         * build-aux/config.guess: Update from config.
64592
64593 2007-07-21  Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64596         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64597
64598 2007-07-20  Jim Meyering  <jim@meyering.net>
64599
64600         * check-module: Diagnose a self-dependency.
64601
64602 2007-07-19  Bruno Haible  <bruno@clisp.org>
64603
64604         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64605         empty.
64606         Reported by Eric Blake.
64607
64608 2007-07-18  Bruno Haible  <bruno@clisp.org>
64609
64610         * gnulib-tool: New options --po-base, --po-domain.
64611         (func_usage): Document them.
64612         (pobase, po_domain): New variables.
64613         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64614         DEFAULT_TEXT_DOMAIN.
64615         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64616         (func_import): Consider pobase and po_domain. Create a po/ directory.
64617         (func_create_testdir): Set pobase and po_domain to empty.
64618         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64619         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64620
64621 2007-07-18  Bruno Haible  <bruno@clisp.org>
64622
64623         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64624         EXTRA_DIST augmentation for files in build-aux/.
64625
64626 2007-07-16  Bruno Haible  <bruno@clisp.org>
64627
64628         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64629         * modules/getdelim (License): Likewise.
64630
64631 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64632
64633         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64634         * modules/d-type (License): Likewise.
64635         * modules/extensions (License): Likewise.
64636         * modules/fnmatch (License): Likewise.
64637         * modules/fseeko (License): Likewise.
64638         * modules/getaddrinfo (License): Likewise.
64639         * modules/getline (License): Likewise.
64640         * modules/getlogin_r (License): Likewise.
64641         * modules/getpass (License): Likewise.
64642         * modules/gettimeofday (License): Likewise.
64643         * modules/glob (License): Likewise.
64644         * modules/inet_ntop (License): Likewise.
64645         * modules/malloc (License): Likewise.
64646         * modules/malloca (License): Likewise.
64647         * modules/memmem (License): Likewise.
64648         * modules/mempcpy (License): Likewise.
64649         * modules/memset (License): Likewise.
64650         * modules/minmax (License): Likewise.
64651         * modules/mktime (License): Likewise.
64652         * modules/netinet_in (License): Likewise.
64653         * modules/pathmax (License): Likewise.
64654         * modules/poll (License): Likewise.
64655         * modules/regex (License): Likewise.
64656         * modules/snprintf (License): Likewise.
64657         * modules/stdbool (License): Likewise.
64658         * modules/stdint (License): Likewise.
64659         * modules/stdio (License): Likewise.
64660         * modules/strcase (License): Likewise.
64661         * modules/strcasestr (License): Likewise.
64662         * modules/strdup (License): Likewise.
64663         * modules/string (License): Likewise.
64664         * modules/strndup (License): Likewise.
64665         * modules/strnlen (License): Likewise.
64666         * modules/strpbrk (License): Likewise.
64667         * modules/strptime (License): Likewise.
64668         * modules/strsep (License): Likewise.
64669         * modules/sys_select (License): Likewise.
64670         * modules/sys_socket (License): Likewise.
64671         * modules/sys_stat (License): Likewise.
64672         * modules/sys_time (License): Likewise.
64673         * modules/time (License): Likewise.
64674         * modules/time_r (License): Likewise.
64675         * modules/timegm (License): Likewise.
64676         * modules/unistd (License): Likewise.
64677         * modules/vsnprintf (License): Likewise.
64678         * modules/wctype (License): Likewise.
64679
64680 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64681
64682         * modules/argz (License): LGPLv2+.
64683
64684 2007-07-15  Karl Berry  <karl@gnu.org>
64685
64686         * doc/gnulib.texi: revise node structure per new fdl.texi.
64687
64688 2007-07-14  Bruno Haible  <bruno@clisp.org>
64689
64690         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64691         the output file.
64692         * lib/uniname/uninames.h: Regenerated.
64693
64694 2007-07-14  Karl Berry  <karl@gnu.org>
64695
64696         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64697         omitting sectioning and index commands.
64698
64699 2007-07-13  Bruno Haible  <bruno@clisp.org>
64700
64701         New gnulib-tool option --more-symlinks.
64702         * gnulib-tool (func_usage): Document --more-symlinks.
64703         (do_copyrights): New variable.
64704         Recognize option --more-symlinks.
64705         (func_import): Don't add a copyright notice transform to
64706         sed_transform_lib_file if do_copyrights is empty.
64707
64708 2007-07-13  Bruno Haible  <bruno@clisp.org>
64709
64710         * lib/vasnprintf.c (decimal_point_char): Define also if
64711         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64712         && !NEED_PRINTF_DIRECTIVE_A.
64713         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64714         Gary V. Vaughan <gary@gnu.org>.
64715
64716 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64717
64718         * lib/inttypes_.h: Undo previous change, since it was fixed
64719         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64720
64721 2007-07-13  Bruno Haible  <bruno@clisp.org>
64722
64723         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64724         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64725
64726 2007-07-13  Jim Meyering  <jim@meyering.net>
64727
64728         df: Don't fail for Tru64's "file-on-file mount".
64729         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64730         so we fall through and use statfs instead.  Details here:
64731         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64732         Reported by Albert Chin.
64733
64734 2007-07-13  Bruno Haible  <bruno@clisp.org>
64735
64736         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64737         * modules/configmake (License): Likewise.
64738         * modules/gettext (License): Likewise.
64739         * modules/gettext-h (License): Likewise.
64740         * modules/include_next (License): Likewise.
64741         * modules/link-warning (License): Likewise.
64742         * modules/localcharset (License): Likewise.
64743         * modules/localename (License): Likewise.
64744         * modules/lock (License): Likewise.
64745         * modules/relocatable-lib-lgpl (License): Likewise.
64746         * modules/size_max (License): Likewise.
64747         * modules/vasnprintf (License): Likewise.
64748         * modules/wchar (License): Likewise.
64749         * modules/xsize (License): Likewise.
64750
64751 2007-07-13  Bruno Haible  <bruno@clisp.org>
64752
64753         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64754         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64755
64756 2007-07-12  Bruno Haible  <bruno@clisp.org>
64757
64758         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64759         in the modules files.
64760
64761 2007-07-11  Karl Berry  <karl@gnu.org>
64762
64763         * MODULES.html.sh (func_module): use
64764          sed -e '\|^'"${includefile}"'$|d'
64765          instead of /.../d, to avoid errors on $includefile's containing /.
64766
64767 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64768
64769         * gnulib-tool (func_import): Avoid duplication of --avoid
64770         statements
64771         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64772         names to `_' in variable names.
64773
64774 2007-07-10  Eric Blake  <ebb9@byu.net>
64775
64776         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64777         * NEWS: Document this change.
64778
64779 2007-07-08  Bruno Haible  <bruno@clisp.org>
64780
64781         Update to Unicode 5.0.
64782         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64783         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64784         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64785         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64786         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64787         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64788         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64789         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64790         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64791         U+10A3F, U+1D242..U+1D244.
64792         (nonspacing_table_ind): Update.
64793         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64794         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64795
64796 2007-07-08  Bruno Haible  <bruno@clisp.org>
64797
64798         Update to Unicode 5.0.
64799         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64800         code transform. Extend the name index field of unicode_name_to_code and
64801         unicode_code_to_name from 16 to 24 bits.
64802         * lib/uniname/uniname.c (unicode_character_name,
64803         unicode_name_character): Add the range 0x12xxx to the code transform.
64804         * lib/uniname/uninames.h: Regenerated.
64805         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64806
64807 2007-07-07  Bruno Haible  <bruno@clisp.org>
64808
64809         * modules/wcwidth-tests: New file.
64810         * tests/test-wcwidth.c: New file.
64811
64812         Work around MacOS X wcwidth() bug.
64813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64814         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64815         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64816         original wcwidth in non-UTF-8 locales.
64817         * modules/wcwidth (Depends-on): Add localcharset, streq,
64818         uniwidth/width.
64819         * doc/functions/wcwidth.texi: Update.
64820
64821 2007-07-07  Bruno Haible  <bruno@clisp.org>
64822
64823         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64824         (wcwidth): New declaration.
64825         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64826         macros.
64827         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64828         here. Prepare for creating <wchar.h> unconditionally.
64829         * modules/wchar (Depends-on): Add link-warning.
64830         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64831         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64832         * lib/wcwidth.h: Remove file.
64833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64834         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64835         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64836         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64837         (Include): Replace wcwidth.h with <wchar.h>.
64838         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64839         * lib/mbchar.h: Don't include wcwidth.h.
64840         * lib/mbswidth.c: Likewise.
64841         * NEWS: Mention the change.
64842
64843 2007-07-07  Bruno Haible  <bruno@clisp.org>
64844
64845         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64846         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64847         definition with an external declaration.
64848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64849         defined as a function. Remove AC_C_INLINE requirement.
64850         * modules/wcwidth (Files): Add lib/wcwidth.c.
64851         (Makefile.am): Remove redundant statement.
64852
64853 2007-07-07  Bruno Haible  <bruno@clisp.org>
64854
64855         * MODULES.html.sh (Unicode string functions): Add the new modules.
64856
64857         * tests/uniwidth/test-u32-strwidth.c: New file.
64858         * modules/uniwidth/u32-strwidth-tests: New file.
64859
64860         * lib/uniwidth/u32-strwidth.c: New file.
64861         * modules/uniwidth/u32-strwidth: New file.
64862
64863         * tests/uniwidth/test-u16-strwidth.c: New file.
64864         * modules/uniwidth/u16-strwidth-tests: New file.
64865
64866         * lib/uniwidth/u16-strwidth.c: New file.
64867         * modules/uniwidth/u16-strwidth: New file.
64868
64869         * tests/uniwidth/test-u8-strwidth.c: New file.
64870         * modules/uniwidth/u8-strwidth-tests: New file.
64871
64872         * lib/uniwidth/u8-strwidth.c: New file.
64873         * modules/uniwidth/u8-strwidth: New file.
64874
64875         * tests/uniwidth/test-u32-width.c: New file.
64876         * modules/uniwidth/u32-width-tests: New file.
64877
64878         * lib/uniwidth/u32-width.c: New file.
64879         * modules/uniwidth/u32-width: New file.
64880
64881         * tests/uniwidth/test-u16-width.c: New file.
64882         * modules/uniwidth/u16-width-tests: New file.
64883
64884         * lib/uniwidth/u16-width.c: New file.
64885         * modules/uniwidth/u16-width: New file.
64886
64887         * tests/uniwidth/test-u8-width.c: New file.
64888         * modules/uniwidth/u8-width-tests: New file.
64889
64890         * lib/uniwidth/u8-width.c: New file.
64891         * modules/uniwidth/u8-width: New file.
64892
64893         * tests/uniwidth/test-uc_width.c: New file.
64894         * modules/uniwidth/width-tests: New file.
64895
64896         * lib/uniwidth/width.c: New file, from GNU libiconv.
64897         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64898         * modules/uniwidth/width: New file.
64899
64900         * lib/uniwidth.h: New file, from GNU libiconv.
64901         * modules/uniwidth/base: New file.
64902
64903 2007-07-07  Bruno Haible  <bruno@clisp.org>
64904
64905         * lib/uniname.h: New file, from GNU gettext.
64906         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64907         * lib/uniname/uninames.h: New file, from GNU gettext.
64908         * lib/uniname/uniname.c: New file, from GNU gettext.
64909         * tests/uniname/test-uninames.sh: New file.
64910         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64911         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64912         * modules/uniname/base: New file.
64913         * modules/uniname/uniname: New file.
64914         * modules/uniname/uniname-tests: New file.
64915         * MODULES.html.sh (Unicode string functions): Add the new modules.
64916
64917 2007-07-06  Bruno Haible  <bruno@clisp.org>
64918
64919         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64920
64921 2007-07-06  Bruno Haible  <bruno@clisp.org>
64922
64923         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64924         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64925         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64926         include <sys/time.h>.
64927         Reported by Eric Blake.
64928
64929 2007-07-06  Eric Blake  <ebb9@byu.net>
64930
64931         Fix testing canonicalize on cygwin.
64932         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64933         Revert patch from 2007-06-19.
64934         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64935         canonicalize module is also in use.
64936         * tests/test-canonicalize.c: New file.
64937         * tests/test-canonicalize.sh: Likewise.
64938         * modules/canonicalize-tests: Likewise.
64939
64940 2007-07-06  Jim Meyering  <jim@meyering.net>
64941
64942         * lib/getugroups.c (getugroups): Detect getgrent failure.
64943         Adjust comment to reflect reality: this function may return -1.
64944
64945 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64946
64947         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64948         the new TP address.
64949         (usage): Fix typo
64950         (gnulib_mk): New variable.
64951
64952 2007-07-05  Jim Meyering  <jim@meyering.net>
64953
64954         Don't let endgrent clobber errno, no matter how improbable.
64955         * lib/getugroups.c (getugroups): Save and restore errno around
64956         endgrent call.
64957
64958         Close the group DB even when failing with 2^31 or more members.
64959         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64960
64961 2007-07-04  Jim Meyering  <jim@meyering.net>
64962
64963         * lib/getugroups.h: New file.
64964         * lib/getugroups.c: Include "getugroups.h".
64965         Remove uses of "register" keyword.
64966         Move local variable, "cp", down into scope where used.
64967         Give "username" parameter the "const" attribute.
64968         * modules/getugroups (Files): Add lib/getugroups.h
64969
64970 2007-07-04  Karl Berry  <karl@gnu.org>
64971
64972         * MODULES.html.sh (func_all_modules): Complete rename of
64973         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64974
64975 2007-07-02  Bruno Haible  <bruno@clisp.org>
64976
64977         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64978         mode, when inttypes.h comes from gnulib.
64979         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64980
64981 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64982
64983         * NEWS: Mention lgpl module name change.
64984
64985         * modules/lgpl-2.1: Renamed from lgpl.
64986
64987         * NEWS: Mention gpl module name change.
64988
64989         * modules/gpl-3.0: New file, based on gpl-2.0.
64990
64991         * modules/gpl-2.0: Renamed from gpl.
64992
64993         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64994         doc/gpl-2.0.texi.
64995
64996 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64997
64998         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64999         #define __STDC_LIMIT_MACROS temporarily while including
65000         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
65001         Problem reported by Joel E. Denny in
65002         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
65003
65004 2007-07-01  Bruno Haible  <bruno@clisp.org>
65005
65006         * lib/unistdio.h: New file.
65007         * lib/unistdio/u-asnprintf.h: New file.
65008         * lib/unistdio/u-asprintf.h: New file.
65009         * lib/unistdio/u-printf-args.c: New file.
65010         * lib/unistdio/u-printf-args.h: New file.
65011         * lib/unistdio/u-printf-parse.h: New file.
65012         * lib/unistdio/u-snprintf.h: New file.
65013         * lib/unistdio/u-sprintf.h: New file.
65014         * lib/unistdio/u-vasprintf.h: New file.
65015         * lib/unistdio/u-vsnprintf.h: New file.
65016         * lib/unistdio/u-vsprintf.h: New file.
65017         * lib/unistdio/ulc-asnprintf.c: New file.
65018         * lib/unistdio/ulc-asprintf.c: New file.
65019         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65020         * lib/unistdio/ulc-printf-parse.c: New file.
65021         * lib/unistdio/ulc-snprintf.c: New file.
65022         * lib/unistdio/ulc-sprintf.c: New file.
65023         * lib/unistdio/ulc-vasnprintf.c: New file.
65024         * lib/unistdio/ulc-vasprintf.c: New file.
65025         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65026         * lib/unistdio/ulc-vsnprintf.c: New file.
65027         * lib/unistdio/ulc-vsprintf.c: New file.
65028         * lib/unistdio/u8-asnprintf.c: New file.
65029         * lib/unistdio/u8-asprintf.c: New file.
65030         * lib/unistdio/u8-printf-parse.c: New file.
65031         * lib/unistdio/u8-snprintf.c: New file.
65032         * lib/unistdio/u8-sprintf.c: New file.
65033         * lib/unistdio/u8-vasnprintf.c: New file.
65034         * lib/unistdio/u8-vasprintf.c: New file.
65035         * lib/unistdio/u8-vsnprintf.c: New file.
65036         * lib/unistdio/u8-vsprintf.c: New file.
65037         * lib/unistdio/u8-u8-asnprintf.c: New file.
65038         * lib/unistdio/u8-u8-asprintf.c: New file.
65039         * lib/unistdio/u8-u8-snprintf.c: New file.
65040         * lib/unistdio/u8-u8-sprintf.c: New file.
65041         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65042         * lib/unistdio/u8-u8-vasprintf.c: New file.
65043         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65044         * lib/unistdio/u8-u8-vsprintf.c: New file.
65045         * lib/unistdio/u16-asnprintf.c: New file.
65046         * lib/unistdio/u16-asprintf.c: New file.
65047         * lib/unistdio/u16-printf-parse.c: New file.
65048         * lib/unistdio/u16-snprintf.c: New file.
65049         * lib/unistdio/u16-sprintf.c: New file.
65050         * lib/unistdio/u16-vasnprintf.c: New file.
65051         * lib/unistdio/u16-vasprintf.c: New file.
65052         * lib/unistdio/u16-vsnprintf.c: New file.
65053         * lib/unistdio/u16-vsprintf.c: New file.
65054         * lib/unistdio/u16-u16-asnprintf.c: New file.
65055         * lib/unistdio/u16-u16-asprintf.c: New file.
65056         * lib/unistdio/u16-u16-snprintf.c: New file.
65057         * lib/unistdio/u16-u16-sprintf.c: New file.
65058         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65059         * lib/unistdio/u16-u16-vasprintf.c: New file.
65060         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65061         * lib/unistdio/u16-u16-vsprintf.c: New file.
65062         * lib/unistdio/u32-asnprintf.c: New file.
65063         * lib/unistdio/u32-asprintf.c: New file.
65064         * lib/unistdio/u32-printf-parse.c: New file.
65065         * lib/unistdio/u32-snprintf.c: New file.
65066         * lib/unistdio/u32-sprintf.c: New file.
65067         * lib/unistdio/u32-vasnprintf.c: New file.
65068         * lib/unistdio/u32-vasprintf.c: New file.
65069         * lib/unistdio/u32-vsnprintf.c: New file.
65070         * lib/unistdio/u32-vsprintf.c: New file.
65071         * lib/unistdio/u32-u32-asnprintf.c: New file.
65072         * lib/unistdio/u32-u32-asprintf.c: New file.
65073         * lib/unistdio/u32-u32-snprintf.c: New file.
65074         * lib/unistdio/u32-u32-sprintf.c: New file.
65075         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65076         * lib/unistdio/u32-u32-vasprintf.c: New file.
65077         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65078         * lib/unistdio/u32-u32-vsprintf.c: New file.
65079         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65080         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65081         * tests/unistdio/test-ulc-printf1.h: New file.
65082         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65083         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65084         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65085         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65086         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65087         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65088         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65089         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65090         * tests/unistdio/test-u8-asnprintf1.c: New file.
65091         * tests/unistdio/test-u8-asnprintf1.h: New file.
65092         * tests/unistdio/test-u8-printf1.h: New file.
65093         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65094         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65095         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65096         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65097         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65098         * tests/unistdio/test-u8-vasprintf1.c: New file.
65099         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65100         * tests/unistdio/test-u8-vsprintf1.c: New file.
65101         * tests/unistdio/test-u16-asnprintf1.c: New file.
65102         * tests/unistdio/test-u16-asnprintf1.h: New file.
65103         * tests/unistdio/test-u16-printf1.h: New file.
65104         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65105         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65106         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65107         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65108         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65109         * tests/unistdio/test-u16-vasprintf1.c: New file.
65110         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65111         * tests/unistdio/test-u16-vsprintf1.c: New file.
65112         * tests/unistdio/test-u32-asnprintf1.c: New file.
65113         * tests/unistdio/test-u32-asnprintf1.h: New file.
65114         * tests/unistdio/test-u32-printf1.h: New file.
65115         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65116         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65117         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65118         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65119         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65120         * tests/unistdio/test-u32-vasprintf1.c: New file.
65121         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65122         * tests/unistdio/test-u32-vsprintf1.c: New file.
65123         * modules/unistdio/base: New file.
65124         * modules/unistdio/u-printf-args: New file.
65125         * modules/unistdio/ulc-asnprintf: New file.
65126         * modules/unistdio/ulc-asprintf: New file.
65127         * modules/unistdio/ulc-fprintf: New file.
65128         * modules/unistdio/ulc-printf-parse: New file.
65129         * modules/unistdio/ulc-snprintf: New file.
65130         * modules/unistdio/ulc-sprintf: New file.
65131         * modules/unistdio/ulc-vasnprintf: New file.
65132         * modules/unistdio/ulc-vasprintf: New file.
65133         * modules/unistdio/ulc-vfprintf: New file.
65134         * modules/unistdio/ulc-vsnprintf: New file.
65135         * modules/unistdio/ulc-vsprintf: New file.
65136         * modules/unistdio/u8-asnprintf: New file.
65137         * modules/unistdio/u8-asprintf: New file.
65138         * modules/unistdio/u8-printf-parse: New file.
65139         * modules/unistdio/u8-snprintf: New file.
65140         * modules/unistdio/u8-sprintf: New file.
65141         * modules/unistdio/u8-vasnprintf: New file.
65142         * modules/unistdio/u8-vasprintf: New file.
65143         * modules/unistdio/u8-vsnprintf: New file.
65144         * modules/unistdio/u8-vsprintf: New file.
65145         * modules/unistdio/u8-u8-asnprintf: New file.
65146         * modules/unistdio/u8-u8-asprintf: New file.
65147         * modules/unistdio/u8-u8-snprintf: New file.
65148         * modules/unistdio/u8-u8-sprintf: New file.
65149         * modules/unistdio/u8-u8-vasnprintf: New file.
65150         * modules/unistdio/u8-u8-vasprintf: New file.
65151         * modules/unistdio/u8-u8-vsnprintf: New file.
65152         * modules/unistdio/u8-u8-vsprintf: New file.
65153         * modules/unistdio/u16-asnprintf: New file.
65154         * modules/unistdio/u16-asprintf: New file.
65155         * modules/unistdio/u16-printf-parse: New file.
65156         * modules/unistdio/u16-snprintf: New file.
65157         * modules/unistdio/u16-sprintf: New file.
65158         * modules/unistdio/u16-vasnprintf: New file.
65159         * modules/unistdio/u16-vasprintf: New file.
65160         * modules/unistdio/u16-vsnprintf: New file.
65161         * modules/unistdio/u16-vsprintf: New file.
65162         * modules/unistdio/u16-u16-asnprintf: New file.
65163         * modules/unistdio/u16-u16-asprintf: New file.
65164         * modules/unistdio/u16-u16-snprintf: New file.
65165         * modules/unistdio/u16-u16-sprintf: New file.
65166         * modules/unistdio/u16-u16-vasnprintf: New file.
65167         * modules/unistdio/u16-u16-vasprintf: New file.
65168         * modules/unistdio/u16-u16-vsnprintf: New file.
65169         * modules/unistdio/u16-u16-vsprintf: New file.
65170         * modules/unistdio/u32-asnprintf: New file.
65171         * modules/unistdio/u32-asprintf: New file.
65172         * modules/unistdio/u32-printf-parse: New file.
65173         * modules/unistdio/u32-snprintf: New file.
65174         * modules/unistdio/u32-sprintf: New file.
65175         * modules/unistdio/u32-vasnprintf: New file.
65176         * modules/unistdio/u32-vasprintf: New file.
65177         * modules/unistdio/u32-vsnprintf: New file.
65178         * modules/unistdio/u32-vsprintf: New file.
65179         * modules/unistdio/u32-u32-asnprintf: New file.
65180         * modules/unistdio/u32-u32-asprintf: New file.
65181         * modules/unistdio/u32-u32-snprintf: New file.
65182         * modules/unistdio/u32-u32-sprintf: New file.
65183         * modules/unistdio/u32-u32-vasnprintf: New file.
65184         * modules/unistdio/u32-u32-vasprintf: New file.
65185         * modules/unistdio/u32-u32-vsnprintf: New file.
65186         * modules/unistdio/u32-u32-vsprintf: New file.
65187         * modules/unistdio/ulc-asnprintf-tests: New file.
65188         * modules/unistdio/ulc-vasnprintf-tests: New file.
65189         * modules/unistdio/ulc-vasprintf-tests: New file.
65190         * modules/unistdio/ulc-vsnprintf-tests: New file.
65191         * modules/unistdio/ulc-vsprintf-tests: New file.
65192         * modules/unistdio/u8-asnprintf-tests: New file.
65193         * modules/unistdio/u8-vasnprintf-tests: New file.
65194         * modules/unistdio/u8-vasprintf-tests: New file.
65195         * modules/unistdio/u8-vsnprintf-tests: New file.
65196         * modules/unistdio/u8-vsprintf-tests: New file.
65197         * modules/unistdio/u16-asnprintf-tests: New file.
65198         * modules/unistdio/u16-vasnprintf-tests: New file.
65199         * modules/unistdio/u16-vasprintf-tests: New file.
65200         * modules/unistdio/u16-vsnprintf-tests: New file.
65201         * modules/unistdio/u16-vsprintf-tests: New file.
65202         * modules/unistdio/u32-asnprintf-tests: New file.
65203         * modules/unistdio/u32-vasnprintf-tests: New file.
65204         * modules/unistdio/u32-vasprintf-tests: New file.
65205         * modules/unistdio/u32-vsnprintf-tests: New file.
65206         * modules/unistdio/u32-vsprintf-tests: New file.
65207         * MODULES.html.sh (Unicode string functions): Add the new modules.
65208
65209 2007-07-01  Bruno Haible  <bruno@clisp.org>
65210
65211         * lib/sprintf.c (sprintf): Limit the available length estimation,
65212         to avoid address wraparound.
65213         * lib/vsprintf.c (vsprintf): Likewise.
65214         * modules/sprintf-posix (Dependencies): Add stdint.
65215         * modules/vsprintf-posix (Dependencies): Likewise.
65216
65217 2007-07-01  Bruno Haible  <bruno@clisp.org>
65218
65219         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65220         Windows PATH as well. Conservative double-quoting. Comments.
65221
65222 2007-07-01  Bruno Haible  <bruno@clisp.org>
65223             Eric Blake  <ebb9@byu.net>
65224             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65225
65226         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65227         empty components in $PATH, denoting '.'.
65228
65229 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65230
65231         * gnulib-tool: Fix indentation.
65232         (func_create_megatestdir): Likewise.
65233         Report by Bruno Haible.
65234
65235 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65236
65237         Sync from Automake.
65238         * build-aux/gnupload: Fix shell portability issues with for loops.
65239         Report by Karl Berry.
65240
65241 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65242
65243         * build-aux/maint.mk (POURL): Use translationproject.org.
65244
65245 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65246             Bruno Haible  <bruno@clisp.org>
65247
65248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65249         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65250         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65251         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65252         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65253
65254 2007-06-27  Bruno Haible  <bruno@clisp.org>
65255
65256         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65257         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65258
65259 2007-06-26  Karl Berry  <karl@gnu.org>
65260
65261         * MODULES.html.sh: remove xreadlink-with-size.
65262
65263 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65264
65265         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65266         method that I hope also handles the double-include problem noted
65267         by Bruno Haible in
65268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65269
65270 2007-06-23  Bruno Haible  <bruno@clisp.org>
65271
65272         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65273         Don't let the 'mostlyclean' target fail if the last subdirectory could
65274         not be removed.
65275         Reported by Karl Berry.
65276
65277 2007-06-23  Bruno Haible  <bruno@clisp.org>
65278
65279         * gnulib-tool (echo): Add a speedier workaround for ksh.
65280         * tests/test-echo.sh: Likewise.
65281
65282 2007-06-23  Bruno Haible  <bruno@clisp.org>
65283
65284         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65285         * tests/test-echo.sh: Likewise.
65286
65287 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65288
65289         * gnulib-tool (IFS): Initialize early, so we don't set it to
65290         empty later.
65291         (self_abspathname): Rewrite algorithm to set it, reindent.
65292         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65293         (func_create_megatestdir): Merge some sed scripts.
65294
65295 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65296
65297         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65298         exposed by Sun Studio 11 cc on Solaris 8.
65299
65300 2007-06-22  Bruno Haible  <bruno@clisp.org>
65301
65302         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65303         backslashes.
65304         * tests/test-echo.sh: New file.
65305
65306 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65307
65308         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65309         simplify `sed_replace_build_aux' scripts, they are portable but
65310         echoing them with `echo' is not.
65311         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65312
65313 2007-06-21  Karl Berry  <karl@gnu.org>
65314
65315         * config/srclist.txt: guess we can't handle the licenses via
65316         srclist at the moment.
65317
65318 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65319
65320         * MODULES.html.sh: Add include_next.
65321         * modules/include_next: New file.
65322
65323 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65324
65325         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65326         INCLUDE_NEXT.
65327         (gl_CHECK_NEXT_HEADERS): New macro.
65328         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65329         the obsolescent gl_ABSOLUTE_HEADER.
65330         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65331         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65332         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65333         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65334         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65335         * m4/math_h.m4 (gl_MATH_H): Likewise.
65336         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65337         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65338         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65339         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65340         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65341         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65342         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65343         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65344         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65345         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65346         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65347         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65348         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65349         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65350         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65351         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65352         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65353         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65354         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65355         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65356         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65357         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65358         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65359         * lib/float_.h: Likewise.
65360         * lib/inttypes_.h: Likewise.
65361         * lib/math_.h: Likewise.
65362         * lib/search_.h: Likewise.
65363         * lib/signal_.h: Likewise.
65364         * lib/stdint_.h: Likewise.
65365         * lib/stdio_.h: Likewise.
65366         * lib/stdlib_.h: Likewise.
65367         * lib/string_.h: Likewise.
65368         * lib/sys_stat_.h: Likewise.
65369         * lib/sys_time_.h: Likewise.
65370         * lib/time_.h: Likewise.
65371         * lib/unistd_.h: Likewise.
65372         * lib/wchar_.h: Likewise.
65373         * lib/wctype_.h: Likewise.
65374         * lib/dirent_.h: Likewise.
65375         * lib/iconv_.h: Likewise.
65376         * lib/locale_.h: Likewise.
65377         * lib/netinet_in_.h: Likewise.
65378         * lib/sys_select_.h: Likewise.
65379         * lib/sys_socket_.h: Likewise.
65380         * lib/sysexits_.h: Likewise.
65381         * modules/fcntl (Depends-on): Depend on include_next, not
65382         absolute_header.
65383         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65384         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65385         * modules/fchdir: Likewise.
65386         * modules/float: Likewise.
65387         * modules/iconv_open: Likewise.
65388         * modules/inttypes: Likewise.
65389         * modules/locale: Likewise.
65390         * modules/math: Likewise.
65391         * modules/netinet_in: Likewise.
65392         * modules/search: Likewise.
65393         * modules/signal: Likewise.
65394         * modules/stdint: Likewise.
65395         * modules/stdio: Likewise.
65396         * modules/stdlib: Likewise.
65397         * modules/string: Likewise.
65398         * modules/sys_select: Likewise.
65399         * modules/sys_socket: Likewise.
65400         * modules/sys_stat: Likewise.
65401         * modules/sys_time: Likewise.
65402         * modules/sysexits: Likewise.
65403         * modules/time: Likewise.
65404         * modules/unistd: Likewise.
65405         * modules/wchar: Likewise.
65406         * modules/wctype: Likewise.
65407         * modules/sys_stat: Change maintainer to "all".
65408         * modules/unistd: Likewise.
65409
65410 2007-06-20  Karl Berry  <karl@gnu.org>
65411
65412         * config/srclist.txt: track www changes in license files.
65413
65414 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65415
65416         * build-aux/bootstrap: Remove stray dot.
65417         Make sure build_aux settings are honored when linking
65418         gnulib_extra_files.
65419
65420 2007-06-19  Eric Blake  <ebb9@byu.net>
65421
65422         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65423         Allow compilation on cygwin.
65424
65425 2007-06-19  Jim Meyering  <jim@meyering.net>
65426
65427         xreadlink-with-size: Remove module.  No longer used.
65428         Ex-callers now use xreadlink or mreadlink-with-size.
65429         * modules/xreadlink-with-size: Remove module.
65430         * lib/xreadlink-with-size.c: Remove file.
65431         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65432         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65433         just before the function definition *is* accurate.
65434
65435         Eliminate one way canonicalize_filename_mode could exit.
65436         * lib/canonicalize.c (canonicalize_filename_mode):
65437         Use mreadlink_with_size, not xreadlink_with_size.
65438
65439 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         Detect porting problems to FreeBSD/arm, which has time_t wider than
65442         long int.  Original problem reported for GNU diff by Xin Li in
65443         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65444         * modules/getdate (Depends-on): Add intprops, verify.
65445         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65446         is an integer type no wider than long int.
65447
65448 2007-06-18  Jim Meyering  <jim@meyering.net>
65449
65450         New module: mreadlink-with-size.
65451         * MODULES.html.sh: Add mreadlink-with-size.
65452         * modules/mreadlink-with-size: New module
65453         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65454         not xreadlink-with-size.
65455         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65456
65457 2007-06-16  Bruno Haible  <bruno@clisp.org>
65458
65459         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65460         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65461         Reported by Gary V. Vaughan <gary@gnu.org>.
65462
65463 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65464
65465         Revamp lchown so that it lives in unistd.h where it belongs.
65466         * lib/lchown.h: Remove.
65467         * lib/dirchownmod.c: Don't include lib/lchown.h.
65468         * lib/fchownat.c: Likewise.
65469         * lib/openat.c: Likewise.
65470         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65471         does not follow symlinks.
65472         (EOPNOTSUPP): Define if not defined.
65473         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65474         is defined to 0.
65475         (lchown): New decl.
65476         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65477         Do not check for lchown decl.
65478         Set REPLACE_LCHOWN.
65479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65480         REPLACE_LCHOWN.
65481         * modules/chown: Make it clear it follows symlinks.
65482         * modules/lchown: Make it clear it doesn't follow symlinks.
65483         (Files): Remove lib/lchown.h
65484         (Depends-on): Add unistd.
65485         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65486         (Include): Include <unistd.h>, not "lchown.h".
65487         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65488         REPLACE_LCHOWN.
65489
65490 2007-06-15  Jim Meyering  <jim@meyering.net>
65491
65492         Change license (GPL to LGPL) of fsusage and dependents.
65493         * modules/fsusage (License): Change to LGPL.
65494         * modules/full-read (License): Likewise.
65495         * modules/full-write (License): Likewise.
65496         * modules/safe-read (License): Likewise.
65497         * modules/safe-write (License): Likewise.
65498
65499 2007-06-14  Ben Pfaff  <blp@gnu.org>
65500
65501         Missing part of allocsa -> malloca transition.
65502         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65503         gl_MALLOCA.
65504
65505 2007-06-12  Bruno Haible  <bruno@clisp.org>
65506
65507         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65508         to ia64, x86_64, i386.
65509         Reported by Eric Blake.
65510
65511 2007-06-12  Bruno Haible  <bruno@clisp.org>
65512
65513         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65514         cross-compiling to x86_64.
65515
65516 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65519         glitch reported by Ralf Wildenhues in
65520         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65521
65522         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65523         Vin Shelton.
65524
65525 2007-06-11  Bruno Haible  <bruno@clisp.org>
65526
65527         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65528         replacement string.
65529         Reported by Eric Blake.
65530
65531 2007-06-10  Bruno Haible  <bruno@clisp.org>
65532
65533         Prepare vasnprintf code for use with Unicode strings.
65534         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65535         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65536         TYPE_U32_STRING.
65537         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65538         a_u32_string variants.
65539         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65540         * lib/printf-args.c: Don't include config.h and the specification
65541         header if PRINTF_FETCHARGS is already defined.
65542         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65543         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65544         TYPE_U16_STRING, TYPE_U32_STRING.
65545         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65546         u16_directive, u16_directives, u32_directive, u32_directives): New
65547         types.
65548         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65549         New declarations.
65550         * lib/printf-parse.c: Don't include config.h and the specification
65551         header if PRINTF_PARSE is already defined. Eliminate the set of
65552         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65553         them now. Include c-ctype.h.
65554         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65555         directive and CHAR_T_ONLY_ASCII.
65556         * lib/vasnprintf.c: Don't include config.h and the specification header
65557         if VASNPRINTF is already defined.
65558         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65559         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65560         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65561         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65562         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65563         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65564         code accordingly.
65565         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65566         pad_ourselves also in this case, with the 'c' and 's' directives, and
65567         with a different notion of "width".
65568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65569
65570 2007-06-10  Bruno Haible  <bruno@clisp.org>
65571
65572         * modules/unistr/u32-mbsnlen: New file.
65573         * lib/unistr/u32-mbsnlen.c: New file.
65574
65575         * modules/unistr/u16-mbsnlen: New file.
65576         * lib/unistr/u16-mbsnlen.c: New file.
65577
65578         * modules/unistr/u8-mbsnlen: New file.
65579         * lib/unistr/u8-mbsnlen.c: New file.
65580
65581         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65582         declarations.
65583
65584 2007-06-10  Bruno Haible  <bruno@clisp.org>
65585
65586         * lib/string_.h (mbsnlen): New declaration.
65587         * lib/mbsnlen.c: New file.
65588         * m4/mbsnlen.m4: New file.
65589         * modules/mbsnlen: New file.
65590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65591         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65592         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65593
65594 2007-06-10  Bruno Haible  <bruno@clisp.org>
65595
65596         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65597
65598 2007-06-10  Bruno Haible  <bruno@clisp.org>
65599
65600         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65601         * lib/mbuiter.h: Likewise.
65602
65603 2007-06-10  Bruno Haible  <bruno@clisp.org>
65604
65605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65606         declaration.
65607
65608 2007-06-10  Karl Berry  <karl@gnu.org>
65609
65610         * config/srclist.txt: remove gettext entries, Bruno prefers
65611         to update individually.
65612
65613 2007-06-10  Bruno Haible  <bruno@clisp.org>
65614
65615         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65616         'maxlen'. Ensure only length + width bytes are allocated, not
65617         length + 1 + width.
65618
65619 2007-06-09  Bruno Haible  <bruno@clisp.org>
65620
65621         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65622         (CHAR_T): Remove macro.
65623         (VASNPRINTF): Update.
65624
65625 2007-06-09  Bruno Haible  <bruno@clisp.org>
65626
65627         * MODULES.html.sh (Unicode string functions): Add the new modules.
65628
65629         * modules/uniconv/u32-conv-to-enc: New file.
65630         * lib/uniconv/u32-conv-to-enc.c: New file.
65631         * modules/uniconv/u32-conv-to-enc-tests: New file.
65632         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65633
65634         * modules/uniconv/u16-conv-to-enc: New file.
65635         * lib/uniconv/u16-conv-to-enc.c: New file.
65636         * lib/uniconv/u-conv-to-enc.h: New file.
65637         * modules/uniconv/u16-conv-to-enc-tests: New file.
65638         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65639
65640         * modules/uniconv/u8-conv-to-enc: New file.
65641         * lib/uniconv/u8-conv-to-enc.c: New file.
65642         * modules/uniconv/u8-conv-to-enc-tests: New file.
65643         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65644
65645         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65646         u32_conv_to_encoding): New declarations.
65647
65648 2007-06-09  Bruno Haible  <bruno@clisp.org>
65649
65650         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65651
65652 2007-06-09  Bruno Haible  <bruno@clisp.org>
65653
65654         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65655         * modules/malloca: Renamed from modules/allocsa, updated.
65656         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65657         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65658         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65659         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65660         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65661         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65662         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65663         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65664         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65665         * modules/c-strcasestr (Depends-on): Update.
65666         * lib/c-strcasestr.c: Update.
65667         * modules/c-strstr (Depends-on): Update.
65668         * lib/c-strstr.c: Update.
65669         * modules/canonicalize-lgpl (Depends-on): Update.
65670         * lib/canonicalize-lgpl.c: Update.
65671         * modules/clean-temp (Depends-on): Update.
65672         * lib/clean-temp.c: Update.
65673         * modules/csharpcomp (Depends-on): Update.
65674         * lib/csharpcomp.c: Update.
65675         * modules/csharpexec (Depends-on): Update.
65676         * lib/csharpexec.c: Update.
65677         * modules/javacomp (Depends-on): Update.
65678         * lib/javacomp.c: Update.
65679         * modules/javaexec (Depends-on): Update.
65680         * lib/javaexec.c: Update.
65681         * modules/mbscasestr (Depends-on): Update.
65682         * lib/mbscasestr.c: Update.
65683         * modules/mbsstr (Depends-on): Update.
65684         * lib/mbsstr.c: Update.
65685         * modules/setenv (Depends-on): Update.
65686         * lib/setenv.c: Update.
65687         * modules/strcasestr (Depends-on): Update.
65688         * lib/strcasestr.c: Update.
65689         * modules/striconveha (Depends-on): Update.
65690         * lib/striconveha.c: Update.
65691         * modules/relocatable-prog-wrapper (Files): Update.
65692         * lib/relocwrapper.c: Update.
65693         * build-aux/install-reloc: Update.
65694         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65695
65696 2007-06-08  Bruno Haible  <bruno@clisp.org>
65697
65698         Port to uClibc.
65699         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65700         * lib/fpurge.c (fpurge): Likewise.
65701         * lib/freading.c (freading): Likewise.
65702         * lib/fseeko.c (rpl_fseeko): Likewise.
65703         * lib/fseterr.c (fseterr): Likewise.
65704         * lib/fwriting.c (fwriting): Likewise.
65705         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65706
65707 2007-06-08  Bruno Haible  <bruno@clisp.org>
65708
65709         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65710         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65711         * modules/gettext (Files): Add m4/intlmacosx.m4.
65712
65713 2007-06-07  Bruno Haible  <bruno@clisp.org>
65714
65715         * modules/localename-tests: New file.
65716         * tests/test-localename.c: New file.
65717
65718         New module 'localename'.
65719         * lib/localename.h: New file.
65720         * lib/localename.c: New file, from GNU gettext.
65721         * m4/localename.m4: New file.
65722         * modules/localename: New file.
65723
65724 2007-06-07  Bruno Haible  <bruno@clisp.org>
65725
65726         Work around the lack of <wchar.h> on some builds of uClibc.
65727         * doc/headers/wchar.texi: Update.
65728         * lib/wchar_.h: Include <wchar.h> only if it exists.
65729         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65730         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65731         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65732         doesn't exist.
65733         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65734         * modules/mbfile (Depends-on): Add wchar.
65735         * modules/mbiter (Depends-on): Likewise.
65736         * modules/mbuiter (Depends-on): Likewise.
65737         Reported by Simon Josefsson.
65738
65739 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65740
65741         Work around problem reported by Steven M. Schweda in
65742         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65743         Tru64 5.1B with the Compaq compiler environment installed declares
65744         an 'isblank' function but does not define it in the C library.
65745         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65746         * lib/regex_internal.h (isblank): Likewise.
65747         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65748         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65749
65750 2007-06-05  Bruno Haible  <bruno@clisp.org>
65751
65752         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65753         ia64.
65754         * modules/printf-safe: New file.
65755         * modules/fprintf-posix (Depends-on): Add printf-safe.
65756         * modules/printf-posix (Depends-on): Likewise.
65757         * modules/snprintf-posix (Depends-on): Likewise.
65758         * modules/sprintf-posix (Depends-on): Likewise.
65759         * modules/vasnprintf-posix (Depends-on): Likewise.
65760         * modules/vasprintf-posix (Depends-on): Likewise.
65761         * modules/vfprintf-posix (Depends-on): Likewise.
65762         * modules/vprintf-posix (Depends-on): Likewise.
65763         * modules/vsnprintf-posix (Depends-on): Likewise.
65764         * modules/vsprintf-posix (Depends-on): Likewise.
65765         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65766         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65767         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65768         "no" on i386, x86_64, ia64.
65769         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65770         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65771         on i386, x86_64, ia64.
65772         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65773         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65774         on i386, x86_64, ia64.
65775         * tests/test-vasnprintf-posix.c: Include float.h.
65776         (LDBL80_WORDS): New macro.
65777         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65778         on i386, x86_64, ia64.
65779         * tests/test-vasprintf-posix.c: Include float.h.
65780         (LDBL80_WORDS): New macro.
65781         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65782         on i386, x86_64, ia64.
65783         * tests/test-snprintf-posix.c: Include float.h.
65784         * tests/test-sprintf-posix.c: Likewise.
65785         * tests/test-vsnprintf-posix.c: Likewise.
65786         * tests/test-vsprintf-posix.c: Likewise.
65787
65788 2007-06-05  Bruno Haible  <bruno@clisp.org>
65789
65790         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65791         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65792         non-IEEE numbers on i386, x86_64, ia64.
65793         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65794         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65795         * tests/test-isnanl.h: Include float.h.
65796         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65797
65798 2007-06-05  Bruno Haible  <bruno@clisp.org>
65799
65800         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65801         also the %a / %A. Handle the %a / %A code before this extra handling.
65802
65803 2007-06-05  Bruno Haible  <bruno@clisp.org>
65804
65805         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65806         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65807
65808 2007-06-05  Bruno Haible  <bruno@clisp.org>
65809
65810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65811         typo in variable name.
65812
65813 2007-06-05  Eric Blake  <ebb9@byu.net>
65814
65815         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65816         Reported by Simon Josefsson.
65817
65818 2007-06-04  Bruno Haible  <bruno@clisp.org>
65819
65820         Avoid test failures on some PowerPC platforms.
65821         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65822         Define differently for PowerPC.
65823         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65824         Reported by Gary V. Vaughan <gary@gnu.org>.
65825
65826 2007-06-02  Bruno Haible  <bruno@clisp.org>
65827
65828         Fix test-stdint failure on FreeBSD/ia64.
65829         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65830         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65831         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65832         * doc/headers/stdint.texi: Update.
65833
65834 2007-06-01  Bruno Haible  <bruno@clisp.org>
65835
65836         * tests/test-binary-io.c (main): Pass a third argument to open().
65837         Reported by Gary V. Vaughan <gary@gnu.org>.
65838
65839 2007-06-01  Bruno Haible  <bruno@clisp.org>
65840
65841         * doc/functions/frexpl.texi: Update for mingw.
65842
65843 2007-06-01  Bruno Haible  <bruno@clisp.org>
65844
65845         * tests/test-lseek.c (main): Disable test of errno for invalid third
65846         argument.
65847         * doc/functions/lseek.texi: Update.
65848         Reported by Gary V. Vaughan <gary@gnu.org>.
65849
65850 2007-05-28  Bruno Haible  <bruno@clisp.org>
65851
65852         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65853
65854 2007-05-31  Eric Blake  <ebb9@byu.net>
65855
65856         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65857         cross compiling.
65858
65859 2007-05-30  Eric Blake  <ebb9@byu.net>
65860         and Bruno Haible  <bruno@clisp.org>
65861
65862         Work around mingw test failures exposed by m4-1.4.9b.
65863         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65864         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65865         moment.
65866
65867 2007-05-30  Bruno Haible  <bruno@clisp.org>
65868
65869         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65870         assuming that they are closed. Needed on HP-UX 11.
65871
65872 2007-05-29  Bruno Haible  <bruno@clisp.org>
65873
65874         Fix a problem with #include_next.
65875         * lib/dirent_.h: Split the double-inclusion guard.
65876         * lib/fcntl_.h: Likewise.
65877         * lib/float_.h: Likewise.
65878         * lib/iconv_.h: Likewise.
65879         * lib/inttypes_.h: Likewise.
65880         * lib/locale_.h: Likewise.
65881         * lib/math_.h: Likewise.
65882         * lib/netinet_in_.h: Likewise.
65883         * lib/search_.h: Likewise.
65884         * lib/signal_.h: Likewise.
65885         * lib/stdint_.h: Likewise.
65886         * lib/stdio_.h: Likewise.
65887         * lib/stdlib_.h: Likewise.
65888         * lib/string_.h: Likewise.
65889         * lib/sys_select_.h: Likewise.
65890         * lib/sys_socket_.h: Likewise.
65891         * lib/sys_stat_.h: Likewise.
65892         * lib/sys_time_.h: Likewise.
65893         * lib/sysexits_.h: Likewise.
65894         * lib/time_.h: Likewise.
65895         * lib/unistd_.h: Likewise.
65896         * lib/wchar_.h: Likewise.
65897         * lib/wctype_.h: Likewise.
65898
65899 2007-05-29  Bruno Haible  <bruno@clisp.org>
65900
65901         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65902         for the moment.
65903
65904 2007-05-29  Bruno Haible  <bruno@clisp.org>
65905
65906         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65907         invocation.
65908         Reported by Eric Blake.
65909
65910 2007-05-29  Bruno Haible  <bruno@clisp.org>
65911
65912         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65913         compiling case.
65914
65915 2007-05-29  Eric Blake  <ebb9@byu.net>
65916             Bruno Haible  <bruno@clisp.org>
65917
65918         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65919         cross compiles.
65920
65921 2007-05-28  Eric Blake  <ebb9@byu.net>
65922
65923         * modules/closein-tests (test_closein_LDADD): Support test on
65924         cygwin with libtool.
65925
65926 2007-05-28  Bruno Haible  <bruno@clisp.org>
65927
65928         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65929         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65930         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65931         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65932         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65933         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65934         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65935         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65936         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65937
65938 2007-05-28  Eric Blake  <ebb9@byu.net>
65939
65940         Unconditionally include <config.h> in unit tests.
65941         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65942         * tests/test-allocsa.c, tests/test-arcfour.c,
65943         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65944         tests/test-array_list.c, tests/test-array_oset.c,
65945         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65946         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65947         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65948         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65949         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65950         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65951         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65952         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65953         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65954         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65955         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65956         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65957         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65958         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65959         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65960         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65961         test-md5.c, test-memmem.c, test-printf-posix.c,
65962         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65963         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65964         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65965         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65966         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65967         test-vasnprintf-posix2.c, test-vasnprintf.c,
65968         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65969         test-vfprintf-posix.c, test-vprintf-posix.c,
65970         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65971         test-xvasprintf.c: Likewise.
65972
65973 2007-05-28  Bruno Haible  <bruno@clisp.org>
65974
65975         * gnulib-tool (func_import): Remember the --with-tests command-line
65976         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65977         Reported by Eric Blake.
65978
65979 2007-05-28  Bruno Haible  <bruno@clisp.org>
65980
65981         * modules/ftell-tests: New file.
65982         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65983         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65984
65985         * lib/ftell.c: New file.
65986         * modules/ftell: New file.
65987         * m4/ftell.m4: New file.
65988         * doc/functions/ftell.texi: Update.
65989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65990         REPLACE_FTELL.
65991         * lib/stdio_.h (rpl_ftell): New declaration.
65992         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65993         REPLACE_FTELL.
65994
65995 2007-05-28  Eric Blake  <ebb9@byu.net>
65996
65997         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65998
65999 2007-05-28  Bruno Haible  <bruno@clisp.org>
66000
66001         * modules/fseek-tests: New file.
66002         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
66003         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
66004
66005         * lib/fseek.c: New file.
66006         * modules/fseek: New file.
66007         * m4/fseek.m4: New file.
66008         * doc/functions/fseek.texi: Update.
66009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66010         REPLACE_FSEEK.
66011         * lib/stdio_.h (rpl_fseek): New declaration.
66012         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66013         REPLACE_FSEEK.
66014
66015 2007-05-28  Bruno Haible  <bruno@clisp.org>
66016
66017         * lib/stdio_.h (fflush): More comments.
66018
66019 2007-05-28  Bruno Haible  <bruno@clisp.org>
66020
66021         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66022         runtime test.
66023
66024 2007-05-28  Eric Blake  <ebb9@byu.net>
66025
66026         Improve lseek module.
66027         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66028         * lib/unistd_.h (lseek): Scale back link warning message.
66029         * tests/test-lseek.c: Beef up test.
66030         * tests/test-lseek.sh: Exercise more facets of lseek.
66031         Reported by Bruno Haible.
66032
66033 2007-05-28  Bruno Haible  <bruno@clisp.org>
66034
66035         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66036         to define.
66037
66038 2007-05-27  Bruno Haible  <bruno@clisp.org>
66039
66040         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66041
66042 2007-05-27  Bruno Haible  <bruno@clisp.org>
66043
66044         * modules/openmp: New file.
66045         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66046         Noah Misch.
66047
66048 2007-05-26  Bruno Haible  <bruno@clisp.org>
66049
66050         * modules/chdir-long (Depends-on): Add fchdir.
66051         * modules/chdir-safer (Depends-on): Likewise.
66052         * modules/fts (Depends-on): Likewise.
66053         * modules/fts-lgpl (Depends-on): Likewise.
66054         * modules/openat (Depends-on): Likewise.
66055         * modules/savewd (Depends-on): Likewise.
66056
66057 2007-05-24  Eric Blake  <ebb9@byu.net>
66058
66059         Fix lseek on mingw.
66060         * modules/lseek: New module.
66061         * m4/lseek.m4: New file.
66062         * lib/lseek.c: New file.
66063         * modules/lseek-tests: New file.
66064         * tests/test-lseek.c: New file.
66065         * tests/test-lseek.sh: New file.
66066         * MODULES.html.sh: Document lseek module.
66067         * modules/fflush (Depends-on): Add lseek, fseeko.
66068         * modules/fseeko (Depends-on): Likewise.
66069         * modules/ftello (Depends-on): Likewise.
66070         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66071         broken.
66072         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66073         broken.
66074         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66075         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66076         * lib/ftello.c (rpl_ftello): Likewise.
66077         * tests/test-fseeko.c (main): Test this.
66078         * tests/test-fseeko.sh: Likewise.
66079         * tests/test-ftello.c (main): Likewise.
66080         * tests/test-ftello.sh: Likewise.
66081         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66082         implies replacing fseek.
66083         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66084         HAVE_FTELLO.
66085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66086         * modules/unistd (Makefile.am): Likewise.
66087         * lib/unistd_.h (lseek): Declare a replacement.
66088         * doc/functions/lseek.texi (lseek): Document this fix.
66089         * doc/functions/fseek.texi (fseek): Likewise.
66090         * doc/functions/ftell.texi (ftell): Likewise.
66091
66092 2007-05-24  Bruno Haible  <bruno@clisp.org>
66093
66094         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66095         in the printed representation of a NaN.
66096         * tests/test-vasprintf-posix.c (test_function): Likewise.
66097         * tests/test-snprintf-posix.h (test_function): Likewise.
66098         * tests/test-sprintf-posix.h (test_function): Likewise.
66099         Reported by Eric Blake.
66100
66101 2007-05-23  Eric Blake  <ebb9@byu.net>
66102
66103         Fix fseeko/ftello on cygwin 1.5.24.
66104         * doc/functions/fseeko.texi (fseeko): Document the fix.
66105         * doc/functions/ftello.texi (ftello): Document the fix.
66106         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66107         * doc/functions/stdout.text (stdout): New file.
66108         * doc/functions/stderr.text (stderr): New file.
66109         * doc/gnulib.texi (Function Substitutes): Use new files.
66110         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66111         prior to 1.7.0.
66112         * tests/test-ftello.c (main): Likewise for ftello.
66113         * tests/test-fseeko.sh: New file.
66114         * tests/test-ftello.sh: New file.
66115         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66116         with seekable stdin.
66117         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66118         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66119         (gl_REPLACE_FSEEKO): New macro.
66120         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66121         * modules/fseeko (Files): Distribute fseeko.c.
66122         * modules/ftello (Files): Distribute ftello.c.
66123         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66124         mode.
66125         * lib/ftello.c (rpl_ftello): New file.
66126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66127         fseeko, ftello.
66128         (gl_STDIN_LARGE_OFFSET): New macro.
66129         * modules/stdio (Makefile.am): Perform the replacement.
66130         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66131
66132 2007-05-23  Bruno Haible  <bruno@clisp.org>
66133
66134         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66135         GNULIB_POSIXCHECK is defined.
66136
66137 2007-05-21  Bruno Haible  <bruno@clisp.org>
66138
66139         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66140         Check also the output for NaN arguments. When cross-compiling, guess
66141         no on IRIX.
66142         * lib/vasnprintf.c: Update comments.
66143         * tests/test-vasnprintf-posix.c (strisnan): New function.
66144         (test_function): Use it.
66145         * tests/test-vasprintf-posix.c (strisnan): New function.
66146         (test_function): Use it.
66147         * tests/test-snprintf-posix.h (strisnan): New function.
66148         (test_function): Use it.
66149         * tests/test-sprintf-posix.h (strisnan): New function.
66150         (test_function): Use it.
66151         Reported by Eric Blake.
66152
66153 2007-05-20  Bruno Haible  <bruno@clisp.org>
66154
66155         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66156         numbers that fails on BeOS.
66157         * doc/functions/frexpl.texi: Update.
66158
66159 2007-05-20  Jim Meyering  <jim@meyering.net>
66160
66161         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66162         forced upon us by glibc-2.6.
66163
66164 2007-05-20  Bruno Haible  <bruno@clisp.org>
66165
66166         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66167         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66168         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66169         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66170         NEED_PRINTF_INFINITE.
66171         (is_infinitel): New function.
66172         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66174         gl_PREREQ_VASNPRINTF_INFINITE.
66175         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66176         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66177         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66178         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66179         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66180         gl_PREREQ_VASNPRINTF_INFINITE.
66181         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66182         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66183         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66184         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66185         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66186         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66187         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66188         * doc/functions/fprintf.texi: Update.
66189         * doc/functions/printf.texi: Update.
66190         * doc/functions/snprintf.texi: Update.
66191         * doc/functions/sprintf.texi: Update.
66192         * doc/functions/vfprintf.texi: Update.
66193         * doc/functions/vprintf.texi: Update.
66194         * doc/functions/vsnprintf.texi: Update.
66195         * doc/functions/vsprintf.texi: Update.
66196
66197 2007-05-20  Bruno Haible  <bruno@clisp.org>
66198
66199         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66200         was not found in libc.
66201         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66202
66203 2007-05-20  Bruno Haible  <bruno@clisp.org>
66204
66205         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66206         printed as "-nan" instead of "nan".
66207         * tests/test-vasprintf-posix.c (test_function): Likewise.
66208         * tests/test-snprintf-posix.h (test_function): Likewise.
66209         * tests/test-sprintf-posix.h (test_function): Likewise.
66210         Needed for HP-UX 11.
66211
66212 2007-05-20  Jim Meyering  <jim@meyering.net>
66213
66214         Fix buggy test for the fchownat-deref bug.
66215         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66216         symlink required for the run-test.  Without it, this test would
66217         always declare that fchownat doesn't work, and client code would
66218         unnecessarily use the replacement function with fixed libc.
66219         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66220         Reported by Greg Schafer.
66221
66222 2007-05-19  Bruno Haible  <bruno@clisp.org>
66223
66224         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66225         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66226         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66227         Needed for IRIX 6.5 and Solaris 2.5.1.
66228
66229 2007-05-19  Bruno Haible  <bruno@clisp.org>
66230
66231         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66232         (test_function): Skip tests involving -0.0 on platforms where
66233         -0.0 = 0.0.
66234         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66235         (test_function): Skip tests involving -0.0 on platforms where
66236         -0.0 = 0.0.
66237         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66238         (test_function): Skip tests involving -0.0 on platforms where
66239         -0.0 = 0.0.
66240         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66241         (test_function): Skip tests involving -0.0 on platforms where
66242         -0.0 = 0.0.
66243         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66244         tests.
66245         * tests/test-printf-posix.h (test_function): Likewise.
66246         * tests/test-printf-posix.output: Remove all -0.0 related results.
66247         Needed for IRIX 6.5.
66248
66249 2007-05-19  Bruno Haible  <bruno@clisp.org>
66250
66251         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66252         printed as "nan0x7fffffff" instead of "nan".
66253         * tests/test-vasprintf-posix.c (test_function): Likewise.
66254         * tests/test-snprintf-posix.h (test_function): Likewise.
66255         * tests/test-sprintf-posix.h (test_function): Likewise.
66256         * tests/test-fprintf-posix.h (NaN): Remove macro.
66257         (test_function): Remove all NaN related tests.
66258         * tests/test-printf-posix.h (NaN): Remove macro.
66259         (test_function): Remove all NaN related tests.
66260         * tests/test-printf-posix.output: Remove all NaN related results.
66261         Needed for IRIX 6.5.
66262
66263 2007-05-19  Bruno Haible  <bruno@clisp.org>
66264
66265         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66266         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66267
66268 2007-05-19  Bruno Haible  <bruno@clisp.org>
66269
66270         * lib/float_.h: New file.
66271         * m4/float_h.m4: New file.
66272         * modules/float: New file.
66273         * modules/isnanl (Dependencies): Add float.
66274         * modules/isnanl-nolibm (Dependencies): Likewise.
66275         * modules/mathl (Dependencies): Likewise.
66276         * modules/printf-frexpl (Dependencies): Likewise.
66277         * modules/signbit (Dependencies): Likewise.
66278         * modules/vasnprintf (Dependencies): Likewise.
66279         * doc/headers/float.texi: Update.
66280
66281 2007-05-19  Jim Meyering  <jim@meyering.net>
66282
66283         * lib/utimens.c (gl_futimens): Rename from futimens,
66284         now that glibc-2.6 declares futimens.
66285         * lib/utimens.h: Likewise.
66286
66287 2007-05-19  Bruno Haible  <bruno@clisp.org>
66288
66289         Avoid test failures on mingw.
66290         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66291         * tests/test-printf-posix.sh: Likewise.
66292         * tests/test-vfprintf-posix.sh: Likewise.
66293         * tests/test-vprintf-posix.sh: Likewise.
66294
66295 2007-05-19  Bruno Haible  <bruno@clisp.org>
66296
66297         Fix *printf result for NaN, Inf, -0.0 on mingw.
66298         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66299         * lib/vasnprintf.c: Include math.h and isnan.h.
66300         (is_infinite_or_zero): New function.
66301         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66302         values in the %f, %F, %e, %E, %g, %G directives.
66303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66304         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66305         gl_PRINTF_INFINITE and test its result. Invoke
66306         gl_PREREQ_VASNPRINTF_INFINITE.
66307         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66308         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66314         * doc/functions/fprintf.texi: Update.
66315         * doc/functions/printf.texi: Update.
66316         * doc/functions/snprintf.texi: Update.
66317         * doc/functions/sprintf.texi: Update.
66318         * doc/functions/vfprintf.texi: Update.
66319         * doc/functions/vprintf.texi: Update.
66320         * doc/functions/vsnprintf.texi: Update.
66321         * doc/functions/vsprintf.texi: Update.
66322
66323 2007-05-19  Bruno Haible  <bruno@clisp.org>
66324
66325         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66326         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66327         Instead of multiplying with 10^k, set extra_zeroes to k.
66328         (scale10_round_long_double): Remove function.
66329
66330 2007-05-18  Bruno Haible  <bruno@clisp.org>
66331
66332         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66333         introduced on 2007-05-06.
66334
66335 2007-05-18  Bruno Haible  <bruno@clisp.org>
66336
66337         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66338         %g directives.
66339         * tests/test-vasprintf-posix.c (test_function): Likewise.
66340         * tests/test-snprintf-posix.h (test_function): Likewise.
66341         * tests/test-sprintf-posix.h (test_function): Likewise.
66342
66343 2007-05-18  Bruno Haible  <bruno@clisp.org>
66344
66345         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66346         (strmatch): New function.
66347         (test_function): Test the %f directive on numbers of various exponents.
66348         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66349         (strmatch): New function.
66350         (test_function): Test the %f directive on numbers of various exponents.
66351         * tests/test-snprintf-posix.h (strmatch): New function.
66352         (test_function): Test the %f directive on numbers of various exponents.
66353         * tests/test-sprintf-posix.h (strmatch): New function.
66354         (test_function): Test the %f directive on numbers of various exponents.
66355         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66356         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66357         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66358         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66359
66360 2007-05-18  Bruno Haible  <bruno@clisp.org>
66361
66362         Add support for 'long double' number output.
66363         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66364         * lib/vasnprintf.c: Include math.h and float+.h.
66365         (mp_limb_t): New type.
66366         (GMP_LIMB_BITS): New macro.
66367         (mp_twolimb_t): New type.
66368         (GMP_TWOLIMB_BITS): New macro.
66369         (mpn_t): New type.
66370         (multiply, divide, convert_to_decimal, decode_long_double,
66371         scale10_round_long_double, scale10_round_decimal_long_double,
66372         floorlog10l): New functions.
66373         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66374         for the %f, %F, %e, %E, %g, %G directives.
66375         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66376         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66377         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66378         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66379         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66380         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66381         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66382         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66383         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66384         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66385         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66386         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66387         * modules/snprintf-posix (Depends-on): Likewise.
66388         * modules/sprintf-posix (Depends-on): Likewise.
66389         * modules/vasnprintf-posix (Depends-on): Likewise.
66390         * modules/vasprintf-posix (Depends-on): Likewise.
66391         * modules/vfprintf-posix (Depends-on): Likewise.
66392         * modules/vsnprintf-posix (Depends-on): Likewise.
66393         * modules/vsprintf-posix (Depends-on): Likewise.
66394         * modules/vasnprintf (Files): Add lib/float+.h.
66395         * doc/functions/fprintf.texi: Update.
66396         * doc/functions/printf.texi: Update.
66397         * doc/functions/snprintf.texi: Update.
66398         * doc/functions/sprintf.texi: Update.
66399         * doc/functions/vfprintf.texi: Update.
66400         * doc/functions/vprintf.texi: Update.
66401         * doc/functions/vsnprintf.texi: Update.
66402         * doc/functions/vsprintf.texi: Update.
66403
66404 2007-05-18  Bruno Haible  <bruno@clisp.org>
66405
66406         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66407
66408 2007-05-18  Bruno Haible  <bruno@clisp.org>
66409
66410         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66411         for printing 64-bit integers. Needed for mingw.
66412
66413 2007-05-18  Bruno Haible  <bruno@clisp.org>
66414
66415         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66416         gl_FUNC_FREXPL_WORKS.
66417         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66418
66419 2007-05-18  Bruno Haible  <bruno@clisp.org>
66420
66421         * modules/frexpl-nolibm-tests: New file.
66422
66423         * modules/frexpl-nolibm: New file.
66424         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66425
66426 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66427
66428         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66429         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66430         GCC 4.2, which otherwise issues a lot of warnings.
66431         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66432         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66433         Likewise.
66434         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66435         * modules/iconv_open (iconv.h): Likewise.
66436         * modules/locale (locale.h): Likewise.
66437         * modules/netinet_in (netinet/in.h): Likewise.
66438         * modules/sys_select (sys_select.h): Likewise.
66439         * modules/sys_socket (sys/socket.h): Likewise.
66440         * modules/sys_stat (sys/stat.h): Likewise.
66441         * modules/sysexits (sysexits.h): Likewise.
66442         * modules/unistd (unistd.h): Likewise.
66443
66444 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66445
66446         * modules/closein-tests (Makefile.am): Distribute
66447         `test-closein.sh'.
66448
66449 2007-05-17  Bruno Haible  <bruno@clisp.org>
66450
66451         * tests/test-printf-posix.output: Renamed from
66452         tests/test-fprintf-posix.out.
66453         * modules/fprintf-posix-tests: Update.
66454         * modules/printf-posix-tests: Update.
66455         * modules/vfprintf-posix-tests: Update.
66456         * modules/vprintf-posix-tests: Update.
66457         * tests/test-fprintf-posix.sh: Update.
66458         * tests/test-printf-posix.sh: Update.
66459         * tests/test-vfprintf-posix.sh: Update.
66460         * tests/test-vprintf-posix.sh: Update.
66461         Reported by Ralf Wildenhues.
66462
66463 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66464
66465         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66466         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66467         GCC 4.2, which otherwise issues a lot of warnings.
66468         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66469         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66470         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66471         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66472         it should no longer be needed.
66473         * lib/string_.h: Likewise.
66474         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66475         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66476         * modules/inttypes (inttypes.h): Likewise.
66477         * modules/math (math.h): Likewise.
66478         * modules/search (search.h): Likewise.
66479         * modules/signal (signal.h): Likewise.
66480         * modules/stdint (stdint.h): Likewise.
66481         * modules/stdio (stdio.h): Likewise.
66482         * modules/stdlib (stdlib.h): Likewise.
66483         * modules/string (string.h): Likewise.
66484         * modules/sys_time (sys/time.h): Likewise.
66485         * modules/time (time.h): Likewise.
66486         * modules/wchar (wchar.h): Likewise.
66487         * modules/wctype (wtype.h): Likewise.
66488
66489 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66490
66491         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66492
66493 2007-05-13  Bruno Haible  <bruno@clisp.org>
66494
66495         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66496         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66497         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66498         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66499         (gl_PREREQ_STRTOK_R): Don't require it here.
66500
66501 2007-05-13  Bruno Haible  <bruno@clisp.org>
66502
66503         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66504         when used in C++ mode.
66505
66506 2007-05-12  Bruno Haible  <bruno@clisp.org>
66507
66508         * lib/linebuffer.h: Tweak doc.
66509         * lib/linebuffer.c: Likewise.
66510
66511 2007-05-12  James Youngman  <jay@gnu.org>
66512
66513         * lib/linebuffer.c (readlinebuffer_delim): New function,
66514         like readlinebuffer, but use a caller-specified delimiter.
66515         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66516         as the delimiter.
66517         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66518
66519 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66520
66521         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66522         * modules/openat (Files): Remove openat-die.c.
66523         (Depends-on): Add openat-die.
66524         * modules/openat-die: New module.
66525
66526 2007-05-06  Bruno Haible  <bruno@clisp.org>
66527
66528         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66529         Update with info about Cygwin.
66530         * doc/functions/fprintf.texi: Update.
66531         * doc/functions/printf.texi: Update.
66532         * doc/functions/snprintf.texi: Update.
66533         * doc/functions/sprintf.texi: Update.
66534         * doc/functions/vfprintf.texi: Update.
66535         * doc/functions/vprintf.texi: Update.
66536         * doc/functions/vsnprintf.texi: Update.
66537         * doc/functions/vsprintf.texi: Update.
66538         Reported by Eric Blake.
66539
66540 2007-05-06  Bruno Haible  <bruno@clisp.org>
66541
66542         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66543         padding ourselves for the floating-point directives.
66544         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66546         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66547         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66548         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66549         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66550         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66551         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66552         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66553         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66554         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66555         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66556         * tests/test-snprintf-posix.h (test_function): Also check the width
66557         and some flags in the %f directive.
66558         * tests/test-sprintf-posix.h (test_function): Likewise.
66559         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66560         * tests/test-vasprintf-posix.c (test_function): Likewise.
66561         * doc/functions/fprintf.texi: Update.
66562         * doc/functions/printf.texi: Update.
66563         * doc/functions/snprintf.texi: Update.
66564         * doc/functions/sprintf.texi: Update.
66565         * doc/functions/vfprintf.texi: Update.
66566         * doc/functions/vprintf.texi: Update.
66567         * doc/functions/vsnprintf.texi: Update.
66568         * doc/functions/vsprintf.texi: Update.
66569
66570 2007-05-06  Bruno Haible  <bruno@clisp.org>
66571
66572         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66573         pass the ' flag character to sprintf or snprintf.
66574         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66577         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66578         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66586         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66587         flag.
66588         * tests/test-sprintf-posix.h (test_function): Likewise.
66589         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66590         * tests/test-vasprintf-posix.c (test_function): Likewise.
66591         * doc/functions/fprintf.texi: Update.
66592         * doc/functions/printf.texi: Update.
66593         * doc/functions/snprintf.texi: Update.
66594         * doc/functions/sprintf.texi: Update.
66595         * doc/functions/vfprintf.texi: Update.
66596         * doc/functions/vprintf.texi: Update.
66597         * doc/functions/vsnprintf.texi: Update.
66598         * doc/functions/vsprintf.texi: Update.
66599
66600 2007-05-01  Bruno Haible  <bruno@clisp.org>
66601
66602         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66603
66604 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66605
66606         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66607         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66608
66609 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66610
66611         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66612         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66614
66615 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66616
66617         * lib/argp-help.c (struct hol_entry): New member `ord'.
66618         (HOL_ENTRY_PTRCMP): Use ord for comparison
66619         (hol_sort): Initialize ord.
66620
66621 2007-05-01  Bruno Haible  <bruno@clisp.org>
66622
66623         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66624         Reported by Eric Blake.
66625         * doc/gnulib.texi (Function Substitutes): Update.
66626
66627 2007-05-01  Bruno Haible  <bruno@clisp.org>
66628
66629         * doc/functions.texi: Remove file, now redundant through
66630         doc/functions/*.texi.
66631
66632 2007-05-01  Bruno Haible  <bruno@clisp.org>
66633
66634         * modules/argp (Depends-on): Add sleep.
66635
66636 2007-05-01  Bruno Haible  <bruno@clisp.org>
66637
66638         * modules/sleep-tests: New file.
66639         * tests/test-sleep.c: New file.
66640
66641         * modules/sleep: New file.
66642         * lib/sleep.c: New file.
66643         * m4/sleep.m4: New file.
66644         * lib/unistd_.h (sleep): New declaration.
66645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66646         HAVE_SLEEP.
66647         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66648         * doc/functions/sleep.texi: Document the sleep module.
66649
66650 2007-05-01  Bruno Haible  <bruno@clisp.org>
66651
66652         * lib/sigprocmask.h: Remove file.
66653         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66654         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66655         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66656         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66657         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66658         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66659         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66660         HAVE_SIGSET_T as a shell variable.
66661         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66662         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66663         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66664         (Depends-on): Add signal. Remove verify.
66665         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66666         (Include): Mention <signal.h> instead of sigprocmask.h.
66667         * NEWS: Mention the change.
66668         * lib/fatal-signal.c: Don't include sigprocmask.h.
66669
66670 2007-05-01  Bruno Haible  <bruno@clisp.org>
66671
66672         * modules/signal: New file.
66673         * lib/signal_.h: New file.
66674         * m4/signal_h.m4: New file.
66675
66676 2007-05-01  Bruno Haible  <bruno@clisp.org>
66677
66678         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66679         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66680         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66681         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66682
66683 2007-05-01  Bruno Haible  <bruno@clisp.org>
66684
66685         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66686         configure time.
66687         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66688         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66689         * modules/sys_stat (Makefile.am): Substitute their values into
66690         sys/stat.h.
66691
66692 2007-05-01  Bruno Haible  <bruno@clisp.org>
66693
66694         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66695         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66696         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66697
66698 2007-05-01  Bruno Haible  <bruno@clisp.org>
66699
66700         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66701         'assert' module here.
66702
66703 2007-05-01  Bruno Haible  <bruno@clisp.org>
66704
66705         * doc/functions/*.texi: New files.
66706         * doc/functions/google-ranking.txt: New file.
66707         * doc/gnulib.texi (Function Substitutes): New chapter.
66708         (ctime, inet_ntoa): Remove sections.
66709         * doc/ctime.texi: Remove file.
66710         * doc/inet_ntoa.texi: Remove file.
66711         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66712         dependencies.
66713         (%.info): New rule, specifying a --reference-limit.
66714
66715 2007-05-01  Bruno Haible  <bruno@clisp.org>
66716
66717         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66718
66719 2007-05-01  Bruno Haible  <bruno@clisp.org>
66720
66721         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66722         the portability of 'mkdir' to mingw systems.
66723
66724 2007-05-01  Bruno Haible  <bruno@clisp.org>
66725
66726         * doc/headers/google-ranking.txt: New file.
66727
66728 2007-04-30  Eric Blake  <ebb9@byu.net>
66729
66730         Prefer fseeko to fseek.
66731         * modules/getpass (Depends-on): Add fseeko.
66732         * lib/getpass.c (getpass): Use fseeko, not fseek.
66733
66734 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66735
66736         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66737         assumes the sorting is stable, while most qsort implementations
66738         are not.  Use argument addresses to ensure they never compare as
66739         equal.
66740
66741         * tests/test-argp-2.sh (usage-indent test): Fix output
66742         (func_compare): Restore diff options
66743         * tests/test-argp.c: Restore #include "progname.h"
66744
66745 2007-04-29  Bruno Haible  <bruno@clisp.org>
66746
66747         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66748         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66749         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66750         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66751         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66752         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66753         (TESTS, check_PROGRAMS): Add test-snprintf.
66754         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66755         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66756         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66757         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66758         assertions that fail on HP-UX, OSF/1, or IRIX.
66759         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66760
66761 2007-04-29  Bruno Haible  <bruno@clisp.org>
66762
66763         * MODULES.html.sh (posix_functions): Remove 'contents'.
66764
66765 2007-04-29  Karl Berry  <karl@gnu.org>
66766
66767         * config/srclist.txt (gendocs_template_min): new entry.
66768
66769 2007-04-29  Bruno Haible  <bruno@clisp.org>
66770
66771         Work around fpurge bug on BSD systems.
66772         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66773         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66774         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66775         fpurge to rpl_fpurge if the system already has this function.
66776         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66777         the case where the system already has this function. Correct invariants
66778         on BSD systems.
66779         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66780         BSD systems.
66781
66782 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66783
66784         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66785         proposed by Sven Verdoolaege.
66786
66787         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66788         options.
66789         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66790         (usage and help tests): Update
66791
66792 2007-04-29  Bruno Haible  <bruno@clisp.org>
66793
66794         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66795         Print more information in case of failure. Disable a test on BeOS.
66796
66797 2007-04-29  Bruno Haible  <bruno@clisp.org>
66798
66799         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66800         This helps debugging on systems on which no gdb is available.
66801
66802 2007-04-29  Bruno Haible  <bruno@clisp.org>
66803
66804         * lib/freading.h: Improve comments.
66805         * lib/fwriting.h: Likewise.
66806         * tests/test-freading.c (main): Don't check freading immediately after
66807         repositioning. Needed for glibc.
66808
66809 2007-04-29  Bruno Haible  <bruno@clisp.org>
66810
66811         * lib/freading.c (freading): Trivial simplification.
66812
66813 2007-04-28  Bruno Haible  <bruno@clisp.org>
66814
66815         * tests/test-fwriting.c (main): Also test the interaction between
66816         fflush and fwriting.
66817         * modules/fwriting-tests (Depends-on): Add fflush.
66818
66819         * tests/test-freading.c (main): Also test the interaction between
66820         fflush and freading.
66821         * modules/freading-tests (Depends-on): Add fflush.
66822
66823 2007-04-28  Bruno Haible  <bruno@clisp.org>
66824
66825         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66826         fseeko and ftello.
66827         Suggested by Eric Blake.
66828
66829 2007-04-28  Jim Meyering  <jim@meyering.net>
66830
66831         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66832         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66833         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66834
66835 2007-04-27  Eric Blake  <ebb9@byu.net>
66836
66837         * doc/headers/assert.texi (assert.h): Document assert module use.
66838
66839 2007-04-27  Bruno Haible  <bruno@clisp.org>
66840
66841         * doc/headers/*.texi: New files.
66842         * doc/gnulib.texi (Header File Substitutes): New chapter.
66843         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66844         dependencies.
66845         (standards.info ,standards.html, standards.dvi): Update dependencies.
66846         (mostlyclean, clean): New targets.
66847
66848 2007-04-27  Bruno Haible  <bruno@clisp.org>
66849
66850         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66851         * modules/sysexits (Files, Makefile.am): Update.
66852
66853         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66854         * modules/sys_socket (Files, Makefile.am): Update.
66855
66856         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66857         * modules/sys_stat (Files, Makefile.am): Update.
66858
66859 2007-04-27  Eric Blake  <ebb9@byu.net>
66860
66861         * lib/freading.h: Improve comments.
66862         * lib/fwriting.h: Likewise.
66863         * lib/fflush.c: Likewise.
66864
66865         Fix closein for mingw.
66866         * modules/closein-tests: Add tests for closein.
66867         * tests/test-closein.c: New file.
66868         * tests/test-closein.sh: Likewise.
66869         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66870         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66871
66872 2007-04-27  Bruno Haible  <bruno@clisp.org>
66873
66874         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66875         version is < 6.
66876         * lib/math_.h [__DECC]: Likewise.
66877         * lib/stdio_.h [__DECC]: Likewise.
66878         * lib/stdlib_.h [__DECC]: Likewise.
66879         * lib/string_.h [__DECC]: Likewise.
66880         * lib/time_.h [__DECC]: Likewise.
66881         * lib/wchar_.h [__DECC]: Likewise.
66882         * lib/wctype_.h [__DECC]: Likewise.
66883
66884 2007-04-27  Bruno Haible  <bruno@clisp.org>
66885
66886         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66887
66888 2007-04-27  Bruno Haible  <bruno@clisp.org>
66889
66890         * lib/fflush.c: Add comments.
66891         * modules/fpurge-tests (Depends-on): Add fflush.
66892         * modules/freadable-tests (Depends-on): Likewise.
66893         * modules/fwritable-tests (Depends-on): Likewise.
66894
66895 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66896
66897         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66898         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66899         Report by Bruno Haible <bruno@clisp.org>.
66900
66901 2007-04-26  Eric Blake  <ebb9@byu.net>
66902
66903         Fix fflush on mingw.
66904         * modules/fflush (Depends-on): Add freading.
66905         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66906         but unread data.
66907
66908 2007-04-26  Eric Blake  <ebb9@byu.net>
66909         and Bruno Haible  <bruno@clisp.org>
66910
66911         Implement freading and fwriting.
66912         * lib/freading.c: New file.
66913         * lib/freading.h: Likewise.
66914         * m4/freading.m4: Likewise.
66915         * modules/freading: Likewise.
66916         * modules/freading-tests: Likewise.
66917         * tests/test-freading.c: Likewise.
66918         * lib/fwriting.c: New file.
66919         * lib/fwriting.h: Likewise.
66920         * m4/fwriting.m4: Likewise.
66921         * modules/fwriting: Likewise.
66922         * modules/fwriting-tests: Likewise.
66923         * tests/test-fwriting.c: Likewise.
66924         * MODULES.html.sh (File stream based Input/Output): Mention them.
66925
66926 2007-04-26  Bruno Haible  <bruno@clisp.org>
66927
66928         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66929         'long' when we assume it.
66930         Suggested by Eric Blake.
66931
66932 2007-04-26  Bruno Haible  <bruno@clisp.org>
66933
66934         Ensure fseeko, ftello are declared on glibc systems.
66935         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66936         * modules/fseeko (configure.ac-early): Likewise.
66937         * modules/ftello (configure.ac-early): Likewise.
66938         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66939         AC_FUNC_FSEEKO for this.
66940         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66941         (gl_CHECK_FSEEKO): Remove macro.
66942
66943 2007-04-26  Bruno Haible  <bruno@clisp.org>
66944
66945         * tests/test-fflush.c (main): Also check the ftell result after
66946         fflush and fseek/fseeko.
66947         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66948         file descriptor position cache in the stream.
66949         * lib/fseeko.c (rpl_fseeko): Likewise.
66950
66951 2007-04-26  Bruno Haible  <bruno@clisp.org>
66952
66953         * modules/fflush-tests (Depends-on): Add fseeko.
66954
66955 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66956             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66957
66958         * lib/argz_.h: ensure error_t definition is obtained in same
66959         mechanism system argz.h would have.
66960         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66961         argz facilities are known bad.  Err on the side of caution if
66962         cross-compiling.
66963
66964 2007-04-25  Eric Blake  <ebb9@byu.net>
66965
66966         * lib/fpurge.c (includes): Use stdlib.h for free.
66967         * tests/test-fflush.c (main): Also test fflush-fseeko.
66968
66969 2007-04-25  Bruno Haible  <bruno@clisp.org>
66970
66971         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66972         * lib/fseeko.c: New file.
66973         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66974         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66975         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66976         gl_FUNC_FSEEKO.
66977         (gl_FUNC_FSEEKO): Invoke it.
66978         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66979         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66980         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66981
66982 2007-04-25  Bruno Haible  <bruno@clisp.org>
66983
66984         * modules/fflush (Depends-on): Add ftello.
66985
66986 2007-04-25  Bruno Haible  <bruno@clisp.org>
66987
66988         * modules/ftello-tests: New file.
66989         * tests/test-ftello.c: New file.
66990
66991         * modules/ftello: New file.
66992         * m4/ftello.m4: New file.
66993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66994         HAVE_FTELLO.
66995         * lib/stdio_.h (ftello): New declaration.
66996         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66997         HAVE_FTELLO.
66998
66999 2007-04-25  Bruno Haible  <bruno@clisp.org>
67000
67001         * modules/fseeko-tests: New file.
67002         * tests/test-fseeko.c: New file.
67003
67004         * modules/fseeko: New file.
67005         * m4/fseeko.m4: New file.
67006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
67007         HAVE_FSEEKO.
67008         * lib/stdio_.h (fseeko): New declaration.
67009         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67010         HAVE_FSEEKO.
67011
67012 2007-04-25  Bruno Haible  <bruno@clisp.org>
67013
67014         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67015
67016 2007-04-25  Bruno Haible  <bruno@clisp.org>
67017
67018         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67019         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67020         * tests/test-unistd.c: Likewise.
67021         * tests/test-fcntl.c: Likewise.
67022
67023 2007-04-23  Eric Blake  <ebb9@byu.net>
67024
67025         * lib/fflush.c: Fix missing include.
67026         Reported by Bruno Haible.
67027
67028 2007-04-23  Bruno Haible  <bruno@clisp.org>
67029
67030         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67031         Reported by Eric Blake.
67032
67033 2007-04-23  Bruno Haible  <bruno@clisp.org>
67034
67035         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67036
67037 2007-04-23  Bruno Haible  <bruno@clisp.org>
67038
67039         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67040
67041 2007-04-23  Bruno Haible  <bruno@clisp.org>
67042
67043         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67044         Needed on HP-UX 11.
67045
67046 2007-04-16  Eric Blake  <ebb9@byu.net>
67047
67048         Make fflush rely on fpurge.
67049         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67050         open coding all variants.
67051         * modules/fflush (Depends-on): Add fpurge and unistd.
67052         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67053         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67054
67055         Fix --with-tests compilation on cygwin.
67056         * modules/argmatch-tests (Makefile.am): List gnulib library first
67057         in LDADD.
67058         * modules/argp-tests (Makefile.am): Likewise.
67059         * modules/array-list-tests (Makefile.am): Likewise.
67060         * modules/array-oset-tests (Makefile.am): Likewise.
67061         * modules/avltree-list-tests (Makefile.am): Likewise.
67062         * modules/avltree-oset-tests (Makefile.am): Likewise.
67063         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67064         * modules/carray-list-tests (Makefile.am): Likewise.
67065         * modules/dirname-tests (Makefile.am): Likewise.
67066         * modules/frexp-tests (Makefile.am): Likewise.
67067         * modules/isnanl-tests (Makefile.am): Likewise.
67068         * modules/linked-list-tests (Makefile.am): Likewise.
67069         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67070         * modules/lock-tests (Makefile.am): Likewise.
67071         * modules/rbtree-list-tests (Makefile.am): Likewise.
67072         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67073         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67074         * modules/tls-tests (Makefile.am): Likewise.
67075         * modules/tsearch-tests (Makefile.am): Likewise.
67076         * modules/xvasprintf-tests (Makefile.am): Likewise.
67077
67078         Fix fpurge for cygwin.
67079         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67080         value.
67081         * modules/fpurge-tests (Depends-on): Clean up trash.
67082
67083 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67084
67085         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67086
67087         * m4/autobuild.m4: Re-indent.
67088
67089 2007-04-13  Bruno Haible  <bruno@clisp.org>
67090
67091         * modules/fpurge-tests: New file.
67092         * tests/test-fpurge.c: New file.
67093
67094         * modules/fpurge: New file.
67095         * lib/fpurge.h: New file.
67096         * lib/fpurge.c: New file.
67097         * m4/fpurge.m4: New file.
67098
67099 2007-04-13  Bruno Haible  <bruno@clisp.org>
67100
67101         * modules/fbufmode-tests: New file.
67102         * tests/test-fbufmode.c: New file.
67103
67104         * modules/fbufmode: New file.
67105         * lib/fbufmode.h: New file.
67106         * lib/fbufmode.c: New file.
67107         * m4/fbufmode.m4: New file.
67108
67109 2007-04-13  Bruno Haible  <bruno@clisp.org>
67110
67111         * modules/fwritable-tests: New file.
67112         * tests/test-fwritable.c: New file.
67113
67114         * modules/fwritable: New file.
67115         * lib/fwritable.h: New file.
67116         * lib/fwritable.c: New file.
67117         * m4/fwritable.m4: New file.
67118
67119 2007-04-13  Bruno Haible  <bruno@clisp.org>
67120
67121         * modules/freadable-tests: New file.
67122         * tests/test-freadable.c: New file.
67123
67124         * modules/freadable: New file.
67125         * lib/freadable.h: New file.
67126         * lib/freadable.c: New file.
67127         * m4/freadable.m4: New file.
67128
67129 2007-04-13  Bruno Haible  <bruno@clisp.org>
67130
67131         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67132         MOSTLYCLEANFILES.
67133
67134 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67135
67136         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67137         gzip bootstrap.conf to avoid dragging in i18n machinery.
67138         (gnulib_tool_option): Use it.
67139
67140 2007-04-13  Bruno Haible  <bruno@clisp.org>
67141
67142         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67143         %F directives.
67144         * tests/test-vasprintf-posix.c (test_function): Likewise.
67145         * tests/test-snprintf-posix.h (test_function): Likewise.
67146         * tests/test-sprintf-posix.h (test_function): Likewise.
67147         * tests/test-fprintf-posix.h (test_function): Likewise.
67148         * tests/test-printf-posix.h (test_function): Likewise.
67149         * tests/test-fprintf-posix.out: Likewise.
67150
67151 2007-04-13  Bruno Haible  <bruno@clisp.org>
67152
67153         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67154         * modules/tls-tests (configure.ac): Likewise.
67155         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67156
67157 2007-04-13  Bruno Haible  <bruno@clisp.org>
67158
67159         * lib/tls.c (glthread_tls_get): Fix return type.
67160         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67161
67162 2007-04-12  Eric Blake  <ebb9@byu.net>
67163
67164         * modules/gettime (Depends-on): Remove gettime.
67165         Reported by Dmitry V. Levin.
67166
67167 2007-04-12  Bruno Haible  <bruno@clisp.org>
67168
67169         * modules/fflush (Include): Mention <stdio.h>.
67170         * modules/strtoimax (Include): Mention <inttypes.h>.
67171         * modules/strtoumax (Include): Likewise.
67172
67173 2007-04-12  Eric Blake  <ebb9@byu.net>
67174
67175         * .cvsignore: New file.
67176         * .gitignore: Likewise.
67177
67178 2007-04-12  Bruno Haible  <bruno@clisp.org>
67179
67180         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67181         not before, since $(LDADD) often contains libgnu.a.
67182         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67183         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67184         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67185         Needed on Cygwin.
67186
67187 2007-04-12  Eric Blake  <ebb9@byu.net>
67188
67189         Work around glibc's failure to flush stdin on fclose.
67190         * lib/closein.c (close_stdin): Flush stdin before closing.
67191
67192         Work around glibc's failure to reset seekable stdin on exit.
67193         * modules/closein: New module.
67194         * lib/closein.c: New file.
67195         * lib/closein.h: Likewise.
67196         * m4/closein.m4: Likewise.
67197         * MODULES.html.sh (File stream based Input/Output): Document it.
67198
67199 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67200
67201         * gnulib-tool: Rename generated 'autobuild' script to
67202         'do-autobuild' in --create-megatestdir output.
67203
67204         * doc/gnulib.texi (Build robot for gnulib): Fix.
67205
67206 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67207
67208         * modules/sysexits (Depends-on): Add absolute-header.
67209
67210 2007-04-12  Eric Blake  <ebb9@byu.net>
67211
67212         No need to preserve errno on success.
67213         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67214         Reported by Bruno Haible.
67215
67216 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67217
67218         * MODULES.html.sh (Support for maintaining and releasing
67219         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67220
67221 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67222
67223         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67224
67225 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67226
67227         * modules/autobuild: New module.
67228
67229         * m4/autobuild.m4: New file.
67230
67231 2007-04-11  Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67234         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67235         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67236         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67237         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67238         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67239         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67240         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67241         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67242         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67243         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67244         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67245         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67246         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67247         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67248         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67249         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67250         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67251         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67252         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67253         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67254         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67255         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67256         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67257         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67258         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67259         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67260         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67261         Reported by Eric Blake.
67262
67263 2007-04-11  Bruno Haible  <bruno@clisp.org>
67264
67265         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67266
67267 2007-04-10  Bruno Haible  <bruno@clisp.org>
67268
67269         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67270         for NaN and Infinity. Needed on FreeBSD 6.1.
67271         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67272         regarding results for "%010a" of Infinity and NaN.
67273         * tests/test-vasprintf-posix.c (test_function): Likewise.
67274         * tests/test-snprintf-posix.h (test_function): Likewise.
67275         * tests/test-sprintf-posix.h (test_function): Likewise.
67276         * tests/test-fprintf-posix.h (test_function): Likewise.
67277         * tests/test-printf-posix.h (test_function): Likewise.
67278         * tests/test-fprintf-posix.out: Likewise.
67279
67280 2007-04-10  Bruno Haible  <bruno@clisp.org>
67281
67282         * modules/locale-tests: New file.
67283         * tests/test-locale.c: New file.
67284
67285         * modules/locale: New file.
67286         * lib/locale_.h: New file.
67287         * m4/locale_h.m4: New file.
67288
67289 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67290             Bruno Haible  <bruno@clisp.org>
67291
67292         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67293         be determined, test for availability of the copysignf, copysign,
67294         copysignl functions.
67295         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67296         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67297         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67298
67299 2007-04-09  Eric Blake  <ebb9@byu.net>
67300
67301         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67302         * modules/stdio (Makefile.am): Support fflush.
67303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67304         * modules/fflush: New file.
67305         * lib/fflush.c: Likewise.
67306         * m4/fflush.m4: Likewise.
67307         * modules/fflush-tests: New test.
67308         * tests/test-fflush.c: Likewise.
67309         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67310
67311 2007-04-06  Bruno Haible  <bruno@clisp.org>
67312
67313         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67314         (VASNPRINTF): Use signbit for faster determination whether to print a
67315         minus sign.
67316         * modules/vasnprintf (Files): Remove lib/float+.h.
67317         * modules/fprintf-posix (Depends-on): Add signbit.
67318         * modules/snprintf-posix (Depends-on): Likewise.
67319         * modules/sprintf-posix (Depends-on): Likewise.
67320         * modules/vasnprintf-posix (Depends-on): Likewise.
67321         * modules/vasprintf-posix (Depends-on): Likewise.
67322         * modules/vfprintf-posix (Depends-on): Likewise.
67323         * modules/vsnprintf-posix (Depends-on): Likewise.
67324         * modules/vsprintf-posix (Depends-on): Likewise.
67325
67326 2007-04-06  Bruno Haible  <bruno@clisp.org>
67327
67328         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67329         * tests/test-frexpl.c (main): Likewise.
67330         * tests/test-ldexpl.c (main): Likewise.
67331         * modules/frexp-tests (Depends-on): Add signbit.
67332         * modules/frexpl-tests (Depdends-on): Likewise.
67333         * modules/ldexpl-tests (Depdends-on): Likewise.
67334
67335 2007-04-06  Bruno Haible  <bruno@clisp.org>
67336
67337         * modules/signbit-tests: New file.
67338         * tests/test-signbit.c: New file.
67339
67340         * modules/signbit: New file.
67341         * lib/signbitf.c: New file.
67342         * lib/signbitd.c: New file.
67343         * lib/signbitl.c: New file.
67344         * m4/signbit.m4: New file.
67345         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67346         (signbit): New macro.
67347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67348         REPLACE_SIGNBIT.
67349         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67350         REPLACE_FREXPL into math.h.
67351
67352 2007-04-06  Bruno Haible  <bruno@clisp.org>
67353
67354         * modules/isnanf-nolibm-tests: New file.
67355         * tests/test-isnanf.c: New file.
67356
67357         * modules/isnanf-nolibm: New file.
67358         * lib/isnanf.h: New file.
67359         * lib/isnanf.c: New file.
67360         * lib/isnan.c: Consider the USE_FLOAT macro.
67361         * m4/isnanf.m4: New file.
67362
67363 2007-04-06  Bruno Haible  <bruno@clisp.org>
67364
67365         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67366         (Link): New section.
67367
67368         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67369
67370 2007-04-06  Bruno Haible  <bruno@clisp.org>
67371
67372         Assume the 'long double' type.
67373         * m4/longdouble.m4: Remove file.
67374         * config/srclist.txt: Don't mention longdouble.m4.
67375         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67376         * lib/float+.h: Likewise.
67377         * lib/frexp.c: Likewise.
67378         * lib/printf-args.h: Likewise.
67379         * lib/printf-args.c: Likewise.
67380         * lib/printf-frexp.c: Likewise.
67381         * lib/printf-parse.c: Likewise.
67382         * lib/vasnprintf.c: Likewise.
67383         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67384         * m4/intl.m4: Likewise.
67385         * m4/isnanl.m4: Likewise.
67386         * m4/printf.m4: Likewise.
67387         * m4/printf-frexpl.m4: Likewise.
67388         * m4/vasnprintf.m4: Likewise.
67389         * modules/allocsa (Files): Remove m4/longdouble.m4.
67390         * modules/gettext (Files): Likewise.
67391         * modules/relocatable-prog-wrapper (Files): Likewise.
67392         * modules/vasnprintf (Files): Likewise.
67393         * modules/isnanl (Files): Likewise.
67394         (Include): Simplify.
67395         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67396         (Include): Simplify.
67397         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67398         (Include): Simplify.
67399         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67400         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67401         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67402         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67403         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67404         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67405         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67406         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67407         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67408         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67409         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67410         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67411         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67412         * tests/test-isnanl.c: Likewise.
67413         * tests/test-snprintf-posix.h: Likewise.
67414         * tests/test-sprintf-posix.h: Likewise.
67415         * tests/test-vasnprintf-posix.c: Likewise.
67416         * tests/test-vasnprintf-posix2.c: Likewise.
67417         * tests/test-vasprintf-posix.c: Likewise.
67418
67419 2007-04-06  Bruno Haible  <bruno@clisp.org>
67420
67421         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67422         * lib/math_.h [__DECC]: Include the overridden include file through
67423         #include_next, outside the double-inclusion guard.
67424         * lib/stdio_.h [__DECC]: Likewise.
67425         * lib/stdlib_.h [__DECC]: Likewise.
67426         * lib/string_.h [__DECC]: Likewise.
67427         * lib/time_.h [__DECC]: Likewise.
67428         * lib/wchar_.h [__DECC]: Likewise.
67429         * lib/wctype_.h [__DECC]: Likewise.
67430         * lib/inttypes_.h [__DECC]: Likewise.
67431         Reported by Albert Chin <china@thewrittenword.com> in
67432         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67433
67434 2007-04-04  Eric Blake  <ebb9@byu.net>
67435
67436         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67437         1.5.x.
67438
67439 2007-04-04  Bruno Haible  <bruno@clisp.org>
67440
67441         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67442         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67443
67444 2007-04-04  Bruno Haible  <bruno@clisp.org>
67445
67446         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67447         results for "%010a" of Infinity and NaN.
67448         * tests/test-vasprintf-posix.c (test_function): Likewise.
67449         * tests/test-snprintf-posix.h (test_function): Likewise.
67450         * tests/test-sprintf-posix.h (test_function): Likewise.
67451         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67452         * tests/test-printf-posix.h (test_function): Likewise.
67453         * tests/test-fprintf-posix.out: Update.
67454         Needed for FreeBSD 6.1.
67455
67456 2007-04-04  Bruno Haible  <bruno@clisp.org>
67457
67458         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67459         directly used by the gnulib modules nor by gnulib-tool.
67460
67461 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67462
67463         * DEPENDENCIES: Give overall description of version dependency
67464         desirability.  Use more-typical names for apps.
67465         Add shell, coreutils, diffutils, grep, tar, gzip.
67466
67467 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67468
67469         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67470
67471 2007-04-04  Karl Berry  <karl@gnu.org>
67472
67473         * MODULES.html.sh (func_module): missing '.
67474
67475 2007-04-03  Bruno Haible  <bruno@clisp.org>
67476
67477         * modules/argmatch-tests (Makefile.am): New variable
67478         test_argmatch_LDADD.
67479         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67480         * modules/array-list-tests (Makefile.am): New variable
67481         test_array_list_LDADD.
67482         * modules/array-oset-tests (Makefile.am): New variable
67483         test_array_oset_LDADD.
67484         * modules/avltree-list-tests (Makefile.am): New variable
67485         test_avltree_list_LDADD.
67486         * modules/avltree-oset-tests (Makefile.am): New variable
67487         test_avltree_oset_LDADD.
67488         * modules/avltreehash-list-tests (Makefile.am): New variable
67489         test_avltreehash_list_LDADD.
67490         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67491         test_canonicalize_lgpl_LDADD.
67492         * modules/carray-list-tests (Makefile.am): New variable
67493         test_carray_list_LDADD.
67494         * modules/dirname-tests (Makefile.am): New variable
67495         test_dirname_LDADD.
67496         * modules/linked-list-tests (Makefile.am): New variable
67497         test_linked_list_LDADD.
67498         * modules/linkedhash-list-tests (Makefile.am): New variable
67499         test_linkedhash_list_LDADD.
67500         * modules/rbtree-list-tests (Makefile.am): New variable
67501         test_rbtree_list_LDADD.
67502         * modules/rbtree-oset-tests (Makefile.am): New variable
67503         test_rbtree_oset_LDADD.
67504         * modules/rbtreehash-list-tests (Makefile.am): New variable
67505         test_rbtreehash_list_LDADD.
67506         * modules/xvasprintf-tests (Makefile.am): New variable
67507         test_xvasprintf_LDADD.
67508         Reported by Eric Blake.
67509
67510 2007-04-03  Eric Blake  <ebb9@byu.net>
67511
67512         * DEPENDENCIES: Weaken m4 requirements.
67513
67514 2007-04-03  Bruno Haible  <bruno@clisp.org>
67515
67516         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67517         * modules/isnanl-tests (configure.ac): Likewise.
67518
67519 2007-04-03  Ben Pfaff  <blp@gnu.org>
67520
67521         * modules/iconv_open: Add $(srcdir)/ to source directory
67522         references in Makefile fragments that call gperf, to fix VPATH
67523         builds.
67524
67525 2007-04-03  Bruno Haible  <bruno@clisp.org>
67526
67527         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67528         * lib/ldexpl.c: Undo last change.
67529
67530 2007-04-03  Bruno Haible  <bruno@clisp.org>
67531
67532         * modules/printf-frexpl (Depends-on): Undo last change.
67533         (Files): Add m4/ldexpl.m4.
67534
67535 2007-04-03  Bruno Haible  <bruno@clisp.org>
67536
67537         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67538         * modules/isnanl (Link): New section.
67539
67540         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67541         * modules/frexp (Link): New section.
67542
67543         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67544         * modules/frexpl (Link): New section.
67545
67546         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67547         * modules/ldexpl (Link): New section.
67548
67549 2007-04-03  Bruno Haible  <bruno@clisp.org>
67550
67551         * modules/TEMPLATE-EXTENDED: New file.
67552         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67553
67554 2007-04-03  Bruno Haible  <bruno@clisp.org>
67555
67556         * DEPENDENCIES: New file.
67557         Suggested by Simon Josefsson.
67558
67559 2007-04-03  Bruno Haible  <bruno@clisp.org>
67560
67561         * doc/gnulib.texi: Escape @.
67562
67563 2007-04-03  James Youngman  <jay@gnu.org>
67564         and Paul Eggert  <eggert@cs.ucla.edu>
67565
67566         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67567         birthtime on all systems that have birthtime, not just those which
67568         use st_birthtimensec rather than st_birthtim.  Putting zero in
67569         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67570         that the birth time is not available for files on an NFS mount.
67571
67572 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67573
67574         * modules/memxor: Move back from crypto/, suggested by Bruno.
67575         * modules/crypto/hmac-sha1: Fix memxor dependency.
67576
67577         * modules/crypto/gc: Moved from ../.
67578
67579 2007-04-02  Eric Blake  <ebb9@byu.net>
67580
67581         * lib/ldexpl.c (includes): Avoid libm.
67582
67583         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67584
67585 2007-04-02  Bruno Haible  <bruno@clisp.org>
67586
67587         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67588         on IRIX.
67589
67590 2007-04-02  Bruno Haible  <bruno@clisp.org>
67591
67592         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67593         x86 or x86_64 platforms running MacOS X.
67594         Reported by Ryan Schmidt <@ryandesign.com>.
67595
67596 2007-04-02  Bruno Haible  <bruno@clisp.org>
67597
67598         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67599         i386.
67600
67601 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67602
67603         * modules/crypto/arcfour: Moved from ../.
67604         * modules/crypto/arcfour-tests: Moved from ../.
67605         * modules/crypto/arctwo: Moved from ../.
67606         * modules/crypto/arctwo-tests: Moved from ../.
67607         * modules/crypto/des: Moved from ../.
67608         * modules/crypto/des-tests: Moved from ../.
67609         * modules/crypto/gc-arcfour: Moved from ../.
67610         * modules/crypto/gc-arcfour-tests: Moved from ../.
67611         * modules/crypto/gc-arctwo: Moved from ../.
67612         * modules/crypto/gc-arctwo-tests: Moved from ../.
67613         * modules/crypto/gc-des: Moved from ../.
67614         * modules/crypto/gc-des-tests: Moved from ../.
67615         * modules/crypto/gc-hmac-md5: Moved from ../.
67616         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67617         * modules/crypto/gc-hmac-sha1: Moved from ../.
67618         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67619         * modules/crypto/gc-md2: Moved from ../.
67620         * modules/crypto/gc-md2-tests: Moved from ../.
67621         * modules/crypto/gc-md4: Moved from ../.
67622         * modules/crypto/gc-md4-tests: Moved from ../.
67623         * modules/crypto/gc-md5: Moved from ../.
67624         * modules/crypto/gc-md5-tests: Moved from ../.
67625         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67626         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67627         * modules/crypto/gc-random: Moved from ../.
67628         * modules/crypto/gc-rijndael: Moved from ../.
67629         * modules/crypto/gc-rijndael-tests: Moved from ../.
67630         * modules/crypto/gc-sha1: Moved from ../.
67631         * modules/crypto/gc-sha1-tests: Moved from ../.
67632         * modules/crypto/gc-tests: Moved from ../.
67633         * modules/crypto/hmac-md5: Moved from ../.
67634         * modules/crypto/hmac-md5-tests: Moved from ../.
67635         * modules/crypto/hmac-sha1: Moved from ../.
67636         * modules/crypto/hmac-sha1-tests: Moved from ../.
67637         * modules/crypto/md2: Moved from ../.
67638         * modules/crypto/md2-tests: Moved from ../.
67639         * modules/crypto/md4: Moved from ../.
67640         * modules/crypto/md4-tests: Moved from ../.
67641         * modules/crypto/md5: Moved from ../.
67642         * modules/crypto/md5-tests: Moved from ../.
67643         * modules/crypto/memxor: Moved from ../.
67644         * modules/crypto/rijndael: Moved from ../.
67645         * modules/crypto/rijndael-tests: Moved from ../.
67646         * modules/crypto/sha1: Moved from ../.
67647
67648 2007-03-30  James Youngman  <jay@gnu.org>
67649
67650         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67651         rename() to change the ctime of a file (because ctime is unaffected
67652         by rename on jfs2 on AIX 5.1).
67653         (main): Start by doing cleanup, in case a previous run failed leaving
67654         test files behind.
67655
67656 2007-03-31  Bruno Haible  <bruno@clisp.org>
67657
67658         Support old proprietary implementations of iconv.
67659         * modules/iconv_open: New file.
67660         * lib/iconv_.h: New file.
67661         * m4/iconv_h.m4: New file.
67662         * lib/iconv_open.c: New file.
67663         * lib/iconv_open-aix.gperf: New file.
67664         * lib/iconv_open-hpux.gperf: New file.
67665         * lib/iconv_open-irix.gperf: New file.
67666         * lib/iconv_open-osf.gperf: New file.
67667         * m4/iconv_open.m4: New file.
67668         * modules/linebreak (Depends-on): Add iconv_open.
67669         * modules/striconv (Depends-on): Likewise.
67670         * modules/striconveh (Depends-on): Likewise.
67671         * modules/unicodeio (Depends-on): Likewise.
67672         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67673         (iconv_t)(-1).
67674         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67675         conversion if cd is (iconv_t)(-1).
67676         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67677         is not possible.
67678
67679 2007-03-31  Bruno Haible  <bruno@clisp.org>
67680
67681         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67682         work on Solaris either. Protect also second use of "autodetect_jp".
67683
67684 2007-03-31  Bruno Haible  <bruno@clisp.org>
67685
67686         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67687         the function is not present.
67688
67689 2007-03-31  Bruno Haible  <bruno@clisp.org>
67690
67691         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67692         the function is not present.
67693
67694 2007-03-31  Bruno Haible  <bruno@clisp.org>
67695
67696         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67697         a bug in HP-UX iconv_open().
67698
67699 2007-03-31  Bruno Haible  <bruno@clisp.org>
67700
67701         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67702         (Mathematics <math.h>): New section, add fpieee.
67703         (Input/output <stdio.h>): Add fseterr.
67704         (Mathematics <math.h>): New section, add printf-frexp.
67705         (Container data structures): Add sublist.
67706         (Core language properties): Add fpucw, inline.
67707         (Functions for greatest-width integer types <inttypes.h>): Add
67708         imaxabs, imaxdiv, inttypes.
67709         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67710         isnanl-nolibm, ldexp.
67711         (Mathematics <math.h>): New section, add printf-frexpl.
67712         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67713         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67714         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67715         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67716         (Unicode string functions): Add unistr/u*-mbtoucr.
67717         (Java): Add javacomp-script, javaexec-script.
67718         (C#): Add csharpcomp-script, csharpexec-script.
67719         (Support for building libraries and executables): Add havelib,
67720         relocatable-*.
67721         (Support for maintaining and releasing projects): Renamed from
67722         'Support for maintaining and release projects'. Add announce-gen.
67723
67724 2007-03-31  Bruno Haible  <bruno@clisp.org>
67725
67726         * README: Talk primarily about git.
67727         (git and CVS): Renamed from CVS.
67728         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67729         gnulib is available through git.
67730         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67731
67732 2007-03-30  Bruno Haible  <bruno@clisp.org>
67733
67734         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67735         * lib/poll_.h: Likewise.
67736         * lib/stat_.h: Likewise.
67737         * lib/sys_time_.h: Likewise.
67738         * lib/sysexit_.h: Likewise.
67739         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67740         * lib/stdbool_.h: Likewise.
67741         * lib/byteswap_.h: Add double-inclusion guard.
67742
67743 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67744
67745         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67746
67747 2007-03-30  Karl Berry  <karl@gnu.org>
67748
67749         * config/srclist-update: double space after USA in the license
67750         substitution, since that's how it's usually (?) written.
67751
67752 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67753
67754         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67755         reported by Bruno Haible.
67756
67757 2007-03-29  Bruno Haible  <bruno@clisp.org>
67758
67759         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67760         a bug in AIX iconv().
67761
67762 2007-03-29  Bruno Haible  <bruno@clisp.org>
67763
67764         * modules/ldexpl-tests: New file.
67765         * tests/test-ldexpl.c: New file.
67766
67767 2007-03-29  Bruno Haible  <bruno@clisp.org>
67768
67769         * lib/ldexpl.c: Include fpucw.h.
67770         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67771         multiplication.
67772         * modules/ldexpl (Depends-on): Add fpucw.
67773
67774 2007-03-29  Bruno Haible  <bruno@clisp.org>
67775
67776         * modules/ldexpl: New file.
67777         * m4/ldexpl.m4: New file.
67778         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67779         set.
67780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67781         REPLACE_LDEXPL.
67782         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67783         REPLACE_LDEXPL.
67784         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67785         gl_FUNC_LDEXPL_WORKS.
67786         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67787         * modules/mathl (Files): Remove lib/ldexpl.c.
67788         (Depends-on): Add ldexpl.
67789
67790 2007-03-29  Bruno Haible  <bruno@clisp.org>
67791
67792         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67793
67794 2007-03-29  Bruno Haible  <bruno@clisp.org>
67795
67796         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67797         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67798         and possibly also HP-UX.
67799         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67800         work on AIX, IRIX, HP-UX, OSF/1.
67801         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67802         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67803         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67804         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67805         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67806         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67807
67808 2007-03-29  Bruno Haible  <bruno@clisp.org>
67809
67810         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67811
67812 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67813
67814         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67815         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67816
67817 2007-03-29  Eric Blake  <ebb9@byu.net>
67818
67819         * lib/acl-internal.h: Remove redundant include.
67820         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67821         Cygwin when a file is locked.
67822
67823 2007-03-29  Bruno Haible  <bruno@clisp.org>
67824
67825         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67826         file.
67827         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67828
67829 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67830
67831         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67832         try to remove a parent directory if the child couldn't be removed
67833         (except for the first rmdir, which could fail because the child
67834         doesn't exist).  Problem reported by Jeff Blaine in
67835         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67836
67837 2007-03-28  Bruno Haible  <bruno@clisp.org>
67838
67839         * lib/striconveh.c (utf8conv_carefully): New function.
67840         (mem_cd_iconveh_internal): Invoke it.
67841
67842 2007-03-28  Bruno Haible  <bruno@clisp.org>
67843
67844         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67845         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67846         input.
67847         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67848         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67849         unistr/u8-uctomb.
67850
67851 2007-03-28  Bruno Haible  <bruno@clisp.org>
67852
67853         * modules/unistr/u8-mbtoucr: New file.
67854         * lib/unistr/u8-mbtoucr.c: New file.
67855         * modules/unistr/u16-mbtoucr: New file.
67856         * lib/unistr/u16-mbtoucr.c: New file.
67857         * modules/unistr/u16-mbtoucr: New file.
67858         * lib/unistr/u16-mbtoucr.c: New file.
67859         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67860
67861 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67862             Bruno Haible  <bruno@clisp.org>
67863
67864         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67865         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67866         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67867
67868         * m4/stdio_h.m4: Add stubs for vasprintf too.
67869
67870         * modules/stdio: Support vasprintf in sed command.
67871
67872         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67873         vasprintf.h.  Add stdio module indicator.
67874
67875         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67876         vasprintf.h.
67877
67878         * lib/vasprintf.h: File removed.
67879
67880         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67881         * lib/vasprintf.c: Ditto.
67882         * lib/xvasprintf.c: Ditto.
67883         * tests/test-vasprintf-posix.c: Ditto.
67884         * tests/test-vasprintf.c: Ditto.
67885
67886 2007-03-27  Bruno Haible  <bruno@clisp.org>
67887
67888         Make vasnprintf multithread-safe.
67889         * lib/vasnprintf.c (decimal_point_char): New function.
67890         (VASNPRINTF): Use it.
67891         Suggested by Simon Josefsson.
67892
67893 2007-03-27  Eric Blake  <ebb9@byu.net>
67894
67895         Support sub-second birthtime on cygwin.
67896         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67897         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67898         (get_stat_birthtime): Also work with st_birthtim.
67899
67900 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67901
67902         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67903         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67904         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67905         (get_stat_birthtime_ns): Simplify compile-time tests.
67906         (get_stat_birthtime): Change the API to look like
67907         get_stat_mtime etc., except return a negative tv_nsec on error.
67908         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67909         Don't check for "spare" fields.
67910         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67911         or for struct stat.st_birthtime, as these tests aren't used.
67912         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67913
67914 2007-03-27  Bruno Haible  <bruno@clisp.org>
67915
67916         * lib/stat-time.h: Include <sys/stat.h>.
67917
67918 2007-03-27  James Youngman  <jay@gnu.org>
67919
67920         * lib/stat-time.h (get_stat_birthtime): New function for
67921           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67922         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67923           and its variants.
67924         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67925         * modules/stat-time-test: New file.
67926         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67927
67928 2007-03-26  Bruno Haible  <bruno@clisp.org>
67929
67930         Better support of signalling NaNs.
67931         * lib/atanl.c: Include isnanl.h.
67932         (atanl): Perform test for NaN at the beginning of the function and
67933         through a call to isnanl.
67934         * lib/cosl.c: Include isnanl.h.
67935         (cosl): Perform test for NaN at the beginning of the function and
67936         through a call to isnanl.
67937         * lib/ldexpl.c: Include isnanl.h.
67938         (ldexpl): Perform test for NaN through a call to isnanl.
67939         * lib/logl.c: Include isnanl.h.
67940         (logl): Perform test for NaN at the beginning of the function and
67941         through a call to isnanl.
67942         * lib/sinl.c: Include isnanl.h.
67943         (sinl): Perform test for NaN at the beginning of the function and
67944         through a call to isnanl.
67945         * lib/sqrtl.c: Include isnanl.h.
67946         (sqrtl): Perform test for NaN at the beginning of the function and
67947         through a call to isnanl.
67948         * lib/tanl.c: Include isnanl.h.
67949         (tanl): Perform test for NaN at the beginning of the function and
67950         through a call to isnanl.
67951         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67952         * modules/mathl (Depends-on): Add isnanl.
67953
67954 2007-03-26  Eric Blake  <ebb9@byu.net>
67955
67956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67957         regression in logic sense of previous patch.
67958
67959 2007-03-26  Bruno Haible  <bruno@clisp.org>
67960
67961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67962         unportable shell command "if ! ...".
67963         Reported by Ralf Wildenhues.
67964
67965 2007-03-25  Bruno Haible  <bruno@clisp.org>
67966
67967         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67968         <sysexits.h> file, and only add EX_CONFIG.
67969         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67970         absolute file name and whether it is sufficient. Substitute also
67971         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67972         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67973         ABSOLUTE_SYSEXITS_H into sysexits.h.
67974
67975 2007-03-25  Bruno Haible  <bruno@clisp.org>
67976
67977         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67978         hints is NULL.
67979
67980 2007-03-25  Bruno Haible  <bruno@clisp.org>
67981
67982         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67983         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67984
67985 2007-03-25  Bruno Haible  <bruno@clisp.org>
67986
67987         * lib/vasnprintf.c: Include langinfo.h.
67988         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67989         multithread-safe.
67990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67991         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67992         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67993         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67994         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67995         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67996         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67998         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67999         Reported by Simon Josefsson.
68000
68001 2007-03-25  Bruno Haible  <bruno@clisp.org>
68002
68003         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
68004         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
68005         * modules/vasnprintf (Depends-on): Add stdint.
68006
68007 2007-03-25  Bruno Haible  <bruno@clisp.org>
68008
68009         * modules/fpieee: New file.
68010         * m4/fpieee.m4: New file.
68011         * modules/isnan-nolibm (Depends-on): Add fpieee.
68012         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68013         * modules/isnanl (Depends-on): Add fpieee.
68014
68015 2007-03-25  Bruno Haible  <bruno@clisp.org>
68016
68017         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68018
68019 2007-03-25  Bruno Haible  <bruno@clisp.org>
68020
68021         Avoid test failures on IRIX 6.5.
68022         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68023         (main): Use it.
68024         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68025         macros.
68026         (main): Use them.
68027
68028 2007-03-25  Bruno Haible  <bruno@clisp.org>
68029
68030         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68031         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68032         exists but doesn't work.
68033         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68034         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68036         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68037         math.h.
68038
68039 2007-03-25  Bruno Haible  <bruno@clisp.org>
68040
68041         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68042         returns inf. Needed on IRIX 6.5.
68043
68044 2007-03-25  Bruno Haible  <bruno@clisp.org>
68045
68046         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68047         (main): Use isnanl instead of x != x idiom.
68048         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68049
68050         * tests/test-frexp.c: Include isnan.h.
68051         (main): Use isnan instead of x != x idiom.
68052         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68053
68054 2007-03-25  Bruno Haible  <bruno@clisp.org>
68055
68056         * tests/test-frexp.c (NaN): New function/macro.
68057         (main): Use it instead of 0.0 / 0.0.
68058         * tests/test-isnan.c (NaN): New function/macro.
68059         (main): Use it instead of 0.0 / 0.0.
68060         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68061         (test_function): Use it instead of 0.0 / 0.0.
68062         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68063         (test_function): Use it instead of 0.0 / 0.0.
68064         * tests/test-snprintf-posix.h (NaN): New function/macro.
68065         (test_function): Use it instead of 0.0 / 0.0.
68066         * tests/test-sprintf-posix.h (NaN): New function/macro.
68067         (test_function): Use it instead of 0.0 / 0.0.
68068         * tests/test-fprintf-posix.h (NaN): New function/macro.
68069         (test_function): Use it instead of 0.0 / 0.0.
68070         * tests/test-printf-posix.h (NaN): New function/macro.
68071         (test_function): Use it instead of 0.0 / 0.0.
68072
68073         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68074
68075 2007-03-25  Bruno Haible  <bruno@clisp.org>
68076
68077         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68078
68079 2007-03-25  Bruno Haible  <bruno@clisp.org>
68080
68081         * lib/regexec.c (merge_state_with_log): Make static.
68082
68083 2007-03-25  Bruno Haible  <bruno@clisp.org>
68084
68085         * lib/trigl.c (kernel_rem_pio2): Make static.
68086
68087 2007-03-25  Bruno Haible  <bruno@clisp.org>
68088
68089         * lib/sincosl.c (sincosl_table): Make static.
68090
68091 2007-03-25  Bruno Haible  <bruno@clisp.org>
68092
68093         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68094         if the compiler does not support C99.
68095
68096 2007-03-25  Bruno Haible  <bruno@clisp.org>
68097
68098         * modules/time (Makefile.am): Ensure all rule action lines start with a
68099         tab.
68100
68101 2007-03-24  Bruno Haible  <bruno@clisp.org>
68102
68103         * modules/tsearch-tests: New file.
68104         * tests/test-tsearch.sh: New file.
68105         * tests/test-tsearch.c: New file, mostly copied from glibc.
68106
68107         * modules/search-tests: New file.
68108         * tests/test-search.c: New file.
68109
68110         * modules/search: New file.
68111         * lib/search_.h: New file, incorporating lib/tsearch.h.
68112         * m4/search_h.m4: New file.
68113         * lib/tsearch.h: Remove file.
68114         * lib/tsearch.c: Include search.h instead of tsearch.h.
68115         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68116         HAVE_TSEARCH.
68117         * modules/tsearch (Files): Remove lib/tsearch.h.
68118         (Depends-on): Add search.
68119         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68120         (Include): Change tsearch.h into search.h.
68121
68122 2007-03-24  Bruno Haible  <bruno@clisp.org>
68123
68124         * modules/fpucw: New file.
68125         * lib/fpucw.h: New file.
68126         * lib/frexp.c: Include fpucw.h.
68127         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68128         (FUNC): Use them.
68129         * lib/printf-frexp.c: Include fpucw.h.
68130         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68131         (FUNC): Use them.
68132         * lib/vasnprintf.c: Include fpucw.h.
68133         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68134         'long double' calculations.
68135         * tests/test-frexpl.c: Include fpucw.h.
68136         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68137         * tests/test-printf-frexpl.c: Include fpucw.h.
68138         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68139         * modules/frexpl (Depends-on): Add fpucw.
68140         * modules/printf-frexpl (Depends-on): Likewise.
68141         * modules/fprintf-posix (Depends-on): Likewise.
68142         * modules/snprintf-posix (Depends-on): Likewise.
68143         * modules/sprintf-posix (Depends-on): Likewise.
68144         * modules/vasnprintf-posix (Depends-on): Likewise.
68145         * modules/vasprintf-posix (Depends-on): Likewise.
68146         * modules/vfprintf-posix (Depends-on): Likewise.
68147         * modules/vsnprintf-posix (Depends-on): Likewise.
68148         * modules/vsprintf-posix (Depends-on): Likewise.
68149         * modules/frexpl-tests (Depends-on): Likewise.
68150         * modules/printf-frexpl-tests (Depends-on): Likewise.
68151
68152 2007-03-24  Bruno Haible  <bruno@clisp.org>
68153
68154         * lib/float+.h: New file.
68155         * lib/isnan.c: Include float+.h.
68156         (SIZE): New macro.
68157         (FUNC): Compare only SIZE bytes of the value.
68158         * lib/vasnprintf.c: Include float+.h.
68159         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68160         SIZEOF_LDBL or SIZEOF_DBL bytes.
68161         * modules/isnan-nolibm (Files): Add lib/float+.h.
68162         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68163         * modules/isnanl (Files): Add lib/float+.h.
68164         * modules/vasnprintf (Files): Add lib/float+.h.
68165
68166 2007-03-24  Bruno Haible  <bruno@clisp.org>
68167
68168         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68169         include isnanl-nolibm.h.
68170
68171 2007-03-24  Bruno Haible  <bruno@clisp.org>
68172
68173         * tests/test-read-file.c (main): Don't produce spurious output for
68174         expected situations. Make the test fail if it encountered unexpected
68175         results.
68176
68177 2007-03-24  Bruno Haible  <bruno@clisp.org>
68178
68179         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68180         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68181
68182 2007-03-24  Bruno Haible  <bruno@clisp.org>
68183
68184         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68185
68186 2007-03-24  Bruno Haible  <bruno@clisp.org>
68187
68188         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68189         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68190
68191         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68192         * modules/utf8-ucs4: Turn into a symbolic link to module
68193         unistr/u8-mbtouc.
68194
68195         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68196         utf8-ucs4-unsafe.
68197         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68198         unistr/u8-mbtouc-unsafe.
68199
68200         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68201         * modules/utf16-ucs4: Turn into a symbolic link to module
68202         unistr/u16-mbtouc.
68203
68204         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68205         utf16-ucs4-unsafe.
68206         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68207         unistr/u16-mbtouc-unsafe.
68208
68209         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68210         * modules/ucs4-utf8: Turn into a symbolic link to module
68211         unistr/u8-ubtomb.
68212
68213         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68214         * modules/ucs4-utf16: Turn into a symbolic link to module
68215         unistr/u16-ubtomb.
68216
68217 2007-03-24  Bruno Haible  <bruno@clisp.org>
68218
68219         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68220         Enable the function only if HAVE_INLINE.
68221         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68222         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68223         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68224         Enable the function only if HAVE_INLINE.
68225         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68226         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68227         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68228         Enable the function only if HAVE_INLINE.
68229         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68230         Enable the function only if HAVE_INLINE.
68231         * modules/utf8-ucs4: Update.
68232         * modules/utf8-ucs4-unsafe: Update.
68233         * modules/utf16-ucs4: Update.
68234         * modules/utf16-ucs4-unsafe: Update.
68235         * modules/ucs4-utf8: Update.
68236         * modules/ucs4-utf16: Update.
68237
68238 2007-03-24  Bruno Haible  <bruno@clisp.org>
68239
68240         * lib/utf8-ucs4.h: Remove file.
68241         * lib/utf8-ucs4-unsafe.h: Remove file.
68242         * lib/utf16-ucs4.h: Remove file.
68243         * lib/utf16-ucs4-unsafe.h: Remove file.
68244         * lib/ucs4-utf8.h: Remove file.
68245         * lib/ucs4-utf16.h: Remove file.
68246         * lib/unistr.h: Include their previous contents.
68247         * m4/utf-ucs4.m4: Remove file.
68248         * m4/ucs4-utf.m4: Remove file.
68249         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68250         (Depends-on): Add unistr/base.
68251         (configure.ac): Remove gl_UTF_UCS4.
68252         (Makefile.am): Update.
68253         (Include): Change to unistr.h.
68254         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68255         (Depends-on): Add unistr/base.
68256         (configure.ac): Remove gl_UTF_UCS4.
68257         (Makefile.am): Update.
68258         (Include): Change to unistr.h.
68259         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68260         (Depends-on): Add unistr/base.
68261         (configure.ac): Remove gl_UTF_UCS4.
68262         (Makefile.am): Update.
68263         (Include): Change to unistr.h.
68264         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68265         (Depends-on): Add unistr/base.
68266         (configure.ac): Remove gl_UTF_UCS4.
68267         (Makefile.am): Update.
68268         (Include): Change to unistr.h.
68269         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68270         (Depends-on): Add unistr/base.
68271         (configure.ac): Remove gl_UCS4_UTF.
68272         (Makefile.am): Update.
68273         (Include): Change to unistr.h.
68274         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68275         (Depends-on): Add unistr/base.
68276         (configure.ac): Remove gl_UCS4_UTF.
68277         (Makefile.am): Update.
68278         (Include): Change to unistr.h.
68279         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68280         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68281         utf8-ucs4-unsafe.h.
68282         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68283         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68284         utf16-ucs4-unsafe.h.
68285         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68286         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68287         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68288         * lib/unistr/u8-strchr.c: Likewise.
68289         * lib/unistr/u8-strrchr.c: Likewise.
68290         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68291         * lib/unistr/u16-strchr.c: Likewise.
68292         * lib/unistr/u16-strrchr.c: Likewise.
68293         * lib/striconveh.c: Update.
68294         * lib/linebreak.c: Update.
68295
68296 2007-03-24  Bruno Haible  <bruno@clisp.org>
68297
68298         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68299         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68300
68301 2007-03-22  Bruno Haible  <bruno@clisp.org>
68302
68303         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68304
68305 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68306
68307         * MODULES.html.sh (File system functions): New module write-any-file.
68308         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68309         * m4/write-any-file.m4: New files.
68310
68311 2007-03-23  Eric Blake  <ebb9@byu.net>
68312
68313         * gnulib-tool: Rearrange space-tab sequences, since some editors
68314         like to eat them.
68315
68316 2007-03-23  Eric Blake  <ebb9@byu.net>
68317
68318         * lib/version-etc.c (version_etc_va): Update license wording to
68319         be more concise.  Recommended by Richard Stallman.
68320
68321 2007-03-22  Bruno Haible  <bruno@clisp.org>
68322
68323         * lib/poll.c (MSG_PEEK): New fallback definition.
68324
68325 2007-03-22  Bruno Haible  <bruno@clisp.org>
68326
68327         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68328         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68329         (main): Update.
68330         Fixes a compilation error on BeOS.
68331
68332 2007-03-22  Bruno Haible  <bruno@clisp.org>
68333
68334         * modules/frexpl-tests: New file.
68335         * tests/test-frexpl.c: New file.
68336
68337         * modules/frexpl: New file.
68338         * m4/frexpl.m4: New file.
68339         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68340         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68342         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68343         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68344         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68345
68346 2007-03-22  Bruno Haible  <bruno@clisp.org>
68347
68348         * lib/frexpl.c: Share code with lib/frexp.c.
68349         * modules/mathl (Files): Add lib/frexp.c.
68350         (Depends-on): Add isnanl-nolibm.
68351
68352 2007-03-22  Bruno Haible  <bruno@clisp.org>
68353
68354         * modules/printf-frexp (Files): Add m4/frexp.m4.
68355         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68356         only if the found frexp function actually works.
68357
68358 2007-03-22  Bruno Haible  <bruno@clisp.org>
68359
68360         * lib/frexp.c: Remove older implementation that uses divisions.
68361
68362 2007-03-21  Bruno Haible  <bruno@clisp.org>
68363
68364         * modules/frexp-tests: New file.
68365         * tests/test-frexp.c: New file.
68366
68367         * modules/frexp: New file.
68368         * lib/frexp.c: New file.
68369         * m4/frexp.m4: New file.
68370         * lib/math_.h (frexp): New declaration.
68371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68372         REPLACE_FREXP.
68373         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68374
68375 2007-03-21  Bruno Haible  <bruno@clisp.org>
68376
68377         * modules/isnanl-tests: New file.
68378         * tests/test-isnanl.c: New file.
68379
68380         * modules/isnanl: New file.
68381         * lib/isnanl.h: New file.
68382         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68383         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68384         gl_FUNC_ISNANL_WORKS.
68385         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68386         New macros.
68387
68388 2007-03-21  Bruno Haible  <bruno@clisp.org>
68389
68390         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68391         lib/isnanl.h.
68392         (Include): Update.
68393         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68394         * lib/vasnprintf.c: Update.
68395         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68396         tests/test-isnanl.h, remove tests/test-isnanl.c.
68397         (Makefile.am): Update.
68398         * tests/test-isnanl-nolibm.c: New file.
68399         * tests/test-isnanl.h: New file.
68400         * tests/test-isnanl.c: Remove file.
68401
68402 2007-03-21  Jim Meyering  <jim@meyering.net>
68403
68404         When trying to open ".", treat ESTALE like EACCES.
68405         * lib/savewd.c (savewd_save): Resort to forking not just upon
68406         failure with EACCES, but also when errno is ESTALE.
68407
68408 2007-03-20  Bruno Haible  <bruno@clisp.org>
68409
68410         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68411         Needed on AIX 5.1. Reported by Matthew Woehlke.
68412
68413 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68414
68415         Suggestions by Bruno Haible:
68416         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68417         our own.
68418         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68419         * modules/acl (Depends-on): Add gettext.
68420
68421 2007-03-19  Bruno Haible  <bruno@clisp.org>
68422
68423         * modules/iconvme: Remove file.
68424         * lib/iconvme.h: Remove file.
68425         * lib/iconvme.c: Remove file.
68426         * m4/iconvme.m4: Remove file.
68427
68428 2007-03-19  Bruno Haible  <bruno@clisp.org>
68429
68430         * doc/relocatable-maint.texi: Break long shell script line.
68431         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68432
68433 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68434
68435         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68436         handle file_has_acl.
68437         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68438         * lib/acl.c: Move header inclusions and related macro defns into
68439         lib/acl-internal.h.
68440         (S_ISLNK): Remove defn, since that's now done for us.
68441         (file_has_acl): Move to lib/file-has-acl.c.
68442         Call acl_trivial if available.  This is the crucial part of the fix.
68443         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68444         shared within the library.  Rewrite a bit, partly to make it compatible
68445         with the GNU coding style.
68446         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68447         Remove unnecessary double-quotes.
68448         Don't test for acl_to_text; the build will catch that.
68449         Replace acl_entries if it doesn't exist and it is needed.
68450         Check for -lsec and acl_trivial (as used on Solaris 10).
68451         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68452         lib/file-has-acl.c.
68453         (Depends-on): Add sys_stat, for S_ISLNK.
68454
68455 2007-03-19  Ben Pfaff  <blp@gnu.org>
68456
68457         * doc/gnulib.texi: Fix typos.
68458         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68459
68460 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68461
68462         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68463         If size is zero here, buf must be zero.
68464
68465 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68466
68467         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68468         <bruno@clisp.org>.
68469
68470 2007-03-18  Bruno Haible  <bruno@clisp.org>
68471
68472         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68473         Suggested by Eric Blake.
68474
68475 2007-03-18  Ben Pfaff  <blp@gnu.org>
68476
68477         * doc/relocatable.texi: Recommend using as prefix a directory
68478         that does not exist and will never be created.  Based on
68479         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68480         and others.
68481
68482 2007-03-17  Bruno Haible  <bruno@clisp.org>
68483
68484         * lib/fchownat.c: Include lchown.h.
68485
68486 2007-03-17  Bruno Haible  <bruno@clisp.org>
68487
68488         Fix endless loop when the given allocated size was > INT_MAX.
68489         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68490         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68491         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68492         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68493         * lib/sprintf.c (sprintf): Likewise.
68494
68495 2007-03-17  Bruno Haible  <bruno@clisp.org>
68496
68497         * tests/test-argp-2.sh (func_compare): Output a context diff.
68498
68499 2007-03-17  Bruno Haible  <bruno@clisp.org>
68500
68501         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68502         locale's decimal-point character.
68503
68504 2007-03-17  Bruno Haible  <bruno@clisp.org>
68505
68506         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68507         before comparing it. Needed because on some platforms (e.g. x86) a
68508         'long double' occupies less bytes than sizeof (long double).
68509
68510 2007-03-17  Bruno Haible  <bruno@clisp.org>
68511
68512         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68513         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68514         * tests/test-getaddrinfo.c (simple): Likewise.
68515         * tests/test-read-file.c (main): Likewise.
68516
68517 2007-03-17  Bruno Haible  <bruno@clisp.org>
68518
68519         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68520
68521 2007-03-17  Bruno Haible  <bruno@clisp.org>
68522
68523         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68524         unused variable.
68525
68526 2007-03-17  Bruno Haible  <bruno@clisp.org>
68527
68528         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68529         * tests/test-c-strncasecmp.c: Likewise.
68530
68531 2007-03-17  Bruno Haible  <bruno@clisp.org>
68532
68533         * modules/stdlib (Depends-on): Add unistd.
68534         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68535         Needed for MacOS X 10.3.
68536
68537 2007-03-17  Bruno Haible  <bruno@clisp.org>
68538
68539         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68540
68541 2007-03-17  Bruno Haible  <bruno@clisp.org>
68542
68543         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68544
68545 2007-03-17  Bruno Haible  <bruno@clisp.org>
68546
68547         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68548         to reflect files copied from gnulib (with or without modifications).
68549         Suggested by Jim Meyering.
68550
68551 2007-03-17  Eric Blake  <ebb9@byu.net>
68552
68553         * NEWS: Document stdlib change from 2007-02-18.
68554
68555 2007-03-17  Jim Meyering  <jim@meyering.net>
68556
68557         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68558         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68559         someone uses a name containing shell meta-characters.
68560         Reported by Alfred M. Szmidt.
68561
68562         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68563
68564 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68565
68566         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68567         and copy gettext configuration files only if configure.ac contains
68568         a use of AM_GNU_GETTEXT_VERSION.
68569
68570 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68571
68572         * build-aux/bootstrap (gnulib_name): New variable.
68573         (gnulib_tool_options): Use it.
68574
68575 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68576
68577         * tests/test-des.c: Use new namespace.
68578
68579 2007-03-15  Bruno Haible  <bruno@clisp.org>
68580
68581         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68582         Reported by James Youngman <jay@gnu.org>.
68583
68584 2007-03-15  Bruno Haible  <bruno@clisp.org>
68585
68586         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68587         declared prototype. Needed with cc on OSF/1 5.1.
68588
68589 2007-03-15  Bruno Haible  <bruno@clisp.org>
68590
68591         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68592         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68593         (struct gl_list_implementation): Add dispose_fn argument to the
68594         'create_empty', 'create' methods.
68595         (struct gl_list_impl_base): Add field 'dispose_fn'.
68596         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68597         argument.
68598         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68599         dispose_fn argument.
68600         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68601         dispose_fn on the dropped values.
68602         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68603         dispose_fn argument.
68604         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68605         dropped values.
68606         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68607         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68608         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68609         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68610         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68611         argument.
68612         (gl_tree_list_free): Call dispose_fn on the dropped values.
68613         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68614         the dropped values.
68615         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68616         Add dispose_fn argument.
68617         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68618         Call dispose_fn on the dropped values.
68619         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68620         Add dispose_fn argument.
68621         (gl_sublist_create): Initialize the 'dispose_fn' field.
68622         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68623         * tests/test-array_list.c (main): Update.
68624         * tests/test-carray_list.c (main): Update.
68625         * tests/test-avltree_list.c (main): Update.
68626         * tests/test-rbtree_list.c (main): Update.
68627         * tests/test-avltreehash_list.c (main): Update.
68628         * tests/test-rbtreehash_list.c (main): Update.
68629         * tests/test-linked_list.c (main): Update.
68630         * tests/test-linkedhash_list.c (main): Update.
68631         * tests/test-array_oset.c (main): Update.
68632
68633 2007-03-15  Bruno Haible  <bruno@clisp.org>
68634
68635         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68636         (gl_oset_create_empty): Add dispose_fn argument.
68637         (struct gl_oset_implementation): Add dispose_fn argument to
68638         'create_empty' method.
68639         (struct gl_oset_impl_base): Add dispose_fn field.
68640         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68641         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68642         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68643         values.
68644         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68645         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68646         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68647         dropped value.
68648         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68649         dropped value.
68650         * tests/test-array_oset.c (main): Update.
68651         * tests/test-avltree_oset.c (main): Update.
68652         * tests/test-rbtree_oset.c (main): Update.
68653         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68654
68655 2007-03-13  Bruno Haible  <bruno@clisp.org>
68656
68657         * tests/test-stdbool.c (i): Update after last patch.
68658
68659 2007-03-12  Bruno Haible  <bruno@clisp.org>
68660
68661         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68662         the iswprint macro. Needed on Solaris 2.5.1.
68663
68664 2007-03-12  Bruno Haible  <bruno@clisp.org>
68665
68666         * tests/test-printf-frexp.c (main): Declare x as volatile.
68667
68668 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68669
68670         * doc/gnulib.texi (Build robot for gnulib): New section.
68671
68672 2007-03-12  Jim Meyering  <jim@meyering.net>
68673
68674         * build-aux/bootstrap: New file.
68675         * build-aux/bootstrap.conf: New file, from coreutils.
68676
68677 2007-03-11  Bruno Haible  <bruno@clisp.org>
68678
68679         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68680
68681 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68682
68683         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68684         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68685         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68686
68687 2007-03-11  Bruno Haible  <bruno@clisp.org>
68688
68689         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68690         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68691
68692 2007-03-11  Bruno Haible  <bruno@clisp.org>
68693
68694         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68695         formula. Needed for SunPRO C 5.0.
68696
68697 2007-03-11  Bruno Haible  <bruno@clisp.org>
68698
68699         * modules/long-options (Depends-on): Add getopt.
68700
68701 2007-03-11  Bruno Haible  <bruno@clisp.org>
68702
68703         * modules/modechange (Depends-on): Add stdbool.
68704
68705 2007-03-11  Bruno Haible  <bruno@clisp.org>
68706
68707         * modules/i-ring (Depends-on): Add stdbool.
68708
68709 2007-03-11  Bruno Haible  <bruno@clisp.org>
68710
68711         * modules/gc-des (Depends-on): Add stdbool.
68712
68713 2007-03-11  Bruno Haible  <bruno@clisp.org>
68714
68715         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68716
68717 2007-03-11  Bruno Haible  <bruno@clisp.org>
68718
68719         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68720
68721 2007-03-11  Bruno Haible  <bruno@clisp.org>
68722
68723         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68724
68725 2007-03-11  Bruno Haible  <bruno@clisp.org>
68726
68727         * lib/vasnprintf.c (sprintf): Undefine.
68728
68729 2007-03-11  Bruno Haible  <bruno@clisp.org>
68730
68731         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68732         initializers in SunPRO C and Compaq C compilers.
68733
68734 2007-03-11  Bruno Haible  <bruno@clisp.org>
68735
68736         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68737         decrementing code ANSI C compliant.
68738
68739 2007-03-11  Bruno Haible  <bruno@clisp.org>
68740
68741         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68742         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68743
68744 2007-03-11  Bruno Haible  <bruno@clisp.org>
68745
68746         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68747         <stdbool.h> substitute doesn't pass.
68748
68749 2007-03-11  Bruno Haible  <bruno@clisp.org>
68750
68751         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68752
68753 2007-03-11  Bruno Haible  <bruno@clisp.org>
68754
68755         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68756         script, for submission to autobuild.josefsson.org.
68757
68758 2007-03-10  Bruno Haible  <bruno@clisp.org>
68759
68760         * modules/canonicalize-lgpl-tests: New file.
68761         * tests/test-canonicalize-lgpl.sh: New file.
68762         * tests/test-canonicalize-lgpl.c: New file.
68763
68764         * modules/c-strcase-tests: New file.
68765         * tests/test-c-strcase.sh: New file.
68766         * tests/test-c-strcasecmp.c: New file.
68767         * tests/test-c-strncasecmp.c: New file.
68768
68769         * modules/atexit-tests: New file.
68770         * tests/test-atexit.sh: New file.
68771         * tests/test-atexit.c: New file.
68772
68773 2007-03-10  Bruno Haible  <bruno@clisp.org>
68774
68775         * tests/test-binary-io.sh: Use temporary filenames that are not so
68776         likely to clash with those of other tests (in a parallel make).
68777         * tests/test-binary-io.c: Likewise.
68778
68779 2007-03-10  Bruno Haible  <bruno@clisp.org>
68780
68781         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68782         fallback; use #error instead.
68783         Suggested by Simon Josefsson.
68784
68785 2007-03-10  Bruno Haible  <bruno@clisp.org>
68786
68787         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68788         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68789         first and the last.
68790
68791 2007-03-10  Bruno Haible  <bruno@clisp.org>
68792
68793         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68794
68795 2007-03-10  Bruno Haible  <bruno@clisp.org>
68796
68797         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68798         "make distcheck".
68799         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68800         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68801         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68802
68803 2007-03-10  Bruno Haible  <bruno@clisp.org>
68804
68805         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68806         variable.
68807         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68808         variable.
68809
68810 2007-03-09  Eric Blake  <ebb9@byu.net>
68811         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68812
68813         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68814         types are not being provided by gnulib.
68815         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68816         types are supported.
68817
68818 2007-03-10  Bruno Haible  <bruno@clisp.org>
68819
68820         * lib/stdio_.h (__attribute__): New macro.
68821         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68822         vsprintf): Specify __attribute__ __format__ for GCC.
68823         Suggested by Eric Blake.
68824
68825 2007-03-09  Bruno Haible  <bruno@clisp.org>
68826
68827         * modules/printf-posix-tests: New file.
68828         * tests/test-printf-posix.sh: New file.
68829         * tests/test-printf-posix.c: New file.
68830
68831         * modules/printf-posix: New file.
68832         * lib/printf.c: New file.
68833         * m4/printf-posix-rpl.m4: New file.
68834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68835         REPLACE_PRINTF.
68836         * lib/stdio_.h (printf): New declaration.
68837         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68838         ____strfmon____): New macros.
68839         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68840         REPLACE_PRINTF.
68841
68842 2007-03-09  Bruno Haible  <bruno@clisp.org>
68843
68844         * tests/test-vasnprintf-posix2.sh: New file.
68845         * tests/test-vasnprintf-posix2.c: New file.
68846         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68847         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68848         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68849
68850         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68851         a locale dependent decimal point, rather than always '.'.
68852
68853 2007-03-09  Eric Blake  <ebb9@byu.net>
68854
68855         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68856         spite of platforms like Tandem/NSK that define it to -1.
68857
68858 2007-03-08  Bruno Haible  <bruno@clisp.org>
68859
68860         * modules/vprintf-posix-tests: New file.
68861         * tests/test-vprintf-posix.sh: New file.
68862         * tests/test-vprintf-posix.c: New file.
68863         * tests/test-printf-posix.h: New file.
68864
68865         * modules/vprintf-posix: New file.
68866         * lib/vprintf.c: New file.
68867         * m4/vprintf-posix.m4: New file.
68868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68869         REPLACE_VPRINTF.
68870         * lib/stdio_.h (vprintf): New declaration.
68871         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68872         REPLACE_VPRINTF.
68873
68874 2007-03-08  Bruno Haible  <bruno@clisp.org>
68875
68876         * modules/fprintf-posix-tests: New file.
68877         * tests/test-fprintf-posix.sh: New file.
68878         * tests/test-fprintf-posix.c: New file.
68879
68880         * modules/fprintf-posix: New file.
68881         * lib/fprintf.c: New file.
68882         * m4/fprintf-posix.m4: New file.
68883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68884         REPLACE_FPRINTF.
68885         * lib/stdio_.h (fprintf): New declaration.
68886         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68887         REPLACE_FPRINTF.
68888
68889 2007-03-08  Bruno Haible  <bruno@clisp.org>
68890
68891         * modules/vfprintf-posix-tests: New file.
68892         * tests/test-vfprintf-posix.sh: New file.
68893         * tests/test-vfprintf-posix.c: New file.
68894         * tests/test-fprintf-posix.h: New file.
68895         * tests/test-fprintf-posix.out: New file.
68896
68897         * modules/vfprintf-posix: New file.
68898         * lib/vfprintf.c: New file.
68899         * m4/vfprintf-posix.m4: New file.
68900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68901         REPLACE_VFPRINTF.
68902         * lib/stdio_.h (vfprintf): New declaration.
68903         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68904         REPLACE_VFPRINTF.
68905
68906 2007-03-08  Bruno Haible  <bruno@clisp.org>
68907
68908         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68909
68910 2007-03-08  Bruno Haible  <bruno@clisp.org>
68911
68912         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68913         instead of 'expr' invocations.
68914         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68919         Suggested by Paul Eggert.
68920
68921 2007-03-08  Bruno Haible  <bruno@clisp.org>
68922
68923         * modules/fseterr-tests: New file.
68924         * tests/test-fseterr.c: New file.
68925
68926         * modules/fseterr: New file.
68927         * lib/fseterr.h: New file.
68928         * lib/fseterr.c: New file.
68929
68930 2007-03-08  Bruno Haible  <bruno@clisp.org>
68931
68932         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68933         * lib/getopt_.h: Likewise.
68934         * lib/mbswidth.h: Likewise.
68935         * lib/setenv.h: Likewise.
68936         * lib/vasnprintf.h: Likewise.
68937         * lib/vasprintf.h: Likewise.
68938         * lib/verror.h: Likewise.
68939         * lib/xsetenv.h: Likewise.
68940         * lib/xvasprintf.h: Likewise.
68941
68942 2007-03-08  Jim Meyering  <jim@meyering.net>
68943
68944         * users.txt: Add parted.
68945
68946         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68947
68948 2007-03-07  Bruno Haible  <bruno@clisp.org>
68949
68950         * m4/printf.m4: Make the shell script snippets copy&pastable.
68951
68952 2007-03-02  Bruno Haible  <bruno@clisp.org>
68953
68954         * lib/netinet_in_.h: New file.
68955         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68956         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68957         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68958         (Depends-on): Add absolute-header.
68959         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68960         into netinet/in.h.
68961
68962 2007-03-03  Bruno Haible  <bruno@clisp.org>
68963
68964         * lib/sys_select_.h: New file.
68965         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68966         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68967         * modules/sys_select (Files): Add lib/sys_select_.h.
68968         (Depends-on): Add absolute-header.
68969         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68970         into sys/select.h.
68971
68972 2007-03-02  Bruno Haible  <bruno@clisp.org>
68973
68974         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68975         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68976         values.
68977         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68978         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68979         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68980         * modules/sys_socket (Depends-on): Add absolute-header.
68981         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68982         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68983         (Include): Remove requirement of inclusion of <sys/types.h>.
68984
68985 2007-03-02  Bruno Haible  <bruno@clisp.org>
68986
68987         * lib/byteswap_.h (bswap_32): Fix formula.
68988
68989 2007-03-06  Bruno Haible  <bruno@clisp.org>
68990
68991         * modules/sprintf-posix-tests: New file.
68992         * tests/test-sprintf-posix.c: New file.
68993
68994         * modules/sprintf-posix: New file.
68995         * lib/sprintf.c: New file.
68996         * m4/sprintf-posix.m4: New file.
68997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68998         REPLACE_SPRINTF.
68999         * lib/stdio_.h (sprintf): New declaration.
69000         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
69001         REPLACE_SPRINTF.
69002
69003 2007-03-06  Bruno Haible  <bruno@clisp.org>
69004
69005         * modules/vsprintf-posix-tests: New file.
69006         * tests/test-vsprintf-posix.c: New file.
69007         * tests/test-sprintf-posix.h: New file.
69008
69009         * modules/vsprintf-posix: New file.
69010         * lib/vsprintf.c: New file.
69011         * m4/vsprintf-posix.m4: New file.
69012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69013         REPLACE_VSPRINTF.
69014         * lib/stdio_.h (vsprintf): New declaration.
69015         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69016         REPLACE_VSPRINTF.
69017
69018 2007-03-06  Bruno Haible  <bruno@clisp.org>
69019
69020         * modules/vsnprintf (Depend-on): Remove minmax.
69021
69022 2007-03-06  Bruno Haible  <bruno@clisp.org>
69023
69024         * modules/snprintf-posix-tests: New file.
69025         * tests/test-snprintf-posix.c: New file.
69026
69027         * modules/snprintf-posix: New file.
69028         * m4/snprintf-posix.m4: New file.
69029         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69030         gl_FUNC_SNPRINTF.
69031         (gl_FUNC_SNPRINTF): Invoke it.
69032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69033         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69034         is set.
69035         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69036
69037 2007-03-06  Bruno Haible  <bruno@clisp.org>
69038
69039         * modules/vsnprintf-posix-tests: New file.
69040         * tests/test-vsnprintf-posix.c: New file.
69041         * tests/test-snprintf-posix.h: New file.
69042
69043         * modules/vsnprintf-posix: New file.
69044         * m4/vsnprintf-posix.m4: New file.
69045         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69046         gl_FUNC_VSNPRINTF.
69047         (gl_FUNC_VSNPRINTF): Invoke it.
69048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69049         * lib/stdio_.h (vsnprintf): Define as a replacement if
69050         REPLACE_VSNPRINTF is set.
69051         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69052
69053 2007-03-06  Bruno Haible  <bruno@clisp.org>
69054
69055         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69056         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69057
69058 2007-03-06  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69061         (asinl): Declare also if HAVE_DECL_ASINL is set.
69062         (atanl): Declare also if HAVE_DECL_ATANL is set.
69063         (ceill): Declare also if HAVE_DECL_CEILL is set.
69064         (cosl): Declare also if HAVE_DECL_COSL is set.
69065         (expl): Declare also if HAVE_DECL_EXPL is set.
69066         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69067         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69068         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69069         (logl): Declare also if HAVE_DECL_LOGL is set.
69070         (sinl): Declare also if HAVE_DECL_SINL is set.
69071         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69072         (tanl): Declare also if HAVE_DECL_TANL is set.
69073         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69075         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69076         declaration of frexpl, ldexpl.
69077         * modules/printf-frexpl (Depends-on): Add math.
69078         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69079
69080 2007-03-05  Bruno Haible  <bruno@clisp.org>
69081
69082         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69083         frexpl and ldexpl are declared.
69084         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69085
69086 2007-03-05  Bruno Haible  <bruno@clisp.org>
69087
69088         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69089         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69090
69091 2007-03-05  Bruno Haible  <bruno@clisp.org>
69092
69093         * lib/stdio_.h: Include <stddef.h>.
69094
69095 2007-03-05  Bruno Haible  <bruno@clisp.org>
69096
69097         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69098
69099 2007-03-05  Bruno Haible  <bruno@clisp.org>
69100
69101         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69102         NetBSD 4, from Ralf Wildenhues.
69103
69104 2007-03-04  Bruno Haible  <bruno@clisp.org>
69105
69106         * lib/vasprintf.h: Update #if logic for the case when the functions
69107         exist but are overridden.
69108
69109 2007-03-04  Bruno Haible  <bruno@clisp.org>
69110
69111         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69112         implementations: glibc-2.4 and MacOS X 10.3.
69113         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69114         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69115         * tests/test-vasprintf-posix.c (test_function): Likewise.
69116
69117 2007-03-04  Bruno Haible  <bruno@clisp.org>
69118
69119         * modules/vasprintf-posix-tests: New file.
69120         * tests/test-vasprintf-posix.c: New file.
69121
69122         * modules/vasprintf-posix: New file.
69123         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69124         defined.
69125         * m4/vasprintf-posix.m4: New file.
69126         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69127         gl_FUNC_VASPRINTF.
69128         (gl_FUNC_VASPRINTF): Invoke it.
69129         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69130         here.
69131         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69132
69133 2007-03-04  Bruno Haible  <bruno@clisp.org>
69134
69135         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69136         REPLACE_GETTIMEOFDAY.
69137         * modules/sys_time (Makefile.am): Likewise.
69138         * m4/sys_time_h.m4: Likewise.
69139         * m4/gettimeofday.m4: Likewise.
69140
69141 2007-03-04  Bruno Haible  <bruno@clisp.org>
69142
69143         * modules/vasnprintf-posix-tests: New file.
69144         * tests/test-vasnprintf-posix.c: New file.
69145
69146         * modules/vasnprintf-posix: New file.
69147         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69148         printf-frexpl.h.
69149         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69150         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69151         REPLACE_VASNPRINTF is defined.
69152         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69153         gl_FUNC_VASNPRINTF.
69154         (gl_FUNC_VASNPRINTF): Invoke it.
69155         * m4/vasnprintf-posix.m4: New file.
69156         * m4/printf.m4: New file.
69157
69158 2007-03-04  Bruno Haible  <bruno@clisp.org>
69159
69160         Compile progreloc.c only if --enable-relocatable is specified.
69161         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69162         if --enable-relocatable was specified.
69163         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69164         lib_SOURCES.
69165
69166 2007-03-04  Jim Meyering  <jim@meyering.net>
69167
69168         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69169         Use it consistently, rather than enumerating errno constants.
69170
69171 2007-03-04  Bruno Haible  <bruno@clisp.org>
69172
69173         * modules/xvasprintf-tests: New file.
69174         * tests/test-xvasprintf.c: New file.
69175
69176         * modules/vasprintf-tests: New file.
69177         * tests/test-vasprintf.c: New file.
69178
69179         * modules/vasnprintf-tests: New file.
69180         * tests/test-vasnprintf.c: New file.
69181
69182         * modules/vsnprintf-tests: New file.
69183         * tests/test-vsnprintf.c: New file.
69184
69185         * modules/snprintf-tests: New file.
69186         * tests/test-snprintf.c: New file.
69187
69188 2007-03-04  Bruno Haible  <bruno@clisp.org>
69189
69190         Compile relocatable.c only if --enable-relocatable is specified.
69191         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69192         gl_RELOCATABLE_LIBRARY.
69193         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69194         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69195         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69196         gl_RELOCATABLE_LIBRARY.
69197         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69198         (Makefile.am): Remove lib_SOURCES.
69199         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69200         gl_RELOCATABLE_LIBRARY.
69201         (Makefile.am): Remove lib_SOURCES.
69202         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69203         always.
69204         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69205         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69206
69207 2007-03-04  Bruno Haible  <bruno@clisp.org>
69208
69209         * modules/argmatch-tests: New file.
69210         * tests/test-argmatch.c: New file.
69211
69212         * tests/test-allocsa.c (main): Halve the number of loop runs.
69213
69214         * modules/alloca-opt-tests: New file.
69215         * tests/test-alloca-opt.c: New file.
69216
69217 2007-03-04  Jim Meyering  <jim@meyering.net>
69218
69219         Work around difference between Linux ACLs and Solaris 10 ZFS.
69220         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69221         for EINVAL.
69222
69223 2007-03-03  Bruno Haible  <bruno@clisp.org>
69224
69225         * modules/relocatable-prog (Depends-on): Add back progreloc's
69226         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69227
69228 2007-03-03  Bruno Haible  <bruno@clisp.org>
69229
69230         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69231         * modules/relocatable-lib: New file.
69232
69233 2007-03-03  Bruno Haible  <bruno@clisp.org>
69234
69235         * modules/relocatable-prog: Renamed from modules/relocatable.
69236         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69237
69238 2007-03-03  Bruno Haible  <bruno@clisp.org>
69239
69240         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69241         m4/relocatable-lib.m4.
69242         (Depends-on): Remove 'relocatable'.
69243         (configure.ac): Add gl_RELOCATABLE_NOP.
69244
69245 2007-03-03  Bruno Haible  <bruno@clisp.org>
69246
69247         * modules/relocatable-prog-wrapper: New file.
69248         * modules/relocatable (Depends-on): Add it. Remove all other
69249         dependencies except progname.
69250         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69251
69252         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69253         (gl_FUNC_STRERROR): Nop.
69254         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69255
69256         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69257         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69258
69259         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69260         (gl_FUNC_READLINK): Update.
69261
69262         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69263
69264 2007-03-03  Bruno Haible  <bruno@clisp.org>
69265
69266         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69267         * modules/xreadlink (Depends-on): Add unistd.
69268         * modules/xreadlink-with-size (Depends-on): Likewise.
69269
69270 2007-03-03  Bruno Haible  <bruno@clisp.org>
69271
69272         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69273         extracted from gt_FUNC_SETENV.
69274         (gt_FUNC_SETENV): Remove macro.
69275         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69276         remove gt_FUNC_SETENV.
69277
69278 2007-03-03  Bruno Haible  <bruno@clisp.org>
69279
69280         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69281         ENABLE_RELOCATABLE here.
69282         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69283
69284 2007-03-03  Bruno Haible  <bruno@clisp.org>
69285
69286         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69287         * tests/test-rbtreehash_list.c: Include progname.h.
69288         (main): Call set_program_name.
69289
69290         * modules/rbtree-oset-tests (Depends-on): Add progname.
69291         * tests/test-rbtree_oset.c: Include progname.h.
69292         (main): Call set_program_name.
69293
69294         * modules/rbtree-list-tests (Depends-on): Add progname.
69295         * tests/test-rbtree_list.c: Include progname.h.
69296         (main): Call set_program_name.
69297
69298         * modules/linked-list-tests (Depends-on): Add progname.
69299         * tests/test-linked_list.c: Include progname.h.
69300         (main): Call set_program_name.
69301
69302 2007-03-03  Bruno Haible  <bruno@clisp.org>
69303
69304         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69305         All uses of __restrict changed to _Restrict_.
69306         * lib/glob_.h (__restrict): Remove macro.
69307
69308 2007-03-02  Bruno Haible  <bruno@clisp.org>
69309
69310         * modules/gettext (configure.ac): Require gettext infrastructure
69311         from version 0.16.1.
69312
69313 2007-03-02  Bruno Haible  <bruno@clisp.org>
69314
69315         * modules/linkedhash-list-tests (Depends-on): Add progname.
69316         * tests/test-linkedhash_list.c: Include progname.h.
69317         (main): Call set_program_name.
69318
69319         * modules/carray-list-tests (Depends-on): Add progname.
69320         * tests/test-carray_list.c: Include progname.h.
69321         (main): Call set_program_name.
69322
69323         * modules/avltreehash-list-tests (Depends-on): Add progname.
69324         * tests/test-avltreehash_list.c: Include progname.h.
69325         (main): Call set_program_name.
69326
69327         * modules/avltree-oset-tests (Depends-on): Add progname.
69328         * tests/test-avltree_oset.c: Include progname.h.
69329         (main): Call set_program_name.
69330
69331         * modules/avltree-list-tests (Depends-on): Add progname.
69332         * tests/test-avltree_list.c: Include progname.h.
69333         (main): Call set_program_name.
69334
69335         * modules/array-oset-tests (Depends-on): Add progname.
69336         * tests/test-array_oset.c: Include progname.h.
69337         (main): Call set_program_name.
69338
69339         * modules/array-list-tests (Depends-on): Add progname.
69340         * tests/test-array_list.c: Include progname.h.
69341         (main): Call set_program_name.
69342
69343         * modules/argp-tests (Depends-on): Add progname.
69344         * tests/test-argp.c: Include argp.h first. Include progname.h.
69345         (main): Call set_program_name.
69346
69347 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69348
69349         * doc/gnulib-tool.texi (Initial import): Reword description of
69350         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69351         limited effect even if defined after the first system include.
69352
69353 2007-03-01  Bruno Haible  <bruno@clisp.org>
69354
69355         * build-aux/config.libpath: Update to libtool-1.5.22.
69356         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69357
69358 2007-03-01  Bruno Haible  <bruno@clisp.org>
69359
69360         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69361         foo_CFLAGS.
69362         Reported by Ralf Wildenhues.
69363
69364 2007-03-01  Bruno Haible  <bruno@clisp.org>
69365
69366         * build-aux/install-reloc: Remove object files left over by some
69367         compilers.
69368         Reported by Ralf Wildenhues.
69369
69370 2007-03-01  Bruno Haible  <bruno@clisp.org>
69371
69372         * build-aux/install-reloc: Break long lines.
69373
69374 2007-03-01  Bruno Haible  <bruno@clisp.org>
69375
69376         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69377         Reported by Ralf Wildenhues.
69378
69379 2007-03-01  Bruno Haible  <bruno@clisp.org>
69380
69381         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69382         include ordering constraints.
69383
69384 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69385
69386         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69387         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69388         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69389         as another example.
69390         * lib/time_.h: Fix misspelling.
69391         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69392         Require gl_HEADER_TIME_H_DEFAULTS.
69393         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69394         * m4/time_r.m4 (gl_TIME_R): Likewise.
69395         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69396
69397 2007-03-01  Bruno Haible  <bruno@clisp.org>
69398
69399         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69400         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69401
69402 2007-03-01  Jim Meyering  <jim@meyering.net>
69403
69404         * modules/xreadlink (Maintainer): Add my name.
69405         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69406
69407 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69408             Bruno Haible  <bruno@clisp.org>
69409
69410         * build-aux/install-reloc: Compile also c-ctype.c.
69411         * build-aux/relocatable.sh.in: New file.
69412         * doc/relocatable.texi: New file.
69413         * doc/relocatable-maint.texi: New file.
69414         * doc/gnulib.texi: Include relocatable-maint.texi.
69415         * lib/progreloc.c: Include unistd.h unconditionally.
69416         * lib/relocwrapper.c: Include unistd.h unconditionally.
69417         Include c-ctype.h.
69418         (add_dotbin): Use c_tolower.
69419         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69420         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69421         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69422         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69423         to m4/relocatable-lib.m4.
69424         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69425         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69426         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69427         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69428         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69429         * modules/relocatable: New file.
69430         * modules/relocatable-lib: New file.
69431         * modules/relocatable-script: New file.
69432
69433 2007-02-28  Bruno Haible  <bruno@clisp.org>
69434
69435         Import --enable-relocatable infrastructure.
69436         * build-aux/config.libpath: New file, from GNU gettext.
69437         * build-aux/install-reloc: New file, from GNU gettext.
69438         * build-aux/reloc-ldflags: New file, from GNU gettext.
69439         * lib/relocatable.h: New file, from GNU gettext.
69440         * lib/relocatable.c: New file, from GNU gettext.
69441         * lib/relocwrapper.c: New file, from GNU gettext.
69442         * m4/relocatable.m4: New file, from GNU gettext.
69443
69444 2007-02-28  Bruno Haible  <bruno@clisp.org>
69445
69446         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69447
69448         * modules/xreadlink: New file, from GNU gettext with modifications.
69449         * lib/xreadlink.c: New file, from GNU gettext.
69450         * lib/xreadlink.h: Add comments.
69451         (xreadlink): New declaration.
69452
69453         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69454         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69455         lib/xreadlink-with-size.c.
69456         (configure.ac): Remove gl_XREADLINK invocation.
69457         (Makefile.am): Augment lib_SOURCES.
69458         * m4/xreadlink.m4: Remove file.
69459         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69460         (xreadlink_with_size): Renamed from xreadink.
69461         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69462         * modules/canonicalize (Depends-on): Replace xreadlink with
69463         xreadlink-with-size.
69464         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69465
69466 2007-02-25  Jim Meyering  <jim@meyering.net>
69467
69468         * build-aux/announce-gen: When complaining about excess arguments,
69469         list them.
69470
69471 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69472
69473         * README: Document signed integer overflow situation more
69474         accurately.
69475
69476 2007-02-25  Bruno Haible  <bruno@clisp.org>
69477
69478         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69479         'a' or 'A' conversion.
69480
69481 2007-02-25  Bruno Haible  <bruno@clisp.org>
69482
69483         * modules/filename: Renamed from modules/pathname.
69484         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69485         lib/concatpath.c with lib/concat-filename.c.
69486         (Makefile.am): Update.
69487         (Include): Replace pathname.h with filename.h.
69488         * lib/filename.h: Renamed from lib/pathname.h.
69489         (concatenated_filename): Renamed from concatenated_pathname.
69490         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69491         (concatenated_filename): Renamed from concatenated_pathname.
69492         * lib/findprog.c: Include filename.h instead of pathname.h.
69493         (find_in_path): Update.
69494         * lib/javacomp.c: Include filename.h instead of pathname.h.
69495         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69496         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69497         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69498         is_oldgcj_14_13_usable, is_javac_usable): Update.
69499         * lib/javaexec.c: Include filename.h instead of pathname.h.
69500         (execute_java_class): Update.
69501         * modules/findprog: Update.
69502         * modules/javacomp: Update.
69503         * modules/javaexec: Update.
69504         * MODULES.html.sh (File system functions): Add 'filename', remove
69505         'pathname'.
69506
69507 2007-02-25  Bruno Haible  <bruno@clisp.org>
69508
69509         * modules/printf-frexpl-tests: New file.
69510         * tests/test-printf-frexpl.c: New file.
69511
69512         * modules/printf-frexpl: New file.
69513         * lib/printf-frexpl.h: New file.
69514         * lib/printf-frexpl.c: New file.
69515         * m4/printf-frexpl.m4: New file.
69516
69517 2007-02-25  Bruno Haible  <bruno@clisp.org>
69518
69519         * modules/printf-frexp-tests: New file.
69520         * tests/test-printf-frexp.c: New file.
69521
69522         * modules/printf-frexp: New file.
69523         * lib/printf-frexp.h: New file.
69524         * lib/printf-frexp.c: New file.
69525         * m4/printf-frexp.m4: New file.
69526
69527 2007-02-25  Bruno Haible  <bruno@clisp.org>
69528
69529         Assume automake >= 1.10 for the tests.
69530         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69531         * modules/arctwo-tests: Likewise.
69532         * modules/argp-tests: Likewise.
69533         * modules/avltree-list-tests: Likewise.
69534         * modules/avltree-oset-tests: Likewise.
69535         * modules/avltreehash-list-tests: Likewise.
69536         * modules/carray-list-tests: Likewise.
69537         * modules/crc-tests: Likewise.
69538         * modules/des-tests: Likewise.
69539         * modules/gc-arcfour-tests: Likewise.
69540         * modules/gc-arctwo-tests: Likewise.
69541         * modules/gc-des-tests: Likewise.
69542         * modules/gc-hmac-md5-tests: Likewise.
69543         * modules/gc-hmac-sha1-tests: Likewise.
69544         * modules/gc-md2-tests: Likewise.
69545         * modules/gc-md4-tests: Likewise.
69546         * modules/gc-md5-tests: Likewise.
69547         * modules/gc-pbkdf2-sha1-tests: Likewise.
69548         * modules/gc-rijndael-tests: Likewise.
69549         * modules/gc-sha1-tests: Likewise.
69550         * modules/gc-tests: Likewise.
69551         * modules/getaddrinfo-tests: Likewise.
69552         * modules/hmac-md5-tests: Likewise.
69553         * modules/hmac-sha1-tests: Likewise.
69554         * modules/linked-list-tests: Likewise.
69555         * modules/linkedhash-list-tests: Likewise.
69556         * modules/lock-tests: Likewise.
69557         * modules/md2-tests: Likewise.
69558         * modules/md4-tests: Likewise.
69559         * modules/md5-tests: Likewise.
69560         * modules/rbtree-list-tests: Likewise.
69561         * modules/rbtree-oset-tests: Likewise.
69562         * modules/rbtreehash-list-tests: Likewise.
69563         * modules/read-file-tests: Likewise.
69564         * modules/rijndael-tests: Likewise.
69565         * modules/stdint-tests: Likewise.
69566         * modules/tls-tests: Likewise.
69567
69568 2007-02-24  Bruno Haible  <bruno@clisp.org>
69569
69570         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69571         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69572         function; instead check whether isnan with a double argument links.
69573         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69574         function; instead check whether isnan with a 'long double' argument
69575         links.
69576         Reported by Eric Blake <ebb9@byu.net>.
69577
69578 2007-02-24  Bruno Haible  <bruno@clisp.org>
69579
69580         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69581         defined.
69582         * lib/isnanl.c: Remove all code. Just include isnan.c.
69583         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69584
69585 2007-02-25  Jim Meyering  <jim@meyering.net>
69586
69587         Avoid conflicting types for 'unsetenv' on FreeBSD.
69588         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69589         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69590         in stdlib.h.
69591
69592 2007-02-24  Bruno Haible  <bruno@clisp.org>
69593
69594         * modules/isnanl-nolibm-tests: New file.
69595         * tests/test-isnanl.c: New file.
69596
69597         * modules/isnanl-nolibm: New file.
69598         * lib/isnanl.h: New file.
69599         * lib/isnanl.c: New file.
69600         * m4/isnanl.m4: New file.
69601
69602 2007-02-24  Bruno Haible  <bruno@clisp.org>
69603
69604         * modules/isnan-nolibm-tests: New file.
69605         * tests/test-isnan.c: New file.
69606
69607         * modules/isnan-nolibm: New file.
69608         * lib/isnan.h: New file.
69609         * lib/isnan.c: New file.
69610         * m4/isnan.m4: New file.
69611
69612 2007-02-24  Bruno Haible  <bruno@clisp.org>
69613
69614         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69615         assume that an exponent fits in 20 bits.
69616
69617 2007-02-24  Jim Meyering  <jim@meyering.net>
69618
69619         * m4/regex.m4: Update the description of the configure-time option,
69620         --without-included-regex, to state accurately what the defaults are,
69621         and perhaps to give people an idea why using this option is risky.
69622
69623 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69624
69625         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69626         loops on small arguments.  This attempts to avoid the problem
69627         Bruno Haible reported for AIX 4.3.2 in
69628         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69629
69630 2007-02-23  Bruno Haible  <bruno@clisp.org>
69631
69632         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69633         Needed for help2man.
69634
69635 2007-02-23  Karl Berry  <karl@gnu.org>
69636
69637         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69638         exists, foo.h should be cvs-ignored, not committed.
69639
69640 2007-02-23  Eric Blake  <ebb9@byu.net>
69641
69642         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69643         * lib/stat-time.h (includes): Likewise.
69644         * lib/utimecmp.c (includes): Likewise.
69645         * lib/utimens.h (includes): Likewise.
69646         * lib/getdate.y (includes): Also include "timespec.h" for use
69647         internal to the module.
69648         * modules/utimens (Depends-on): Revert yesterday's patch.
69649         * modules/nanosleep (Depends-on): Add missing dependency.
69650
69651 2007-02-22  Bruno Haible  <bruno@clisp.org>
69652
69653         * lib/glob.c: Don't include getlogin_r.h.
69654
69655 2007-02-22  Jim Meyering  <jim@meyering.net>
69656
69657         * modules/utimens (Depends-on): Add timespec, required for
69658         utimens.h's inclusion of timespec.h.
69659
69660 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69661
69662         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69663         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69664         Schwab in
69665         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69666         I'll try to think of a better way to fix the Solaris problem.
69667
69668         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69669         like glibc; on Solaris 10, it fails with errno == EINVAL.
69670         POSIX says the behavior is unspecified if the first argument is NULL,
69671         so play it safe and never pass NULL to the system getcwd.
69672
69673 2007-02-21  Jim Meyering  <jim@meyering.net>
69674
69675         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69676         of gettimeofday.  It would conflict with the one now always
69677         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69678         an IRIX 6.5 build failure.
69679
69680 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69681
69682         Minor fixups to port to Solaris 10 with Sun C 5.8.
69683         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69684         * modules/getcwd (Depends-on): Add dirfd.
69685         * lib/putenv.c (putenv): #undef it.
69686         (rpl_putenv): New decl.
69687         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69688
69689 2007-02-20  Bruno Haible  <bruno@clisp.org>
69690
69691         * modules/stdio-tests: New file.
69692         * tests/test-stdio.c: New file.
69693
69694         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69695         (Depends-on): Add stdio.
69696         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69697         (Include): Use <stdio.h> instead of vsnprintf.h.
69698         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69699         HAVE_DECL_VSNPRINTF.
69700         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69701
69702         * modules/snprintf (Files): Remove lib/snprintf.h.
69703         (Depends-on): Add stdio.
69704         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69705         (Include): Use <stdio.h> instead of snprintf.h.
69706         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69707         HAVE_DECL_SNPRINTF.
69708         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69709         * lib/getaddrinfo.c: Likewise.
69710
69711         * modules/stdio: New file.
69712         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69713         * lib/snprintf.h: Remove file.
69714         * lib/vsnprintf.h: Remove file.
69715         * lib/.cppi-disable: Remove snprintf.h.
69716         * m4/stdio_h.m4: New file.
69717         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69718
69719 2007-02-20  Jim Meyering  <jim@meyering.net>
69720
69721         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69722         used by e.g., mingw.  From Bruno Haible.
69723
69724 2007-02-19  Bruno Haible  <bruno@clisp.org>
69725
69726         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69727         warnings.
69728         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69729
69730 2007-02-19  Bruno Haible  <bruno@clisp.org>
69731
69732         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69733         from mingw users.
69734
69735 2007-02-19  Bruno Haible  <bruno@clisp.org>
69736
69737         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69738         warnings.
69739         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69740
69741 2007-02-19  Jim Meyering  <jim@meyering.net>
69742
69743         Don't use FD after a successful "fdopendir (fd)".
69744         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69745         Reset it by calling dirfd on the just-obtained DIR*.
69746
69747         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69748         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69749
69750 2007-02-18  Bruno Haible  <bruno@clisp.org>
69751
69752         * lib/readlink.c: Include <unistd.h>.
69753         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69754         HAVE_READLINK.
69755         * modules/readlink (Depends-on): Add unistd.
69756         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69757         (Include): Add <unistd.h>.
69758
69759         * lib/getlogin_r.h: Remove file.
69760         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69761         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69762         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69763         HAVE_DECL_GETLOGIN_R.
69764         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69765         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69766         (Include): Use <unistd.h> instead of getlogin_r.h.
69767
69768         * lib/getcwd.h: Remove file.
69769         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69770         * lib/xgetcwd.c: Likewise.
69771         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69772         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69773         * modules/getcwd (Files): Remove lib/getcwd.h.
69774         (Depends-on): Add unistd.
69775         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69776         (Include): Use <unistd.h> instad of getcwd.h.
69777
69778         * lib/ftruncate.c: Include <unistd.h> first.
69779         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69780         Set HAVE_FTRUNCATE.
69781         * modules/ftruncate (Depends-on): Add unistd.
69782         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69783
69784         * lib/fchdir.c: Include <unistd.h> first.
69785         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69787         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69788         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69789         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69790
69791         * lib/dup2.c: Include <unistd.h> first.
69792         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69793         HAVE_DUP2.
69794         * modules/dup2 (Depends-on): Add unistd.
69795         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69796
69797         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69798         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69799         REPLACE_CHOWN. Don't define chown as a macro here.
69800         * modules/chown (Depends-on): Add unistd.
69801         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69802
69803         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69804         Add definition for GL_LINK_WARNING.
69805         (chown, dup2): New declarations.
69806         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69807         link warning.
69808         (ftruncate): New declaration.
69809         (getcwd): New declaration, taken from old getcwd.h.
69810         (getlogin_r): New declaration, taken from old getlogin_r.h.
69811         (readlink): New declaration.
69812         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69813         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69814         (gl_PREREQ_UNISTD): Remove macro.
69815         (gl_UNISTD_MODULE_INDICATOR): New macro.
69816         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69817         many new variables. Don't set UNISTD_H.
69818         * modules/unistd (Description): Change.
69819         (Depends-on): Add link-warning.
69820         (configure.ac): Update.
69821         (Makefile.am): Create unistd.h always. Substitute many new variables
69822         into it.
69823
69824 2007-02-18  Bruno Haible  <bruno@clisp.org>
69825
69826         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69827         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69828         HAVE_GETSUBOPT.
69829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69830         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69831         * lib/getsubopt.h: Remove file.
69832         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69833         (Depends-on): Add stdlib.
69834         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69835         (Includes): Use <stdlib.h> instead of getsubopt.h.
69836         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69837         Set HAVE_GETSUBOPT.
69838         * lib/getsubopt.c: Don't include getsubopt.h.
69839
69840 2007-02-18  Bruno Haible  <bruno@clisp.org>
69841
69842         * modules/fchdir (Depends-on): Add dup2.
69843
69844 2007-02-18  Bruno Haible  <bruno@clisp.org>
69845
69846         * lib/stdlib_.h: Handle glibc's special invocation convention
69847         specially.
69848
69849 2007-02-18  Bruno Haible  <bruno@clisp.org>
69850
69851         * modules/stdlib-tests: New file.
69852         * tests/test-stdlib.c: New file.
69853
69854         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69855         (Depends-on): Add stdlib.
69856         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69857         (Includes): Use <stdlib.h> instead of mkstemp.h.
69858         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69859         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69860         * lib/mkstemp.c: Don't include mkstemp.h.
69861         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69862         * lib/stdlib--.h: Don't include mkstemp.h.
69863
69864         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69865         (Depends-on): Add stdlib.
69866         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69867         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69868         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69869         HAVE_MKDTEMP.
69870         * lib/mkdtemp.c: Don't include mkdtemp.h.
69871         * lib/clean-temp.c: Don't include mkdtemp.h.
69872
69873         * modules/exit (Files): Remove lib/exit.h.
69874         (Depends-on): Add stdlib.
69875         (Makefile.am): Remove lib_SOURCES.
69876         (Include): Use <stdlib.h> instead of exit.h.
69877         * lib/argmatch.c: Don't include exit.h.
69878         * lib/execute.c: Likewise.
69879         * lib/pagealign_alloc.c: Likewise.
69880         * lib/pipe.c: Likewise.
69881         * lib/wait-process.c: Likewise.
69882         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69883         * lib/exitfail.c: Likewise.
69884         * lib/savewd.c: Likewise.
69885         * lib/xsetenv.c: Likewise.
69886
69887         * modules/stdlib: New file.
69888         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69889         and extra comments about mkstemp().
69890         * lib/exit.h: Remove file.
69891         * lib/mkdtemp.h: Remove file.
69892         * lib/mkstemp.h: Remove file.
69893         * m4/stdlib_h.m4: New file.
69894         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69895
69896 2007-02-18  Bruno Haible  <bruno@clisp.org>
69897
69898         * modules/math-tests: New file.
69899         * tests/test-math.c: New file.
69900
69901         * modules/math: New file.
69902         * modules/mathl (Files): Remove lib/mathl.h.
69903         (Depends-on): Add math.
69904         (Makefile.am): Don't mention mathl.h.
69905         (Include): Use <math.h> instead of mathl.h.
69906         * lib/math_.h: New file.
69907         * lib/mathl.h: Remove file.
69908         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69909         mathl.h.
69910         * lib/asinl.c: Likewise.
69911         * lib/atanl.c: Likewise.
69912         * lib/ceill.c: Likewise.
69913         * lib/cosl.c: Likewise.
69914         * lib/expl.c: Likewise.
69915         * lib/floorl.c: Likewise.
69916         * lib/frexpl.c: Likewise.
69917         * lib/ldexpl.c: Likewise.
69918         * lib/logl.c: Likewise.
69919         * lib/sincosl.c: Likewise.
69920         * lib/sinl.c: Likewise.
69921         * lib/sqrtl.c: Likewise.
69922         * lib/tanl.c: Likewise.
69923         * lib/trigl.c: Likewise.
69924         * m4/math_h.m4: New file.
69925         * MODULES.html.sh (Mathematics): Add math.
69926
69927 2007-02-17  Bruno Haible  <bruno@clisp.org>
69928
69929         * modules/wctype-tests: New file.
69930         * tests/test-wctype.c: New file.
69931
69932         * modules/wchar-tests: New file.
69933         * tests/test-wchar.c: New file.
69934
69935         * modules/unistd-tests: New file.
69936         * tests/test-unistd.c: New file.
69937
69938         * modules/time-tests: New file.
69939         * tests/test-time.c: New file.
69940
69941         * modules/sysexits-tests: New file.
69942         * tests/test-sysexits.c: New file.
69943
69944         * modules/sys_time-tests: New file.
69945         * tests/test-sys_time.c: New file.
69946
69947         * modules/sys_stat-tests: New file.
69948         * tests/test-sys_stat.c: New file.
69949
69950         * modules/sys_socket-tests: New file.
69951         * tests/test-sys_socket.c: New file.
69952
69953         * modules/sys_select-tests: New file.
69954         * tests/test-sys_select.c: New file.
69955
69956         * modules/string-tests: New file.
69957         * tests/test-string.c: New file.
69958
69959         * modules/stdbool-tests: New file.
69960         * tests/test-stdbool.c: New file.
69961
69962         * modules/netinet_in-tests: New file.
69963         * tests/test-netinet_in.c: New file.
69964
69965         * modules/inttypes-tests: New file.
69966         * tests/test-inttypes.c: New file.
69967
69968         * modules/fcntl-tests: New file.
69969         * tests/test-fcntl.c: New file.
69970
69971         * modules/byteswap-tests: New file.
69972         * tests/test-byteswap.c: New file.
69973
69974         * modules/arpa_inet-tests: New file.
69975         * tests/test-arpa_inet.c: New file.
69976
69977 2007-02-17  Bruno Haible  <bruno@clisp.org>
69978
69979         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69980         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69981         if the corresponding module is not enabled. Emit link warnings if
69982         the function is used nevertheless.
69983         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69984         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69985         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69986         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69987         * modules/inttypes (Depends-on): Add link-warning.
69988         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69989         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69990         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69991         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69992         * modules/imaxdiv (configure.ac): Likewise.
69993         * modules/strtoimax (configure.ac): Likewise.
69994         * modules/strtoumax (configure.ac): Likewise.
69995
69996 2007-02-17  Bruno Haible  <bruno@clisp.org>
69997
69998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69999         gl_STRING_MODULE_INDICATOR_DEFAULTS.
70000         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
70001         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
70002
70003 2007-02-17  Bruno Haible  <bruno@clisp.org>
70004
70005         * modules/link-warning: New file.
70006         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
70007         * lib/string_.h (GL_LINK_WARNING): Remove definition.
70008         * modules/string (Depends-on): Add link-warning.
70009         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70010         string.h.
70011         * MODULES.html.sh (Support for building libraries and executables): Add
70012         link-warning.
70013
70014 2007-02-17  Bruno Haible  <bruno@clisp.org>
70015
70016         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70017         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70018         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70019         long lines.
70020
70021 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70022             Bruno Haible  <bruno@clisp.org>
70023
70024         * modules/tmpfile: New file.
70025         * lib/tmpfile.c: New file.
70026         * m4/tmpfile.m4: New file.
70027         * MODULES.html.sh (func_all_modules): New section "Input/output".
70028
70029 2007-02-15  Bruno Haible  <bruno@clisp.org>
70030
70031         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70032         (supports_delete_on_close): New function.
70033         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70034
70035 2007-02-14  Bruno Haible  <bruno@clisp.org>
70036
70037         * modules/mbspcasecmp-tests: New file.
70038         * tests/test-mbspcasecmp.sh: New file.
70039         * tests/test-mbspcasecmp.c: New file.
70040
70041         New module mbspcasecmp.
70042         * modules/mbspcasecmp: New file.
70043         * lib/mbspcasecmp.c: New file.
70044         * lib/string_.h (strncasecmp): Change warning message.
70045         (mbspcasecmp): New declaration.
70046         * m4/mbspcasecmp.m4: New file.
70047         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70048         GNULIB_MBSPCASECMP.
70049         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70050         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70051
70052 2007-02-14  Bruno Haible  <bruno@clisp.org>
70053
70054         * modules/mbsncasecmp-tests: New file.
70055         * tests/test-mbsncasecmp.sh: New file.
70056         * tests/test-mbsncasecmp.c: New file.
70057
70058         New module mbsncasecmp.
70059         * modules/mbsncasecmp: New file.
70060         * lib/mbsncasecmp.c: New file.
70061         * lib/string_.h (mbsncasecmp): New declaration.
70062         * m4/mbsncasecmp.m4: New file.
70063         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70064         GNULIB_MBSNCASECMP.
70065         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70066         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70067
70068 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70069
70070         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70071         Verify that it doesn't overlap with our flags.
70072         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70073         do not have the desired effect in multibyte locales; instead, use
70074         mbscasecmp.
70075         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70076         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70077         we don't require GNU fnmatch ourselves (if our users require it, they
70078         should do so explicitly).
70079
70080         Fix regex code so it doesn't rely on strcasecmp.
70081         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70082         Otherwise, include gnulib's langinfo.h.
70083         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70084         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70085         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70086         * modules/regex (FILES): Remove m4/codeset.m4.
70087         (Depends-on): Add localcharset.  Remove strcase.
70088
70089 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70090
70091         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70092         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70093
70094 2007-02-13  Bruno Haible  <bruno@clisp.org>
70095
70096         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70097         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70098
70099 2007-02-12  Bruno Haible  <bruno@clisp.org>
70100
70101         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70102         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70103         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70104         time warning rather than a link error.
70105
70106 2007-02-12  Bruno Haible  <bruno@clisp.org>
70107
70108         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70109         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70110         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70111
70112 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70113
70114         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70115         args, not 2.
70116
70117 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70118
70119         New module 'time', so that apps can include <time.h> as per
70120         POSIX and GNU instead of separate include files like time_r.h
70121         and timegm.h.  This implementation tries out a simpler approach
70122         for replacing decls in standard include files (as compared to
70123         the string module), somewhat as an experiment.
70124
70125         * config/srclist.txt: Comment out mktime.c for now.
70126         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70127         since it doesn't apply any more.  Use generic wording instead.
70128         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70129         'time'.
70130         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70131         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70132         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70133         Don't include <sys/types.h>; no longer needed since we assume C89.
70134         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70135         * lib/strftime.c: Likewise.
70136         * lib/time_r.c: Likewise.
70137         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70138         * lib/nanosleep.c: Include <time.h> first, to check interface.
70139         * lib/strptime.c: Likewise.
70140         * lib/time_r.c: Likewise.
70141         * lib/timegm.c: Likewise.
70142         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70143         needed.
70144         * lib/timegm.c: Don't include timegm.h; no longer needed.
70145         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70146         time.h now handles any problems in that area.
70147         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70148         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70149         that time.h defines struct timespec.
70150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70151         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70152         handles that.
70153         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70154         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70155         needed.  Set REPLACE_LOCALTIME.
70156         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70157         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70158         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70159         nanosleep; time_h.m4 now does that.  Don't require
70160         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70161         module handles this now.
70162         * modules/getdate (Depends-on): Remove timespec.  Add time.
70163         * modules/nanosleep (Depends-on): Likewise.
70164         * modules/stat-time (Depends-on): Likewise.
70165         * modules/nanosleep (Include): Include time.h, not timespec.h.
70166         * modules/strptime (Files): Remove lib/strptime.h.
70167         (Depends-on): Add extensions, time.
70168         (Include): Include time.h, not strptime.h.
70169         * modules/time_r (Files): Remove lib/time_r.h.
70170         (Depends-on): Add time.
70171         (Include): Include time.h, not time_r.h.
70172         * modules/timegm: Likewise.
70173         * modules/timespec (Description): Now does timespec-related decls
70174         of our own, instead of struct timespec itself.
70175         (Depends-on): Add time; remove extensions.
70176         (Maintainer): Add self.
70177         * modules/utimecmp (Depends-on): Add time; remove timespec.
70178         * modules/utimens (Depends-on): Likewise.
70179         * modules/xnanosleep (Depends-on): Likewise.
70180
70181 2007-02-11  Bruno Haible  <bruno@clisp.org>
70182
70183         * lib/c-strstr.c: Include allocsa.h.
70184         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70185         * lib/c-strcasestr.c: Include allocsa.h.
70186         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70187         * lib/strcasestr.c: Include allocsa.h.
70188         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70189         * lib/mbsstr.c: Include allocsa.h.
70190         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70191         allocsa/freesa instead of malloc/free.
70192         * lib/mbscasestr.c: Include allocsa.h.
70193         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70194         allocsa/freesa instead of malloc/free.
70195         * modules/c-strstr (Depends-on): Add allocsa.
70196         * modules/c-strcasestr (Depends-on): Likewise.
70197         * modules/strcasestr (Depends-on): Likewise.
70198         * modules/mbsstr (Depends-on): Likewise.
70199         * modules/mbscasestr (Depends-on): Likewise.
70200
70201 2007-02-11  Bruno Haible  <bruno@clisp.org>
70202
70203         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70204
70205         * modules/mbsspn-tests: New file.
70206         * tests/test-mbsspn.sh: New file.
70207         * tests/test-mbsspn.c: New file.
70208
70209 2007-02-11  Bruno Haible  <bruno@clisp.org>
70210
70211         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70212
70213         * modules/mbspbrk-tests: New file.
70214         * tests/test-mbspbrk.sh: New file.
70215         * tests/test-mbspbrk.c: New file.
70216
70217 2007-02-11  Bruno Haible  <bruno@clisp.org>
70218
70219         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70220         unneeded cast.
70221
70222         * modules/mbscspn-tests: New file.
70223         * tests/test-mbscspn.sh: New file.
70224         * tests/test-mbscspn.c: New file.
70225
70226 2007-02-11  Bruno Haible  <bruno@clisp.org>
70227
70228         * modules/mbscasecmp-tests: New file.
70229         * tests/test-mbscasecmp.sh: New file.
70230         * tests/test-mbscasecmp.c: New file.
70231
70232 2007-02-11  Bruno Haible  <bruno@clisp.org>
70233
70234         Ensure O(n) worst-case complexity of mbscasestr.
70235         * lib/mbscasestr.c: Include stdbool.h.
70236         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70237         functions.
70238         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70239         the bookkeeping indicates that it's worth it.
70240         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70241
70242         * modules/mbscasestr-tests: New file.
70243         * tests/test-mbscasestr1.c: New file.
70244         * tests/test-mbscasestr2.sh: New file.
70245         * tests/test-mbscasestr2.c: New file.
70246         * tests/test-mbscasestr3.sh: New file.
70247         * tests/test-mbscasestr3.c: New file.
70248         * tests/test-mbscasestr4.sh: New file.
70249         * tests/test-mbscasestr4.c: New file.
70250         * m4/locale-tr.m4: New file.
70251
70252 2007-02-11  Bruno Haible  <bruno@clisp.org>
70253
70254         Ensure O(n) worst-case complexity of mbsstr.
70255         * lib/mbsstr.c: Include stdbool.h.
70256         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70257         functions.
70258         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70259         bookkeeping indicates that it's worth it.
70260         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70261
70262         * modules/mbsstr-tests: New file.
70263         * tests/test-mbsstr1.c: New file.
70264         * tests/test-mbsstr2.sh: New file.
70265         * tests/test-mbsstr2.c: New file.
70266         * tests/test-mbsstr3.sh: New file.
70267         * tests/test-mbsstr3.c: New file.
70268         * m4/locale-fr.m4: New file.
70269
70270 2007-02-11  Bruno Haible  <bruno@clisp.org>
70271
70272         * lib/mbsrchr.c (mbsrchr): Fix bug.
70273
70274         * modules/mbsrchr-tests: New file.
70275         * tests/test-mbsrchr.sh: New file.
70276         * tests/test-mbsrchr.c: New file.
70277
70278 2007-02-11  Bruno Haible  <bruno@clisp.org>
70279
70280         * lib/mbschr.c (mbschr): Fix bug.
70281
70282         * modules/mbschr-tests: New file.
70283         * tests/test-mbschr.sh: New file.
70284         * tests/test-mbschr.c: New file.
70285         * m4/locale-zh.m4: New file.
70286
70287 2007-02-11  Bruno Haible  <bruno@clisp.org>
70288
70289         Support for copying multibyte string iterators.
70290         * lib/mbiter.h: Include <string.h>.
70291         (mbiter_multi_copy): New function.
70292         (mbi_copy): New macro.
70293         * lib/mbuiter.h: Include <string.h>.
70294         (mbuiter_multi_copy): New function.
70295         (mbui_copy): New macro.
70296
70297 2007-02-11  Bruno Haible  <bruno@clisp.org>
70298
70299         New module mbslen.
70300         * modules/mbslen: New file.
70301         * lib/mbslen.c: New file.
70302         * lib/string_.h (mbslen): New declaration.
70303         * m4/mbslen.m4: New file.
70304         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70305         GNULIB_MBSLEN.
70306         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70307         * MODULES.html.sh (Internationalization functions): Add mbslen.
70308
70309 2007-02-11  Bruno Haible  <bruno@clisp.org>
70310
70311         Ensure O(n) worst-case complexity of strcasestr substitute.
70312         * lib/strcasestr.c: Include stdbool.h.
70313         (knuth_morris_pratt): New function.
70314         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70315         bookkeeping indicates that it's worth it.
70316         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70317
70318         * modules/strcasestr-tests: New file.
70319         * tests/test-strcasestr.c: New file.
70320
70321 2007-02-11  Bruno Haible  <bruno@clisp.org>
70322
70323         Ensure O(n) worst-case complexity of c_strcasestr.
70324         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70325         (knuth_morris_pratt): New function.
70326         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70327         the bookkeeping indicates that it's worth it.
70328         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70329
70330         * modules/c-strcasestr-tests: New file.
70331         * tests/test-c-strcasestr.c: New file.
70332
70333 2007-02-11  Bruno Haible  <bruno@clisp.org>
70334
70335         Ensure O(n) worst-case complexity of c_strstr.
70336         * lib/c-strstr.c: Include stdbool.h, string.h.
70337         (knuth_morris_pratt): New function.
70338         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70339         bookkeeping indicates that it's worth it.
70340         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70341
70342         * lib/c-strstr.c: Complete rewrite for maintainability.
70343
70344         * modules/c-strstr-tests: New file.
70345         * tests/test-c-strstr.c: New file.
70346
70347 2007-02-11  Bruno Haible  <bruno@clisp.org>
70348
70349         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70350         5.2.1 and earlier, whereby \055 was treated just like the range
70351         delimiter '-'.
70352         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70353
70354 2007-02-08  Bruno Haible  <bruno@clisp.org>
70355
70356         * modules/regex (Depends-on): Add stdbool.
70357         Reported by Dalibor Topic <robilad@kaffe.org>.
70358
70359 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70360
70361         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70362         Prefer returning from main to exiting from it.
70363         Remove unnecessary parens after sizeof.
70364
70365 2007-02-05  Bruno Haible  <bruno@clisp.org>
70366
70367         New module mbssep.
70368         * modules/mbssep: New file.
70369         * lib/mbssep.c: New file.
70370         * lib/string_.h (strsep): Add a conditional link warning.
70371         (mbssep): New declaration.
70372         * m4/mbssep.m4: New file.
70373         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70374         GNULIB_MBSSEP.
70375         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70376         * MODULES.html.sh (Internationalization functions): Add mbssep.
70377
70378 2007-02-05  Bruno Haible  <bruno@clisp.org>
70379
70380         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70381         Optimize search in case of 1 delimiter.
70382
70383 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70384
70385         * lib/acl.h: Include sys/types.h before sys/acl.h.
70386
70387 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70388
70389         Merge upstream fix for glibc bugzilla #3957:
70390
70391         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70392
70393         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70394         bit for RE_HAT_LISTS_NOT_NEWLINE.
70395         (build_charclass_op): Remove bogus comment.
70396
70397 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70398
70399         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70400
70401 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70402
70403         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70404         * lib/memmem.c [!defined _LIBC]: Include config.h.
70405
70406 2007-02-04  Bruno Haible  <bruno@clisp.org>
70407
70408         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70409         warning message.
70410
70411 2007-02-04  Bruno Haible  <bruno@clisp.org>
70412
70413         New module mbstok_r.
70414         * modules/mbstok_r: New file.
70415         * lib/mbstok_r.c: New file.
70416         * lib/string_.h (strtok_r): Change argument names to match the
70417         comments. Add a conditional link warning.
70418         (mbstok_r): New declaration.
70419         * m4/mbstok_r.m4: New file.
70420         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70421         GNULIB_MBSTOK_R.
70422         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70423         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70424
70425 2007-02-04  Bruno Haible  <bruno@clisp.org>
70426
70427         New module mbsspn.
70428         * modules/mbsspn: New file.
70429         * lib/mbsspn.c: New file.
70430         * lib/string_.h (strspn): Add a conditional link warning.
70431         (mbsspn): New declaration.
70432         * m4/mbsspn.m4: New file.
70433         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70434         GNULIB_MBSSPN.
70435         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70436         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70437
70438 2007-02-04  Bruno Haible  <bruno@clisp.org>
70439
70440         New module mbspbrk.
70441         * modules/mbspbrk: New file.
70442         * lib/mbspbrk.c: New file.
70443         * lib/string_.h (strpbrk): Add a conditional link warning.
70444         (mbspbrk): New declaration.
70445         * m4/mbspbrk.m4: New file.
70446         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70447         GNULIB_MBSPBRK.
70448         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70449         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70450
70451 2007-02-04  Bruno Haible  <bruno@clisp.org>
70452
70453         New module mbscspn.
70454         * modules/mbscspn: New file.
70455         * lib/mbscspn.c: New file.
70456         * lib/string_.h (strcspn): Add a conditional link warning.
70457         (mbscspn): New declaration.
70458         * m4/mbscspn.m4: New file.
70459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70460         GNULIB_MBSCSPN.
70461         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70462         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70463
70464 2007-02-04  Bruno Haible  <bruno@clisp.org>
70465
70466         New module mbscasestr, reduced goal of strcasestr.
70467         * modules/mbscasestr: New file.
70468         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70469         (mbscasestr): Renamed from strcasestr.
70470         * lib/strcasestr.c: Don't include mbuiter.h.
70471         (strcasestr): Remove support for multibyte locales.
70472         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70473         Change the conditional link warning.
70474         (mbscasestr): New declaration.
70475         * m4/mbscasestr.m4: New file.
70476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70477         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70478         REPLACE_STRCASESTR.
70479         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70481         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70482         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70483         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70484         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70485         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70486         (Depends-on): Remove mbuiter.
70487         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70488
70489 2007-02-04  Bruno Haible  <bruno@clisp.org>
70490
70491         Simplify handling of strncasecmp.
70492         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70493         the conditional link warning.
70494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70495         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70496         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70497         * modules/strcase (configure.ac): Don't invoke
70498         gl_STRING_MODULE_INDICATOR.
70499         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70500
70501 2007-02-04  Bruno Haible  <bruno@clisp.org>
70502
70503         New module mbscasecmp, reduced goal of strcasecmp.
70504         * modules/mbscasecmp: New file.
70505         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70506         (mbscasecmp): Renamed from strcasecmp.
70507         * lib/strcasecmp.c: Don't include mbuiter.h.
70508         (strcasecmp): Remove support for multibyte locales.
70509         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70510         Change the conditional link warning.
70511         (mbscasecmp): New declaration.
70512         * m4/mbscasecmp.m4: New file.
70513         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70514         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70515         REPLACE_STRCASECMP.
70516         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70517         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70518         GNULIB_MBSCASECMP.
70519         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70520         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70521         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70522         (Depends-on): Remove mbuiter.
70523         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70524
70525 2007-02-04  Bruno Haible  <bruno@clisp.org>
70526
70527         New module mbsstr. Remove module strstr.
70528         * modules/mbsstr: New file.
70529         * modules/strstr: Remove file.
70530         * lib/mbsstr.c: Renamed from lib/strstr.c.
70531         (mbsstr): Renamed from strstr.
70532         * lib/string_.h (strstr): Remove declaration. Change the conditional
70533         link warning.
70534         (mbsstr): New declaration.
70535         * m4/mbsstr.m4: New file.
70536         * m4/strstr.m4: Remove file.
70537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70538         REPLACE_STRSTR.
70539         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70540         Don't initialize GNULIB_STRSTR.
70541         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70542         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70543         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70544         (Support for systems lacking ANSI C 89): Remove strstr.
70545
70546 2007-02-04  Bruno Haible  <bruno@clisp.org>
70547
70548         New module mbsrchr.
70549         * modules/mbsrchr: New file.
70550         * lib/mbsrchr.c: New file.
70551         * lib/string_.h (strrchr): Add a conditional link warning.
70552         (mbsrchr): New declaration.
70553         * m4/mbsrchr.m4: New file.
70554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70555         GNULIB_MBSRCHR.
70556         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70557         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70558
70559 2007-02-04  Bruno Haible  <bruno@clisp.org>
70560
70561         New module mbschr.
70562         * modules/mbschr: New file.
70563         * lib/mbschr.c: New file.
70564         * lib/string_.h (strchr): Add a conditional link warning.
70565         (mbschr): New declaration.
70566         * m4/mbschr.m4: New file.
70567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70568         GNULIB_MBSCHR.
70569         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70570         * MODULES.html.sh (Internationalization functions): Add mbschr.
70571
70572 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70573
70574         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70575
70576         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70577
70578 2007-02-04  Bruno Haible  <bruno@clisp.org>
70579
70580         New module description section 'configure.ac-early'.
70581         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70582         (func_get_autoconf_early_snippet): New function.
70583         (func_import, func_create_testdir): Use it. Remove special cases for
70584         modules 'extensions' and 'lock'.
70585         * modules/extensions (configure.ac-early): Require
70586         gl_USE_SYSTEM_EXTENSIONS.
70587         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70588
70589 2007-02-04  Bruno Haible  <bruno@clisp.org>
70590
70591         Make use of gcj-4.3's -fsource and -ftarget option.
70592         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70593         and if so try the options -fsource and -ftarget.
70594         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70595         source_version, ftarget_option, target_version arguments.
70596         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70597         (is_envjavac_oldgcj_14_14_usable): Renamed from
70598         is_envjavac_gcj_14_14_usable.
70599         (is_envjavac_oldgcj_14_13_usable): Renamed from
70600         is_envjavac_gcj_14_13_usable.
70601         (is_gcj_present): Update.
70602         (is_gcj_43, is_gcj43_usable): New functions.
70603         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70604         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70605         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70606         try the options -fsource and -ftarget.
70607
70608 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70609
70610         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70611         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70612         larger value.
70613
70614 2007-02-03  Jim Meyering  <jim@meyering.net>
70615
70616         Give tools a better chance to allocate space for very large buffers.
70617         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70618
70619         Make pwd and readlink work also when run with an unreadable parent dir
70620         on systems with openat support.
70621         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70622         provided getcwd function, even when we have openat support.
70623         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70624
70625 2007-02-02  Bruno Haible  <bruno@clisp.org>
70626
70627         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70628         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70629         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70630         portability problems if one of these functions is only used on specific
70631         platforms.
70632         Reported by Paul Eggert.
70633
70634 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70635
70636         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70637         is causing more trouble than it's curing.
70638         * lib/regex_internal.h (__mempcpy): Remove.
70639         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70640         (and make the code a tad smaller to boot).
70641         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70642
70643 2007-02-02  Jim Meyering  <jim@meyering.net>
70644
70645         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70646         section, not in the Makefile.am: one.
70647
70648 2007-02-02  Eric Blake  <ebb9@byu.net>
70649
70650         * lib/strchrnul.c: Always include config.h first.
70651
70652         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70653         gnulib strstr is not necessary here.
70654
70655 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70656
70657         * m4/socklen.m4: Fix typo.
70658
70659 2007-02-02  Eric Blake  <ebb9@byu.net>
70660
70661         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70662         * modules/netinet_in (Makefile.am): Likewise.
70663
70664 2007-02-01  Bruno Haible  <bruno@clisp.org>
70665
70666         * lib/string_.h (GL_LINK_WARNING): New macro.
70667         (strcasecmp, strstr, strcasestr): If provided by the system,
70668         conditionally define as a macro that leads to a warning instead of to
70669         an error.
70670         (strncasecmp): Conditionally define as a macro that leads to a warning.
70671
70672 2007-02-01  Karl Berry  <karl@gnu.org>
70673
70674         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70675
70676 2007-02-01  Bruno Haible  <bruno@clisp.org>
70677
70678         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70679         renamings.
70680
70681 2007-02-01  Eric Blake  <ebb9@byu.net>
70682
70683         * modules/regex (Depends-on): Revert dependence on mempcpy.
70684         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70685         module's definition of mempcpy.
70686         Reported by Paul Eggert.
70687
70688 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70689
70690         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70691         the symbol XYZ before redefining it.  This fixes a problem with
70692         programs that don't use XYZ, when compiled on systems that define
70693         XYZ to something else.
70694
70695 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70696
70697         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70698         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70699         writeable to group or other and (2) is intended to have a special
70700         mode bit that is set or cleared.  In such a case, the directory
70701         should be neither group- nor other-writeable until the special
70702         mode bits are right.
70703
70704 2007-01-31  Eric Blake  <ebb9@byu.net>
70705
70706         * modules/mountlist (Depends-on): Add strstr.
70707
70708         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70709         bug.
70710         * modules/string (Makefile.am): Remove redundant replacement.
70711         * modules/regex (Depends-on): Add mempcpy.
70712
70713 2007-01-31  Bruno Haible  <bruno@clisp.org>
70714
70715         New module description field 'Link'.
70716         * gnulib-tool (func_usage): Document --extract-link-directive.
70717         (sed_extract_prog): Recognize 'Link' directive.
70718         (func_get_link_directive): New function.
70719         (func_import): Show summary of link directives.
70720         Handle --extract-link-directive option.
70721         * modules/acl (Link): New section.
70722         * modules/clock-time (Link): New section.
70723         * modules/euidaccess (Link): New section.
70724         * modules/gettext (Link): New section.
70725         * modules/iconv (Link): New section.
70726         * modules/lock (Link): New section.
70727         * modules/nanosleep (Link): New section.
70728         * modules/readline (Link): New section.
70729
70730 2007-01-27  Bruno Haible  <bruno@clisp.org>
70731
70732         Enforce the use of gnulib modules for unportable <string.h> functions.
70733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70734         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70735         (gl_HEADER_STRING_H_BODY): Require it.
70736         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70737         the symbol XYZ to one that gives a link error.
70738         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70739         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70740         * modules/mempcpy (configure.ac): Likewise.
70741         * modules/memrchr (configure.ac): Likewise.
70742         * modules/stpcpy (configure.ac): Likewise.
70743         * modules/stpncpy (configure.ac): Likewise.
70744         * modules/strcase (configure.ac): Likewise.
70745         * modules/strcasestr (configure.ac): Likewise.
70746         * modules/strchrnul (configure.ac): Likewise.
70747         * modules/strdup (configure.ac): Likewise.
70748         * modules/strndup (configure.ac): Likewise.
70749         * modules/strnlen (configure.ac): Likewise.
70750         * modules/strpbrk (configure.ac): Likewise.
70751         * modules/strsep (configure.ac): Likewise.
70752         * modules/strstr (configure.ac): Likewise.
70753         * modules/strtok_r (configure.ac): Likewise.
70754
70755 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70756
70757         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70758
70759 2007-01-30  Jim Meyering  <jim@meyering.net>
70760
70761         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70762
70763 2007-01-29  Bruno Haible  <bruno@clisp.org>
70764
70765         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70766         * lib/execute.c: Likewise.
70767         * lib/pipe.c: Likewise.
70768         * lib/printf-args.h: Likewise.
70769         * lib/printf-args.c: Likewise.
70770         * lib/printf-parse.c: Likewise.
70771         * lib/vasnprintf.c: Likewise.
70772
70773 2007-01-29  Eric Blake  <ebb9@byu.net>
70774
70775         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70776         declaration.
70777
70778 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70779
70780         * lib/strptime.h (strptime): Use 'restrict' for args where
70781         POSIX requires this.
70782         * lib/strptime.c (strptime): Likewise.
70783         Change license notice from LGPL to GPL, since gnulib-tool will
70784         change this as needed.
70785         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70786         defined.
70787         Include "strptime.h" first, to check interface.
70788         Do not #undef _LIBC and _NL_CURRENT.
70789         Do not include <stdlib.h>; no longer needed.
70790         Include "time_r.h" and declare ptime_locale_status
70791         only if _LIBC is not defined.
70792         (__P): Remove unused macro.
70793         (match_string): Bring back glibc version, but use it only if _LIBC
70794         is defined.
70795         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70796         Remove unnecessary assertion and abort() call.
70797         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70798         * m4/strptime.m4: Fix serial number comment.
70799         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70800         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70801         (Depends-on): Add time_r.
70802
70803 2007-01-29  Bruno Haible  <bruno@clisp.org>
70804
70805         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70806         strptime.
70807         * modules/strptime (Depends-on): Add stdbool.
70808         * lib/strptime.h: Include <time.h> always. Add comments.
70809
70810 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70811
70812         * modules/strptime: New file.
70813         * lib/strptime.h: New file.
70814         * lib/strptime.c: New file.
70815         * m4/strptime.m4: New file.
70816
70817 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         * MODULES.html.sh: New module mpsort.
70820         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70821
70822         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70823         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70824         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70825         All uses changed.
70826         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70827         All uses changed.
70828         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70829         to _Restrict_.
70830         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70831         the parameter matches the prototype.
70832
70833 2007-01-28  Jim Meyering  <jim@meyering.net>
70834
70835         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70836         sys/time.h here, reverting that part of the previous patch:
70837         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70838
70839 2007-01-28  Bruno Haible  <bruno@clisp.org>
70840
70841         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70842         value of $(SYS_TIME_H).
70843         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70844         remove it conditionally, too. [added by Jim Meyering]
70845         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70846         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70847         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70848         GETTIMEOFDAY_REPLACEMENT to 1.
70849
70850 2007-01-28  Bruno Haible  <bruno@clisp.org>
70851
70852         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70853         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70855         Set UNISTD_H instead of UNISTD_H2.
70856         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70857
70858 2007-01-28  Bruno Haible  <bruno@clisp.org>
70859
70860         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70861         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70862
70863 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70864
70865         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70866         (func_create_testdir): Ensure C locale for `grep' and `tr'
70867         character ranges.
70868         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70869         ACLOCAL_AMFLAGS parsing state machine.
70870
70871 2007-01-27  Bruno Haible  <bruno@clisp.org>
70872
70873         * modules/unistr/base: Update.
70874
70875 2007-01-27  Bruno Haible  <bruno@clisp.org>
70876
70877         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70878         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70879         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70880         modules/unistr/u32-mbtouc.
70881         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70882         * lib/unistr.h: Update.
70883         * lib/linebreak.c: Update.
70884         * modules/unistr/u32-mbtouc: Renamed from
70885         modules/unistr/u32-mbtouc-safe.
70886         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70887         * lib/unistr.h: Update.
70888         * lib/unistr/u32-to-u8.c: Update.
70889         * lib/unistr/u32-to-u16.c: Update.
70890
70891 2007-01-27  Bruno Haible  <bruno@clisp.org>
70892
70893         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70894         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70895         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70896         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70897         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70898         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70899         modules/unistr/u16-mbtouc.
70900         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70901         * lib/unistr.h: Update.
70902         * lib/linebreak.c: Update.
70903         * modules/linebreak: Update.
70904         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70905         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70906         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70907         * modules/unistr/u16-mbtouc: Renamed from
70908         modules/unistr/u16-mbtouc-safe.
70909         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70910         * lib/unistr.h: Update.
70911         * lib/unistr/u16-to-u8.c: Update.
70912         * modules/unistr/u16-to-u8: Update.
70913         * lib/unistr/u16-to-u32.c: Update.
70914         * modules/unistr/u16-to-u32: Update.
70915
70916 2007-01-27  Bruno Haible  <bruno@clisp.org>
70917
70918         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70919         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70920         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70921         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70922         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70923         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70924         modules/unistr/u8-mbtouc.
70925         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70926         * lib/unistr.h: Update.
70927         * lib/striconveh.c: Update.
70928         * modules/striconveh: Update.
70929         * lib/linebreak.c: Update.
70930         * modules/linebreak: Update.
70931         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70932         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70933         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70934         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70935         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70936         * lib/unistr.h: Update.
70937         * lib/striconveh.c: Update.
70938         * modules/striconveh: Update.
70939         * lib/unistr/u8-to-u16.c: Update.
70940         * modules/unistr/u8-to-u16: Update.
70941         * lib/unistr/u8-to-u32.c: Update.
70942         * modules/unistr/u8-to-u32: Update.
70943
70944 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70945
70946         Sync from Libtool.
70947         * lib/argz.c: Do not include strings.h nor memory.h, include
70948         string.h unconditionally.  Patch by Simon Josefsson.
70949
70950 2007-01-27  Bruno Haible  <bruno@clisp.org>
70951
70952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70953         from gl_HEADER_STRING_H_BODY.
70954         (gl_HEADER_STRING_H_BODY): Require it.
70955         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70956         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70957         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70958         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70959         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70960         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70961         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70962         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70963         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70964         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70965         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70966         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70967         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70968         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70969         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70970
70971 2007-01-27  Bruno Haible  <bruno@clisp.org>
70972
70973         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70974         check_PROGRAMS into noinst_PROGRAMS.
70975         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70976         check_PROGRAMS in this case.
70977         (func_import): Set for_test to false.
70978         (func_create_testdir): Set for_test to true.
70979
70980 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70981             Bruno Haible  <bruno@clisp.org>
70982
70983         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70984         (Depends-on): Add string.
70985         (Includes): Use <string.h> instead of strcasestr.h.
70986         * modules/string (Makefile.am): Also substitute the value of
70987         REPLACE_STRCASESTR.
70988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70989         assume strcasestr is declared in <string.h> not <strings.h>. Also
70990         set REPLACE_STRCASESTR.
70991         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70992         REPLACE_STRCASESTR.
70993         * lib/strcasestr.h: Remove file.
70994         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70995         * lib/string_.h (strcasestr): New declaration.
70996
70997 2007-01-27  Bruno Haible  <bruno@clisp.org>
70998
70999         * lib/string_.h: Use 'extern'.
71000
71001 2007-01-27  Jim Meyering  <jim@meyering.net>
71002
71003         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
71004         of set-but-not-used local, "q".
71005
71006         * lib/mempcpy.c: Include <config.h> before <string.h>.
71007         This fixes a compilation error on HP-UX, due to the system's
71008         "restrict"-using mempcpy prototype.
71009
71010 2007-01-26  Bruno Haible  <bruno@clisp.org>
71011
71012         Small optimization.
71013         * lib/javacomp.c: Include c-strstr.h.
71014          (is_envjavac_gcj): Use c_strstr instead of strstr.
71015         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71016
71017 2007-01-26  Bruno Haible  <bruno@clisp.org>
71018
71019         * MODULES.html.sh (Unicode string functions): Add the new modules.
71020
71021         * modules/uniconv/u32-strconv-to-locale: New file.
71022         * lib/uniconv/u32-strconv-to-locale.c: New file.
71023
71024         * modules/uniconv/u16-strconv-to-locale: New file.
71025         * lib/uniconv/u16-strconv-to-locale.c: New file.
71026
71027         * modules/uniconv/u8-strconv-to-locale: New file.
71028         * lib/uniconv/u8-strconv-to-locale.c: New file.
71029
71030         * modules/uniconv/u32-strconv-from-locale: New file.
71031         * lib/uniconv/u32-strconv-from-locale.c: New file.
71032
71033         * modules/uniconv/u16-strconv-from-locale: New file.
71034         * lib/uniconv/u16-strconv-from-locale.c: New file.
71035
71036         * modules/uniconv/u8-strconv-from-locale: New file.
71037         * lib/uniconv/u8-strconv-from-locale.c: New file.
71038
71039         * modules/uniconv/u32-strconv-to-enc: New file.
71040         * lib/uniconv/u32-strconv-to-enc.c: New file.
71041         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71042         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71043
71044         * modules/uniconv/u16-strconv-to-enc: New file.
71045         * lib/uniconv/u16-strconv-to-enc.c: New file.
71046         * lib/uniconv/u-strconv-to-enc.h: New file.
71047         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71048         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71049
71050         * modules/uniconv/u8-strconv-to-enc: New file.
71051         * lib/uniconv/u8-strconv-to-enc.c: New file.
71052         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71053         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71054
71055         * modules/uniconv/u32-strconv-from-enc: New file.
71056         * lib/uniconv/u32-strconv-from-enc.c: New file.
71057         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71058         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71059
71060         * modules/uniconv/u16-strconv-from-enc: New file.
71061         * lib/uniconv/u16-strconv-from-enc.c: New file.
71062         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71063         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71064
71065         * modules/uniconv/u8-strconv-from-enc: New file.
71066         * lib/uniconv/u8-strconv-from-enc.c: New file.
71067         * lib/uniconv/u-strconv-from-enc.h: New file.
71068         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71069         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71070
71071         * modules/uniconv/u32-conv-from-enc: New file.
71072         * lib/uniconv/u32-conv-from-enc.c: New file.
71073         * modules/uniconv/u32-conv-from-enc-tests: New file.
71074         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71075
71076         * modules/uniconv/u16-conv-from-enc: New file.
71077         * lib/uniconv/u16-conv-from-enc.c: New file.
71078         * lib/uniconv/u-conv-from-enc.h: New file.
71079         * modules/uniconv/u16-conv-from-enc-tests: New file.
71080         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71081
71082         * modules/uniconv/u8-conv-from-enc: New file.
71083         * lib/uniconv/u8-conv-from-enc.c: New file.
71084         * modules/uniconv/u8-conv-from-enc-tests: New file.
71085         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71086
71087         * modules/uniconv/base: New file.
71088         * lib/uniconv.h: New file.
71089
71090 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71091
71092         * doc/gnulib-tool.texi (Initial import): Update to match current
71093         behavior with strdup module.
71094         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71095         * lib/memmem.h: Remove; all uses removed.  This is now done
71096         by <string.h>.
71097         * lib/mempcpy.h: Likewise.
71098         * lib/memrchr.h: Likewise.
71099         * lib/stpcpy.h: Likewise.
71100         * lib/stpncpy.h: Likewise.
71101         * lib/strcase.h: Likewise.
71102         * lib/strchrnul.h: Likewise.
71103         * lib/strdup.h: Likewise.
71104         * lib/strndup.h: Likewise.
71105         * lib/strnlen.h: Likewise.
71106         * lib/strpbrk.h: Likewise.
71107         * lib/strsep.h: Likewise.
71108         * lib/strstr.h: Likewise.
71109         * lib/strtok_r.h: Likewise.
71110         * lib/string_.h: New file.
71111         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71112         Rely on <string.h> instead.
71113         * lib/canon-host.c: Likewise.
71114         * lib/chdir-long.c: Likewise.
71115         * lib/concatpath.c: Likewise.
71116         * lib/exclude.c: Likewise.
71117         * lib/fchdir.c: Likewise.
71118         * lib/getaddrinfo.c: Likewise.
71119         * lib/getcwd.c: Likewise.
71120         * lib/getsubopt.c: Likewise.
71121         * lib/glob.c: Likewise.
71122         * lib/hard-locale.c: Likewise.
71123         * lib/iconvme.c: Likewise.
71124         * lib/javacomp.c: Likewise.
71125         * lib/mempcpy.c: Likewise.
71126         * lib/memrchr.c: Likewise.
71127         * lib/regex_internal.h: Likewise.
71128         * lib/stpncpy.c: Likewise.
71129         * lib/strcasecmp.c: Likewise.
71130         * lib/strchrnul.c: Likewise.
71131         * lib/strdup.c: Likewise.
71132         * lib/striconv.c: Likewise.
71133         * lib/striconveh.c: Likewise.
71134         * lib/striconveha.c: Likewise.
71135         * lib/strncasecmp.c: Likewise.
71136         * lib/strndup.c: Likewise.
71137         * lib/strnlen.c: Likewise.
71138         * lib/strsep.c: Likewise.
71139         * lib/strstr.c: Likewise.
71140         * lib/strtok_r.c: Likewise.
71141         * lib/userspec.c: Likewise.
71142         * lib/w32spawn.h: Likewise.
71143         * lib/xstrndup.c: Likewise.
71144         * lib/mountlist.c (strstr): Remove decl.
71145         * m4/string_h.m4: New file.
71146         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71147         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71148         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71149         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71150         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71151         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71152         Set REPLACE_STRCASECMP if necessary.
71153         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71154         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71155         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71156         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71157         HAVE_DECL_STRDUP if necessary.
71158         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71159         since gl_FUNC_STRNDUP does that now.
71160         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71161         Check for decl here...
71162         (gl_PREREQ_STRNLEN): ... not here.
71163         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71164         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71165         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71166         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71167         necessary.
71168         * modules/string: New file.
71169         * modules/memmem (Files): Remove special-purpose include file.
71170         (Depends-on): Add string.
71171         (Include): Include <string.h>, not the removed file.
71172         * modules/mempcpy: Likewise.
71173         * modules/memrchr: Likewise.
71174         * modules/stpcpy: Likewise.
71175         * modules/stpncpy: Likewise.
71176         * modules/strcase: Likewise.
71177         * modules/strchrnul: Likewise.
71178         * modules/strdup: Likewise.
71179         * modules/strndup: Likewise.
71180         * modules/strnlen: Likewise.
71181         * modules/strpbrk: Likewise.
71182         * modules/strsep: Likewise.
71183         * modules/strstr: Likewise.
71184         * modules/strtok_r: Likewise.
71185         * tests/test-dirname.c: Don't include "strdup.h", since
71186         <string.h> now suffices.
71187         * tests/test-memmem.c: Don't include "memmem.h", since
71188         <string.h> now suffices.
71189
71190 2007-01-25  Bruno Haible  <bruno@clisp.org>
71191
71192         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71193         *resultp is 0.
71194
71195         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71196         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71197         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71198         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71199
71200         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71201         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71202         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71203         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71204         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71205         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71206
71207 2007-01-24  Bruno Haible  <bruno@clisp.org>
71208
71209         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71210         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71211         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71212         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71213         gl_FUNC_FTS_CORE.
71214         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71215         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71216         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71217         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71218         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71219         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71220         gl_FUNC_FCHOWNAT.
71221         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71222         gl_FUNC_STRFTIME.
71223         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71224         Reported by Ralf Wildenhues.
71225
71226 2007-01-24  Bruno Haible  <bruno@clisp.org>
71227
71228         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71229         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71230         gl_GETADDRINFO.
71231         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71232         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71233         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71234
71235 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71238         Don't use 'exit'; just return from 'main'.
71239         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71240
71241         * lib/fnmatch_.h: Readjust white space and comments to match
71242         glibc, to avoid spurious diffs.
71243
71244 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71245
71246         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71247         2004-12-01 change by Jakub Jelinek, since this code won't compile
71248         if !LIBC.  Problem reported by Bob Proulx.
71249
71250 2007-01-23  Bruno Haible  <bruno@clisp.org>
71251
71252         * lib/striconveh.c: Include c-strcaseeq.h.
71253         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71254         * modules/striconveh (Depends-on): Add c-strcaseeq.
71255
71256 2007-01-23  Bruno Haible  <bruno@clisp.org>
71257
71258         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71259
71260         * modules/c-strcaseeq: New file.
71261         * lib/c-strcaseeq.h: New file.
71262
71263         * modules/streq: New file.
71264         * lib/streq.h: New file.
71265
71266 2007-01-23  Bruno Haible  <bruno@clisp.org>
71267
71268         * modules/striconveha-tests: New file.
71269         * tests/test-striconveha.c: New file.
71270
71271         * lib/striconveha.h: Include <stdbool.h>.
71272         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71273         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71274         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71275         (mem_iconveha): New function.
71276         (str_iconveha_notranslit): Renamed from str_iconveha.
71277         (str_iconveha): New function.
71278         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71279         c-strcase.
71280
71281 2007-01-23  Bruno Haible  <bruno@clisp.org>
71282
71283         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71284         encodings without forgiving before trying any encoding with handler.
71285         (str_iconveha): Try all encodings without forgiving before trying any
71286         encoding with handler.
71287
71288 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         Import the following changes from libc.
71291
71292         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71293
71294         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71295
71296         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71297
71298         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71299         normal_bracket label.
71300
71301         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71302
71303         [BZ #361]
71304         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71305         to normal_bracket after fetching the next character.
71306
71307 2007-01-22  Bruno Haible  <bruno@clisp.org>
71308
71309         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71310         argument.
71311         * lib/striconveh.c (iconv_carefully_1): New function.
71312         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71313         argument.
71314         (str_cd_iconveh): Update.
71315         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71316         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71317         * tests/test-striconveh.c (MAGIC): New macro.
71318         (new_offsets): New function.
71319         (main): Test call with and without offsets.
71320
71321 2007-01-22  Bruno Haible  <bruno@clisp.org>
71322
71323         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71324         * modules/sys_select (Makefile.am): Likewise.
71325         * modules/sys_socket (Makefile.am): Likewise.
71326         * modules/sys_time (Makefile.am): Likewise.
71327
71328 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71329
71330         * modules/gettimeofday (License): Change from GPL to LGPL, since
71331         gettimeofday is a library function.
71332
71333 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71334
71335         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71336
71337 2007-01-21  Bruno Haible  <bruno@clisp.org>
71338
71339         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71340
71341 2007-01-21  Bruno Haible  <bruno@clisp.org>
71342
71343         * modules/striconveha: New file.
71344         * lib/striconveha.h: New file.
71345         * lib/striconveha.c: New file.
71346         * MODULES.html.sh (Internationalization functions): Add striconveha.
71347         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71348         string.
71349         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71350
71351 2007-01-21  Bruno Haible  <bruno@clisp.org>
71352
71353         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71354         * lib/striconveh.c (str_iconveh): Likewise.
71355
71356 2007-01-21  Bruno Haible  <bruno@clisp.org>
71357
71358         * lib/striconveh.h (mem_iconveh): New declaration.
71359         * lib/striconveh.c (mem_iconveh): New function.
71360         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71361
71362 2007-01-21  Bruno Haible  <bruno@clisp.org>
71363
71364         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71365
71366         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71367         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71368         original result buffer.
71369         (str_cd_iconveh): Update.
71370         * tests/test-striconveh.c (main): Update.
71371
71372         * lib/striconv.h (mem_cd_iconv): Change specification.
71373         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71374         result buffer.
71375         (str_cd_iconv): Update.
71376         * tests/test-striconv.c (main): Update.
71377
71378 2007-01-21  Bruno Haible  <bruno@clisp.org>
71379
71380         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71381
71382 2007-01-20  Jim Meyering  <jim@meyering.net>
71383
71384         * lib/userspec.c (parse_with_separator): If a user or group string
71385         starts with "+", skip the corresponding name-to-ID look-up, since
71386         such a look-up must fail: user and group names may not include "+".
71387
71388 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71389
71390         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71391         since we now assume the sys_time module.
71392         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71393         check for sys/time.h; no longer needed.
71394         * modules/poll (Depends-on): Depend on sys_time.
71395
71396 2007-01-18  Bruno Haible  <bruno@clisp.org>
71397
71398         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71399         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71400
71401         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71402         gettimeofday.
71403
71404         * tests/test-gettimeofday.c: Include <time.h>.
71405         (dummy): Remove variable.
71406
71407         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71408         gl_HEADER_SYS_TIME_H.
71409         (gl_HEADER_SYS_TIME_H): New macro.
71410
71411         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71412         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71413         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71414         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71415         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71416         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71417         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71418         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71419         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71420         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71421         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71422
71423         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71424         last change; it caused a compilation error when cross-compiling to
71425         Cygwin.
71426
71427 2007-01-18  Jim Meyering  <jim@meyering.net>
71428
71429         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71430         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71431         than the race-prone "test -d sys || mkdir sys".
71432         (configure.ac): Use AC_PROG_MKDIR_P.
71433         * modules/sys_select: Likewise.
71434         * modules/sys_socket: Likewise.
71435         * modules/sys_time: Likewise.
71436
71437 2007-01-18  Eric Blake  <ebb9@byu.net>
71438
71439         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71440         replace gettimeofday.
71441         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71442         name, to avoid infinite recursion.
71443
71444 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71445
71446         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71447         module sys_time.
71448         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71449         assume timespec.h defines struct timeval.
71450         * lib/settime.c: Likewise.
71451         * lib/utimens.c: Likewise.
71452         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71453         since we now assume the gettimeofday module.
71454         * lib/tempname.c (__gen_tempname): Likewise.
71455         * lib/gettimeofday.h: Remove.
71456         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71457         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71458         Include <time.h>, for 'time()'.
71459         (localtime_buffer_addr): Also use this workaround if
71460         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71461         to simplify the uses.  All uses changed.
71462         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71463         that #undef is inside {}, and 'const' follows type name consistently.
71464         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71465         (gettimeofday): Do not use the maximum possible value for
71466         tv->tv_usec, since that might break usages other than ls.c.
71467         Instead, we'll leave ls.c alone.  This undoes today's patch
71468         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71469         we've never observed the problem but might as well keep the
71470         canary.
71471         * lib/nanosleep.c: Include timespec.h first, for interface check.
71472         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71473         now assume the sys_time module.
71474         * lib/tempname.c: Likewise.
71475         * lib/timespec.h: Likewise.
71476         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71477         needed.
71478         * lib/strftime.c: Likewise.
71479         * lib/timespec.h: Likewise.
71480         * lib/posixtm.c: Include posixtm.h first, for interface check.
71481         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71482         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71483         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71484         * lib/sys_time_.h: New file.
71485         * lib/timespec.h (struct timespec): Use long int, not long.
71486         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71487         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71488         Remove obsolescent call to AC_HEADER_TIME.
71489         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71491         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71492         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71493         Likewise.
71494         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71495         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71496         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71497         into the sys_time module.  Check for gettimeofday just once.
71498         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71499         for gettimeofday signature to just check the signature.  Merely
71500         compile it, since linking doesn't test signature.  Improve test for
71501         whether gettimeofday.o is actually needed.
71502         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71503         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71504         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71505         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71506         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71507         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71508         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71509         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71510         than worrying about sys/time.h.
71511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71512         Don't bother worrying about TIME_WITH_SYS_TIME.
71513         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71514         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71515         * m4/sys_time_h.m4: New file.
71516         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71517         Don't include sys/time.h.  Return from main rather than exiting.
71518         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71519         all uses changed.
71520         * modules/gethrxtime (Depends-on): Add sys_time.
71521         * modules/gettime (Depends-on): Likewise.
71522         * modules/gettimeofday (Depends-on): Likewise.
71523         * modules/nanosleep (Depends-on): Likewise.
71524         * modules/settime (Depends-on): Likewise.
71525         * modules/tempname (Depends-on): Likewise.
71526         * modules/utimens (Depends-on): Likewise.
71527         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71528         (Include): Change back to <sys/time.h>.
71529         (Maintainer): Add self.
71530         * modules/sys_time: New file.
71531         * modules/tempname (Depends-on): Add gettimeofday.
71532         * tests/test-gettimeofday.c: Include <sys/time.h>
71533         rather than gettimeofday.h.
71534
71535 2007-01-17  Bruno Haible  <bruno@clisp.org>
71536
71537         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71538         the license default to GPL.
71539         (func_create_testdir): Don't complain if a module is LGPL and its
71540         tests module depends on GPLed modules.
71541
71542 2007-01-17  Bruno Haible  <bruno@clisp.org>
71543
71544         * lib/gettimeofday.c (gettimeofday): Add code for the case
71545         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71546         maximum possible value for tv->tv_usec, rather than the minimum one.
71547
71548 2005-10-08  Martin Lambers  <marlam@marlam.de>
71549 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71550 2007-01-16  Bruno Haible  <bruno@clisp.org>
71551
71552         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71553         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71554         gl_FUNC_GETTIMEOFDAY.
71555         (Include): Add gettimeofday.h.
71556         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71557         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71558         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71559         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71560         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71561         * lib/gettimeofday.h: New file.
71562         * lib/gettimeofday.c: Include <sys/timeb.h>.
71563         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71564         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71565         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71566         fall back on time().
71567
71568         * tests/test-gettimeofday.c: New file.
71569         * modules/gettimeofday-tests: New file.
71570
71571 2007-01-16  Eric Blake  <ebb9@byu.net>
71572
71573         * modules/fnmatch (Depends-on): Depend on wchar.
71574         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71575         * m4/fnmatch.m4: Likewise.
71576         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71577         * m4/mbchar.m4: Likewise.
71578         * modules/mbswidth (Depends-on): Depend on wchar.
71579         * lib/mbswidth.c: Assume <wchar.h>.
71580         * m4/mbswidth.m4: Likewise.
71581         * modules/quotearg (Depends-on): Depend on wchar.
71582         * lib/quotearg.c: Assume <wchar.h>.
71583         * m4/quotearg.m4: Likewise.
71584         * modules/regex (Depends-on): Depend on wchar.
71585         * lib/regex_internal.h: Assume <wchar.h>.
71586         * m4/regex.m4: Likewise.
71587         * modules/stdint (Depends-on): Depend on wchar.
71588         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71589         * m4/stdint.m4: Likewise.
71590         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71591         * modules/strftime (Depends-on): Depend on wchar.
71592         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71593         * modules/strtol (Depends-on): Depend on wchar.
71594         * lib/strtol.c: Assume <wchar.h>.
71595         * modules/wcwidth (Depends-on): Depend on wchar.
71596         * lib/wcwidth.h: Assume <wchar.h>.
71597         * m4/wcwidth.m4: Likewise.
71598
71599 2007-01-16  Bruno Haible  <bruno@clisp.org>
71600
71601         * modules/csharpexec-script: New, created from...
71602         * modules/csharpexec: ... this.
71603
71604 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71605
71606         * modules/javaexec-script: New, created from...
71607         * modules/javaexec: ... this.
71608
71609 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71610
71611         * modules/poll (Dependencies): Add sys_select.
71612
71613 2007-01-15  Jim Meyering  <jim@meyering.net>
71614
71615         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71616         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71617         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71618         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71619
71620 2007-01-15  Bruno Haible  <bruno@clisp.org>
71621
71622         * modules/striconveh: New file.
71623         * lib/striconveh.h: New file.
71624         * lib/striconveh.c: New file.
71625         * MODULES.html.sh (Internationalization functions): Add striconveh.
71626
71627         * modules/striconveh-tests: New file.
71628         * tests/test-striconveh.c: New file.
71629
71630 2007-01-15  Bruno Haible  <bruno@clisp.org>
71631
71632         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71633         not from GNU libiconv or GNU libc.
71634
71635 2007-01-15  Bruno Haible  <bruno@clisp.org>
71636
71637         * doc/gnulib-intro.texi (Copyright): Explain the different license
71638         terms for module descriptions, autoconf macros, tests, documentation.
71639
71640 2007-01-14  Bruno Haible  <bruno@clisp.org>
71641
71642         * modules/striconv-tests: New file.
71643         * tests/test-striconv.c: New file.
71644
71645 2007-01-14  Bruno Haible  <bruno@clisp.org>
71646
71647         * modules/iconv-tests: New file.
71648         * tests/test-iconv.c: New file.
71649
71650 2007-01-14  Bruno Haible  <bruno@clisp.org>
71651
71652         * gnulib-tool (func_get_license): For test modules, use the license of
71653         the main module.
71654
71655 2007-01-14  Bruno Haible  <bruno@clisp.org>
71656
71657         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71658         if iconv is found to exist.
71659
71660 2007-01-14  Bruno Haible  <bruno@clisp.org>
71661
71662         * modules/c-ctype-tests: New file.
71663         * tests/test-c-ctype.c: New file.
71664
71665 2007-01-14  Bruno Haible  <bruno@clisp.org>
71666
71667         * modules/binary-io-tests: New file.
71668         * tests/test-binary-io.sh: New file.
71669         * tests/test-binary-io.c: New file.
71670
71671 2007-01-14  Bruno Haible  <bruno@clisp.org>
71672
71673         * modules/array-oset-tests: New file.
71674         * tests/test-array_oset.c: New file.
71675
71676 2007-01-14  Bruno Haible  <bruno@clisp.org>
71677
71678         * modules/array-list-tests: New file.
71679         * tests/test-array_list.c: New file.
71680
71681 2007-01-14  Bruno Haible  <bruno@clisp.org>
71682
71683         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71684         and make.
71685         Reported by Simon Josefsson in
71686         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71687
71688 2007-01-14  Bruno Haible  <bruno@clisp.org>
71689
71690         * modules/allocsa-tests: New file.
71691         * tests/test-allocsa.c: New file.
71692
71693 2007-01-14  Bruno Haible  <bruno@clisp.org>
71694
71695         * modules/fchdir (Depends-on): Add absolute-header.
71696         * modules/unistd (Depends-on): Likewise.
71697
71698 2006-12-30  Bruno Haible  <bruno@clisp.org>
71699
71700         * modules/fchdir: New file.
71701         * modules/unistd (Files): Add lib/unistd_.h.
71702         (Makefile.am): Generate unistd.h from unistd_.h.
71703         * lib/fchdir.c: New file.
71704         * lib/dirent_.h: New file.
71705         * lib/unistd_.h: New file.
71706         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71707         * m4/fchdir.m4: New file.
71708         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71709         (gl_HEADER_UNISTD): Invoke it.
71710         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71711         function.
71712         * lib/backupfile.c (opendir, closedir): Undefine.
71713         * lib/chown.c (open, close): Undefine.
71714         * lib/clean-temp.c (open, close): Undefine.
71715         * lib/copy-file.c (open, close): Undefine.
71716         * lib/execute.c (open, close): Undefine.
71717         * lib/fsusage.c (open, close): Undefine.
71718         * lib/gc-gnulib.c (open, close): Undefine.
71719         * lib/getcwd.c (opendir, closedir): Undefine.
71720         * lib/glob.c (opendir, closedir): Undefine.
71721         * lib/javacomp.c (open, close): Undefine.
71722         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71723         * lib/openat-proc.c (open, close): Undefine.
71724         * lib/pagealign_alloc.c (open, close): Undefine.
71725         * lib/pipe.c (open, close): Undefine.
71726         * lib/progreloc.c (open, close): Undefine.
71727         * lib/savedir.c (opendir, closedir): Undefine.
71728         * lib/utime.c (open, close): Undefine.
71729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71730
71731 2007-01-10  Bruno Haible  <bruno@clisp.org>
71732
71733         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71734
71735 2007-01-12  Eric Blake  <ebb9@byu.net>
71736
71737         Provide a robust <wchar.h>.  Further simplifications are now
71738         possible in other modules, but not included here.
71739         * modules/wchar: New module.
71740         * m4/wchar.m4: New file.
71741         * lib/wchar_.h: Likewise.
71742         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71743         of the new module.
71744         * MODULES.html.sh (Extended multibyte and wide character utilities):
71745         New section.
71746
71747 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71748
71749         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71750         to a reasonable default for memory allocation.
71751         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71752         file system that reports garbage st_size values for symlinks.
71753         Problem reported by Liyang Hu.
71754
71755 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71756
71757         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71758         Emacs .#* auto-save files).
71759
71760 2007-01-11  Bruno Haible  <bruno@clisp.org>
71761
71762         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71763         directory.
71764
71765 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         Use @...@ consistently in lib/wctype_.h.
71768         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71769         on it being set to 1 or 0.
71770         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71771         go back to AC_SUBSTing it.
71772         * modules/wctype (Makefile.am): Undo previous change.
71773
71774 2007-01-10  Eric Blake  <ebb9@byu.net>
71775
71776         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71777         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71778         * modules/wctype (Makefile.am): Likewise.
71779         Reported by Chris McGuire.
71780
71781 2007-01-10  Jim Meyering  <jim@meyering.net>
71782
71783         fts.c: a small readability/maintainability improvement
71784         * lib/fts.c (fts_read): Make this code slightly more readable and
71785         maintainable by hoisting the "sp->fts_cur = p" assignments to
71786         immediately follow the statements that set P.  Derived from
71787         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71788
71789 2007-01-10  Eric Blake  <ebb9@byu.net>
71790
71791         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71792         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71794         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71795         Reported by Chris McGuire.
71796
71797 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71798
71799         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71800         in sed script.
71801
71802 2007-01-09  Bruno Haible  <bruno@clisp.org>
71803
71804         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71805         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71806         variables.
71807         (func_module): Use them.
71808
71809 2007-01-09  Bruno Haible  <bruno@clisp.org>
71810
71811         * modules/unistr/base: New file.
71812         * lib/unistr.h: New file.
71813
71814         * modules/unistr/u8-to-u16: New file.
71815         * lib/unistr/u8-to-u16.c: New file.
71816
71817         * modules/unistr/u8-to-u32: New file.
71818         * lib/unistr/u8-to-u32.c: New file.
71819
71820         * modules/unistr/u16-to-u8: New file.
71821         * lib/unistr/u16-to-u8.c: New file.
71822
71823         * modules/unistr/u16-to-u32: New file.
71824         * lib/unistr/u16-to-u32.c: New file.
71825
71826         * modules/unistr/u32-to-u8: New file.
71827         * lib/unistr/u32-to-u8.c: New file.
71828
71829         * modules/unistr/u32-to-u16: New file.
71830         * lib/unistr/u32-to-u16.c: New file.
71831
71832         * modules/unistr/u8-check: New file.
71833         * modules/unistr/u16-check: New file.
71834         * modules/unistr/u32-check: New file.
71835         * lib/unistr/u8-check.c: New file.
71836         * lib/unistr/u16-check.c: New file.
71837         * lib/unistr/u32-check.c: New file.
71838
71839         * modules/unistr/u8-chr: New file.
71840         * modules/unistr/u16-chr: New file.
71841         * modules/unistr/u32-chr: New file.
71842         * lib/unistr/u8-chr.c: New file.
71843         * lib/unistr/u16-chr.c: New file.
71844         * lib/unistr/u32-chr.c: New file.
71845
71846         * modules/unistr/u8-cmp: New file.
71847         * modules/unistr/u16-cmp: New file.
71848         * modules/unistr/u32-cmp: New file.
71849         * lib/unistr/u8-cmp.c: New file.
71850         * lib/unistr/u16-cmp.c: New file.
71851         * lib/unistr/u32-cmp.c: New file.
71852
71853         * modules/unistr/u8-cpy: New file.
71854         * modules/unistr/u16-cpy: New file.
71855         * modules/unistr/u32-cpy: New file.
71856         * lib/unistr/u8-cpy.c: New file.
71857         * lib/unistr/u16-cpy.c: New file.
71858         * lib/unistr/u32-cpy.c: New file.
71859         * lib/unistr/u-cpy.h: New file.
71860
71861         * modules/unistr/u8-cpy-alloc: New file.
71862         * modules/unistr/u16-cpy-alloc: New file.
71863         * modules/unistr/u32-cpy-alloc: New file.
71864         * lib/unistr/u8-cpy-alloc.c: New file.
71865         * lib/unistr/u16-cpy-alloc.c: New file.
71866         * lib/unistr/u32-cpy-alloc.c: New file.
71867         * lib/unistr/u-cpy-alloc.h: New file.
71868
71869         * modules/unistr/u8-endswith: New file.
71870         * modules/unistr/u16-endswith: New file.
71871         * modules/unistr/u32-endswith: New file.
71872         * lib/unistr/u8-endswith.c: New file.
71873         * lib/unistr/u16-endswith.c: New file.
71874         * lib/unistr/u32-endswith.c: New file.
71875         * lib/unistr/u-endswith.h: New file.
71876
71877         * modules/unistr/u8-mblen: New file.
71878         * modules/unistr/u16-mblen: New file.
71879         * modules/unistr/u32-mblen: New file.
71880         * lib/unistr/u8-mblen.c: New file.
71881         * lib/unistr/u16-mblen.c: New file.
71882         * lib/unistr/u32-mblen.c: New file.
71883
71884         * modules/unistr/u8-mbtouc: New file.
71885         * modules/unistr/u16-mbtouc: New file.
71886         * modules/unistr/u32-mbtouc: New file.
71887         * lib/unistr/u8-mbtouc.c: New file.
71888         * lib/unistr/u16-mbtouc.c: New file.
71889         * lib/unistr/u32-mbtouc.c: New file.
71890
71891         * modules/unistr/u8-mbtouc-safe: New file.
71892         * modules/unistr/u16-mbtouc-safe: New file.
71893         * modules/unistr/u32-mbtouc-safe: New file.
71894         * lib/unistr/u8-mbtouc-safe.c: New file.
71895         * lib/unistr/u16-mbtouc-safe.c: New file.
71896         * lib/unistr/u32-mbtouc-safe.c: New file.
71897
71898         * modules/unistr/u8-move: New file.
71899         * modules/unistr/u16-move: New file.
71900         * modules/unistr/u32-move: New file.
71901         * lib/unistr/u8-move.c: New file.
71902         * lib/unistr/u16-move.c: New file.
71903         * lib/unistr/u32-move.c: New file.
71904         * lib/unistr/u-move.h: New file.
71905
71906         * modules/unistr/u8-next: New file.
71907         * modules/unistr/u16-next: New file.
71908         * modules/unistr/u32-next: New file.
71909         * lib/unistr/u8-next.c: New file.
71910         * lib/unistr/u16-next.c: New file.
71911         * lib/unistr/u32-next.c: New file.
71912
71913         * modules/unistr/u8-prev: New file.
71914         * modules/unistr/u16-prev: New file.
71915         * modules/unistr/u32-prev: New file.
71916         * lib/unistr/u8-prev.c: New file.
71917         * lib/unistr/u16-prev.c: New file.
71918         * lib/unistr/u32-prev.c: New file.
71919
71920         * modules/unistr/u8-set: New file.
71921         * modules/unistr/u16-set: New file.
71922         * modules/unistr/u32-set: New file.
71923         * lib/unistr/u8-set.c: New file.
71924         * lib/unistr/u16-set.c: New file.
71925         * lib/unistr/u32-set.c: New file.
71926         * lib/unistr/u-set.h: New file.
71927
71928         * modules/unistr/u8-startswith: New file.
71929         * modules/unistr/u16-startswith: New file.
71930         * modules/unistr/u32-startswith: New file.
71931         * lib/unistr/u8-startswith.c: New file.
71932         * lib/unistr/u16-startswith.c: New file.
71933         * lib/unistr/u32-startswith.c: New file.
71934         * lib/unistr/u-startswith.h: New file.
71935
71936         * modules/unistr/u8-stpcpy: New file.
71937         * modules/unistr/u16-stpcpy: New file.
71938         * modules/unistr/u32-stpcpy: New file.
71939         * lib/unistr/u8-stpcpy.c: New file.
71940         * lib/unistr/u16-stpcpy.c: New file.
71941         * lib/unistr/u32-stpcpy.c: New file.
71942         * lib/unistr/u-stpcpy.h: New file.
71943
71944         * modules/unistr/u8-stpncpy: New file.
71945         * modules/unistr/u16-stpncpy: New file.
71946         * modules/unistr/u32-stpncpy: New file.
71947         * lib/unistr/u8-stpncpy.c: New file.
71948         * lib/unistr/u16-stpncpy.c: New file.
71949         * lib/unistr/u32-stpncpy.c: New file.
71950         * lib/unistr/u-stpncpy.h: New file.
71951
71952         * modules/unistr/u8-strcat: New file.
71953         * modules/unistr/u16-strcat: New file.
71954         * modules/unistr/u32-strcat: New file.
71955         * lib/unistr/u8-strcat.c: New file.
71956         * lib/unistr/u16-strcat.c: New file.
71957         * lib/unistr/u32-strcat.c: New file.
71958         * lib/unistr/u-strcat.h: New file.
71959
71960         * modules/unistr/u8-strchr: New file.
71961         * modules/unistr/u16-strchr: New file.
71962         * modules/unistr/u32-strchr: New file.
71963         * lib/unistr/u8-strchr.c: New file.
71964         * lib/unistr/u16-strchr.c: New file.
71965         * lib/unistr/u32-strchr.c: New file.
71966
71967         * modules/unistr/u8-strcmp: New file.
71968         * modules/unistr/u16-strcmp: New file.
71969         * modules/unistr/u32-strcmp: New file.
71970         * lib/unistr/u8-strcmp.c: New file.
71971         * lib/unistr/u16-strcmp.c: New file.
71972         * lib/unistr/u32-strcmp.c: New file.
71973
71974         * modules/unistr/u8-strcpy: New file.
71975         * modules/unistr/u16-strcpy: New file.
71976         * modules/unistr/u32-strcpy: New file.
71977         * lib/unistr/u8-strcpy.c: New file.
71978         * lib/unistr/u16-strcpy.c: New file.
71979         * lib/unistr/u32-strcpy.c: New file.
71980         * lib/unistr/u-strcpy.h: New file.
71981
71982         * modules/unistr/u8-strcspn: New file.
71983         * modules/unistr/u16-strcspn: New file.
71984         * modules/unistr/u32-strcspn: New file.
71985         * lib/unistr/u8-strcspn.c: New file.
71986         * lib/unistr/u16-strcspn.c: New file.
71987         * lib/unistr/u32-strcspn.c: New file.
71988         * lib/unistr/u-strcspn.h: New file.
71989
71990         * modules/unistr/u8-strdup: New file.
71991         * modules/unistr/u16-strdup: New file.
71992         * modules/unistr/u32-strdup: New file.
71993         * lib/unistr/u8-strdup.c: New file.
71994         * lib/unistr/u16-strdup.c: New file.
71995         * lib/unistr/u32-strdup.c: New file.
71996         * lib/unistr/u-strdup.h: New file.
71997
71998         * modules/unistr/u8-strlen: New file.
71999         * modules/unistr/u16-strlen: New file.
72000         * modules/unistr/u32-strlen: New file.
72001         * lib/unistr/u8-strlen.c: New file.
72002         * lib/unistr/u16-strlen.c: New file.
72003         * lib/unistr/u32-strlen.c: New file.
72004         * lib/unistr/u-strlen.h: New file.
72005
72006         * modules/unistr/u8-strmblen: New file.
72007         * modules/unistr/u16-strmblen: New file.
72008         * modules/unistr/u32-strmblen: New file.
72009         * lib/unistr/u8-strmblen.c: New file.
72010         * lib/unistr/u16-strmblen.c: New file.
72011         * lib/unistr/u32-strmblen.c: New file.
72012
72013         * modules/unistr/u8-strmbtouc: New file.
72014         * modules/unistr/u16-strmbtouc: New file.
72015         * modules/unistr/u32-strmbtouc: New file.
72016         * lib/unistr/u8-strmbtouc.c: New file.
72017         * lib/unistr/u16-strmbtouc.c: New file.
72018         * lib/unistr/u32-strmbtouc.c: New file.
72019
72020         * modules/unistr/u8-strncat: New file.
72021         * modules/unistr/u16-strncat: New file.
72022         * modules/unistr/u32-strncat: New file.
72023         * lib/unistr/u8-strncat.c: New file.
72024         * lib/unistr/u16-strncat.c: New file.
72025         * lib/unistr/u32-strncat.c: New file.
72026         * lib/unistr/u-strncat.h: New file.
72027
72028         * modules/unistr/u8-strncmp: New file.
72029         * modules/unistr/u16-strncmp: New file.
72030         * modules/unistr/u32-strncmp: New file.
72031         * lib/unistr/u8-strncmp.c: New file.
72032         * lib/unistr/u16-strncmp.c: New file.
72033         * lib/unistr/u32-strncmp.c: New file.
72034
72035         * modules/unistr/u8-strncpy: New file.
72036         * modules/unistr/u16-strncpy: New file.
72037         * modules/unistr/u32-strncpy: New file.
72038         * lib/unistr/u8-strncpy.c: New file.
72039         * lib/unistr/u16-strncpy.c: New file.
72040         * lib/unistr/u32-strncpy.c: New file.
72041         * lib/unistr/u-strncpy.h: New file.
72042
72043         * modules/unistr/u8-strnlen: New file.
72044         * modules/unistr/u16-strnlen: New file.
72045         * modules/unistr/u32-strnlen: New file.
72046         * lib/unistr/u8-strnlen.c: New file.
72047         * lib/unistr/u16-strnlen.c: New file.
72048         * lib/unistr/u32-strnlen.c: New file.
72049         * lib/unistr/u-strnlen.h: New file.
72050
72051         * modules/unistr/u8-strpbrk: New file.
72052         * modules/unistr/u16-strpbrk: New file.
72053         * modules/unistr/u32-strpbrk: New file.
72054         * lib/unistr/u8-strpbrk.c: New file.
72055         * lib/unistr/u16-strpbrk.c: New file.
72056         * lib/unistr/u32-strpbrk.c: New file.
72057         * lib/unistr/u-strpbrk.h: New file.
72058
72059         * modules/unistr/u8-strrchr: New file.
72060         * modules/unistr/u16-strrchr: New file.
72061         * modules/unistr/u32-strrchr: New file.
72062         * lib/unistr/u8-strrchr.c: New file.
72063         * lib/unistr/u16-strrchr.c: New file.
72064         * lib/unistr/u32-strrchr.c: New file.
72065
72066         * modules/unistr/u8-strspn: New file.
72067         * modules/unistr/u16-strspn: New file.
72068         * modules/unistr/u32-strspn: New file.
72069         * lib/unistr/u8-strspn.c: New file.
72070         * lib/unistr/u16-strspn.c: New file.
72071         * lib/unistr/u32-strspn.c: New file.
72072         * lib/unistr/u-strspn.h: New file.
72073
72074         * modules/unistr/u8-strstr: New file.
72075         * modules/unistr/u16-strstr: New file.
72076         * modules/unistr/u32-strstr: New file.
72077         * lib/unistr/u8-strstr.c: New file.
72078         * lib/unistr/u16-strstr.c: New file.
72079         * lib/unistr/u32-strstr.c: New file.
72080         * lib/unistr/u-strstr.h: New file.
72081
72082         * modules/unistr/u8-strtok: New file.
72083         * modules/unistr/u16-strtok: New file.
72084         * modules/unistr/u32-strtok: New file.
72085         * lib/unistr/u8-strtok.c: New file.
72086         * lib/unistr/u16-strtok.c: New file.
72087         * lib/unistr/u32-strtok.c: New file.
72088         * lib/unistr/u-strtok.h: New file.
72089
72090         * modules/unistr/u8-uctomb: New file.
72091         * modules/unistr/u16-uctomb: New file.
72092         * modules/unistr/u32-uctomb: New file.
72093         * lib/unistr/u8-uctomb.c: New file.
72094         * lib/unistr/u16-uctomb.c: New file.
72095         * lib/unistr/u32-uctomb.c: New file.
72096
72097         * MODULES.html.sh (Unicode string functions): Add the new modules.
72098
72099 2007-01-08  Bruno Haible  <bruno@clisp.org>
72100
72101         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72102         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72103         subdirectories.
72104
72105 2007-01-08  Karl Berry  <karl@gnu.org>
72106
72107         * doc/error.texi: mention that main() fns must set program_name
72108         when progname is used.
72109
72110 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72111
72112         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72113         WCTYPE_H is empty, for the benefit of builds from non-distclean
72114         directories.  Problem reported by Eric Blake in
72115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72116
72117 2007-01-08  Bruno Haible  <bruno@clisp.org>
72118
72119         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72120         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72121         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72122         PROVIDE_CANONICALIZE_FILENAME_MODE.
72123         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72124
72125 2007-01-08  Bruno Haible  <bruno@clisp.org>
72126
72127         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72128         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72129         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72130         * lib/fts.c: Likewise.
72131         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72132
72133 2006-12-25  Bruno Haible  <bruno@clisp.org>
72134
72135         * modules/utf8-ucs4-safe: New file.
72136         * lib/utf8-ucs4-safe.h: New file.
72137         * lib/unistr/utf8-ucs4-safe.c: New file.
72138
72139         * modules/utf16-ucs4-safe: New file.
72140         * lib/utf16-ucs4-safe.h: New file.
72141         * lib/unistr/utf16-ucs4-safe.c: New file.
72142
72143         * MODULES.html.sh (Unicode string functions): Add the new modules.
72144
72145 2007-01-08  Bruno Haible  <bruno@clisp.org>
72146
72147         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72148         (Depends-on): Add unitypes.
72149         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72150         (u8_mbtouc_aux): Move out to separate file.
72151         (u8_mbtouc): Use ucs4_t, uint8_t types.
72152         * lib/unistr/utf8-ucs4.c: New file.
72153
72154         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72155         (Depends-on): Add unitypes.
72156         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72157         (u16_mbtouc_aux): Move out to separate file.
72158         (u16_mbtouc): Use ucs4_t, uint16_t types.
72159         * lib/unistr/utf16-ucs4.c: New file.
72160
72161         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72162         (Depends-on): Add unitypes.
72163         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72164         (u8_uctomb_aux): Move out to separate file.
72165         (u8_uctomb): Use ucs4_t, uint8_t types.
72166         * lib/unistr/ucs4-utf8.c: New file.
72167
72168         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72169         (Depends-on): Add unitypes.
72170         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72171         (u16_uctomb_aux): Move out to separate file.
72172         (u16_uctomb): Use ucs4_t, uint16_t types.
72173         * lib/unistr/ucs4-utf16.c: New file.
72174
72175 2006-12-25  Bruno Haible  <bruno@clisp.org>
72176
72177         * modules/unitypes: New file.
72178         * lib/unitypes.h: New file.
72179         * MODULES.html.sh (func_all_modules): New section "Unicode string
72180         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72181         this section. Add unitypes.
72182
72183 2007-01-08  Bruno Haible  <bruno@clisp.org>
72184
72185         Avoid variable names that conflict with those from libtool.
72186         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72187         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72188         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72189         library_names_spec to acl_library_names_spec, hardcode_* to
72190         acl_hardcode_*.
72191         Reported by Ralf Wildenhues.
72192
72193 2007-01-08  Bruno Haible  <bruno@clisp.org>
72194
72195         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72196         definition.
72197         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72198         definition.
72199         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72200         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72201         definition.
72202         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72203         definition.
72204         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72205         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72206         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72207         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72208         definition.
72209         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72210         definition.
72211         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72212         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72213         GC_USE_<algorithm>.
72214         * lib/gc-libgcrypt.c: Likewise.
72215         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72216         * modules/gc-arctwo (configure.ac): Likewise.
72217         * modules/gc-des (configure.ac): Likewise.
72218         * modules/gc-hmac-md5 (configure.ac): Likewise.
72219         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72220         * modules/gc-md2 (configure.ac): Likewise.
72221         * modules/gc-md4 (configure.ac): Likewise.
72222         * modules/gc-md5 (configure.ac): Likewise.
72223         * modules/gc-random (configure.ac): Likewise.
72224         * modules/gc-rijndael (configure.ac): Likewise.
72225         * modules/gc-sha1 (configure.ac): Likewise.
72226
72227 2007-01-08  Bruno Haible  <bruno@clisp.org>
72228
72229         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72230         macro definition.
72231         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72232         definition.
72233         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72234         definition.
72235         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72236         * modules/fcntl-safer (configure.ac): Likewise.
72237         * modules/fopen-safer (configure.ac): Likewise.
72238         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72239         GNULIB_FWRITEERROR macro definition.
72240
72241 2007-01-08  Bruno Haible  <bruno@clisp.org>
72242
72243         * m4/gnulib-common.m4: New file.
72244         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72245         (func_get_filelist): Add m4/gnulib-common.m4.
72246
72247 2007-01-08  Bruno Haible  <bruno@clisp.org>
72248
72249         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72250         command.
72251
72252 2007-01-08  Jim Meyering  <jim@meyering.net>
72253
72254         Use a more robust test for a "can't happen" condition.
72255         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72256         narrowed the st_size value.  Presuming the "can't happen" condition
72257         is true, that narrowing could conceivably convert an invalid st_size
72258         value into a valid one.  Instead, use a change based on Matthew
72259         Woehlke's original patch.
72260
72261         Slight readability improvement: use an assert-like macro
72262         in place of literal "abort ()" uses.
72263         * lib/fts.c (fts_assert): Define.
72264         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72265         Use this macro instead of a bare 'abort'.
72266
72267 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72268
72269         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72270         simply work around them.
72271         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72272         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72273         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72274         declaring.
72275         Don't bother to define as macros, since the standard doesn't require it.
72276         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72277         longer worry about IRIX 5.3.
72278         (HAVE_WCTYPE_CTMP_BUG): Remove.
72279
72280 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72281
72282         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72283         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72284         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72285         Problems reported by Georg Schwarz for IRIX 5.3.
72286
72287         * gnulib-tool (autoconf_minversion): Take the maximum version number
72288         found, not the minimum.  Problem reported by James Youngman.
72289
72290 2007-01-03  Karl Berry  <karl@gnu.org>
72291
72292         * doc/error.texi: new file, explaining interaction with progname.
72293         * doc/gnulib.texi: include it.  Update copyright.
72294
72295 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72296
72297         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72298         AC_CANONICAL_HOST, to improve autobuild outputs.
72299
72300 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72301             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72302
72303         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72304         sockets, server sockets, and other file descriptors.  Count errors
72305         to compute the return value.  Reorder the code a bit to be easier
72306         to follow.  Don't set event bits that were not requested (except
72307         POLLERR and POLLHUP).
72308
72309 2007-01-01  Bruno Haible  <bruno@clisp.org>
72310
72311         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72312
72313 2007-01-03  Jim Meyering  <jim@meyering.net>
72314
72315         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72316
72317 2007-01-02  Bruno Haible  <bruno@clisp.org>
72318
72319         * modules/settime (Include): Require timespec.h.
72320         * modules/nanosleep (Include): Likewise.
72321
72322 2007-01-01  Bruno Haible  <bruno@clisp.org>
72323
72324         * gnulib-tool (func_emit_copyright_notice): Bump year.
72325         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72326
72327 2007-01-01  Bruno Haible  <bruno@clisp.org>
72328
72329         Improve support for OpenBSD.
72330         * build-aux/config.rpath (libname_spec): Export.
72331         (library_names_spec): New variable. Export.
72332         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72333         library_names_spec from the config.rpath output. Locate shared library
72334         through the name pattern in library_names_spec.
72335
72336 2007-01-01  Eric Blake  <ebb9@byu.net>
72337
72338         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72339
72340 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72341
72342         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72343         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72344         assume the C locale, and avoid an "eval" that could cause trouble.
72345         Problem with SORT reported by Bob Proulx.
72346
72347         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72348         Define.  Trivial patch from Henning Nielsen Lund, originally
72349         sent to bug-grep@gnu.org today.
72350
72351 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72352
72353         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72354         struct stat.  Problem reported by Henning Nielsen Lund.
72355         * lib/acl.c: Include acl.h first, to check interface.  Don't
72356         bother to include sys/types.h and sys/stat.h again.
72357
72358 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72359
72360         Import the following change from libc; problem reported by
72361         Sven Verdoolaege.
72362
72363         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72364
72365         [BZ #1373]
72366         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72367
72368 2006-12-28  Jim Meyering  <jim@meyering.net>
72369
72370         * build-aux/announce-gen: Do not assume that the package
72371         builds any of tar.gz, tar.bz2, and .xdelta files.
72372         Suggestion from Simon Josefsson.
72373
72374 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72375
72376         * modules/announce-gen: New file.
72377
72378 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72379
72380         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72381         handles its gotchas now.
72382         * lib/mbswidth.c: Likewise.
72383         * lib/wcwidth.h: Likewise.
72384         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72385         and iswcntrl; the wctype module does this stuff now.
72386         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72388         * modules/mbchar (Depends-on): Add wctype.
72389         * modules/mbswidth (Depends-on): Likewise.
72390         * modules/wcwidth (Depends-on): Likewise.
72391
72392 2006-12-27  Eric Blake  <ebb9@byu.net>
72393
72394         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72395         module uses more than what <wctype.h> is required to provide.
72396
72397 2006-12-26  Eric Blake  <ebb9@byu.net>
72398
72399         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72400
72401 2006-12-26  Eric Blake  <ebb9@byu.net>
72402
72403         * modules/absolute-header: New module.
72404         * modules/fcntl (Depends-on): Depend on it.
72405         * modules/inttypes (Depends-on): Likewise.
72406         * modules/stdint (Depends-on): Likewise.
72407         * modules/sys_stat (Depends-on): Likewise.
72408         * modules/wctype (Depends-on): Likewise.
72409         * MODULES.html.sh (Support for building libraries and
72410         executables): Document it.
72411
72412 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72413
72414         * gnulib-tool (SED): Remove, undoing previous change.
72415         The problem was that it broke coreutils on Solaris, because
72416         "sed --posix" leaked into a makefile.
72417         (sed): New alias, if 'alias' and GNU sed.
72418
72419 2006-12-24  Jim Meyering  <jim@meyering.net>
72420
72421         Work around an fchownat bug in glibc-2.4:
72422         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72423         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72424         in spite of the -P option.
72425         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72426         New macros.
72427         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72428         * modules/openat (Files): Add lib/fchownat.c.
72429         * lib/openat.c (fchownat): Don't define here.  Move to...
72430         * lib/fchownat.c: ...this new file.
72431
72432 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72433
72434         Fix bug reported by Bruno Haible in
72435         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72436         where quotearg.c didn't compile on Mac OS X 10.2 because it
72437         lacks <wchar.h> and wint_t.
72438         * lib/wctype_.h (__wctype_wint_t): New type.
72439         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72440         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72441         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72442         Arg is now of type __wctype_wint_t, not wint_t.
72443         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72444         substitute HAVE_WINT_T.
72445         * modules/wctype (Files): Add m4/wint_t.m4.
72446         (wctype.h): Substitute HAVE_WINT_T.
72447
72448 2006-12-23  Bruno Haible  <bruno@clisp.org>
72449
72450         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72451
72452 2006-12-23  Bruno Haible  <bruno@clisp.org>
72453
72454         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72455         S_ISLNK.
72456         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72457         mingw.
72458
72459 2006-12-22  Bruno Haible  <bruno@clisp.org>
72460
72461         * lib/copy-file.c: Include acl.h.
72462         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72463         Close the file descriptors only after being done with copy_acl.
72464         * modules/copy-file (Depends-on): Add acl.
72465
72466 2006-12-22  Bruno Haible  <bruno@clisp.org>
72467
72468         * gnulib-tool (SED): New variable.
72469         Use $SED instead of sed everywhere.
72470
72471 2006-12-22  Bruno Haible  <bruno@clisp.org>
72472
72473         * modules/no-c++: New file.
72474         * m4/no-c++.m4: New file.
72475         * MODULES.html.sh (Support for building libraries and executables):
72476         Add no-c++.
72477
72478 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72479
72480         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72481         Include <limits.h>, and use its INT_MAX to rewrite the
72482         j loop so that it does not overflow 'int'.  Problem reported by
72483         Ralf Wildenhues in
72484         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72485         Play it safe by shifting left by 1 rather than multiplying by 2,
72486         as GCC is less likely to optimize this away when the value
72487         is signed (when it assumes overflow leads to undefined behavior).
72488         Also, don't assume time_t uses two's complement.
72489
72490 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         * MODULES.html.sh: New module wctype.
72493         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72494         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72495         <wctype.h>, since the new wctype module should fix this.
72496         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72497         the wctype module should arrange for it.
72498         * lib/regex_internal.h: Likewise.
72499         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72500         since the wctype module should handle this now.
72501         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72502         * modules/fnmatch (Depends-on): Add wctype.
72503         * modules/quotearg (Depends-on): Likewise.
72504         * modules/regex (Depends-on): Likewise.
72505
72506 2006-12-19  Bruno Haible  <bruno@clisp.org>
72507
72508         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72509         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72510
72511 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72512
72513         * modules/savewd (Depends-on): Fix dependency on fcntl.
72514
72515 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72516
72517         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72518         conforms to C99, rather than relying on the user's environment
72519         setting of STDINT_H.
72520
72521 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72522         and Eric Blake  <ebb9@byu.net>
72523
72524         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72525         This is more consistent with the other defines here.
72526         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72527         Port to z/OS.  Problem reported by Paul Gilmartin.
72528         Change local vars to use gl_ prefix rather than ac_.
72529         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72530         with other defines.
72531         * modules/double-slash-root: New module.
72532         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72533         (Depends-on): Add double-slash-root.
72534         * MODULES.html.sh (File system functions): Mention new module.
72535
72536 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72537
72538         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72539         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72540         This is for the benefit of gzip, which doesn't do i18n.
72541
72542 2006-12-12  Jim Meyering  <jim@meyering.net>
72543
72544         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72545         Reported by Andreas Schwab <schwab@suse.de>.
72546
72547 2006-12-12  Bruno Haible  <bruno@clisp.org>
72548
72549         Merge these changes.
72550         2006-09-05  Bruno Haible  <bruno@clisp.org>
72551         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72552         iconv_alloc succeeded.
72553         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72554         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72555         test for " && dest " at the end - dest is always != NULL there. Call
72556         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72557         with 2xNULL arguments, also to flush the state storage. Handle the
72558         IRIX iconv behaviour. Realloc the final result, to throw away unused
72559         memory.
72560
72561 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72562
72563         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72564         and fchmodat unconditionally, since glibc 2.4 has them.
72565         Problem reported by Arkadiusz Miskiewicz.
72566
72567 2006-12-10  Bruno Haible  <bruno@clisp.org>
72568
72569         * gnulib-tool (func_import): Show the include files only for those
72570         modules that are copied and specified.
72571         Reported by Karl Berry.
72572
72573 2006-12-08  Jim Meyering  <jim@meyering.net>
72574
72575         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72576         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72577
72578         * build-aux/announce-gen: Add two new options, both optional:
72579         --bootstrap-tools=TOOL_LIST
72580               a comma-separated list of tools, e.g.,
72581               autoconf,automake,bison,gnulib
72582         --gnulib-snapshot-date=DATE
72583               if gnulib is in the bootstrap tool list,
72584               then report this as the snapshot date.
72585               If not specified, use the current date/time.
72586               If you specify a date here, be sure it's UTC.
72587
72588 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72589
72590         * tests/test-argp-2.sh: Fix test to match actual output.
72591         (func_compare): Fix sed script to be portable.
72592
72593 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72596         workaround for this case.  It is not autoconfigured now; offhand
72597         it's hard to see how to autoconfigure it.
72598
72599 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72600
72601         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72602         a directory that is about to be chowned.  Such a directory's
72603         initial file permissions should permit the owner only and this
72604         should not be changed until after the chown, since the group and
72605         other bits would be incorrect if they granted permission before
72606         the chown.
72607
72608         Fix porting problem for iswctype reported by Georg Schwarz in:
72609         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72610         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72611         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72612         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72613         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72614
72615 2006-12-03  Jim Meyering  <jim@meyering.net>
72616
72617         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72618         p->fts_statp may not yet be defined.
72619         (fts_read): Instead, set it in the caller, once p->fts_statp is
72620         sure to be defined, and corresponds to a top-level directory.
72621         This bug made du -x fail.  Here's the coreutils test case:
72622         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72623         Reported by Mike Frysinger.
72624
72625 2006-12-01  Jim Meyering  <jim@meyering.net>
72626
72627         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72628         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72629         Reported by Simon Josefsson.
72630
72631 2006-11-30  Jim Meyering  <jim@meyering.net>
72632
72633         * m4/warning.m4: Use the all-permissive copyright notice
72634         recommended by RMS (rather than LGPL).
72635         * m4/vararrays.m4: Likewise.
72636         * m4/flexmember.m4: Likewise.
72637
72638 2006-11-29  Bruno Haible  <bruno@clisp.org>
72639
72640         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72641         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72642         using +=.
72643         Reported by Simon Josefsson <simon@josefsson.org>.
72644
72645 2006-11-28  James Youngman <jay@gnu.org>
72646
72647         * README: Advise users that they might find the bug-gnulib@gnu.org
72648         and autotools-announce@gnu.org mailing lists useful.
72649
72650 2006-11-28  Bruno Haible  <bruno@clisp.org>
72651
72652         * m4/ptrdiff_max.m4: Remove file.
72653
72654 2006-11-21  Bruno Haible  <bruno@clisp.org>
72655
72656         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72657         _AC_COMPUTE_INT.
72658         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72659         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72660         _AC_COMPUTE_INT.
72661         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72662         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72663         _AC_COMPUTE_INT.
72664         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72665
72666 2006-11-28  Jim Meyering  <jim@meyering.net>
72667
72668         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72669         warning from "gcc -Wshadow" about shadowing the builtin.
72670
72671 2006-11-27  Bruno Haible  <bruno@clisp.org>
72672
72673         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72674         _AC_COMPUTE_INT.
72675         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72676
72677 2006-11-27  Bruno Haible  <bruno@clisp.org>
72678             Paul Eggert  <eggert@cs.ucla.edu>
72679
72680         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72681
72682 2006-11-26  Bruno Haible  <bruno@clisp.org>
72683
72684         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72685         noinst_LTLIBRARIES.
72686
72687 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72688             Bruno Haible  <bruno@clisp.org>
72689
72690         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72691         if compiling with "gcc -ansi".
72692
72693 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72694
72695         Fix some incompatibilities with gcc -ansi -pedantic.
72696         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72697         if compiling pedantically with GCC, unless it's C99 or later.
72698         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72699         it mishandles gcc -ansi -pedantic as well.
72700         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72701         if gcc -pedantic.
72702         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72703         initializers for struct if -pedantic, unless it's C99 or later.
72704
72705 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72706
72707         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72708         Don't close an fd more than once. Identical atimes indicate
72709         success, not failure.
72710
72711 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72712
72713         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72714
72715 2006-11-23  Jim Meyering  <jim@meyering.net>
72716
72717         * build-aux/announce-gen: New file.  From coreutils.
72718
72719 2006-11-22  Jim Meyering  <jim@meyering.net>
72720
72721         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72722         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72723         (fts_read): Use a temporary to narrow the overused st_size member
72724         before using it in a switch statement.  Reported by Matthew Woehlke.
72725
72726         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72727         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72728
72729 2006-11-20  Bruno Haible  <bruno@clisp.org>
72730
72731         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72732         changequote instead of pairs of brackets.
72733         Reported by Andreas Schwab <schwab@suse.de>.
72734
72735 2006-11-21  Jim Meyering  <jim@meyering.net>
72736
72737         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72738         so as to remain compatible with older compilers.
72739         Patch from Michael Deutschmann.
72740
72741 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72742
72743         * MODULES.html.sh (File system functions): Add openat.
72744
72745         * lib/openat.h (rpl_fstatat): New macro, if
72746         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72747         (fstatat): Define to rpl_fstatat under the same conditions,
72748         unless COMPILING_FSTATAT.
72749         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72750         seems to have the bug.
72751         * lib/fstatat.c: New file.
72752         * modules/openat (Files): Add it.
72753
72754 2006-11-20  Bruno Haible  <bruno@clisp.org>
72755
72756         * Makefile: New file.
72757
72758 2006-11-20  Jim Meyering  <jim@meyering.net>
72759
72760         The beginnings of syntax-related checks for gnulib.
72761         * lib/Makefile: New file.
72762         * lib/t-idcache: New script.  Ensure that the two halves of
72763         idcache.c stay in sync.
72764
72765         * lib/idcache.c: Adjust comments in user- and group- portions to
72766         be more accurate, and to be consistent with one another.
72767
72768 2006-11-20  Jim Meyering  <jim@meyering.net>
72769
72770         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72771         continue using the flexible array member (thus, this module performs
72772         half as many malloc calls), with the addition that...
72773         (getgroup, getuser): Consistently record a non-match via an empty
72774         "name" string, and map an empty string match to a NULL return value.
72775         * modules/idcache (Depends-on): Re-add flexmember.
72776
72777         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72778         (getuidbyname, getgroup, getgidbyname): Likewise.
72779
72780         Use cleaner syntax: NULL rather than 0.
72781         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72782
72783 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72784
72785         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72786         It mishandled the case where the group was missing.
72787         Problem reported by Greg Schafer.
72788         * modules/idcache: Likewise.
72789
72790 2006-11-18  Jim Meyering  <jim@meyering.net>
72791
72792         * check-module (%exempt_header): Add exception for some
72793         conditionally-included headers.
72794
72795         * modules/i-ring (Depends-on): Add verify.
72796         (License): Change to LGPL.
72797
72798 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72799
72800         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72801         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72802         and inttostr.h.  Use snprintf rather than uinttostr, so that
72803         LGPLed code doesn't depend on GPLed.
72804
72805 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72806
72807         * modules/inline (License): Change from GPL to LGPL.
72808
72809 2006-11-17  Jim Meyering  <jim@meyering.net>
72810
72811         * modules/d-type (License): Switch to LGPL.
72812
72813 2006-11-15  Bruno Haible  <bruno@clisp.org>
72814
72815         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72816
72817 2006-11-15  Eric Blake  <ebb9@byu.net>
72818
72819         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72820         the module dependency.
72821
72822 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72823             Bruno Haible  <bruno@clisp.org>
72824
72825         * gnulib-tool (func_create_testdir): Add license consistency check.
72826
72827 2006-11-15  Eric Blake  <ebb9@byu.net>
72828
72829         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72830         random "(cached)" in configure output.
72831
72832 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72833
72834         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72835         test for conforming inttypes.h is both announced and cached.
72836
72837         * MODULES.html.sh (seen_modules, seen_files): New variables.
72838         (func_module): Rewrite to use a few less gnulib-tool and sed
72839         invocations.  Avoid a couple of quadratic algorithms for ...
72840         (missed_modules, missed_files): ... these, with ...
72841         (func_append, func_tmpdir): ... these new functions, from
72842         gnulib-tool.  Analogously, install traps for cleanup.
72843
72844         * tests/test-gc.c (main): Remove unused variables.
72845         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72846
72847 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72848
72849         * modules/inttostr (License): Change to LGPL.
72850
72851 2006-11-14  Eric Blake  <ebb9@byu.net>
72852
72853         * modules/tempname (License): Change to LGPL.
72854
72855 2006-11-14  Eric Blake  <ebb9@byu.net>
72856
72857         * doc/functions.texi (Function Portability): *printf functions on
72858         Cygwin now understand all POSIX size specifiers.
72859
72860 2006-11-14  Bruno Haible  <bruno@clisp.org>
72861
72862         * modules/c-ctype (License): Change to LGPL.
72863
72864 2006-11-12  Bruno Haible  <bruno@clisp.org>
72865
72866         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72867         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72868         for GNOME libraries, for which the include files are installed in
72869         subdirectories of $prefix/include.
72870
72871 2006-11-12  Bruno Haible  <bruno@clisp.org>
72872
72873         * m4/lib-link.m4: Require at least autoconf-2.54.
72874         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72875         name to underscores for the --with option.
72876
72877 2006-11-13  Bruno Haible  <bruno@clisp.org>
72878
72879         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72880         the tests directory.
72881         Reported by Ralf Wildenhues.
72882
72883 2006-11-13  Bruno Haible  <bruno@clisp.org>
72884
72885         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72886         (func_emit_initmacro_end): Undo the override here.
72887         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72888         Works around the famous automake error in coreutils.
72889
72890 2006-11-13  Eric Blake  <ebb9@byu.net>
72891
72892         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72893         element, not its node.
72894
72895 2006-11-12  Bruno Haible  <bruno@clisp.org>
72896
72897         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72898         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72899
72900 2006-11-12  Bruno Haible  <bruno@clisp.org>
72901
72902         * gnulib-tool: New option --local-symlink.
72903         (func_usage): Document it.
72904         (lsymbolic): New variable.
72905         (func_import, func_create_testdir): If --symlink was not specified,
72906         test whether --local-symlink was specified and the file comes from
72907         the local_gnulib_dir.
72908
72909 2006-11-12  Bruno Haible  <bruno@clisp.org>
72910
72911         * gnulib-tool (func_ln): New function.
72912         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72913
72914 2006-11-12  Bruno Haible  <bruno@clisp.org>
72915
72916         Finish support for source files in subdirectories.
72917         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72918         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72919         AUTOMAKE_OPTIONS.
72920         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72921
72922 2006-11-12  Bruno Haible  <bruno@clisp.org>
72923
72924         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72925         EXTRA_lib_SOURCES augmentation.
72926         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72927
72928 2006-11-12  Jim Meyering  <jim@meyering.net>
72929
72930         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72931         file descriptors.  This also averts a failure on systems with
72932         native openat support when a traversed directory lacks "x" access.
72933         * lib/fts_.h: Include "i-ring.h"
72934         (struct FTS) [fts_fd_ring]: New member.
72935         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72936         (FCHDIR): Add parentheses.
72937         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72938         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72939         When descending, rather than simply closing the previous
72940         fts_cwd_fd value, push that file descriptor onto the ring.
72941         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72942         (fts_open): Initialize the new fd_ring member.
72943         (fts_close): Clear the ring.
72944         (fts_safe_changedir): When possible, use our new fd_ring to skip
72945         the diropen and fstat and dev/ino comparison that would normally
72946         accompany a virtual `chdir ("..")'.
72947
72948         * modules/fts (Depends-on): Add i-ring.
72949         * modules/i-ring: New module.
72950         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72951         * m4/i-ring.m4: New file.
72952
72953 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72954
72955         * gnulib-tool (func_create_testdir): Fix replacement of
72956         `build-aux' in configure.ac.  Run autotools in gltests
72957         subdirectory.
72958         (func_create_testdir, func_create_megatestdir, test): There is
72959         no need for '--force' in most autotool invocations in a new
72960         tree.  Actually fail the whole test if any of the tools, or the
72961         configure or make stages fail.
72962
72963         Sync from Automake.
72964         * build-aux/gnupload: Revert last change.  Add pointer to upload
72965         instructions of the GNU Maintenance Instructions.
72966         Suggestion by Karl Berry.
72967
72968 2006-11-10  Jim Meyering  <jim@meyering.net>
72969
72970         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72971
72972 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72973
72974         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72975         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72976         (bind_textdomain_codeset) [! ENABLE_NLS]:
72977         Evaluate all the arguments.  That way, callers get compatible behavior
72978         if the arguments have side effects.  Also, it avoids some GCC
72979         diagnostics in some cases; Joel E. Denny reported problems when Bison
72980         was configured with --enable-gcc-warnigs.
72981
72982 2006-11-10  Jim Meyering  <jim@meyering.net>
72983
72984         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72985         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72986         account.
72987
72988 2006-11-10  Jim Meyering  <jim@meyering.net>
72989
72990         * modules/inline: New file/module.
72991         * modules/xalloc (Files): Remove m4/inline.m4.
72992         (Depends-on): Add inline, instead.
72993         * modules/oset: Likewise.
72994         * modules/list: Likewise.
72995
72996 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72997
72998         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72999         Problem reported by Matthew Woehlke.
73000
73001 2006-11-09  Bruno Haible  <bruno@clisp.org>
73002
73003         * lib/tempname.c (gen_tempname): Remove variant that invokes
73004         __gen_tempname.
73005         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
73006         __gen_tempname.
73007
73008 2006-11-08  Bruno Haible  <bruno@clisp.org>
73009
73010         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73011         to 'yes' instead of 'cross-compiling'.
73012
73013 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73014
73015         * lib/quotearg.h (quotearg_free): New decl.
73016         * lib/quotearg.c (quotearg_free): New function.
73017         (slot0, nslots, slotvec0, slotvec):
73018         Now file-scope so that quotearg_free can get at them.
73019
73020 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73021
73022         Sync from Automake.
73023         * build-aux/gnupload: Add missing 'gnu' to example URL.
73024         Report by Karl Berry.
73025
73026 2006-11-08  Bruno Haible  <bruno@clisp.org>
73027
73028         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73029         Suggested by Paul Eggert.
73030
73031 2006-11-08  Jim Meyering  <jim@meyering.net>
73032
73033         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73034         It's already included if !_LIBC.
73035         (fts_safe_changedir): Add a comment.
73036
73037 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73038
73039         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73040         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73041         Matthew Woehlke.
73042
73043         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73044         definitions up, to avoid colliding with change below.
73045         (static_inline) [HAVE_INLINE]: New macro.
73046         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73047         Provide extern decls when !HAVE_INLINE.  Do not define unless
73048         static_inline is defined, either by us or by xmalloc.c.  Use
73049         static_inline rather than static inline.
73050         (XCALLOC): Optimize sizeof(T) = 1 case.
73051         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73052
73053 2006-11-07  Bruno Haible  <bruno@clisp.org>
73054
73055         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73056         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73057         AC_C_INLINE.
73058         * modules/xalloc (Files): Add m4/inline.m4.
73059
73060 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73061
73062         * README: Fix typo.
73063         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73064         (Miscellanous Notes): ...from this.
73065
73066 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73067
73068         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73069         Mention that offsetof should be used instead of sizeof.
73070         From Bruno Haible.
73071
73072 2006-11-07  Bruno Haible  <bruno@clisp.org>
73073
73074         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73075
73076 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73077
73078         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73079         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73080         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73081         (gl_tree_add_before, gl_tree_add_after):
73082         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73083         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73084         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73085         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73086         (gl_linked_add_after, gl_linked_add_at): Likewise.
73087         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73088         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73089         (gl_tree_add_before, gl_tree_add_after): Likewise.
73090         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73091         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73092         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73093
73094 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73095
73096         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73097
73098 2006-11-06  Bruno Haible  <bruno@clisp.org>
73099
73100         * m4/inline.m4: New file.
73101         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73102         * modules/list (Files): Add m4/inline.m4.
73103         * modules/oset (Files): Likewise.
73104
73105 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73106
73107         * lib/idcache.c: Include <stddef.h>, for offsetof.
73108         (struct userid.name): Change from char * to a flexible array member.
73109         All uses changed.
73110         * modules/idcache (Depends-on): Add flexmember.
73111
73112         * MODULES.html.sh (Core language properties): New module flexmember.
73113         * modules/flexmember, m4/flexmember.m4: New files.
73114
73115         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73116         inline functions that are identical with the old xnmalloc_inline,
73117         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73118         that we can avoid some unnecessary integer multiplications and
73119         divisions in the common case where the element size is known at
73120         compile time.
73121         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73122         needed.
73123         (xnboundedmalloc): Remove.
73124         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73125         arguments, for consistency with rest of this header.
73126         (xcharalloc): Rewrite using XNMALLOC.
73127         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73128         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73129         versions have been moved to lib/xalloc.h and renamed to be the
73130         non-*_inline versions.
73131         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73132         and xnrealloc functions, since those functions are now inline and
73133         now call us.
73134         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73135         renaming described above.
73136         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73137         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73138         captures the dependency in AC_C_INLINE.
73139
73140         New module canonicalize-lgpl, proposed by Charles Wilson in
73141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73142         with a few small changes afterwards.
73143         * MODULES.html.sh (File system functions): New module
73144         canonicalize-lgpl.
73145         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73146         and canonicalize_file_name.
73147         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73148         * modules/canonicalize-lgpl: New files.
73149
73150 2006-11-05  Bruno Haible  <bruno@clisp.org>
73151
73152         * gnulib-tool (func_import, func_create_testdir): Create directories
73153         also for files in subdirectories of lib/.
73154
73155 2006-11-05  Bruno Haible  <bruno@clisp.org>
73156
73157         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73158         ANSI C compliant.
73159
73160 2006-11-03  Bruno Haible  <bruno@clisp.org>
73161
73162         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73163         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73164         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73165         (xnboundedmalloc): New inline function.
73166         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73167         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73168         xmalloc.
73169         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73170         xmalloc.
73171         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73172         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73173         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73174         xmalloc.
73175         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73176         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73177         xmalloc.
73178         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73179         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73180         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73181         xmalloc.
73182         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73183         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73184         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73185         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73186         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73187         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73188         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73189
73190 2006-11-03  Bruno Haible  <bruno@clisp.org>
73191
73192         * lib/c-ctype.h [C++]: Define functions without name mangling.
73193         * lib/fwriteerror.h [C++]: Likewise.
73194         * lib/gcd.h [C++]: Likewise.
73195         * lib/linebreak.h [C++]: Likewise.
73196
73197 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73198
73199         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73200         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73201         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73202         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73203         Check for functions and headers just once.
73204         Check for declaration of canonicalize_file_name.
73205         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73206
73207 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73208
73209         * gnulib-tool (func_import): Fix typo in actioncmd.
73210
73211 2006-11-02  Bruno Haible  <bruno@clisp.org>
73212
73213         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73214         newline sequence in the Makefile.am snippet as a space, like "make"
73215         does.
73216         Reported by Roger Persson <perrog@gmail.com>.
73217
73218 2006-11-01  Bruno Haible  <bruno@clisp.org>
73219
73220         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73221         already declared in <string.h>.
73222         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73223
73224 2006-11-01  Bruno Haible  <bruno@clisp.org>
73225
73226         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73227         * lib/strcase.h: Include <string.h>.
73228         (strcasecmp): Define to rpl_strcasecmp here.
73229
73230 2006-11-01  Bruno Haible  <bruno@clisp.org>
73231
73232         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73233
73234 2006-11-01  Eric Blake  <ebb9@byu.net>
73235
73236         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73237
73238         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73239
73240 2006-10-29  Bruno Haible  <bruno@clisp.org>
73241
73242         Make it compile in C++ mode.
73243         * lib/full-write.c (full_rw): Add a cast.
73244
73245 2006-11-01  Bruno Haible  <bruno@clisp.org>
73246
73247         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73248         be POSIX compliant.
73249         Reported by Roger Persson <perrog@gmail.com>.
73250
73251 2006-11-01  Eric Blake  <ebb9@byu.net>
73252
73253         * lib/getopt_.h: Fix comments.
73254
73255 2006-10-31  Eric Blake  <ebb9@byu.net>
73256
73257         * modules/tmpdir (Depends-on): Add sys_stat.
73258         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73259         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73260         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73261         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73262         tempname.
73263
73264 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73265
73266         Avoid some C++ diagnostics reported by Bruno Haible.
73267         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73268         xmalloc.
73269         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73270         (struct slotvec): Move to top level.
73271         (quotearg_n_options): Rewrite to avoid xmalloc.
73272         * lib/xalloc.h (xcharalloc): New function.
73273         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73274         [defined __cplusplus]: Add function template that provides result
73275         type propagation.  This part of the change is from Bruno Haible.
73276
73277 2006-10-29  Bruno Haible  <bruno@clisp.org>
73278
73279         Make it compile in C++ mode.
73280         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73281         * lib/strnlen1.c (strnlen1): Cast memchr result.
73282         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73283         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73284         (create_temp_dir): Rename local variable 'template'.
73285         (compile_csharp_using_sscli): Add cast.
73286         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73287         * lib/findprog.c (find_in_path): Likewise.
73288         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73289         * lib/wait-process.c (register_slave_subprocess): Likewise.
73290
73291 2006-10-22  Bruno Haible  <bruno@clisp.org>
73292
73293         * modules/tsearch: New file.
73294         * lib/tsearch.h: New file.
73295         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73296         * m4/tsearch.m4: New file.
73297         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73298
73299 2006-10-29  Eric Blake  <ebb9@byu.net>
73300
73301         * lib/arcfour.c: Assume config.h.
73302         * lib/arctwo.c: Likewise.
73303         * lib/base64.c: Likewise.
73304         * lib/check-version.c: Likewise.
73305         * lib/crc.c: Likewise.
73306         * lib/des.c: Likewise.
73307         * lib/gc-gnulib.c: Likewise.
73308         * lib/gc-libgcrypt.c: Likewise.
73309         * lib/gc-pbkdf2-sha1.c: Likewise.
73310         * lib/getaddrinfo.c: Likewise.
73311         * lib/getdelim.c: Likewise.
73312         * lib/getline.c: Likewise.
73313         * lib/hmac-md5.c: Likewise.
73314         * lib/hmac-sha1.c: Likewise.
73315         * lib/iconvme.c: Likewise.
73316         * lib/md2.c: Likewise.
73317         * lib/md4.c: Likewise.
73318         * lib/memxor.c: Likewise.
73319         * lib/read-file.c: Likewise.
73320         * lib/readline.c: Likewise.
73321         * lib/rijndael-alg-fst.c: Likewise.
73322         * lib/rijndael-api-fst.c: Likewise.
73323         * lib/xgetdomainname.c: Likewise.
73324
73325 2006-10-28  Eric Blake  <ebb9@byu.net>
73326
73327         * lib/xstrndup.c: Assume config.h.
73328
73329 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73330
73331         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73332         stat-macros.h is now for our own macros, whereas stat_h is for
73333         macros in the <sys/stat.h> name space.
73334         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73335         (STAT_MACROS_H): Remove.
73336         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73337         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73338         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73339         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73340         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73341         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73342         Move these macros to ...
73343         * lib/stat_.h: here.  Don't include stat-macros.h.
73344         * lib/canonicalize.c: Don't include stat-macros.h.
73345         * lib/chown.c: Likewise.
73346         * lib/euidaccess.c: Likewise.
73347         * lib/file-type.c: Likewise.
73348         * lib/filemode.c: Likewise.
73349         * lib/glob.c: Likewise.
73350         * lib/isapipe.c: Likewise.
73351         * lib/lchown.c: Likewise.
73352         * lib/lstat.c: Likewise.
73353         * lib/mkdir-p.c: Likewise.
73354         * lib/rmdir.c: Likewise.
73355         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73356         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73357         unless mkdir isn't declared, to speed up 'configure'.
73358         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73359         would define all the S_* symbols.
73360         * modules/canonicalize (Depends-on):
73361         Depend on sys_stat, not stat-macros.
73362         * modules/chown: Likewise.
73363         * modules/euidaccess: Likewise.
73364         * modules/filemode: Likewise.
73365         * modules/file-type: Likewise.
73366         * modules/glob: Likewise.
73367         * modules/isapipe: Likewise.
73368         * modules/lchown: Likewise.
73369         * modules/lstat: Likewise.
73370         * modules/mkancesdirs: Likewise.
73371         * modules/rmdir: Likewise.
73372         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73373         * modules/modechange: Likewise.
73374         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73375         (configure.ac): Remove gl_STAT_MACROS.
73376         * modules/sys_stat (Depends-on): Remove stat-macros.
73377
73378 2006-10-27  Bruno Haible  <bruno@clisp.org>
73379
73380         * m4/signed.m4: Remove file.
73381         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73382         invocation.
73383         * modules/vasnprintf (Files): Remove m4/signed.m4.
73384
73385 2006-10-27  Bruno Haible  <bruno@clisp.org>
73386
73387         Update to GNU gettext 0.16.
73388         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73389         m4/inttypes-h.m4, m4/signed.m4.
73390         * m4/gettext.m4: Update to GNU gettext 0.16.
73391         * m4/intl.m4: New file, from GNU gettext.
73392         * m4/intldir.m4: New file, from GNU gettext.
73393         * config/srclist.txt: Update
73394
73395 2006-10-27  Eric Blake  <ebb9@byu.net>
73396
73397         * MODULES.html.sh: Document tempname.
73398         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73399         dependencies.
73400         (Files): Move lib/tempname.c...
73401         * modules/tempname: ...to this new module.
73402         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73403         (gl_PREREQ_TEMPNAME): Move...
73404         * m4/tempname.m4: ...to this new file.
73405         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73406         * modules/sys_stat (Depends-on): Add stat-macros.
73407         * lib/stat_.h (includes): Pick up stat macros.
73408         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73409         if stat macros are broken.
73410         * lib/tempname.c (includes): No need to include "stat-macros.h".
73411         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73412         (direxists, __path_search) [!_LIBC]: Don't compile these in
73413         gnulib; the tmpdir module covers that.
73414         * lib/tempname.h: New file.
73415
73416 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73417
73418         * COPYING: Explain how gnulib-tool converts licence headers.
73419         Almost all wording by Eric Blake.
73420
73421 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73422
73423         * lib/mbchar.h (is_basic_table): Make read-only.
73424         * lib/mbchar.c (is_basic_table): Likewise.
73425         Reported by John Darrington.
73426
73427 2006-10-25  Bruno Haible  <bruno@clisp.org>
73428
73429         * lib/progname.h (set_program_name): Undefine before defining.
73430
73431 2006-10-25  Bruno Haible  <bruno@clisp.org>
73432
73433         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73434         false for non-gcc C++ compilers.
73435         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73436
73437 2006-10-24  Bruno Haible  <bruno@clisp.org>
73438
73439         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73440         iconv implementations like Irix iconv.
73441
73442 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         * modules/vararrays: New file.
73445         * m4/vararrays.m4: New file, taken from diffutils.
73446         * MODULES.html.sh: New module vararrays.
73447
73448 2006-10-24  Karl Berry  <karl@gnu.org>
73449
73450         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73451         Don't call GNU Unix.
73452
73453 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73454
73455         * users.txt: Add Libtool.
73456
73457         Sync from Libtool:
73458
73459         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73460
73461         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73462         to gnulib's policy of including config.h unconditionally.
73463
73464 2006-10-24  Bruno Haible  <bruno@clisp.org>
73465
73466         * modules/wcwidth (Files): Add m4/wint_t.m4.
73467         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73468         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73469
73470 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73471
73472         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73473         to pacify GCC with some -W flags enabled.  Problem reported by
73474         Bruno Haible.
73475
73476 2006-10-24  Jim Meyering  <jim@meyering.net>
73477
73478         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73479         Reported by Karl Berry.
73480
73481 2006-10-23  Bruno Haible  <bruno@clisp.org>
73482
73483         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73484
73485 2006-10-24  Bruno Haible  <bruno@clisp.org>
73486
73487         * lib/gl_list.h: Use C comment style, not C++ comment style.
73488
73489 2006-10-23  Eric Blake  <ebb9@byu.net>
73490
73491         * lib/getaddrinfo.c (includes): Add missing include.
73492
73493 2006-10-23  Bruno Haible  <bruno@clisp.org>
73494             Paul Eggert  <eggert@cs.ucla.edu>
73495
73496         Ability to rename obstack_free.
73497         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73498         obstack_free.
73499         (obstack_free): Invoke the __obstack_free macro.
73500         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73501
73502 2006-10-23  Bruno Haible  <bruno@clisp.org>
73503             Paul Eggert  <eggert@cs.ucla.edu>
73504
73505         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73506         __argc, __argv from the declaration. (They are defined as macros on
73507         mingw.)
73508
73509 2006-10-22  Bruno Haible  <bruno@clisp.org>
73510
73511         * doc/gnulib-intro.texi: New file.
73512         * doc/gnulib.texi: Include it.
73513
73514 2006-10-21  Bruno Haible  <bruno@clisp.org>
73515
73516         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73517         "Introduction", "Miscellanous Notes", "Particular Modules".
73518
73519 2006-10-21  Bruno Haible  <bruno@clisp.org>
73520
73521         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73522         Change mostlyclean-local rule to avoid sh syntax error from bash
73523         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73524
73525 2006-10-23  Jim Meyering  <jim@meyering.net>
73526
73527         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73528         in place of snprintf.
73529
73530         * modules/inttostr (Files): Add lib/uinttostr.c.
73531         * lib/uinttostr.c (inttostr): New file/function.
73532         * lib/inttostr.h (uinttostr): Declare.
73533         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73534         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73535         Add uinttostr.
73536         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73537
73538 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73539
73540         * lib/canonicalize.c (ELOOP): Define if not already defined.
73541         Problem reported by Bruno Haible in
73542         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73543
73544 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73545
73546         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73547         Problem reported by Perry Smith and Ville Laurikari.
73548
73549         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73550         uses.
73551
73552 2006-10-19  Bruno Haible  <bruno@clisp.org>
73553
73554         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73555         for mingw.
73556
73557 2006-10-19  Bruno Haible  <bruno@clisp.org>
73558
73559         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73560         Needed for mingw.
73561
73562 2006-10-19  Bruno Haible  <bruno@clisp.org>
73563
73564         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73565
73566 2006-10-19  Bruno Haible  <bruno@clisp.org>
73567
73568         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73569         it.
73570
73571 2006-10-19  Bruno Haible  <bruno@clisp.org>
73572
73573         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73574         invocation.
73575
73576 2006-10-19  Bruno Haible  <bruno@clisp.org>
73577
73578         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73579         mountlist by default.
73580
73581 2006-10-16  Bruno Haible  <bruno@clisp.org>
73582
73583         * lib/c-strstr.c: Include c-strstr.h.
73584
73585 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73586
73587         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73588         in a slash.
73589
73590 2006-10-18  Bruno Haible  <bruno@clisp.org>
73591
73592         * lib/lock.h [C++]: Wrap definitions in extern "C".
73593
73594 2006-10-18  Bruno Haible  <bruno@clisp.org>
73595
73596         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73597         gl_LIBOBJS list.
73598
73599 2006-10-18  Bruno Haible  <bruno@clisp.org>
73600
73601         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73602
73603 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         * lib/xstrtol.h: Include gettext.h.
73606         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73607         Problem reported by Eric Blake.
73608         * modules/xstrtol (Depends-on): Add gettext-h.
73609
73610 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73611
73612         * lib/strftime.c (advance): New macro.
73613         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73614         incomplete type, so you can't add 0 to it.  Problem and patch
73615         reported by Eelco Dolstra for dietlibc.
73616
73617 2006-10-18  Jim Meyering  <jim@meyering.net>
73618
73619         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73620         type for a local, and rename it: s/up/user_proc/.
73621
73622 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73623
73624         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73625         READ_UTMP_USER_PROCESS.
73626         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73627
73628 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73629
73630         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73631         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73632
73633 2006-10-17  Eric Blake  <ebb9@byu.net>
73634
73635         * lib/sigprocmask.c (sigprocmask): Fix typo.
73636
73637         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73638
73639         * modules/clean-temp (Makefile.am): Don't add to make output...
73640         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73641         config.h.
73642
73643 2006-10-17  Bruno Haible  <bruno@clisp.org>
73644
73645         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73646         differently if DEFAULT_TEXT_DOMAIN is set.
73647
73648 2006-10-16  Bruno Haible  <bruno@clisp.org>
73649
73650         * lib/clean-temp.c: Include fwriteerror.h.
73651
73652 2006-10-16  Bruno Haible  <bruno@clisp.org>
73653
73654         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73655
73656 2006-10-16  Bruno Haible  <bruno@clisp.org>
73657
73658         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73659         * lib/sigprocmask.h: Include <sys/types.h>.
73660         (sigset_t): Use the system's definition if present.
73661
73662 2006-10-17  Eric Blake  <ebb9@byu.net>
73663
73664         * lib/xvasprintf.c (includes): Assume config.h.
73665         * lib/xasprintf.c (includes): Likewise.
73666
73667 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73668
73669         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73670         at least as wide as intmax_t.
73671
73672 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73673
73674         (Imported from Automake.)
73675         * build-aux/gnupload: Update to version 1.1 of directive file.
73676
73677 2006-10-16  Eric Blake  <ebb9@byu.net>
73678
73679         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73680         match Automake 1.10a.
73681
73682 2006-10-14  Bruno Haible  <bruno@clisp.org>
73683
73684         * modules/sigprocmask: New file.
73685         * lib/sigprocmask.h: New file.
73686         * lib/sigprocmask.c: New file.
73687         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73688         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73689         request sigprocmask.o.
73690         (gl_PREREQ_SIGPROCMASK): New macro.
73691         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73692         (Depends-on): Add sigprocmask.
73693         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73694         gt_SIGNALBLOCKING. Test for 'raise' only once.
73695         * lib/fatal-signal.c: Include sigprocmask.h.
73696         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73697         unblock_fatal_signals): Define always.
73698         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73699         sigprocmask.
73700
73701 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73702
73703         Sync from Automake.
73704         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73705         which incorrectly sets the mode of an existing destination
73706         directory.  In some cases the unpatched install-sh could do the
73707         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73708         system.  We hope this is rare in practice, but it's clearly worth
73709         fixing.  Problem reported by Alex Unleashed in
73710         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73711         Also, don't bother to check for -m bugs unless we're using -m;
73712         suggested by Stepan Kasal.
73713
73714 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73715
73716         Sync from Automake.
73717         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73718         `-c' flag, so they appear at the same position as in %FASTDEP%
73719         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73720         which ignores unknown options only after the first non-option.
73721         Bug report against M4 by Nelson H. F. Beebe.
73722
73723 2006-10-13  Jim Meyering  <jim@meyering.net>
73724
73725         Fix a bug in yesterday's change.
73726         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73727         p->fts_statp->st_dev would be used uninitialized.
73728         Ensures that we always call fts_stat on the very first entry.
73729         Miklos Szeredi reported that find -xdev stopped working.
73730
73731 2006-10-12  Bruno Haible  <bruno@clisp.org>
73732
73733         * gnulib-tool (func_get_automake_snippet): Append an automatically
73734         computed EXTRA_DIST augmentation.
73735         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73736         * modules/alloca-opt (Makefile.am): Likewise.
73737         * modules/allocsa (Makefile.am): Likewise.
73738         * modules/arcfour (Makefile.am): Likewise.
73739         * modules/arctwo (Makefile.am): Likewise.
73740         * modules/argmatch (Makefile.am): Likewise.
73741         * modules/argz (Makefile.am): Likewise.
73742         * modules/atexit (Makefile.am): Likewise.
73743         * modules/backupfile (Makefile.am): Likewise.
73744         * modules/byteswap (Makefile.am): Likewise.
73745         * modules/c-strtod (Makefile.am): Likewise.
73746         * modules/c-strtold (Makefile.am): Likewise.
73747         * modules/calloc (Makefile.am): Likewise.
73748         * modules/canon-host (Makefile.am): Likewise.
73749         * modules/canonicalize (Makefile.am): Likewise.
73750         * modules/chdir-long (Makefile.am): Likewise.
73751         * modules/chdir-safer (Makefile.am): Likewise.
73752         * modules/check-version (Makefile.am): Likewise.
73753         * modules/chown (Makefile.am): Likewise.
73754         * modules/cloexec (Makefile.am): Likewise.
73755         * modules/close-stream (Makefile.am): Likewise.
73756         * modules/closeout (Makefile.am): Likewise.
73757         * modules/crc (Makefile.am): Likewise.
73758         * modules/csharpexec (Makefile.am): Likewise.
73759         * modules/cycle-check (Makefile.am): Likewise.
73760         * modules/des (Makefile.am): Likewise.
73761         * modules/dev-ino (Makefile.am): Likewise.
73762         * modules/dirfd (Makefile.am): Likewise.
73763         * modules/dirname (Makefile.am): Likewise.
73764         * modules/dup2 (Makefile.am): Likewise.
73765         * modules/eealloc (Makefile.am): Likewise.
73766         * modules/error (Makefile.am): Likewise.
73767         * modules/euidaccess (Makefile.am): Likewise.
73768         * modules/exclude (Makefile.am): Likewise.
73769         * modules/exitfail (Makefile.am): Likewise.
73770         * modules/fcntl-safer (Makefile.am): Likewise.
73771         * modules/fcntl (Makefile.am): Likewise.
73772         * modules/file-type (Makefile.am): Likewise.
73773         * modules/fileblocks (Makefile.am): Likewise.
73774         * modules/filemode (Makefile.am): Likewise.
73775         * modules/filenamecat (Makefile.am): Likewise.
73776         * modules/fnmatch (Makefile.am): Likewise.
73777         * modules/fopen-safer (Makefile.am): Likewise.
73778         * modules/fpending (Makefile.am): Likewise.
73779         * modules/fprintftime (Makefile.am): Likewise.
73780         * modules/free (Makefile.am): Likewise.
73781         * modules/fsusage (Makefile.am): Likewise.
73782         * modules/ftruncate (Makefile.am): Likewise.
73783         * modules/fts (Makefile.am): Likewise.
73784         * modules/gc-arcfour (Makefile.am): Likewise.
73785         * modules/gc-des (Makefile.am): Likewise.
73786         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73787         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73788         * modules/gc-md4 (Makefile.am): Likewise.
73789         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73790         * modules/gc-sha1 (Makefile.am): Likewise.
73791         * modules/gc (Makefile.am): Likewise.
73792         * modules/getaddrinfo (Makefile.am): Likewise.
73793         * modules/getcwd (Makefile.am): Likewise.
73794         * modules/getdelim (Makefile.am): Likewise.
73795         * modules/getdomainname (Makefile.am): Likewise.
73796         * modules/getgroups (Makefile.am): Likewise.
73797         * modules/gethostname (Makefile.am): Likewise.
73798         * modules/gethrxtime (Makefile.am): Likewise.
73799         * modules/getline (Makefile.am): Likewise.
73800         * modules/getloadavg (Makefile.am): Likewise.
73801         * modules/getlogin_r (Makefile.am): Likewise.
73802         * modules/getndelim2 (Makefile.am): Likewise.
73803         * modules/getopt (Makefile.am): Likewise.
73804         * modules/getpagesize (Makefile.am): Likewise.
73805         * modules/getpass-gnu (Makefile.am): Likewise.
73806         * modules/getpass (Makefile.am): Likewise.
73807         * modules/getsubopt (Makefile.am): Likewise.
73808         * modules/gettime (Makefile.am): Likewise.
73809         * modules/gettimeofday (Makefile.am): Likewise.
73810         * modules/getugroups (Makefile.am): Likewise.
73811         * modules/getusershell (Makefile.am): Likewise.
73812         * modules/glob (Makefile.am): Likewise.
73813         * modules/group-member (Makefile.am): Likewise.
73814         * modules/hard-locale (Makefile.am): Likewise.
73815         * modules/hash (Makefile.am): Likewise.
73816         * modules/hmac-md5 (Makefile.am): Likewise.
73817         * modules/hmac-sha1 (Makefile.am): Likewise.
73818         * modules/human (Makefile.am): Likewise.
73819         * modules/idcache (Makefile.am): Likewise.
73820         * modules/imaxabs (Makefile.am): Likewise.
73821         * modules/imaxdiv (Makefile.am): Likewise.
73822         * modules/inet_ntop (Makefile.am): Likewise.
73823         * modules/inet_pton (Makefile.am): Likewise.
73824         * modules/intprops (Makefile.am): Likewise.
73825         * modules/inttostr (Makefile.am): Likewise.
73826         * modules/inttypes (Makefile.am): Likewise.
73827         * modules/isapipe (Makefile.am): Likewise.
73828         * modules/javaversion (Makefile.am): Likewise.
73829         * modules/lchmod (Makefile.am): Likewise.
73830         * modules/lchown (Makefile.am): Likewise.
73831         * modules/localcharset (Makefile.am): Likewise.
73832         * modules/long-options (Makefile.am): Likewise.
73833         * modules/lstat (Makefile.am): Likewise.
73834         * modules/malloc (Makefile.am): Likewise.
73835         * modules/mathl (Makefile.am): Likewise.
73836         * modules/mbchar (Makefile.am): Likewise.
73837         * modules/md2 (Makefile.am): Likewise.
73838         * modules/md4 (Makefile.am): Likewise.
73839         * modules/md5 (Makefile.am): Likewise.
73840         * modules/memcasecmp (Makefile.am): Likewise.
73841         * modules/memchr (Makefile.am): Likewise.
73842         * modules/memcmp (Makefile.am): Likewise.
73843         * modules/memcoll (Makefile.am): Likewise.
73844         * modules/memcpy (Makefile.am): Likewise.
73845         * modules/memmem (Makefile.am): Likewise.
73846         * modules/memmove (Makefile.am): Likewise.
73847         * modules/mempcpy (Makefile.am): Likewise.
73848         * modules/memrchr (Makefile.am): Likewise.
73849         * modules/memset (Makefile.am): Likewise.
73850         * modules/memxor (Makefile.am): Likewise.
73851         * modules/mkancesdirs (Makefile.am): Likewise.
73852         * modules/mkdir-p (Makefile.am): Likewise.
73853         * modules/mkdir (Makefile.am): Likewise.
73854         * modules/mkdtemp (Makefile.am): Likewise.
73855         * modules/mkstemp (Makefile.am): Likewise.
73856         * modules/mktime (Makefile.am): Likewise.
73857         * modules/modechange (Makefile.am): Likewise.
73858         * modules/mountlist (Makefile.am): Likewise.
73859         * modules/nanosleep (Makefile.am): Likewise.
73860         * modules/obstack (Makefile.am): Likewise.
73861         * modules/openat (Makefile.am): Likewise.
73862         * modules/pagealign_alloc (Makefile.am): Likewise.
73863         * modules/pathmax (Makefile.am): Likewise.
73864         * modules/physmem (Makefile.am): Likewise.
73865         * modules/poll (Makefile.am): Likewise.
73866         * modules/posixtm (Makefile.am): Likewise.
73867         * modules/posixver (Makefile.am): Likewise.
73868         * modules/putenv (Makefile.am): Likewise.
73869         * modules/quote (Makefile.am): Likewise.
73870         * modules/quotearg (Makefile.am): Likewise.
73871         * modules/raise (Makefile.am): Likewise.
73872         * modules/read-file (Makefile.am): Likewise.
73873         * modules/readline (Makefile.am): Likewise.
73874         * modules/readlink (Makefile.am): Likewise.
73875         * modules/readtokens (Makefile.am): Likewise.
73876         * modules/readutmp (Makefile.am): Likewise.
73877         * modules/realloc (Makefile.am): Likewise.
73878         * modules/regex (Makefile.am): Likewise.
73879         * modules/rename-dest-slash (Makefile.am): Likewise.
73880         * modules/rename (Makefile.am): Likewise.
73881         * modules/rijndael (Makefile.am): Likewise.
73882         * modules/rmdir (Makefile.am): Likewise.
73883         * modules/rpmatch (Makefile.am): Likewise.
73884         * modules/safe-read (Makefile.am): Likewise.
73885         * modules/safe-write (Makefile.am): Likewise.
73886         * modules/same-inode (Makefile.am): Likewise.
73887         * modules/same (Makefile.am): Likewise.
73888         * modules/save-cwd (Makefile.am): Likewise.
73889         * modules/savedir (Makefile.am): Likewise.
73890         * modules/setenv (Makefile.am): Likewise.
73891         * modules/settime (Makefile.am): Likewise.
73892         * modules/sha1 (Makefile.am): Likewise.
73893         * modules/sig2str (Makefile.am): Likewise.
73894         * modules/snprintf (Makefile.am): Likewise.
73895         * modules/stat-macros (Makefile.am): Likewise.
73896         * modules/stat-time (Makefile.am): Likewise.
73897         * modules/stdbool (Makefile.am): Likewise.
73898         * modules/stdint (Makefile.am): Likewise.
73899         * modules/stdlib-safer (Makefile.am): Likewise.
73900         * modules/stpcpy (Makefile.am): Likewise.
73901         * modules/stpncpy (Makefile.am): Likewise.
73902         * modules/strcase (Makefile.am): Likewise.
73903         * modules/strcasestr (Makefile.am): Likewise.
73904         * modules/strchrnul (Makefile.am): Likewise.
73905         * modules/strcspn (Makefile.am): Likewise.
73906         * modules/strdup (Makefile.am): Likewise.
73907         * modules/strerror (Makefile.am): Likewise.
73908         * modules/strftime (Makefile.am): Likewise.
73909         * modules/strndup (Makefile.am): Likewise.
73910         * modules/strnlen (Makefile.am): Likewise.
73911         * modules/strpbrk (Makefile.am): Likewise.
73912         * modules/strsep (Makefile.am): Likewise.
73913         * modules/strstr (Makefile.am): Likewise.
73914         * modules/strtod (Makefile.am): Likewise.
73915         * modules/strtoimax (Makefile.am): Likewise.
73916         * modules/strtok_r (Makefile.am): Likewise.
73917         * modules/strtol (Makefile.am): Likewise.
73918         * modules/strtoll (Makefile.am): Likewise.
73919         * modules/strtoul (Makefile.am): Likewise.
73920         * modules/strtoull (Makefile.am): Likewise.
73921         * modules/strtoumax (Makefile.am): Likewise.
73922         * modules/strverscmp (Makefile.am): Likewise.
73923         * modules/sys_socket (Makefile.am): Likewise.
73924         * modules/sys_stat (Makefile.am): Likewise.
73925         * modules/sysexits (Makefile.am): Likewise.
73926         * modules/time_r (Makefile.am): Likewise.
73927         * modules/timegm (Makefile.am): Likewise.
73928         * modules/timespec (Makefile.am): Likewise.
73929         * modules/tmpfile-safer (Makefile.am): Likewise.
73930         * modules/trim (Makefile.am): Likewise.
73931         * modules/unistd-safer (Makefile.am): Likewise.
73932         * modules/unlinkdir (Makefile.am): Likewise.
73933         * modules/unlocked-io (Makefile.am): Likewise.
73934         * modules/userspec (Makefile.am): Likewise.
73935         * modules/utime (Makefile.am): Likewise.
73936         * modules/utimecmp (Makefile.am): Likewise.
73937         * modules/utimens (Makefile.am): Likewise.
73938         * modules/vasnprintf (Makefile.am): Likewise.
73939         * modules/vasprintf (Makefile.am): Likewise.
73940         * modules/vsnprintf (Makefile.am): Likewise.
73941         * modules/xalloc (Makefile.am): Likewise.
73942         * modules/xgetcwd (Makefile.am): Likewise.
73943         * modules/xnanosleep (Makefile.am): Likewise.
73944         * modules/xreadlink (Makefile.am): Likewise.
73945         * modules/xstrtod (Makefile.am): Likewise.
73946         * modules/xstrtol (Makefile.am): Likewise.
73947         * modules/xstrtold (Makefile.am): Likewise.
73948         * modules/yesno (Makefile.am): Likewise.
73949         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73950
73951 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73952
73953         * modules/error (Makefile.am): Distribute files through
73954         EXTRA_DIST, not lib_SOURCES.
73955
73956 2006-10-12  Eric Blake  <ebb9@byu.net>
73957
73958         * modules/error (Makefile.am): Distribute files in /lib.
73959         * modules/obstack (Makefile.am): Likewise.
73960
73961 2006-10-12  Bruno Haible  <bruno@clisp.org>
73962
73963         * modules/acl (Makefile.am): Distribute all files in lib/ through
73964         EXTRA_DIST.
73965         * modules/arcfour (Makefile.am): Likewise.
73966         * modules/arctwo (Makefile.am): Likewise.
73967         * modules/argmatch (Makefile.am): Likewise.
73968         * modules/argz (Makefile.am): Likewise.
73969         * modules/atexit (Makefile.am): Likewise.
73970         * modules/backupfile (Makefile.am): Likewise.
73971         * modules/c-strtod (Makefile.am): Likewise.
73972         * modules/c-strtold (Makefile.am): Likewise.
73973         * modules/calloc (Makefile.am): Likewise.
73974         * modules/canon-host (Makefile.am): Likewise.
73975         * modules/canonicalize (Makefile.am): Likewise.
73976         * modules/chdir-long (Makefile.am): Likewise.
73977         * modules/chdir-safer (Makefile.am): Likewise.
73978         * modules/check-version (Makefile.am): Likewise.
73979         * modules/chown (Makefile.am): Likewise.
73980         * modules/cloexec (Makefile.am): Likewise.
73981         * modules/close-stream (Makefile.am): Likewise.
73982         * modules/closeout (Makefile.am): Likewise.
73983         * modules/crc (Makefile.am): Likewise.
73984         * modules/cycle-check (Makefile.am): Likewise.
73985         * modules/des (Makefile.am): Likewise.
73986         * modules/dirfd (Makefile.am): Likewise.
73987         * modules/dirname (Makefile.am): Likewise.
73988         * modules/dup2 (Makefile.am): Likewise.
73989         * modules/euidaccess (Makefile.am): Likewise.
73990         * modules/exclude (Makefile.am): Likewise.
73991         * modules/exitfail (Makefile.am): Likewise.
73992         * modules/fcntl-safer (Makefile.am): Likewise.
73993         * modules/file-type (Makefile.am): Likewise.
73994         * modules/fileblocks (Makefile.am): Likewise.
73995         * modules/filemode (Makefile.am): Likewise.
73996         * modules/filenamecat (Makefile.am): Likewise.
73997         * modules/fnmatch (Makefile.am): Likewise.
73998         * modules/fopen-safer (Makefile.am): Likewise.
73999         * modules/fpending (Makefile.am): Likewise.
74000         * modules/fprintftime (Makefile.am): Likewise.
74001         * modules/free (Makefile.am): Likewise.
74002         * modules/fsusage (Makefile.am): Likewise.
74003         * modules/ftruncate (Makefile.am): Likewise.
74004         * modules/fts (Makefile.am): Likewise.
74005         * modules/gc (Makefile.am): Likewise.
74006         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74007         * modules/getaddrinfo (Makefile.am): Likewise.
74008         * modules/getcwd (Makefile.am): Likewise.
74009         * modules/getdelim (Makefile.am): Likewise.
74010         * modules/getdomainname (Makefile.am): Likewise.
74011         * modules/getgroups (Makefile.am): Likewise.
74012         * modules/gethostname (Makefile.am): Likewise.
74013         * modules/gethrxtime (Makefile.am): Likewise.
74014         * modules/getline (Makefile.am): Likewise.
74015         * modules/getloadavg (Makefile.am): Likewise.
74016         * modules/getlogin_r (Makefile.am): Likewise.
74017         * modules/getopt (Makefile.am): Likewise.
74018         * modules/getpass (Makefile.am): Likewise.
74019         * modules/getpass-gnu (Makefile.am): Likewise.
74020         * modules/getsubopt (Makefile.am): Likewise.
74021         * modules/gettime (Makefile.am): Likewise.
74022         * modules/gettimeofday (Makefile.am): Likewise.
74023         * modules/getugroups (Makefile.am): Likewise.
74024         * modules/getusershell (Makefile.am): Likewise.
74025         * modules/glob (Makefile.am): Likewise.
74026         * modules/group-member (Makefile.am): Likewise.
74027         * modules/hard-locale (Makefile.am): Likewise.
74028         * modules/hash (Makefile.am): Likewise.
74029         * modules/hmac-md5 (Makefile.am): Likewise.
74030         * modules/hmac-sha1 (Makefile.am): Likewise.
74031         * modules/human (Makefile.am): Likewise.
74032         * modules/idcache (Makefile.am): Likewise.
74033         * modules/imaxabs (Makefile.am): Likewise.
74034         * modules/imaxdiv (Makefile.am): Likewise.
74035         * modules/inet_ntop (Makefile.am): Likewise.
74036         * modules/inet_pton (Makefile.am): Likewise.
74037         * modules/inttostr (Makefile.am): Likewise.
74038         * modules/isapipe (Makefile.am): Likewise.
74039         * modules/lchown (Makefile.am): Likewise.
74040         * modules/long-options (Makefile.am): Likewise.
74041         * modules/lstat (Makefile.am): Likewise.
74042         * modules/malloc (Makefile.am): Likewise.
74043         * modules/mathl (Makefile.am): Likewise.
74044         * modules/mbchar (Makefile.am): Likewise.
74045         * modules/md2 (Makefile.am): Likewise.
74046         * modules/md4 (Makefile.am): Likewise.
74047         * modules/md5 (Makefile.am): Likewise.
74048         * modules/memcasecmp (Makefile.am): Likewise.
74049         * modules/memchr (Makefile.am): Likewise.
74050         * modules/memcmp (Makefile.am): Likewise.
74051         * modules/memcoll (Makefile.am): Likewise.
74052         * modules/memcpy (Makefile.am): Likewise.
74053         * modules/memmem (Makefile.am): Likewise.
74054         * modules/memmove (Makefile.am): Likewise.
74055         * modules/mempcpy (Makefile.am): Likewise.
74056         * modules/memrchr (Makefile.am): Likewise.
74057         * modules/memset (Makefile.am): Likewise.
74058         * modules/memxor (Makefile.am): Likewise.
74059         * modules/mkancesdirs (Makefile.am): Likewise.
74060         * modules/mkdir (Makefile.am): Likewise.
74061         * modules/mkdir-p (Makefile.am): Likewise.
74062         * modules/mkdtemp (Makefile.am): Likewise.
74063         * modules/mkstemp (Makefile.am): Likewise.
74064         * modules/mktime (Makefile.am): Likewise.
74065         * modules/modechange (Makefile.am): Likewise.
74066         * modules/mountlist (Makefile.am): Likewise.
74067         * modules/nanosleep (Makefile.am): Likewise.
74068         * modules/openat (Makefile.am): Likewise.
74069         * modules/pagealign_alloc (Makefile.am): Likewise.
74070         * modules/physmem (Makefile.am): Likewise.
74071         * modules/poll (Makefile.am): Likewise.
74072         * modules/posixtm (Makefile.am): Likewise.
74073         * modules/posixver (Makefile.am): Likewise.
74074         * modules/putenv (Makefile.am): Likewise.
74075         * modules/quote (Makefile.am): Likewise.
74076         * modules/quotearg (Makefile.am): Likewise.
74077         * modules/raise (Makefile.am): Likewise.
74078         * modules/read-file (Makefile.am): Likewise.
74079         * modules/readline (Makefile.am): Likewise.
74080         * modules/readlink (Makefile.am): Likewise.
74081         * modules/readtokens (Makefile.am): Likewise.
74082         * modules/readutmp (Makefile.am): Likewise.
74083         * modules/realloc (Makefile.am): Likewise.
74084         * modules/regex (Makefile.am): Likewise.
74085         * modules/rename (Makefile.am): Likewise.
74086         * modules/rename-dest-slash (Makefile.am): Likewise.
74087         * modules/rijndael (Makefile.am): Likewise.
74088         * modules/rmdir (Makefile.am): Likewise.
74089         * modules/rpmatch (Makefile.am): Likewise.
74090         * modules/safe-read (Makefile.am): Likewise.
74091         * modules/safe-write (Makefile.am): Likewise.
74092         * modules/same (Makefile.am): Likewise.
74093         * modules/save-cwd (Makefile.am): Likewise.
74094         * modules/savedir (Makefile.am): Likewise.
74095         * modules/setenv (Makefile.am): Likewise.
74096         * modules/settime (Makefile.am): Likewise.
74097         * modules/sha1 (Makefile.am): Likewise.
74098         * modules/sig2str (Makefile.am): Likewise.
74099         * modules/snprintf (Makefile.am): Likewise.
74100         * modules/stdlib-safer (Makefile.am): Likewise.
74101         * modules/stpcpy (Makefile.am): Likewise.
74102         * modules/stpncpy (Makefile.am): Likewise.
74103         * modules/strcase (Makefile.am): Likewise.
74104         * modules/strcasestr (Makefile.am): Likewise.
74105         * modules/strchrnul (Makefile.am): Likewise.
74106         * modules/strcspn (Makefile.am): Likewise.
74107         * modules/strdup (Makefile.am): Likewise.
74108         * modules/strerror (Makefile.am): Likewise.
74109         * modules/strftime (Makefile.am): Likewise.
74110         * modules/strndup (Makefile.am): Likewise.
74111         * modules/strnlen (Makefile.am): Likewise.
74112         * modules/strpbrk (Makefile.am): Likewise.
74113         * modules/strsep (Makefile.am): Likewise.
74114         * modules/strstr (Makefile.am): Likewise.
74115         * modules/strtod (Makefile.am): Likewise.
74116         * modules/strtoimax (Makefile.am): Likewise.
74117         * modules/strtok_r (Makefile.am): Likewise.
74118         * modules/strtol (Makefile.am): Likewise.
74119         * modules/strtoll (Makefile.am): Likewise.
74120         * modules/strtoul (Makefile.am): Likewise.
74121         * modules/strtoull (Makefile.am): Likewise.
74122         * modules/strtoumax (Makefile.am): Likewise.
74123         * modules/strverscmp (Makefile.am): Likewise.
74124         * modules/time_r (Makefile.am): Likewise.
74125         * modules/timegm (Makefile.am): Likewise.
74126         * modules/tmpfile-safer (Makefile.am): Likewise.
74127         * modules/unistd-safer (Makefile.am): Likewise.
74128         * modules/unlinkdir (Makefile.am): Likewise.
74129         * modules/userspec (Makefile.am): Likewise.
74130         * modules/utime (Makefile.am): Likewise.
74131         * modules/utimecmp (Makefile.am): Likewise.
74132         * modules/utimens (Makefile.am): Likewise.
74133         * modules/vasnprintf (Makefile.am): Likewise.
74134         * modules/vasprintf (Makefile.am): Likewise.
74135         * modules/vsnprintf (Makefile.am): Likewise.
74136         * modules/xalloc (Makefile.am): Likewise.
74137         * modules/xgetcwd (Makefile.am): Likewise.
74138         * modules/xnanosleep (Makefile.am): Likewise.
74139         * modules/xreadlink (Makefile.am): Likewise.
74140         * modules/xstrtod (Makefile.am): Likewise.
74141         * modules/xstrtol (Makefile.am): Likewise.
74142         * modules/xstrtold (Makefile.am): Likewise.
74143         * modules/yesno (Makefile.am): Likewise.
74144
74145 2006-10-12  Jim Meyering  <jim@meyering.net>
74146
74147         * m4/getloadavg.m4: Revert the change below.
74148
74149         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74150         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74151         fail with a symlink, which is what coreutils' ./bootstrap now
74152         creates by default.
74153
74154 2006-10-12  Bruno Haible  <bruno@clisp.org>
74155
74156         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74157         mingw.
74158         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74159         MSVC and mingw explicitly.
74160
74161 2006-10-11  Simon Josefsson  <jas@extundo.com>
74162             Bruno Haible  <bruno@clisp.org>
74163
74164         Add support for multiple gnulib-tool invocations in the scope of a
74165         single configure.ac file.
74166         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74167         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74168         with the same contents as the _LIBADD variable.
74169         (func_emit_initmacro_start, func_emit_initmacro_end,
74170         func_emit_initmacro_done): New functions.
74171         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74172         gl_LIBOBJS and gl_LTLIBOBJS.
74173
74174 2006-10-11  Bruno Haible  <bruno@clisp.org>
74175
74176         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74177         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74178         autoreconf. Instead, invoke autopoint explicitly but move back the
74179         *.m4 files from gnulib.
74180
74181 2006-10-11  Bruno Haible  <bruno@clisp.org>
74182
74183         * gnulib-tool (func_usage): Make module names after --create-testdir
74184         optional.
74185         (func_create_testdir): If no module was specified, use nearly all
74186         modules.
74187
74188 2006-10-12  Jim Meyering  <jim@meyering.net>
74189
74190         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74191         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74192         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74193         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74194         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74195         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74196         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74197         (fts_set_stat_required): New function.
74198         (fts_open): Defer the calls to fts_stat, if possible or requested.
74199         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74200         into fts_stat itself.
74201         (fts_read): Perform any required (deferred) fts_stat call.
74202         (fts_build): Likewise, for the directory we're about to open and read.
74203         In the readdir loop, carefully decide whether each entry will require
74204         an eventual call to fts_stat, using dirent.d_type info if available.
74205         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74206         a command line argument into this function.  Update all callers.
74207         Map a return value of FTS_DOT to FTS_D for a command line argument.
74208         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74209         Thanks to Miklos Szeredi for his tenacity and for the initial
74210         bug report about "find" failing on a FUSE-based file system.
74211
74212         * lib/fts.c (fts_open): Use consistent indentation.
74213
74214 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74215
74216         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74217         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74218         reported by Jim Meyering.  All uses of cache variables renamed
74219         to match Autoconf's.
74220         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74221         the other one.
74222
74223         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74224         Fix misspelling in diagnostic.
74225
74226 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74227
74228         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74229         defined.  Problem reported by Matthew Woehlke.
74230
74231         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74232         Add support for Tandem NonStop R series.
74233         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74234         Use new macro.
74235
74236         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74237         (has_trailing_slash): Omit size arg; all callers changed.
74238         Omit 'inline', since it doesn't help performance and we'd
74239         need to configure it.
74240         Don't count //, ///, etc. as having a trailing slash.
74241         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74242         (rpl_rename_dest_slash): On failure, use rename's errno rather
74243         than (in some cases) an incorrect or junk errno.
74244         Simplify code by removing need to compute length; this does
74245         cause it to make two passes instead of one over the file name,
74246         but it's worth it.
74247
74248         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74249         change, since Autoconf's version may no longer be appropriate now
74250         that we are using CVS Autoconf's version.  Add support for Tandem.
74251
74252 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74253             Bruno Haible  <bruno@clisp.org>
74254
74255         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74256         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74257         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74258         gl_AC_TYPE_LONG_LONG.
74259
74260         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74261         instead of HAVE_LONG_LONG.
74262         * lib/printf-args.c (printf_fetchargs): Likewise.
74263         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74264         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74265         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74266         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74267         gl_AC_TYPE_LONG_LONG.
74268
74269 2006-10-11  Bruno Haible  <bruno@clisp.org>
74270
74271         * m4/longlong.m4: Add comments.
74272         * m4/ulonglong.m4: Likewise.
74273
74274 2006-10-10  Bruno Haible  <bruno@clisp.org>
74275
74276         Make it possible to #define stpcpy, strdup to aliases.
74277         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74278         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74279
74280 2006-10-10  Bruno Haible  <bruno@clisp.org>
74281
74282         Make it possible to #define gcd to an alias.
74283         * lib/gcd.c: Include config.h.
74284
74285 2006-10-10  Bruno Haible  <bruno@clisp.org>
74286
74287         Make it possible to #define c_isascii to an alias.
74288         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74289         defined. Undefine the macros before defining them, to avoid gcc
74290         warnings.
74291         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74292         define NO_C_CTYPE_MACROS early.
74293
74294 2006-10-10  Bruno Haible  <bruno@clisp.org>
74295
74296         Make it possible to #define set_program_name to an alias.
74297         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74298         ENABLE_RELOCATABLE early.
74299
74300 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74301
74302         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74303         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74304         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74305         More generally, don't assume that 64-bit signed int is available
74306         if unsigned int is, and vice versa.
74307         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74308         unsigned symbols, not on their signed counterparts.
74309         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74310         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74311         (UINT64_C, UINTMAX_C):
74312         Likewise.
74313         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74314         unsigned counterparts.
74315         (Have_long_long, Unsigned): New macros.
74316         (Int): Renamed from INT.
74317         (strtoimax): Use the new macros.
74318         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74319         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74320         * modules/inttypes (inttypes.h): Substitute
74321         HAVE_UNSIGNED_LONG_LONG_INT.
74322         * modules/stdint (stdint.h): Likewise.
74323         (Files): Add m4/ulonglong.m4.
74324
74325 2006-10-10  Bruno Haible  <bruno@clisp.org>
74326
74327         Fix a gcc -Wshadow warning.
74328         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74329         to 'bucket'.
74330         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74331         gl_linked_indexof_from_to): Likewise.
74332         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74333         Likewise.
74334         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74335         Likewise.
74336         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74337         Reported by Eric Blake.
74338
74339 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74340
74341         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74342         for NetBSD.  Problem reported by Bruno Haible.
74343
74344 2006-10-09  Jim Meyering  <jim@meyering.net>
74345
74346         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74347         Patch from Bruno Haible.
74348
74349 2006-10-09  Jim Meyering  <jim@meyering.net>
74350
74351         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74352         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74353         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74354
74355 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74356
74357         Don't include <config.h> twice; this doesn't work in some cases,
74358         e.g., when config.h has "#define intmax_t long long int" and
74359         we include <config.h>, <inttypes.h>, <config.h> in that order.
74360         Problem reported by Matthew Woehlke in:
74361         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74362         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74363         * lib/fts-cycle.c: Don't include config.h.
74364         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74365         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74366         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74367         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74368         inttypes.h.
74369         * lib/xstrtoumax.c: Likewise.
74370         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74371         __strtol and the like, so that this module is more like its siblings.
74372         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74373         Remove; no longer needed now that we assume gnulib inttypes.h.
74374
74375 2006-10-08  Bruno Haible  <bruno@clisp.org>
74376
74377         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74378         option.
74379
74380 2006-10-07  Jim Meyering  <jim@meyering.net>
74381
74382         * modules/inttypes (inttypes.h): Revert what seems to have been
74383         an inadvertent part of today's change: use "|", not "/" in the
74384         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74385
74386 2006-10-07  Bruno Haible  <bruno@clisp.org>
74387
74388         * modules/sublist: New file.
74389
74390 2006-10-07  Bruno Haible  <bruno@clisp.org>
74391
74392         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74393         * modules/argz (argz.h): Likewise.
74394         * modules/arpa_inet (arpa/inet.h): Likewise.
74395         * modules/byteswap (byteswap.h): Likewise.
74396         * modules/configmake (configmake.h): Likewise.
74397         * modules/fcntl (fcntl.h): Likewise.
74398         * modules/fnmatch (fnmatch.h): Likewise.
74399         * modules/getopt (getopt.h): Likewise.
74400         * modules/glob (glob.h): Likewise.
74401         * modules/inttypes (inttypes.h): Likewise.
74402         * modules/netinet_in (netinet/in.h): Likewise.
74403         * modules/poll (poll.h): Likewise.
74404         * modules/stdbool (stdbool.h): Likewise.
74405         * modules/stdint (stdint.h): Likewise.
74406         * modules/sys_select (sys/select.h): Likewise.
74407         * modules/sys_socket (sys/socket.h): Likewise.
74408         * modules/sys_stat (sys/stat.h): Likewise.
74409         * modules/sysexits (sysexits.h): Likewise.
74410         * modules/unistd (unistd.h): Likewise.
74411         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74412         Add a "DO NOT EDIT" comment to the generated file.
74413         (func_import): Likewise for gnulib-comp.m4.
74414
74415 2006-10-07  Bruno Haible  <bruno@clisp.org>
74416
74417         * lib/gl_sublist.h: New file.
74418         * lib/gl_sublist.c: New file.
74419
74420 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74423         name (relative to the original working directory) and the file
74424         name component (relative to the temporary working directory).  All
74425         callers changed.
74426         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74427         * lib/mkdir-p.c (make_dir_parents): Likewise.
74428         * lib/mkdir-p.h (make_dir_parents): Likewise.
74429
74430 2006-10-06  Eric Blake  <ebb9@byu.net>
74431
74432         Define several macros for use by the clean-temp module.
74433         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74434         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74435         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74436
74437         * lib/clean-temp.h (close_stream_temp): New declaration.
74438         * lib/clean-temp.c (includes): Pull in headers according to what
74439         other modules are in use.
74440         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74441
74442 2006-10-06  Bruno Haible  <bruno@clisp.org>
74443
74444         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74445         instead of fopen, fwriteerror.
74446
74447 2006-10-06  Bruno Haible  <bruno@clisp.org>
74448
74449         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74450         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74451         int.
74452         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74453         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74454         Return an error indicator.
74455         Suggested by Eric Blake.
74456
74457 2006-10-06  Bruno Haible  <bruno@clisp.org>
74458
74459         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74460         Reported by Eric Blake.
74461
74462 2006-10-06  Bruno Haible  <bruno@clisp.org>
74463
74464         * modules/closeout (Description): Mention stderr too.
74465
74466 2006-10-06  Bruno Haible  <bruno@clisp.org>
74467         and Paul Eggert  <eggert@cs.ucla.edu>
74468
74469         * lib/closeout.c (close_stdout): Also close stderr.
74470         * lib/closeout.h: Update comment.
74471
74472 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74473
74474         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74475         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74476         * lib/dirchownmod.c: Include lchown.h.
74477         * lib/lchown.c: Don't include files that lchown.h now includes.
74478         Don't declare chown, since lchown.h now does that.
74479         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74480         (lchown): Define to rpl_chown if lchown is declared but
74481         does not exist.  Declare using a prototype if lchown is not
74482         declared.  Add a copyright notice.
74483         * lib/mkstemp.h: Include <unistd.h>.
74484         * lib/openat.c: Include lchown.h.
74485
74486         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74487         we now test for that separately.
74488         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74489         rather than O_NOFOLLOW, when testing whether it's possible to
74490         avoid a race condition reliably.
74491         * lib/savewd.c (savewd_chdir): Likewise.
74492
74493         Remove macros that are no longer needed now that stdint.h is
74494         reliable.
74495         * lib/fsusage.c (UINTMAX_MAX): Remove.
74496         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74497         * lib/utimecmp.c (SIZE_MAX): Remove.
74498
74499         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74500
74501         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74502         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74503         O_NOATIME works.
74504
74505 2006-10-05  Bruno Haible  <bruno@clisp.org>
74506
74507         * lib/gl_list.h (gl_sortedlist_search_from_to,
74508         gl_sortedlist_indexof_from_to): New declarations.
74509         (gl_list_implementation): New fields sortedlist_search_from_to,
74510         sortedlist_indexof_from_to.
74511         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74512         inline functions.
74513         * lib/gl_list.c (gl_sortedlist_search_from_to,
74514         gl_sortedlist_indexof_from_to): New functions.
74515         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74516         function.
74517         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74518         (gl_array_sortedlist_search_from_to): New function.
74519         (gl_array_list_implementation): Update.
74520         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74521         function.
74522         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74523         (gl_carray_sortedlist_search_from_to): New function.
74524         (gl_carray_list_implementation): Update.
74525         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74526         gl_linked_sortedlist_indexof_from_to): New functions.
74527         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74528         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74529         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74530         gl_tree_sortedlist_indexof_from_to): New functions.
74531         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74532         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74533         Update.
74534         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74535         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74536         Update.
74537
74538 2006-10-05  Bruno Haible  <bruno@clisp.org>
74539
74540         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74541         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74542         (struct gl_list_implementation): Add fields search_from_to,
74543         indexof_from_to. Remove fields search, indexof.
74544         (gl_list_search): Use the search_from_to method.
74545         (gl_list_search_from, gl_list_search_from_to): New functions.
74546         (gl_list_indexof): Use the indexof_from_to method.
74547         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74548         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74549         (gl_list_search_from, gl_list_search_from_to): New functions.
74550         (gl_list_indexof): Use the indexof_from_to method.
74551         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74552         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74553         gl_array_indexof. Add start_index, end_index arguments.
74554         (gl_array_search_from_to): Renamed from gl_array_search. Add
74555         start_index, end_index arguments.
74556         (gl_array_remove, gl_array_list_implementation): Update.
74557         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74558         gl_carray_indexof. Add start_index, end_index arguments.
74559         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74560         start_index, end_index arguments.
74561         (gl_carray_remove, gl_carray_list_implementation): Update.
74562         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74563         gl_linked_search. Add start_index, end_index arguments.
74564         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74565         start_index, end_index arguments.
74566         (gl_linked_remove): Update.
74567         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74568         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74569         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74570         field to 'size_t'.
74571         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74572         gl_tree_search. Add start_index, end_index arguments.
74573         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74574         start_index, end_index arguments.
74575         (gl_tree_remove): Update.
74576         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74577         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74578         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74579         function.
74580         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74581         gl_tree_search. Add start_index, end_index arguments.
74582         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74583         start_index, end_index arguments.
74584         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74585         Update.
74586         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74587
74588 2006-10-05  Bruno Haible  <bruno@clisp.org>
74589
74590         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74591
74592         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74593         fwriteerror_temp): New declarations.
74594         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74595         (descriptors): New variable.
74596         (cleanup): First, close the descriptors.
74597         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74598         fclose_temp, fwriteerror_temp): New functions.
74599
74600 2006-10-04  Jim Meyering  <jim@meyering.net>
74601
74602         * lib/fts.c (fts_open): Tiny comment change.
74603
74604 2006-10-04  Bruno Haible  <bruno@clisp.org>
74605
74606         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74607         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74608         gl_LOCK_BODY.
74609         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74610         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74611         gl_LOCK_EARLY_BODY.
74612         (gl_LOCK): Require gl_LOCK_BODY.
74613
74614 2006-10-04  Bruno Haible  <bruno@clisp.org>
74615
74616         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74617         (gl_oset_search_atleast): New declaration.
74618         (struct gl_oset_implementation): Add field 'search_atleast'.
74619         (gl_oset_search_atleast): New inline function.
74620         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74621         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74622         (gl_array_oset_implementation): Update.
74623         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74624         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74625         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74626
74627 2006-10-04  Bruno Haible  <bruno@clisp.org>
74628
74629         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74630
74631 2006-10-03  Bruno Haible  <bruno@clisp.org>
74632
74633         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74634         from gl_avltreehash_list_implementation.
74635
74636 2006-10-03  Bruno Haible  <bruno@clisp.org>
74637
74638         * lib/gl_oset.c (gl_oset_add): Fix return type.
74639
74640 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74641
74642         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74643
74644 2006-10-02  Eric Blake  <ebb9@byu.net>
74645
74646         * modules/strnlen (Depends-on): Add extensions.
74647
74648 2006-10-02  Eric Blake  <ebb9@byu.net>
74649
74650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74651         definition in 2.60+.
74652
74653 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74654
74655         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74656         checks.
74657
74658 2006-10-02  Bruno Haible  <bruno@clisp.org>
74659
74660         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74661         to the AUTOMAKE_OPTIONS.
74662         Reported by Jim Meyering.
74663
74664 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         Work around bug in Solaris 10 /proc file system:
74667         /proc/self/fd/NNN/.. isn't the parent directory of
74668         the directory whose file descriptor is NNN.  This needs to
74669         be worked around at run time, not compile time, since a
74670         program might be built on Solaris 8, where things work, and
74671         run on Solaris 10.
74672         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74673         to use the following interface instead:
74674         (OPENAT_BUFFER_SIZE): New macro.
74675         (openat_proc_name): New function.
74676         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74677         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74678         Likewise.
74679         * lib/openat-proc.c: New file.
74680         * modules/openat (Files): Add lib/openat-proc.c.
74681         (Depends-on): Add same-inode, stdbool.
74682         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74683
74684 2006-09-29  Bruno Haible  <bruno@clisp.org>
74685
74686         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74687         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74688         argument. Set stdout_closed before testing for ferror, not after.
74689         (fwriteerror, fwriteerror_no_ebadf): New functions.
74690
74691 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74692
74693         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74694
74695 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74696
74697         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74698         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74699
74700 2006-09-28  Jim Meyering  <jim@meyering.net>
74701
74702         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74703         Include <unistd.h>.
74704
74705 2006-09-28  Bruno Haible  <bruno@clisp.org>
74706
74707         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74708         * modules/linkedhash-list (Depends-on): Likewise.
74709         * modules/rbtreehash-list (Depends-on): Likewise.
74710
74711 2006-09-28  Bruno Haible  <bruno@clisp.org>
74712
74713         * lib/strndup.h: Simplify the redefinition of strndup.
74714         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74715         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74716
74717 2006-09-28  Bruno Haible  <bruno@clisp.org>
74718
74719         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74720         * lib/gl_linkedhash_list.c: Likewise.
74721         * lib/gl_rbtreehash_list.c: Likewise.
74722
74723 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74724
74725         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74726         getaddrinfo.
74727
74728         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74729         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74730         it causes <stdio_ext.h> to cause a compile-time error.
74731         Problem reported by Nelson H. F. Beebe.
74732         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74733         of HAVE_DECL___PENDING.
74734
74735         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74736         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74737         declaration.
74738
74739 2006-09-27  Jim Meyering  <jim@meyering.net>
74740
74741         This file could end up with a definition for a function
74742         named __strndup, rather than rpl_strndup on a system with
74743         incomplete weak_alias support.
74744         * lib/strndup.c (strndup): Rename from __strndup.
74745         Remove #defines that used to map __strndup to strndup.
74746         Don't use K&R prototypes.
74747         Remove LIBC-related code, since this file is not sync'd with glibc.
74748         * lib/strndup.h: Revamp, accordingly.
74749         * m4/strndup.m4: Modernize.
74750
74751 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74752
74753         * modules/savewd (Depends-on): Add 'raise'.
74754         * lib/savewd.c: Include <signal.h>, for 'raise'.
74755
74756 2006-09-26  Jim Meyering  <jim@meyering.net>
74757
74758         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74759         when we detect Darwin 8.7.0's acl_get_file bug.
74760         Rearrange to perform the new (below) run-test while $LIBS
74761         contains any acl-related library.  Set USE_ACL at the end.
74762         (gl_ACL_GET_FILE): New function.
74763
74764 2006-09-26  Eric Blake  <ebb9@byu.net>
74765
74766         * lib/verror.c: Include <config.h> unconditionally.
74767
74768 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * modules/clock-time (Maintainer): Add self.
74771         * modules/getlogin_r (Depends-on): Add extensions.
74772
74773 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74774
74775         * modules/clock-time: New module.
74776         * modules/nanosleep (Depends-on): Add clock-time.
74777         * modules/gethrxtime (Depends-on): Likewise.
74778         * modules/gettime (Depends-on): Likewise.
74779         * modules/settime (Depends-on): Likewise.
74780
74781         * modules/fts-lgpl: Depend on openat.
74782         * modules/mkancesdirs: Depend on savewd.
74783         * modules/mkdir-p: Likewise.
74784
74785 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74786
74787         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74788
74789         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74790         `gl_have_arbitrary_file_name_length_limit' to
74791         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74792         actually works between configure runs.
74793
74794 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74795             Bruno Haible  <bruno@clisp.org>
74796
74797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74798
74799 2006-09-25  Jim Meyering  <jim@meyering.net>
74800
74801         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74802         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74803
74804 2006-09-25  Eric Blake  <ebb9@byu.net>
74805
74806         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74807         exec's in 2006-09-18 patch when shuffling fds.
74808
74809 2006-09-25  Bruno Haible  <bruno@clisp.org>
74810
74811         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74812         Reported by Jim Meyering.
74813
74814 2006-09-24  Jim Meyering  <jim@meyering.net>
74815
74816         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74817         compare a pointer against a literal "0".  That caused failures with
74818         at least HP-UX's hpcc.
74819
74820 2006-09-22  Simon Josefsson  <jas@extundo.com>
74821
74822         * modules/gc-sha1:
74823         * modules/gc-md4:
74824         * modules/gc-hmac-sha1:
74825         * modules/gc-hmac-md5:
74826         * modules/gc-des:
74827         * modules/gc-arcfour: Distribute more files.
74828
74829 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74830
74831         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74832         (gl_linked_iterator_from_to): Initialize struct completely.
74833         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74834         (gl_tree_iterator_from_to): Likewise
74835         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74836         * lib/gl_array_list.c [lint] (gl_array_iterator)
74837         (gl_array_iterator_from_to): Likewise.
74838         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74839         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74840         (gl_carray_iterator_from_to): Likewise.
74841
74842         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74843         * lib/md4.c (md4_process_block): Remove unused variable.
74844         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74845         parentheses for clarity.
74846
74847 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74848
74849         * modules/bison-i18n (Depends-on): Add gettext.
74850
74851 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74852
74853         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74854         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74855         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74856         also add missing comma that caused broken test.
74857         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74858         stdlib.h, for `abort'.
74859         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74860         variables.
74861         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74862         include unistd.h if present, for `rmdir'.
74863         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74864         variables.
74865         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74866         in the process include standard headers for prototypes.
74867         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74868         gets declared on GNU/Linux.
74869         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74870         unistd.h, for `rmdir'.
74871         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74872
74873         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74874         always true.
74875         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74876
74877         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74878
74879 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74880
74881         * gnulib-tool (func_version): Create output all at once.  This
74882         may help avoid triggering unnecessary SIGPIPEs, and at any
74883         rate it doesn't hurt.
74884
74885 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74886             Bruno Haible  <bruno@clisp.org>
74887
74888         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74889         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74890         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74891
74892         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74893         (gl_FUNC_VASPRINTF): Invoke it.
74894
74895 2006-09-22  Bruno Haible  <bruno@clisp.org>
74896
74897         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74898         getloadavg.c as first argument.
74899
74900 2006-09-22  Bruno Haible  <bruno@clisp.org>
74901
74902         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74903         at the beginning of the gl_INIT macro.
74904         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74905         gl_GETLOADAVG.
74906
74907 2006-09-22  Bruno Haible  <bruno@clisp.org>
74908
74909         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74910         module.
74911         Suggested by Ralf Wildenhues.
74912
74913 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74914
74915         Import this patch from libc:
74916
74917         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74918
74919         * lib/regex_internal.c (re_string_reconstruct): Handle
74920         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74921         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74922         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74923         re_string_context_at.
74924
74925         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74926         now requires it.
74927         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74928         gl_REGEX now does it for us.
74929         (gl_REGEX): Add test taken from
74930         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74931
74932         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74933         Check that large offsets work.  Modernize Autoconf usages.
74934         Prefer "yes" to mean a good thing rather than a bad.
74935         Don't put "#define mkstemp" in config.h, as this might interfere
74936         with standard system headers that "#define mkstemp mkstemp64".
74937
74938         * modules/mkstemp (Depends-on): Add extensions, so that
74939         mkstemp is visible on some platforms.
74940         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74941         (Include): Change to "mkstemp.h" from <stdlib.h>.
74942         (Files): Add mkstemp.h.
74943
74944         * lib/mkstemp.h: New file, since some standard headers
74945         #define mkstemp.
74946         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74947         Include "mkstemp.h".
74948         Make the _LIBC code resemble glibc original more,
74949         e.g., use K&R style.
74950         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74951         (mkstemp): Remove, since mkstemp.h does this for us.
74952         * lib/stdlib--.h: Include mkstemp.h.
74953
74954         Import this patch from libc:
74955
74956         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74957
74958         * lib/tempname.c (__gen_tempname): Change attempts_min
74959         into a macro.  Use preprocessor to decide how to initialize
74960         attempts [Coverity CID 67].
74961
74962 2006-09-20  Bruno Haible  <bruno@clisp.org>
74963
74964         * lib/mkdtemp.c: Import from libc.
74965         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74966                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74967                 attempts_min into a macro.  Use preprocessor to decide how to
74968                 initialize attempts [Coverity CID 67].
74969         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74970                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74971                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74972
74973 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74974
74975         * gnulib-tool (func_exit): New function, to allow to pass the
74976         exit status portably through the trap.  Use everywhere.
74977         (--help, --version): Signal a write error.
74978         (trap): catch SIGPIPE, for write errors.
74979         Exit at the end of the trap, with the correct exit status.
74980
74981 2006-09-19  Karl Berry  <karl@gnu.org>
74982
74983         * doc/gnulib.texi: note about the license texinfo files.
74984
74985 2006-09-19  Eric Blake  <ebb9@byu.net>
74986
74987         * gnulib-tool: Avoid space-tab.
74988
74989 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74990
74991         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74992         that prevented coreutils 6.1 from building.  Problem reported
74993         by Petter Reinholdtsen.
74994
74995 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74996
74997         * gnulib-tool (avoidlist): Fix typo that broke options like
74998         --avoid=lock that are used by coreutils bootstrap.
74999
75000 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
75001
75002         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
75003         more systematically.
75004
75005 2006-09-18  Jim Meyering  <jim@meyering.net>
75006
75007         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
75008
75009 2006-09-18  Bruno Haible  <bruno@clisp.org>
75010
75011         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75012
75013 2006-09-18  Bruno Haible  <bruno@clisp.org>
75014
75015         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75016         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75017         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75018         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75019         * m4/gettext.m4: Require autoconf >= 2.52.
75020         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75021         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75022         of gl_cv_header_inttypes_h.
75023
75024 2006-09-18  Bruno Haible  <bruno@clisp.org>
75025
75026         * lib/javaversion.c: Include configmake.h.
75027
75028 2006-09-18  Bruno Haible  <bruno@clisp.org>
75029
75030         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75031         avoid that the while loops be executed in a subshell.
75032
75033 2006-09-18  Bruno Haible  <bruno@clisp.org>
75034
75035         * MODULES.html.sh (func_module): Break long lines.
75036         Suggested by Bruce Korb <bkorb@gnu.org>.
75037
75038 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75039
75040         Speed up by a factor of 1.12.
75041         * gnulib-tool (nl): New variable.
75042         (func_import): Rewrite include directive extraction to only read each
75043         directive once.
75044
75045 2006-09-17  Bruno Haible  <bruno@clisp.org>
75046
75047         * modules/javaversion (Makefile.am): Remove DEFS setting.
75048         (Depends-on): Add configmake, for PKGDATADIR definition.
75049
75050 2006-09-17  Bruno Haible  <bruno@clisp.org>
75051
75052         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75053
75054 2006-09-17  Bruno Haible  <bruno@clisp.org>
75055
75056         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75057         (func_modules_transitive_closure, func_modules_add_dummy,
75058         func_modules_to_filelist, func_import, func_create_testdir,
75059         func_create_megatestdir, ...): Use it wherever possible.
75060         Suggested by Ralf Wildenhues.
75061
75062 2006-09-16  Karl Berry  <karl@gnu.org>
75063
75064         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75065         to avoid sectioning errors.
75066         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75067         [ifinfo]: blank line after @center-ed titles.
75068         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75069         Spell FSF address consistently with others.
75070         (These changes approved by rms.)
75071
75072 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75073
75074         Speed up by a factor of 1.61.
75075         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75076         already checked module names again.
75077
75078 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75079
75080         Speed up by a factor of 1.13.
75081         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75082         for new_files, and the input to func_add_or_update.
75083
75084 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75085
75086         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75087         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75088
75089 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75090
75091         * modules/mkancesdirs (Depends-on): Add fcntl.
75092         * modules/savewd: New file.
75093         * MODULES.html.sh (File system functions): Add savewd.
75094
75095         * modules/configmake (Makefile.am): Add support for the
75096         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75097
75098 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75099
75100         * m4/savewd.m4: New file.
75101
75102 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75103
75104         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75105         (dirchownmod): New arg FD.  All callers changed.
75106         Use FD rather than opening the directory ourself, as opening is
75107         now the caller's responsibility.
75108         * lib/dirchownmod.h: Likewise.
75109         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75110         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75111         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75112         (test_dir): Remove.
75113         (mkancesdirs): Return length of prefix of FILE that has already
75114         been made, or -2 if there is a child doing the work.  Redo
75115         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75116         ".", and treat ".." specially since it might stray back into
75117         already-created areas.  Use a subprocess if necessary.  New arg
75118         WD; all users changed.  MAKE_DIR function should now return 1
75119         if it creates a directory that is not readable.  Return -2 if
75120         a child process is spun off.
75121         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75122         Adjust signature to match code.
75123         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75124         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75125         all users changed.
75126         * lib/savewd.c, lib/savewd.h: New files.
75127
75128 2006-09-15  Jim Meyering  <jim@meyering.net>
75129
75130         * modules/rename-dest-slash: New module.
75131         * MODULES.html.sh (posix_compat): Add it here.
75132
75133         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75134
75135 2006-09-15  Jim Meyering  <jim@meyering.net>
75136
75137         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75138         file.
75139
75140         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75141
75142 2006-09-15  Jim Meyering  <jim@meyering.net>
75143
75144         * lib/rename-dest-slash.c (has_trailing_slash): Use
75145         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75146         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75147         test before testing whether SRC is a directory.
75148         Suggestions from Bruno Haible.
75149
75150         Avoid a warning about an unused variable.
75151         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75152         into the #ifdef block where it's used.
75153
75154         * lib/rename-dest-slash.c: New file.
75155
75156 2006-09-14  Bruno Haible  <bruno@clisp.org>
75157
75158         * lib/allocsa.c: Include <config.h> unconditionally.
75159         * lib/asnprintf.c: Likewise.
75160         * lib/asprintf.c: Likewise.
75161         * lib/c-strcasecmp.c: Likewise.
75162         * lib/c-strcasestr.c: Likewise.
75163         * lib/c-strncasecmp.c: Likewise.
75164         * lib/c-strstr.c: Likewise.
75165         * lib/classpath.c: Likewise.
75166         * lib/clean-temp.c: Likewise.
75167         * lib/concatpath.c: Likewise.
75168         * lib/copy-file.c: Likewise.
75169         * lib/csharpcomp.c: Likewise.
75170         * lib/csharpexec.c: Likewise.
75171         * lib/execute.c: Likewise.
75172         * lib/fatal-signal.c: Likewise.
75173         * lib/findprog.c: Likewise.
75174         * lib/fwriteerror.c: Likewise.
75175         * lib/gl_array_list.c: Likewise.
75176         * lib/gl_array_oset.c: Likewise.
75177         * lib/gl_avltree_list.c: Likewise.
75178         * lib/gl_avltree_oset.c: Likewise.
75179         * lib/gl_avltreehash_list.c: Likewise.
75180         * lib/gl_carray_list.c: Likewise.
75181         * lib/gl_linked_list.c: Likewise.
75182         * lib/gl_linkedhash_list.c: Likewise.
75183         * lib/gl_list.c: Likewise.
75184         * lib/gl_oset.c: Likewise.
75185         * lib/gl_rbtree_list.c: Likewise.
75186         * lib/gl_rbtree_oset.c: Likewise.
75187         * lib/gl_rbtreehash_list.c: Likewise.
75188         * lib/imaxabs.c: Likewise.
75189         * lib/imaxdiv.c: Likewise.
75190         * lib/javacomp.c: Likewise.
75191         * lib/javaexec.c: Likewise.
75192         * lib/javaversion.c: Likewise.
75193         * lib/linebreak.c: Likewise.
75194         * lib/localcharset.c: Likewise.
75195         * lib/lock.c: Likewise.
75196         * lib/mbchar.c: Likewise.
75197         * lib/mbswidth.c: Likewise.
75198         * lib/mkdtemp.c: Likewise.
75199         * lib/pipe.c: Likewise.
75200         * lib/printf-args.c: Likewise.
75201         * lib/printf-parse.c: Likewise.
75202         * lib/progname.c: Likewise.
75203         * lib/progreloc.c: Likewise.
75204         * lib/readlink.c: Likewise.
75205         * lib/sh-quote.c: Likewise.
75206         * lib/stpcpy.c: Likewise.
75207         * lib/stpncpy.c: Likewise.
75208         * lib/strcasecmp.c: Likewise.
75209         * lib/strcasestr.c: Likewise.
75210         * lib/strcspn.c: Likewise.
75211         * lib/striconv.c: Likewise.
75212         * lib/strncasecmp.c: Likewise.
75213         * lib/strnlen1.c: Likewise.
75214         * lib/strstr.c: Likewise.
75215         * lib/strtok_r.c: Likewise.
75216         * lib/tls.c: Likewise.
75217         * lib/tmpdir.c: Likewise.
75218         * lib/unicodeio.c: Likewise.
75219         * lib/unsetenv.c: Likewise.
75220         * lib/vasnprintf.c: Likewise.
75221         * lib/vasprintf.c: Likewise.
75222         * lib/wait-process.c: Likewise.
75223         * lib/xallocsa.c: Likewise.
75224         * lib/xsetenv.c: Likewise.
75225         * lib/xstriconv.c: Likewise.
75226
75227 2006-09-13  Simon Josefsson  <jas@extundo.com>
75228
75229         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75230         that internally, suggested by Ralf Wildenhues
75231         <Ralf.Wildenhues@gmx.de>.
75232
75233 2006-09-13  Simon Josefsson  <jas@extundo.com>
75234
75235         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75236         @LIBOBJS@.
75237         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75238
75239 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75240
75241         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75242         longer worry about uses that don't define HAVE_CONFIG_H.
75243         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75244         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75245         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75246         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75247         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75248         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75249         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75250         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75251         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75252         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75253         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75254         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75255         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75256         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75257         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75258         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75259         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75260         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75261         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75262         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75263         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75264         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75265         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75266         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75267         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75268         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75269         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75270         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75271         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75272         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75273         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75274         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75275         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75276         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75277         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75278         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75279         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75280         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75281         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75282         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75283         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75284         Likewise.
75285
75286 2006-09-13  Eric Blake  <ebb9@byu.net>
75287
75288         * lib/getopt.c: Fix typo in last commit.
75289
75290 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75291
75292         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75293         dgettext.
75294
75295 2006-09-12  Jim Meyering  <jim@meyering.net>
75296
75297         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75298         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75299         Reported by Nelson H. F. Beebe.
75300
75301 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75302
75303         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75304         program_invocation_name and program_invocation_short_name are
75305         initialized.
75306         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75307         and program_invocation_short_name to argp.h, so they are visible
75308         to user programs.
75309         * lib/argp.h: Likewise
75310
75311 2006-09-10  Bruno Haible  <bruno@clisp.org>
75312
75313         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75314         m4/inttypes_h.m4, m4/uintmax_t.m4.
75315
75316 2006-09-10  Bruno Haible  <bruno@clisp.org>
75317
75318         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75319         gl_AC_TYPE_UINTMAX_T.
75320
75321 2006-09-10  Bruno Haible  <bruno@clisp.org>
75322
75323         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75324
75325 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75326
75327         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75328         convention.  Text proposed by Bruno Haible.
75329         (struct argp_option): Document the use of N_() wrappers.
75330
75331         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75332         '\v', and translate the two parts separately, instead of feeding
75333         the whole string to gettext.  This allows to exclude
75334         '\v' from the strings visible to the translator by writing doc
75335         strings as N_("..") "\v" N_("..").
75336
75337 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75338
75339         * config/srclist.txt: Undo latest change; the bug was fixed.
75340
75341 2006-09-09  Bruno Haible  <bruno@clisp.org>
75342
75343         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75344         assignments if building a library without libtool.
75345         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75346         in func_emit_lib_Makefile_am.
75347         (func_import): When building a static library libfoo.a, arrange to
75348         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75349         (func_create_testdir): Likewise.
75350         * modules/gc (configure.ac, Makefile.am): If building statically,
75351         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75352         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75353         * modules/striconv (configure.ac, Makefile.am): Likewise.
75354         Based on a suggestion by Ralf Wildenhues.
75355
75356 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75357
75358         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75359         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75360         Also:
75361
75362         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75363         Add year_2050_test to catch glibc bug 2821
75364         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75365
75366         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75367         Prefer #ifdef to #if.
75368
75369         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75370         Return from 'main' instead of calling 'exit'.
75371
75372 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75373
75374         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75375         returned the maximum time_t value rather than (time_t) -1.
75376         Problem originally reported by William Bardwell
75377         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75378
75379         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75380         Moved to here ...
75381         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75382         ... from here.
75383
75384 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75385
75386         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75387         2821 is fixed.
75388
75389 2006-09-08  Jim Meyering  <jim@meyering.net>
75390
75391         Don't make generated files read-only.  That would bother too many
75392         people.  However, do retain the ability to work when targets are
75393         read-only: remove the destination and temporary files before writing
75394         them (when generated via sed or echo), or by using the -f option for
75395         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75396         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75397         * modules/byteswap, modules/configmake, modules/fcntl:
75398         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75399         * modules/localcharset, modules/netinet_in, modules/poll:
75400         * modules/stdbool, modules/stdint, modules/sys_select:
75401         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75402
75403 2006-09-08  Jim Meyering  <jim@meyering.net>
75404
75405         Avoid new build failure on FreeBSD 6.0.
75406         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75407         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75408         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75409
75410 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75411
75412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75413
75414 2006-09-07  Jim Meyering  <jim@meyering.net>
75415
75416         Fix global typo in last change: use chmod u-w, not chmod u-x.
75417         Spotted by Paul Eggert and Bruce Korb.
75418         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75419         * modules/byteswap, modules/configmake, modules/fcntl:
75420         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75421         * modules/localcharset, modules/netinet_in, modules/poll:
75422         * modules/stdbool, modules/stdint, modules/sys_select:
75423         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75424
75425 2006-09-06  Jim Meyering  <jim@meyering.net>
75426
75427         Make generated files be read-only.
75428         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75429         Ensure that each generated file is now read-only.
75430         * modules/argz: Likewise.
75431         * modules/arpa_inet: Likewise.
75432         * modules/byteswap: Likewise.
75433         * modules/configmake: Likewise.
75434         * modules/fcntl: Likewise.
75435         * modules/fnmatch: Likewise.
75436         * modules/getopt: Likewise.
75437         * modules/glob: Likewise.
75438         * modules/inttypes: Likewise.
75439         * modules/netinet_in: Likewise.
75440         * modules/poll: Likewise.
75441         * modules/stdbool: Likewise.
75442         * modules/stdint: Likewise.
75443         * modules/sys_select: Likewise.
75444         * modules/sys_socket: Likewise.
75445         * modules/sys_stat: Likewise.
75446         * modules/sysexits: Likewise.
75447         * modules/localcharset: Same as above, but continue using temporary
75448         file named "t-$@" (why different?) rather than the "$@-t" used
75449         everywhere else.
75450
75451         * modules/sysexits (Makefile.am): Replace literal occurrences
75452         of "sysexit.h" more readable, and more consistent, "$@".
75453
75454 2006-09-06  Bruno Haible  <bruno@clisp.org>
75455
75456         * modules/striconv: New file.
75457         * modules/xstriconv: New file.
75458         * MODULES.html.sh (Internationalization functions): Add striconv,
75459         xstriconv.
75460
75461 2006-09-06  Bruno Haible  <bruno@clisp.org>
75462
75463         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75464         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75465         not using libtool correctly.
75466
75467 2006-09-06  Bruno Haible  <bruno@clisp.org>
75468
75469         * lib/striconv.h: New file.
75470         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75471         iconvstring.c.
75472         * lib/xstriconv.h: New file.
75473         * lib/xstriconv.c: New file.
75474
75475 2006-09-06  Bruno Haible  <bruno@clisp.org>
75476
75477         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75478         lib_..._LDFLAGS.
75479
75480 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75481
75482         * lib/argz_.h: Sync from Libtool.
75483
75484         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75485                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75486
75487         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75488
75489 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75490
75491         * modules/trim: New file.
75492
75493 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75494
75495         * lib/trim.h: New file.
75496         * lib/trim.c: New file.
75497
75498 2006-09-05  Bruno Haible  <bruno@clisp.org>
75499
75500         * MODULES.html.sh (String handling): Add trim.
75501
75502 2006-09-04  Karl Berry  <karl@gnu.org>
75503
75504         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75505         until next release.
75506
75507 2006-09-03  Bruno Haible  <bruno@clisp.org>
75508
75509         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75510         correctly.
75511
75512 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75513
75514         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75515         not gl_GETLOADAVG.  Omit unneeded semicolons.
75516         Problems reported by Ralf Wildenhues in
75517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75518         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75519         at the end, which is the usual gnulib style.
75520
75521         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75522         of doing all the work ourselves.
75523         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75524         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75525
75526 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75527
75528         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75529         Problem reported by Ralf Wildenhues in
75530         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75531
75532         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75533         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75534
75535 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75536
75537         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75538         yesterday's patch by changing test -n to test -z.
75539
75540 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75541
75542         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75543         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75544         the former is now obsolescent.
75545
75546         * modules/chdir-long (Depends-on): Add fcntl.
75547
75548 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75549
75550         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75551         obsolescent, and programs should use gnulib instead.
75552         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75553         but with prefixes changed.
75554
75555 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75556
75557         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75558         or stdbool.h, because they might not exist while configuring.
75559
75560         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75561         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75562         does that for us.
75563         (O_DIRECTORY): Remove.
75564
75565 2006-08-31  Eric Blake  <ebb9@byu.net>
75566
75567         * gnulib-tool: Don't let emacs change spaces to TAB.
75568
75569 2006-08-31  Bruno Haible  <bruno@clisp.org>
75570
75571         * gnulib-tool: When calling func_import more than once, do it in a
75572         subshell.
75573         Reported by Eric Blake <ebb9@byu.net>.
75574
75575 2006-08-31  Bruno Haible  <bruno@clisp.org>
75576
75577         * gnulib-tool (nl): Remove variable.
75578         (sed_transform_lib_file): Use more robust test for config-h module.
75579         (func_import): Fix typo in 2006-08-25 patch.
75580
75581 2006-08-31  Bruno Haible  <bruno@clisp.org>
75582
75583         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75584         specified, augment Makefile.am variables instead of assigning them.
75585
75586 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75587
75588         Work around a bug in both the Linux and SunOS 64-bit kernels:
75589         nanosleep mishandles sleeps for longer than 2**31 seconds.
75590         Problem reported by Frank v Waveren in
75591         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75593         Check for nanosleep bug.
75594         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75595
75596 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75597
75598         Work around a bug in both the Linux and SunOS 64-bit kernels:
75599         nanosleep mishandles sleeps for longer than 2**31 seconds.
75600         Problem reported by Frank v Waveren in
75601         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75602         * lib/nanosleep.c (BILLION): New constant.
75603         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75604         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75605         implementation.
75606
75607 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75608
75609         * modules/nanosleep (Depends-on): Add gettime.
75610
75611 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75612         and Simon Josefsson  <jas@extundo.com>
75613         and Oskar Liljeblad  <oskar@osk.mine.nu>
75614
75615         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75616         * gnulib-tool (func_import): New license type 'unmodifiable license
75617         text'.
75618         * modules/fdl: Use it.  Longer description.
75619         * module/gpl, module/lgpl: New files.
75620
75621 2006-08-30  Jim Meyering  <jim@meyering.net>
75622
75623         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75624         shadowing the parameter.
75625
75626 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75627
75628         Sync from Libtool:
75629
75630         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75631
75632         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75633         sharing with gnulib.  Report by Eric Blake.
75634
75635 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75636
75637         * modules/isapipe: New file.
75638         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75639
75640 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75641
75642         * modules/configmake (Makefile.am): Add a comment, and omit
75643         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75644         by Bruno Haible.
75645
75646 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75647
75648         * m4/isapipe.m4: New file.
75649
75650 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75651
75652         * lib/isapipe.c, lib/isapipe.h: New files.
75653
75654 2006-08-29  Jim Meyering  <jim@meyering.net>
75655
75656         * modules/configmake (Makefile.am): Make configmake.h depend on
75657         Makefile.  Otherwise, a stale configmake.h could hang around.
75658
75659 2006-08-29  Eric Blake  <ebb9@byu.net>
75660
75661         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75662         resolution of upstream bug 3044.
75663
75664 2006-08-29  Bruno Haible  <bruno@clisp.org>
75665
75666         * modules/localcharset (Depends-on): Add configmake.
75667         (Makefile.am): Remove setting of LIBDIR through DEFS.
75668
75669 2006-08-29  Bruno Haible  <bruno@clisp.org>
75670
75671         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75672         defined.
75673
75674 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75675
75676         * modules/fcntl: New file.
75677         * modules/chdir-safer (Depends-on): Add fcntl.
75678         * modules/fts: Likewise.
75679         * modules/mkdir-p: Likewise.
75680
75681         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75682         This undoes the most recent change, since we're now addressing the
75683         problem in a different way.
75684
75685         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75686         into output, since the output might be called Makefile.am even
75687         if $makefile_name is something different.
75688         (func_import): Use $makefile_am rather than
75689         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75690         empty.
75691
75692         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75693
75694 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75695
75696         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75697         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75698         recent change to stdint.m4, since we're now addressing the problem in a
75699         different way.
75700
75701 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75702
75703         * m4/fcntl_h.m4: New file.
75704
75705 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75706
75707         * lib/fcntl_.h: New file.
75708         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75709         the fcntl module.
75710         * lib/dirchownmod.c: Likewise.
75711         * lib/fts.c: Likewise.
75712
75713         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75714         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75715         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75716         just before including <inttypes.h>, to avoid circular inclusion.
75717
75718 2006-08-28  Jim Meyering  <jim@meyering.net>
75719
75720         * doc/visibility.texi: Actually read and correct the grammar of the
75721         sentence affected by yesterday's change.
75722
75723 2006-08-28  Eric Blake  <ebb9@byu.net>
75724
75725         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75726         needs wrapper.
75727
75728 2006-08-28  Eric Blake  <ebb9@byu.net>
75729
75730         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75731
75732 2006-08-28  Eric Blake  <ebb9@byu.net>
75733
75734         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75735
75736 2006-08-28  Bruno Haible  <bruno@clisp.org>
75737
75738         * modules/c-strstr: New file, from GNU gettext.
75739         * MODULES.html.sh (String handling): Add c-strstr.
75740
75741 2006-08-28  Bruno Haible  <bruno@clisp.org>
75742
75743         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75744         macros.
75745         Reported by Eric Blake.
75746
75747 2006-08-28  Bruno Haible  <bruno@clisp.org>
75748
75749         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75750         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75751         * lib/vasprintf.c: Include errno.h, limits.h.
75752         (EOVERFLOW): New fallback definition.
75753         (vasprintf): Test here whether the string length is > INT_MAX.
75754         * lib/vsnprintf.c: Include errno.h, limits.h.
75755         (EOVERFLOW): New fallback definition.
75756         (vsnprintf): Fix bug when generated string was too long for the buffer.
75757         Test here whether the string length is > INT_MAX.
75758
75759 2006-08-28  Bruno Haible  <bruno@clisp.org>
75760
75761         * lib/inttypes_.h (SCNX*): Remove definitions.
75762         Reported by Eric Blake.
75763
75764 2006-08-28  Bruno Haible  <bruno@clisp.org>
75765
75766         * lib/c-strstr.h: New file, from GNU gettext.
75767         * lib/c-strstr.c: New file, from GNU gettext.
75768
75769 2006-08-28  Bruno Haible  <bruno@clisp.org>
75770
75771         * gnulib-tool: Reorder some statements.
75772
75773 2006-08-28  Bruno Haible  <bruno@clisp.org>
75774
75775         * gnulib-tool: New option --makefile-name.
75776         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75777         $makefile_name.
75778         (func_import): Write $makefile_name to the cache file, and read it from
75779         there unless explicitly specified. Use $makefile_name as file name
75780         instead of Makefile.am. Adjust the recommendations accordingly.
75781
75782 2006-08-28  Bruno Haible  <bruno@clisp.org>
75783
75784         * gnulib-tool (func_verify_module): Check against misapplying patch.
75785
75786 2006-08-28  Bruno Haible  <bruno@clisp.org>
75787
75788         * gnulib-tool (func_relativize, func_relconcat): New functions.
75789         Give an error if --local-dir is given with --update.
75790         Remove trailing slashes from $local_gnulib_dir.
75791         (func_import): Store the relativized $local_gnulib_dir in
75792         gnulib-cache.m4, and read it from there if not specified explicitly.
75793
75794 2006-08-28  Bruno Haible  <bruno@clisp.org>
75795
75796         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75797         is the current directory. Respect also $local_gnulib_dir.
75798
75799 2006-08-28  Bruno Haible  <bruno@clisp.org>
75800             Simon Josefsson  <jas@extundo.com>
75801
75802         BeOS portability.
75803         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75804
75805 2006-08-27  Jim Meyering  <jim@meyering.net>
75806
75807         * doc/visibility.texi: Remove duplicate word: "pointer".
75808
75809 2006-08-26  Bruno Haible  <bruno@clisp.org>
75810
75811         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75812         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75813         (Makefile.am): Create inttypes.h from inttypes_.h.
75814         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75815
75816         * modules/imaxabs: New file.
75817
75818         * modules/imaxdiv: New file.
75819
75820 2006-08-26  Bruno Haible  <bruno@clisp.org>
75821
75822         * m4/inttypes.m4: New file.
75823         * m4/_inttypes_h.m4: Remove file.
75824         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75825         PRI_MACROS_BROKEN.
75826         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75827
75828         * m4/imaxabs.m4: New file.
75829
75830         * m4/imaxdiv.m4: New file.
75831
75832 2006-08-26  Bruno Haible  <bruno@clisp.org>
75833
75834         * lib/inttypes_.h: New file.
75835         * lib/inttypes.h: Remove file.
75836         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75837
75838         * lib/imaxabs.c: New file.
75839
75840         * lib/imaxdiv.c: New file.
75841
75842 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75843
75844         New config-h module, so that "make" output needn't be cluttered
75845         by -DHAVE_CONFIG_H.
75846         * MODULES.html.sh (Support for building libraries and executables):
75847         Add config-h.
75848         * modules/config-h: New file.
75849         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75850         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75851         the config-h module is used.
75852
75853         New configmake module, so that "make" output needn't be cluttered
75854         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75855         * MODULES.html.sh (Support for building libraries and executables):
75856         Add configmake.
75857         * modules/configmake: New file.
75858
75859 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75860
75861         * m4/config-h.m4: New file.
75862
75863 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75864
75865         * config/srclist.txt: Add elisp-comp.
75866
75867 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75868
75869         * MODULES.html.sh (Support for building libraries and executables):
75870         Add elisp-comp.
75871         * build-aux/elisp-comp: New file.
75872         * modules/elisp-comp: New file.
75873
75874 2006-08-24  Bruno Haible  <bruno@clisp.org>
75875
75876         * gnulib-tool (func_create_testdir): Use non-default values of
75877         sourcebase and m4base.
75878
75879 2006-08-24  Bruno Haible  <bruno@clisp.org>
75880
75881         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75882         HTML structure.
75883
75884 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75885
75886         * modules/openat (Depends-on): Add lchown.
75887
75888 2006-08-23  Bruno Haible  <bruno@clisp.org>
75889
75890         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75891         of gl_LOCK_EARLY instead of gl_LOCK.
75892
75893 2006-08-23  Bruno Haible  <bruno@clisp.org>
75894
75895         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75896         on OSF/1 to no.
75897         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75898
75899 2006-08-23  Bruno Haible  <bruno@clisp.org>
75900
75901         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75902         as unusable.
75903
75904         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75905         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75906         (gl_LOCK): New macro.
75907
75908 2006-08-22  Simon Josefsson  <jas@extundo.com>
75909
75910         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75911         to md5 module.
75912
75913 2006-08-22  Simon Josefsson  <jas@extundo.com>
75914
75915         * MODULES.html.sh: Add "Support for maintaining and release
75916         projects".
75917
75918         * build-aux/gnupload: New file, from coreutils.
75919
75920 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75921
75922         Avoid the need for AC_LIBSOURCES in m4 macros.
75923         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75924         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75925         * modules/check-version (EXTRA_DIST): Add check-version.h.
75926         * modules/crc (EXTRA_DIST): Add crc.h.
75927         * modules/des (EXTRA_DIST): Add des.h.
75928         * modules/gc (EXTRA_DIST): Add gc.h.
75929         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75930         * modules/getline (EXTRA_DIST): Add getline.h.
75931         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75932         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75933         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75934         * modules/md2 (EXTRA_DIST): Add md2.h.
75935         * modules/md4 (EXTRA_DIST): Add md4.h.
75936         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75937         * modules/read-file (EXTRA_DIST): Add read-file.h.
75938         * modules/readline (EXTRA_DIST): Add readline.h.
75939         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75940         rijndael-api-fst.h.
75941
75942 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75943
75944         * m4/rijndael.m4 (gl_ARCFOUR):
75945         * m4/arctwo.m4 (gl_ARCTWO):
75946         * m4/check-version.m4 (gl_CHECK_VERSION):
75947         * m4/crc.m4 (gl_CRC):
75948         * m4/des.m4 (gl_DES):
75949         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75950         * m4/gc.m4 (gl_GC):
75951         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75952         * m4/getline.m4 (gl_FUNC_GETLINE):
75953         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75954         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75955         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75956         * m4/md2.m4 (gl_MD2):
75957         * m4/md4.m4 (gl_MD4):
75958         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75959         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75960         * m4/readline.m4 (gl_FUNC_READLINE):
75961         * m4/rijndael.m4 (gl_RIJNDAEL):
75962         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75963         to get the necessary .h files and whatnot.
75964
75965 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75966
75967         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75968         gnulib rather than the other way around.
75969         * config/srclistvars.sh (COREUTILS): Remove.
75970
75971 2006-08-22  Jim Meyering  <jim@meyering.net>
75972
75973         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75974
75975         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75976
75977 2006-08-22  Eric Blake  <ebb9@byu.net>
75978
75979         * modules/regexprops-generic: New file.
75980         * MODULES.html.sh (Support for building documentation): List it.
75981
75982 2006-08-22  Eric Blake  <ebb9@byu.net>
75983
75984         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75985         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75986         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75987         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75988
75989 2006-08-22  Bruno Haible  <bruno@clisp.org>
75990
75991         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75992         and lib_LTLIBRARIES like the other lib_* variables.
75993
75994 2006-08-22  Bruno Haible  <bruno@clisp.org>
75995
75996         * build-aux/x-to-1.in: New file, from GNU gettext.
75997
75998 2006-08-22  Bruno Haible  <bruno@clisp.org>
75999
76000         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
76001         <utmpx.h> exists.
76002
76003 2006-08-22  Bruno Haible  <bruno@clisp.org>
76004
76005         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
76006         <utmpx.h> exists.
76007
76008 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76009
76010         BeOS portability.
76011         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76012         exist.
76013         Problem reported by Bruno Haible.
76014
76015 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         Avoid the need for AC_LIBSOURCES in m4 macros.
76018         * modules/acl (EXTRA_DIST): Add acl.h.
76019         * modules/argmatch (Files): Add m4/argmatch.m4.
76020         (configure.ac): Add gl_ARGMATCH.
76021         (EXTRA_DIST): Renamed from lib_SOURCES, for
76022         consistency with the other modules.  Remove argmatch.c.
76023         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76024         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76025         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76026         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76027         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76028         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76029         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76030         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76031         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76032         * modules/closeout (EXTRA_DIST): Add closeout.h.
76033         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76034         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76035         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76036         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76037         dirname.h; remove basename.c and stripslash.c.
76038         * modules/exclude (EXTRA_DIST): Add exclude.h.
76039         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76040         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76041         * modules/file-type (EXTRA_DIST): Add file-type.h.
76042         * modules/filemode (EXTRA_DIST): Add filemode.h.
76043         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76044         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76045         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76046         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76047         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76048         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76049         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76050         * modules/getdate (EXTRA_DIST): Add getdate.c.
76051         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76052         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76053         * modules/getpass (EXTRA_DIST): Add getpass.h.
76054         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76055         * modules/group-member (EXTRA_DIST): Add group-member.h.
76056         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76057         * modules/hash (EXTRA_DIST): Add hash.h.
76058         * modules/human (EXTRA_DIST): Add human.h.
76059         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76060         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76061         * modules/lchown (EXTRA_DIST): Add lchown.h.
76062         * modules/long-options (EXTRA_DIST): Add long-options.h.
76063         * modules/lstat (EXTRA_DIST): Add lstat.h.
76064         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76065         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76066         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76067         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76068         * modules/memxor (EXTRA_DIST): Add memxor.h.
76069         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76070         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76071         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76072         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76073         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76074         * modules/physmem (EXTRA_DIST): Add physmem.h.
76075         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76076         * modules/posixver (EXTRA_DIST): Add posixver.h.
76077         * modules/quote (EXTRA_DIST): Add quote.h.
76078         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76079         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76080         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76081         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76082         regex_internal.h regexec.c.
76083         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76084         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76085         * modules/same (EXTRA_DIST): Add same.h.
76086         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76087         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76088         * modules/savedir (EXTRA_DIST): Add savedir.h.
76089         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76090         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76091         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76092         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76093         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76094         * modules/strdup (EXTRA_DIST): Add strdup.h.
76095         * modules/strftime (EXTRA_DIST): Add strftime.h.
76096         * modules/strndup (EXTRA_DIST): Add strndup.h.
76097         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76098         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76099         * modules/time_r (EXTRA_DIST): Add time_r.h.
76100         * modules/timespec (EXTRA_DIST): Add timespec.h.
76101         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76102         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76103         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76104         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76105         * modules/userspec (EXTRA_DIST): Add userspec.h.
76106         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76107         * modules/utimens (EXTRA_DIST): Add utimens.h.
76108         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76109         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76110         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76111         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76112         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76113         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76114         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76115         * modules/yesno (EXTRA_DIST): Add yesno.h.
76116
76117 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76118
76119         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76120
76121         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76122         * m4/dev-ino.m4, same-inode.m4: Remove.
76123
76124         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76125         * m4/acl.m4 (AC_FUNC_ACL):
76126         * m4/backupfile.m4 (gl_BACKUPFILE):
76127         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76128         * m4/canon-host.m4 (gl_CANON_HOST):
76129         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76130         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76131         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76132         * m4/cloexec.m4 (gl_CLOEXEC):
76133         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76134         * m4/closeout.m4 (gl_CLOSEOUT):
76135         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76136         * m4/dirname.m4 (gl_DIRNAME):
76137         * m4/exclude.m4 (gl_EXCLUDE):
76138         * m4/exitfail.m4 (gl_EXITFAIL):
76139         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76140         * m4/file-type.m4 (gl_FILE_TYPE):
76141         * m4/filemode.m4 (gl_FILEMODE):
76142         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76143         * m4/fpending.m4 (gl_FUNC_FPENDING):
76144         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76145         * m4/fts.m4 (gl_FUNC_FTS):
76146         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76147         * m4/getdate.m4 (gl_GETDATE):
76148         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76149         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76150         * m4/getpass.m4 (gl_FUNC_GETPASS):
76151         * m4/gettime.m4 (gl_GETTIME):
76152         * m4/getugroups.m4 (gl_GETUGROUPS):
76153         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76154         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76155         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76156         * m4/hash.m4 (gl_HASH):
76157         * m4/idcache.m4 (gl_IDCACHE):
76158         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76159         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76160         * m4/long-options.m4 (gl_LONG_OPTIONS):
76161         * m4/lstat.m4 (gl_FUNC_LSTAT):
76162         * m4/md5.m4 (gl_MD5):
76163         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76164         * m4/memcoll.m4 (gl_MEMCOLL):
76165         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76166         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76167         * m4/memxor.m4 (gl_MEMXOR):
76168         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76169         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76170         * m4/modechange.m4 (gl_MODECHANGE):
76171         * m4/mountlist.m4 (gl_MOUNTLIST):
76172         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76173         * m4/openat.m4 (gl_FUNC_OPENAT):
76174         * m4/pathmax.m4 (gl_PATHMAX):
76175         * m4/physmem.m4 (gl_PHYSMEM):
76176         * m4/posixtm.m4 (gl_POSIXTM):
76177         * m4/posixver.m4 (gl_POSIXVER):
76178         * m4/quote.m4 (gl_QUOTE):
76179         * m4/quotearg.m4 (gl_QUOTEARG):
76180         * m4/readtokens.m4 (gl_READTOKENS):
76181         * m4/readutmp.m4 (gl_READUTMP):
76182         * m4/regex.m4 (gl_REGEX):
76183         * m4/safe-read.m4 (gl_SAFE_READ):
76184         * m4/safe-write.m4 (gl_SAFE_WRITE):
76185         * m4/same.m4 (gl_SAME):
76186         * m4/save-cwd.m4 (gl_SAVE_CWD):
76187         * m4/savedir.m4 (gl_SAVEDIR):
76188         * m4/settime.m4 (gl_SETTIME):
76189         * m4/sha1.m4 (gl_SHA1):
76190         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76191         * m4/stat-macros.m4 (gl_STAT_MACROS):
76192         * m4/stat-time.m4 (gl_STAT_TIME):
76193         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76194         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76195         * m4/strdup.m4 (gl_FUNC_STRDUP):
76196         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76197         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76198         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76199         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76200         * m4/time_r.m4 (gl_TIME_R):
76201         * m4/timespec.m4 (gl_TIMESPEC):
76202         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76203         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76204         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76205         * m4/userspec.m4 (gl_USERSPEC):
76206         * m4/utimecmp.m4 (gl_UTIMECMP):
76207         * m4/utimens.m4 (gl_UTIMENS):
76208         * m4/xalloc.m4 (gl_XALLOC):
76209         * m4/xgetcwd.m4 (gl_XGETCWD):
76210         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76211         * m4/xreadlink.m4 (gl_XREADLINK):
76212         * m4/xstrtod.m4 (gl_XSTRTOD):
76213         * m4/yesno.m4 (gl_YESNO):
76214         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76215         to get the necessary .h files and whatnot.
76216
76217 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76218             Bruno Haible  <bruno@clisp.org>
76219
76220         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76221         /bin/sh understanding of '!' conditional negation.
76222
76223 2006-08-21  Jim Meyering  <jim@meyering.net>
76224
76225         * modules/openat (Depends-on): Really alphabetize.
76226
76227         * modules/acl (Depends-on): Add error and quote.
76228
76229         * check-module (find_included_lib_files): Add at-func.c to the
76230         ok-to-include-more-than-once white list.
76231
76232         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76233
76234 2006-08-21  Bruno Haible  <bruno@clisp.org>
76235
76236         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76237         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76238         Reported by Martin Lambers <marlam@marlam.de>.
76239
76240 2006-08-21  Bruno Haible  <bruno@clisp.org>
76241
76242         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76243         specify an installation location, don't emit a noinst_LIBRARIES or
76244         noinst_LTLIBRARIES assignment.
76245
76246 2006-08-21  Bruno Haible  <bruno@clisp.org>
76247
76248         BeOS portability.
76249         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76250         BeOS has mbrtowc() but no <wctype.h>.
76251
76252 2006-08-21  Bruno Haible  <bruno@clisp.org>
76253
76254         BeOS portability.
76255         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76256         exist.
76257
76258 2006-08-21  Bruno Haible  <bruno@clisp.org>
76259
76260         BeOS portability.
76261         * lib/mbchar.h: Include <wctype.h> only if it exists.
76262
76263 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         Remove files that are no longer needed by their respective modules.
76266         * m4/obstack.m4: Remove.
76267         * m4/strerror_r.m4: Remove.
76268         * m4/uint32_t.m4: Remove.
76269         * m4/uintptr_t.m4: Remove.
76270         * m4/ullong_max.m4: Remove.
76271         * m4/xstrtoimax.m4: Remove.
76272         * m4/xstrtoumax.m4: Remove.
76273
76274         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76275         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76276         dependencies now capture this.
76277
76278         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76279         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76280         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76281         * m4/human.m4 (gl_HUMAN): Likewise.
76282         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76283         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76284
76285         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76286
76287         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76288         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76289         stdint.
76290         * m4/human.m4 (gl_HUMAN): Likewise.
76291         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76292         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76293         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76294         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76295         * m4/xstrtol (gl_XSTRTOL): Likewise.
76296
76297         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76298         AC_TYPE_LONG_LONG_INT.
76299         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76300         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76301         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76302         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76303
76304         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76305         on stdbool.
76306
76307         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76308         (gl_PREREQ_XSTRTOUL): Remove.
76309
76310         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76311
76312         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76313         mode.
76314
76315 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76316
76317         Add and change modules to make it easier for coreutils to use
76318         gnulib-tool.
76319         * modules/backupfile (Files): Remove m4/d-ino.m4.
76320         (Depends-on): Add d-ino.
76321         * modules/cycle-check (Depends-on): Add stdint.
76322         (lib_SOURCES): Add cycle-check.h.
76323         * modules/d-ino: New module.
76324         * modules/d-type: New module.
76325         * modules/error (Files): Remove m4/strerror_r.m4.
76326         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76327         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76328         m4/inttypes_h.m4, m4/uintmax_t.m4.
76329         (Depends-on): Add stdint.
76330         (lib_SOURCES): Add fsusage.h.
76331         * modules/getcwd (Files): Remove d-ino.m4.
76332         (Depends-on): Add d-ino.
76333         * modules/getndelim2 (Depends-on): Add stdint.
76334         * modules/glob (Files): Remove m4/d-type.m4.
76335         (Depends-on): Add d-type.
76336         * modules/host-os: New module.
76337         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76338         m4/inttypes_h.m4, m4/uintmax_t.m4.
76339         * Depends-on: Add stdint.
76340         (lib_SOURCES): Add human.h.
76341         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76342         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76343         m4/uintmax_t.m4, m4/ulonglong.m4.
76344         (Depends-on): Add stdint.
76345         (EXTRA_DIST): Add inttostr.h.
76346         * modules/lchmod: New module.
76347         * modules/link-follow: New module.
76348         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76349         (Depends-on): Add lchmod.
76350         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76351         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76352         (Depends-on): Add stdint.
76353         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76354         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76355         (Depends-on): Add stdint.
76356         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76357         * modules/perl: New module.
76358         * modules/regex (Depends-on): Add stdint.
76359         * modules/rmdir-errno: New module.
76360         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76361         m4/intmax_t.m4.
76362         (Depends-on): Add stdint.
76363         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76364         m4/uintmax_t.m4.
76365         (Depends-on): Add stdint.
76366         * modules/unlink-busy: New module.
76367         * modules/utimecmp (Depends-on): Add stdint.
76368         * modules/uptime: New module.
76369         * modules/winsz-ioctl: New module.
76370         * modules/winsz-termios: New module.
76371         * modules/xnanosleep (Depends-on): Add nanosleep.
76372         * modules/ullong_max: Remove.
76373         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76374         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76375         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76376         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76377         (Depends-on): Add inttypes.
76378         (lib_SOURCES): Add xstrtol.h.
76379         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76380         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76381         * MODULES.html.sh: Move 'assert' into the assert section.
76382         Move 'dummy' into the linking section.
76383         Remove ullong_max.
76384         Add section for compatibility checks for POSIX:2001 functions,
76385         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76386         winsz-ioctl, and winsz-termios into it.
76387         Add lchmod.
76388         Add top-level Misc section and put host-os, perl, and uptime
76389         into it.
76390
76391 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76392
76393         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76394         now assume the stdint module.  Do not include inttypes.h.
76395         * lib/fsusage.h: Likewise.
76396         * lib/getndelim2.c: Likewise.
76397         * lib/human.h: Likewise.
76398         * lib/inttostr.h: Likewise.
76399         * lib/obstack.c: Likewise.
76400         * lib/regex_internal.h: Likewise.
76401         * lib/tempname.c: Likewise.
76402         * lib/utimecmp.c: Likewise.
76403         * lib/xstrtol.h: Likewise.
76404
76405         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76406
76407         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76408         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76409         * lib/xtime.h: Likewise.
76410
76411 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76412
76413         * modules/openat (Files): Add lib/fchmodat.c.
76414         Fixes problem reported by Jay Youngman.
76415
76416 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76417
76418         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76419         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76420
76421 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76422             Bruno Haible  <bruno@clisp.org>
76423
76424         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76425         and is a script that invokes bison. Tighten the code. Add comments.
76426
76427 2006-08-18  Jim Meyering  <jim@meyering.net>
76428
76429         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76430         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76431         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76432         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76433
76434 2006-08-18  Bruno Haible  <bruno@clisp.org>
76435
76436         * modules/bison-i18n: New file.
76437         * MODULES.html.sh (Internationalization functions): Add it.
76438
76439 2006-08-18  Bruno Haible  <bruno@clisp.org>
76440
76441         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76442         sys/statvfs.h. When getmntinfo was found, check its declaration and
76443         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76444
76445 2006-08-18  Bruno Haible  <bruno@clisp.org>
76446
76447         * m4/bison-i18n.m4: New file, from bison.
76448
76449 2006-08-18  Bruno Haible  <bruno@clisp.org>
76450
76451         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76452         (ME_DUMMY): Treat "kernfs" as a dummy.
76453         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76454
76455 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76456
76457         Update from coreutils.
76458
76459         2006-08-15  Jim Meyering  <jim@meyering.net>
76460
76461         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76462
76463         2006-01-17  Jim Meyering  <jim@meyering.net>
76464
76465         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76466
76467         2006-01-11  Jim Meyering  <jim@meyering.net>
76468
76469         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76470         Check for the lchmod function.
76471
76472 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         Update from coreutils.
76475
76476         * lib/__fpending.h: Add copyright notice.
76477         * lib/fprintftime.h: Likewise.
76478         * lib/savedir.c: Use (C) in copyright notice.
76479         * lib/savedir.h: Likewise.
76480
76481         2006-08-15  Jim Meyering  <jim@meyering.net>
76482
76483         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76484         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76485         in support of the EXPECTED_ERRNO macro.
76486         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76487         definitions.  Instead, define the appropriate symbols and include
76488         "at-func.c".
76489         * lib/mkdirat.c (mkdirat): Likewise.
76490         * lib/fchmodat.c (fchmodat): Likewise.
76491         (ENOSYS): Remove definition.
76492         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76493         it.  Don't include "unistd--.h" -- it wasn't ever used.
76494
76495         2006-01-17  Jim Meyering  <jim@meyering.net>
76496
76497         Rewrite fts.c not to change the current working directory,
76498         by using openat, fstatat, fdopendir, etc..
76499
76500         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76501         (HAVE_OPENAT_SUPPORT): Define.
76502         [_LIBC] (fchdir): Don't undef or define; no longer used.
76503         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76504         Now, this `function' always succeeds, and consumes its file descriptor
76505         parameter -- so callers must not close such FDs.  Update callers.
76506         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76507         (diropen): Add parameter, SP.  Adjust all callers.
76508         Implement using diropen_fd, rather than open.
76509         (fts_open): Initialize new member, fts_cwd_fd.
76510         Remove fts_rft-setting code.
76511         (fts_close): Close fts_cwd_fd, if necessary.
76512         (__opendir2): Define in terms of opendir or opendirat,
76513         depending on whether the FST_NOCHDIR flag is set.
76514         (fts_build): Since fts_safe_changedir consumes its FD, and since
76515         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76516         and close the dup'd file descriptor upon failure.
76517         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76518         (fts_safe_changedir): Tweak semantics to reflect that this function
76519         now calls cwd_advance_fd and hence consumes its FD argument.
76520         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76521         [struct FTS] (fts_rft): Remove now-unused member.
76522         [struct FTS] (fts_cycle.state): Improve comment.
76523
76524         * lib/openat.c (openat_needs_fchdir): New function.
76525         * lib/openat.h (openat_needs_fchdir): Declare it.
76526
76527 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76530         Problem and fix reported by Pádraig Brady in
76531         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76532
76533 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76534
76535         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76536
76537 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76538
76539         * lib/memcoll.c (memcoll): Optimize for the common case where the
76540         arguments are bytewise equal.
76541
76542 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76543
76544         * doc/regexprops-generic.texi: Add a copyright notice.
76545
76546 2006-08-15  Bruno Haible  <bruno@clisp.org>
76547
76548         * modules/tmpdir (License): Change to LGPL.
76549
76550 2006-08-15  Bruno Haible  <bruno@clisp.org>
76551
76552         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76553         module.
76554
76555 2006-08-14  Simon Josefsson  <jas@extundo.com>
76556
76557         * config/srclist.txt: Add gnupload.
76558
76559 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76560
76561         Change copyright notice from LGPL 2 to GPL 2, since that's the
76562         standard form used in the gnulib repository.
76563         * tests/test-lock.c: Likewise.
76564         * tests/test-stdint.c: Likewise.
76565         * tests/test-tls.c: Likewise.
76566
76567         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76568         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76569         Add copyright notice.
76570
76571         * check-module: Add copyright notice.  Output a copyright
76572         notice if "--version" is specified.
76573         * modules/COPYING: New file.
76574         * tests/test-getaddrinfo.c: Add copyright notice.
76575         * tests/test-verify.c: Likewise.
76576
76577 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76578
76579         Change copyright notice from LGPL 2 to GPL 2, since that's the
76580         standard form used in the gnulib repository.
76581         * lib/lock.c: LGPL -> GPL.
76582         * lib/lock.h: Likewise.
76583         * lib/strnlen1.c: Likewise.
76584         * lib/strnlen1.h: Likewise.
76585         * lib/tls.c: Likewise.
76586         * lib/tls.h: Likewise.
76587         * lib/tmpdir.c: Likewise.
76588
76589         * lib/TODO: Remove; this belongs only in coreutils.
76590
76591 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76592
76593         Add copyright notices to long-enough files that lack them, since
76594         otherwise the files aren't clearly free.  Use the same notice that
76595         getdate.texi already uses.
76596         * doc/alloca-opt.texi: Add copyright notice.
76597         * doc/alloca.texi: Likewise.
76598         * doc/ctime.texi: Likewise.
76599         * doc/functions.texi: Likewise.
76600         * doc/gcd.texi: Likewise.
76601         * doc/gnulib-tool.texi: Likewise.
76602         * doc/inet_ntoa.texi: Likewise.
76603         * doc/visibility.texi: Likewise.
76604
76605         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76606         * doc/quote.texi: Add copyright notice.
76607
76608         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76609         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76610         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76611         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76612         is now obsolete, and give a pointer to the Sun list.
76613         Add copyright notice.
76614
76615 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76616
76617         * config/srclistvars.sh: Add copyright notice.
76618
76619 2006-08-14  Eric Blake  <ebb9@byu.net>
76620
76621         Import the following change from libc:
76622
76623         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76624
76625         Upstream bug 2997.
76626         * lib/misc/error.c: Add space between program name and message if file
76627         name is missing.
76628
76629 2006-08-12  Karl Berry  <karl@gnu.org>
76630
76631         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76632         remove, these originate in gnulib now.
76633
76634 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76635
76636         * doc/Makefile (standards.info standards.html standards.dvi):
76637         Also depend on make-stds.texi.
76638
76639 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76640
76641         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76642         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76643
76644         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76645         in wchar_t.  Problem reported by Eric Blake.
76646
76647         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76648         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76649         Also, help the compiler to keep LEN in a register.
76650
76651 2006-08-11  Eric Blake  <ebb9@byu.net>
76652
76653         * users.txt: Sort.  Add tar.
76654
76655 2006-08-11  Bruno Haible  <bruno@clisp.org>
76656
76657         * users.txt: New file.
76658
76659 2006-08-11  Bruno Haible  <bruno@clisp.org>
76660
76661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76662         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76663
76664 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76665
76666         * modules/snprintf (Depends-on): Remove minmax.
76667         (Maintainer): Add self and Bruno.
76668
76669 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76670
76671         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76672         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76673         (EOVERFLOW): Define if the system does not.
76674         Do not include "minmax.h"; it wasn't used.
76675         (snprintf): Don't assume size_t promotes to an unsigned type.
76676         Fix bug when generated string was too long for the buffer: the
76677         buffer's contents are supposed to be the initial prefix of the
76678         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76679         exceeds INT_MAX; do the check ourselves.
76680
76681         Import the following changes from libc:
76682
76683         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76684
76685         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76686         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76687         set wc to the byte which couldn't be converted.
76688         (re_string_reconstruct): Don't clear valid_raw_len before calling
76689         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76690         tip_context using re_string_context_at.
76691
76692         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76693
76694         * lib/posix/regex.h: g++ still cannot handled [restrict].
76695
76696         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76697
76698         * lib/posix/regex.h: Remove special handling for VMS.
76699
76700 2006-08-10  Jim Meyering  <jim@meyering.net>
76701
76702         * modules/same-inode: New module.
76703         * modules/dev-ino: New module.
76704         * modules/cycle-check: Depend on these modules, rather than simply
76705         including their .h files.
76706         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76707         required via m4/cycle-check.m4.
76708         * modules/same: Depend on new same-inode module, rather than
76709         including same-inode.h.
76710         * modules/chdir-safer: New file.
76711
76712         * modules/chown (Depends-on): Add stat-macros.
76713
76714 2006-08-10  Jim Meyering  <jim@meyering.net>
76715
76716         * m4/cycle-check.m4: New file.
76717         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76718         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76719
76720 2006-08-10  Eric Blake  <ebb9@byu.net>
76721
76722         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76723         in from original proposal.
76724
76725 2006-08-10  Eric Blake  <ebb9@byu.net>
76726         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76727
76728         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76729         namespace.
76730
76731 2006-08-10  Bruno Haible  <bruno@clisp.org>
76732
76733         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76734         as well.
76735
76736 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76737
76738         Sync from coreutils.
76739
76740         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76741
76742         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76743         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76744
76745 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76746
76747         * modules/restrict: Remove; no longer needed now that we assume
76748         Autoconf 2.59 or later.
76749         * MODULES.html.sh: Remove 'restrict'.
76750         * modules/argp (Depends-on): Remove 'restrict'.
76751         * modules/base64 (Depends-on): Likewise.
76752         * modules/gc (Depends-on): Likewise.
76753         * modules/getaddrinfo (Depends-on): Likewise.
76754         * modules/glob (Depends-on): Likewise.
76755         * modules/inet_ntop (Depends-on): Likewise.
76756         * modules/inet_pton (Depends-on): Likewise.
76757         * modules/memxor (Depends-on): Likewise.
76758         * modules/regex (Depends-on): Likewise.
76759         * modules/strtok_r (Depends-on): Likewise.
76760         * modules/time_r (Depends-on): Likewise.
76761
76762 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76763
76764         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76765         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76766         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76767         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76768         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76769         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76770         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76771         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76772
76773         Merge from coreutils.
76774         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76775         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76776         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76777         * m4/time_r.m4 (gl_TIME_R): Likewise.
76778
76779 2006-08-09  Karl Berry  <karl@gnu.org>
76780
76781         * config/srclist.txt: no more gettext-tools, per Bruno.
76782
76783 2006-08-08  Eric Blake  <ebb9@byu.net>
76784
76785         * modules/verror: New module.
76786         * MODULES.html.sh: Document it.
76787
76788 2006-08-08  Eric Blake  <ebb9@byu.net>
76789
76790         * lib/verror.h, lib/verror.c: New files.
76791
76792 2006-08-08  Eric Blake  <ebb9@byu.net>
76793
76794         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76795         verror_at_line output complies with GNU Coding Standards even when
76796         file is NULL.
76797
76798 2006-08-07  Bruno Haible  <bruno@clisp.org>
76799
76800         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76801         versions of AIX.
76802         Reported by Ralf Wildenhues.
76803
76804 2006-08-07  Bruno Haible  <bruno@clisp.org>
76805
76806         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76807         in an AC_DEFUN. Needed so that the autoconf snippets can use
76808         AC_REQUIRE.
76809
76810 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76811
76812         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76813         Initialize pkgdata_DATA.
76814         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76815         overriding it.
76816
76817 2006-08-06  Eric Blake  <ebb9@byu.net>
76818
76819         * lib/error.h: Fold in some upstream changes from glibc.
76820         * lib/error.c: Likewise.
76821
76822 2006-08-04  Bruno Haible  <bruno@clisp.org>
76823
76824         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76825         Make the mostlyclean-local rule depend on mostlyclean-generic.
76826         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76827
76828 2006-07-31  Bruno Haible  <bruno@clisp.org>
76829
76830         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76831         <stdlib.h>, <string.h>.
76832
76833 2006-07-30  Bruno Haible  <bruno@clisp.org>
76834
76835         * modules/readlink (License): Change to LGPL.
76836
76837 2006-07-30  Bruno Haible  <bruno@clisp.org>
76838
76839         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76840         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76841         set PKGDATADIR to point to it.
76842
76843 2006-07-30  Bruno Haible  <bruno@clisp.org>
76844
76845         * modules/csharpexec (configure.ac): Comment out macro invocation.
76846         * modules/javaexec (configure.ac): Likewise.
76847         * modules/javacomp-script (configure.ac): Likewise.
76848
76849         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76850
76851 2006-07-30  Bruno Haible  <bruno@clisp.org>
76852
76853         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76854         linked-list.
76855
76856 2006-07-30  Bruno Haible  <bruno@clisp.org>
76857
76858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76859
76860 2006-07-30  Bruno Haible  <bruno@clisp.org>
76861
76862         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76863         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76864         get removed.
76865
76866 2006-07-29  Bruno Haible  <bruno@clisp.org>
76867
76868         Make it possible for gnulib-tool to work with locally modified or
76869         augmented gnulib repositories.
76870         * gnulib-tool (func_usage): Document --local-dir option.
76871         (local_gnulib_dir): New variable.
76872         Handle --local-dir option.
76873         (func_lookup_file): New function.
76874         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76875         (func_get_description, func_get_filelist, func_get_description,
76876         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76877         func_get_automake_snippet, func_get_include_directive,
76878         func_get_license, func_get_maintainer): Use func_lookup_file.
76879         (func_import, func_create_testdir): Use func_lookup_file.
76880
76881 2006-07-29  Bruno Haible  <bruno@clisp.org>
76882
76883         * modules/setenv (Depends-on): Add unistd.
76884
76885 2006-07-29  Bruno Haible  <bruno@clisp.org>
76886
76887         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76888
76889 2006-07-29  Bruno Haible  <bruno@clisp.org>
76890
76891         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76892
76893 2006-07-29  Bruno Haible  <bruno@clisp.org>
76894
76895         * gnulib-tool (import, update): If there is no Makefile.am, look at
76896         aclocal.m4, instead of bailing out.
76897
76898 2006-07-29  Bruno Haible  <bruno@clisp.org>
76899
76900         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76901         Categorize the options by when they are useful.
76902
76903 2006-07-29  Bruno Haible  <bruno@clisp.org>
76904
76905         * gnulib-tool (func_usage): Document option --no-libtool.
76906         Handle option --no-libtool.
76907         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76908         for changed semantics of $libtool variable.
76909         (func_import): Likewise. If libtool is not used, show this through
76910         an option --no-libtool.
76911         (func_create_testdir): Update.
76912
76913 2006-07-29  Bruno Haible  <bruno@clisp.org>
76914
76915         * gnulib-tool (func_import): Extend error message about missing
76916         --doc-base.
76917
76918 2006-07-29  Bruno Haible  <bruno@clisp.org>
76919
76920         * gnulib-tool (func_import): Don't create the $docbase directory if
76921         there is no file to store there.
76922
76923 2006-07-29  Bruno Haible  <bruno@clisp.org>
76924
76925         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76926         relevant, look for configure.ac there, not in the current directory.
76927         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76928
76929 2006-07-29  Bruno Haible  <bruno@clisp.org>
76930
76931         * gnulib-tool (SORT): New variable.
76932         (func_usage): Undocument --assume-autoconf option.
76933         Remove --assume-autoconf option handling.
76934         (autoconf_minversion): Determine from the contents of configure.ac.
76935         (func_import): Remove autoconf_minversion handling.
76936         Suggested by Eric Blake.
76937
76938 2006-07-29  Bruno Haible  <bruno@clisp.org>
76939
76940         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76941
76942 2006-07-29  Bruno Haible  <bruno@clisp.org>
76943
76944         * config/srclist.txt (*setenv.[ch]): Remove rules.
76945
76946 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76947
76948         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76949
76950 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76951
76952         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76953         arpa/inet.h.
76954
76955 2006-07-28  Simon Josefsson  <jas@extundo.com>
76956
76957         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76958         * modules/inet_pton (Depends-on): Likewise.
76959
76960 2006-07-28  Simon Josefsson  <jas@extundo.com>
76961
76962         * m4/netinet_in_h.m4: New file.
76963
76964 2006-07-28  Simon Josefsson  <jas@extundo.com>
76965
76966         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76967         #include's.
76968
76969 2006-07-28  Simon Josefsson  <jas@extundo.com>
76970
76971         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76972         #include's.
76973
76974 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76975
76976         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76977         setgid on directories only if they set these bits.
76978         * lib/modechange.h: Remove obsolete comment about masks.
76979
76980 2006-07-28  Eric Blake  <ebb9@byu.net>
76981
76982         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76983         macro expansion.
76984
76985 2006-07-28  Bruno Haible  <bruno@clisp.org>
76986
76987         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76988
76989 2006-07-28  Bruno Haible  <bruno@clisp.org>
76990
76991         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76992
76993 2006-07-28  Bruno Haible  <bruno@clisp.org>
76994
76995         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76996         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76997         Define fallbacks.
76998         Avoids link error on FreeBSD 4.x.
76999         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77000
77001         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
77002         encoding.
77003         * lib/mbswidth.c (iswcntrl): Likewise.
77004
77005 2006-07-27  Bruno Haible  <bruno@clisp.org>
77006
77007         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
77008         test.
77009
77010 2006-07-27  Bruno Haible  <bruno@clisp.org>
77011
77012         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77013         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77014         defined.
77015
77016 2006-07-26  Eric Blake  <ebb9@byu.net>
77017
77018         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77019
77020 2006-07-26  Eric Blake  <ebb9@byu.net>
77021
77022         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77023         like mingw that lack mkstemp.
77024         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77025         avoid compilation warning on mingw.
77026
77027 2006-07-26  Bruno Haible  <bruno@clisp.org>
77028
77029         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77030         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77031         INT_FAST*_MIN, INTPTR_MIN.
77032
77033 2006-07-25  Bruno Haible  <bruno@clisp.org>
77034
77035         * modules/version-etc (Depends-on): Add stdarg.
77036
77037 2006-07-25  Bruno Haible  <bruno@clisp.org>
77038
77039         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77040         complex commands.
77041
77042 2006-07-25  Bruno Haible  <bruno@clisp.org>
77043
77044         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77045         defined in <stdarg.h> or config.h.
77046
77047 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77048
77049         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77050         (gl_STDIO_SAFER): Remove.
77051
77052 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77053
77054         * MODULES.html.sh (File stream based Input/Output):
77055         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77056         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77057         * modules/fopen-safer, modules/tmpfile-safer: New files.
77058         * modules/stdio-safer: Remove.
77059
77060 2006-07-24  Bruno Haible  <bruno@clisp.org>
77061
77062         * modules/tmpdir: New file.
77063         * MODULES.html.sh (File system functions): Add it.
77064
77065 2006-07-24  Bruno Haible  <bruno@clisp.org>
77066
77067         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77068         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77069
77070 2006-07-24  Bruno Haible  <bruno@clisp.org>
77071
77072         * modules/clean-temp: New file.
77073
77074 2006-07-24  Bruno Haible  <bruno@clisp.org>
77075
77076         * m4/tmpdir.m4: New file, from GNU gettext.
77077
77078 2006-07-24  Bruno Haible  <bruno@clisp.org>
77079
77080         * lib/tmpdir.h: New file, from GNU gettext.
77081         * lib/tmpdir.c: New file, from GNU gettext.
77082
77083 2006-07-24  Bruno Haible  <bruno@clisp.org>
77084
77085         * lib/clean-temp.h: New file, from GNU gettext.
77086         * lib/clean-temp.c: New file, from GNU gettext.
77087
77088 2006-07-23  Eric Blake  <ebb9@byu.net>
77089
77090         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77091         (Depends-on): Add binary-io.
77092
77093 2006-07-23  Eric Blake  <ebb9@byu.net>
77094
77095         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77096
77097 2006-07-23  Eric Blake  <ebb9@byu.net>
77098
77099         * lib/tmpfile-safer.c: New file.
77100         * lib/stdio-safer.h (fopen_safer): Add prototype.
77101         * lib/stdio--.h (tmpfile): Make safer.
77102
77103 2006-07-23  Bruno Haible  <bruno@clisp.org>
77104
77105         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77106         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77107         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77108         gl_linked_remove_at): Use it.
77109
77110 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77111         and Simon Josefsson <jas@extundo.com>
77112
77113         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77114
77115         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77116
77117 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77118
77119         * modules/close-stream: New file.
77120         * modules/closeout (Description): Make it clear that it exits
77121         with a diagnostic on error.
77122         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77123         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77124
77125 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77126
77127         * m4/close-stream.m4: New file.
77128
77129 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77130
77131         * lib/close-stream.c, lib/close-stream.h: New files.
77132
77133 2006-07-22  Bruno Haible  <bruno@clisp.org>
77134
77135         Merge from GNU gettext 0.15.
77136
77137         2006-05-01  Bruno Haible  <bruno@clisp.org>
77138
77139                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77140
77141         2006-07-22  Bruno Haible  <bruno@clisp.org>
77142
77143                 * modules/javaversion: New file.
77144                 * MODULES.html.sh (Java): Add javaversion.
77145
77146         2006-03-12  Bruno Haible  <bruno@clisp.org>
77147
77148                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77149
77150         2005-12-04  Bruno Haible  <bruno@clisp.org>
77151
77152                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77153                 (untested).
77154
77155         2006-06-21  Bruno Haible  <bruno@clisp.org>
77156
77157                 Avoid warnings from recent versions of mcs.
77158                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77159                 -o, -L, -r any more. Use options documented since mcs-1.0
77160                 instead. Similarly for -g.
77161
77162         2005-12-04  Bruno Haible  <bruno@clisp.org>
77163
77164                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77165                 .resources, not .resource.
77166
77167         2005-07-09  Bruno Haible  <bruno@clisp.org>
77168
77169                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77170                 add a .dll suffix.
77171                 Reported by Mark Junker <mjscod@gmx.de>.
77172
77173         2006-07-22  Bruno Haible  <bruno@clisp.org>
77174
77175                 * modules/gettext: Upgrade to gettext-0.15.
77176                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77177                 m4/visibility.m4.
77178                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77179
77180 2006-07-22  Bruno Haible  <bruno@clisp.org>
77181
77182         Merge from GNU gettext 0.15.
77183
77184         2006-03-25  Bruno Haible  <bruno@clisp.org>
77185
77186                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77187
77188         2006-07-21  Bruno Haible  <bruno@clisp.org>
77189
77190                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77191                 "1.1".
77192
77193         2006-05-09  Bruno Haible  <bruno@clisp.org>
77194
77195                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77196                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77197                 for the conftestver execution.
77198
77199         2006-05-01  Bruno Haible  <bruno@clisp.org>
77200
77201                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77202                 optional target-version argument. Verify that the compiler
77203                 groks source of the specified source-version, or add -source
77204                 option as necessary. Verify that the compiler produces
77205                 bytecode in the specified target-version, or add -target and
77206                 -source options as necessary. Make the result of the test
77207                 available as variable CONF_JAVAC. Also log error output in
77208                 config.log.
77209
77210         2006-03-11  Bruno Haible  <bruno@clisp.org>
77211
77212                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77213
77214         2006-05-09  Bruno Haible  <bruno@clisp.org>
77215
77216                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77217                 CLASSPATH_SEPARATOR to a semicolon.
77218
77219         2006-03-12  Bruno Haible  <bruno@clisp.org>
77220
77221                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77222                 available as variable CONF_JAVA, for subsequent autoconf
77223                 tests. Also log error output in config.log.
77224
77225         2006-07-19  Bruno Haible  <bruno@clisp.org>
77226
77227                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77228                 that getline works on glibc2 systems. Needed to avoid trouble
77229                 in relocatable.c.
77230                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77231
77232         2005-12-04  Bruno Haible  <bruno@clisp.org>
77233
77234                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77235                 launcher (untested).
77236
77237         2005-12-04  Bruno Haible  <bruno@clisp.org>
77238
77239                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77240
77241         2006-07-22  Bruno Haible  <bruno@clisp.org>
77242
77243                 * gettext.m4: Update from GNU gettext-0.15.
77244                 * nls.m4: Likewise.
77245                 * po.m4: Likewise.
77246                 * inttypes-pri.m4: Likewise.
77247                 * inttypes-h.m4: Renamed from inttypes.m4.
77248                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77249
77250 2006-07-22  Bruno Haible  <bruno@clisp.org>
77251
77252         Merge from GNU gettext 0.15.
77253
77254         2005-07-05  Bruno Haible  <bruno@clisp.org>
77255
77256                 * printf-args.c (printf_fetchargs): Work around broken
77257                 definition of wint_t on mingw.
77258
77259         2005-02-12  Bruno Haible  <bruno@clisp.org>
77260
77261                 * xallocsa.h: Add extern "C" for C++.
77262
77263         2006-05-17  Bruno Haible  <bruno@clisp.org>
77264
77265                 Cygwin portability.
77266                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77267
77268         2006-04-30  Bruno Haible  <bruno@clisp.org>
77269
77270                 * progreloc.c: Include <mach-o/dyld.h> if available.
77271                 (find_executable): Use _NSGetExecutablePath when possible.
77272
77273         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77274
77275                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77276                 function.
77277
77278         2005-12-29  Bruno Haible  <bruno@clisp.org>
77279
77280                 * progreloc.c (set_program_name_and_installdir): Fix
77281                 compilation error.
77282
77283         2005-12-04  Bruno Haible  <bruno@clisp.org>
77284
77285                 Cygwin portability.
77286                 * progreloc.c: Include <windows.h> also on Cygwin.
77287                 (find_executable): Add support for Cygwin.
77288                 (set_program_name_and_installdir): Handle also platforms with
77289                 nonempty EXEEXT.
77290
77291         2006-07-11  Bruno Haible  <bruno@clisp.org>
77292
77293                 * javacomp.c: Fix a comment.
77294                 Reported by Jim Meyering.
77295
77296         2006-04-30  Bruno Haible  <bruno@clisp.org>
77297
77298                 * javacomp.h (compile_java_class): Add source_version,
77299                 target_version arguments.
77300                 * javacomp.c: Rewritten to choose only a compiler that
77301                 respects the specified source_version and target_version.
77302
77303         2006-06-27  Bruno Haible  <bruno@clisp.org>
77304
77305                 Assume correct S_ISDIR macro.
77306                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77307
77308         2006-07-22  Bruno Haible  <bruno@clisp.org>
77309
77310                 * javaversion.h: New file, from GNU gettext.
77311                 * javaversion.c: New file, from GNU gettext.
77312                 * javaversion.java: New file, from GNU gettext.
77313                 * javaversion.class: New file, from GNU gettext.
77314
77315         2006-05-17  Bruno Haible  <bruno@clisp.org>
77316
77317                 Cygwin portability.
77318                 * javaexec.c (execute_java_class): Test for jview program
77319                 also on Cygwin.
77320
77321         2006-04-09  Bruno Haible  <bruno@clisp.org>
77322
77323                 * fatal-signal.c: Don't include string.h.
77324                 (at_fatal_signal): Use a copying loop instead of memcpy.
77325
77326         2005-12-04  Bruno Haible  <bruno@clisp.org>
77327
77328                 * csharpexec.c: Add support for 'clix' launcher (untested).
77329                 (execute_csharp_using_sscli): New function.
77330                 (execute_csharp_program): Call it.
77331
77332         2006-06-21  Bruno Haible  <bruno@clisp.org>
77333
77334                 Avoid warnings from recent versions of mcs.
77335                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77336                 -o, -L, -r any more. Use options documented since mcs-1.0
77337                 instead. Similarly for -g.
77338
77339         2005-07-09  Bruno Haible  <bruno@clisp.org>
77340
77341                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77342                 add a .dll suffix.
77343                 Reported by Mark Junker <mjscod@gmx.de>.
77344
77345         2006-06-17  Bruno Haible  <bruno@clisp.org>
77346
77347                 * config.charset: Update for NetBSD 3.0.
77348
77349         2006-05-17  Bruno Haible  <bruno@clisp.org>
77350
77351                 Cygwin portability.
77352                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77353
77354         2006-05-16  Bruno Haible  <bruno@clisp.org>
77355
77356                 * localcharset.c [CYGWIN]: Include <windows.h>.
77357                 (get_charset_aliases): For Cygwin, return the same CPxxx
77358                 aliases list as under WIN32.
77359                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77360                 the environment variables. Fall back to GetACP().
77361
77362         2006-04-05  Bruno Haible  <bruno@clisp.org>
77363
77364                 * config.charset: Update Juan Manuel Guerrero's address.
77365
77366         2005-02-12  Bruno Haible  <bruno@clisp.org>
77367
77368                 * allocsa.h: Add extern "C" for C++.
77369
77370         2005-02-10  Bruno Haible  <bruno@clisp.org>
77371
77372                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77373                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77374
77375         2006-07-22  Bruno Haible  <bruno@clisp.org>
77376
77377                 * gettext.h: Update to GNU gettext-0.15.
77378
77379 2006-07-22  Bruno Haible  <bruno@clisp.org>
77380
77381         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77382         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77383         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77384
77385 2006-07-21  Eric Blake  <ebb9@byu.net>
77386
77387         * modules/stdlib-safer: New file.
77388         * MODULES.html.sh (File stream based Input/Output): Add
77389         stdlib-safer.
77390
77391 2006-07-21  Eric Blake  <ebb9@byu.net>
77392
77393         * lib/stdlib-safer.h: New file from coreutils, required by
77394         stdlib--.h.
77395
77396 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77397
77398         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77399
77400 2006-07-20  Bruno Haible  <bruno@clisp.org>
77401
77402         * gnulib-tool: Recognize new option --assume-autoconf.
77403         (autoconf_minversion): New variable.
77404         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77405
77406 2006-07-20  Bruno Haible  <bruno@clisp.org>
77407
77408         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77409
77410 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77411
77412         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77413         Reindent and repaginate.
77414
77415 2006-07-19  Derek Price  <derek@ximbiot.com>
77416
77417         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77418         Correct grammar.
77419
77420 2006-07-17  Bruno Haible  <bruno@clisp.org>
77421
77422         * modules/list: New file.
77423         * modules/array-list: New file.
77424         * modules/carray-list, modules/carray-list-tests: New files.
77425         * modules/linked-list, modules/linked-list-tests: New files.
77426         * modules/avltree-list, modules/avltree-list-tests: New files.
77427         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77428         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77429         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77430         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77431         * modules/oset: New file.
77432         * modules/array-oset: New file.
77433         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77434         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77435         * tests/test-carray_list.c: New file.
77436         * tests/test-linked_list.c: New file.
77437         * tests/test-avltree_list.c: New file.
77438         * tests/test-rbtree_list.c: New file.
77439         * tests/test-linkedhash_list.c: New file.
77440         * tests/test-avltreehash_list.c: New file.
77441         * tests/test-rbtreehash_list.c: New file.
77442         * tests/test-avltree_oset.c: New file.
77443         * tests/test-rbtree_oset.c: New file.
77444         * MODULES.html.sh (Container data structures): New section.
77445
77446 2006-07-17  Bruno Haible  <bruno@clisp.org>
77447
77448         * m4/gl_list.m4: New file.
77449
77450 2006-07-17  Bruno Haible  <bruno@clisp.org>
77451
77452         * lib/gl_list.h: New file.
77453         * lib/gl_list.c: New file.
77454         * lib/gl_array_list.h: New file.
77455         * lib/gl_array_list.c: New file.
77456         * lib/gl_carray_list.h: New file.
77457         * lib/gl_carray_list.c: New file.
77458         * lib/gl_linked_list.h: New file.
77459         * lib/gl_linked_list.c: New file.
77460         * lib/gl_anylinked_list1.h: New file.
77461         * lib/gl_anylinked_list2.h: New file.
77462         * lib/gl_avltree_list.h: New file.
77463         * lib/gl_avltree_list.c: New file.
77464         * lib/gl_anyavltree_list1.h: New file.
77465         * lib/gl_anyavltree_list2.h: New file.
77466         * lib/gl_rbtree_list.h: New file.
77467         * lib/gl_rbtree_list.c: New file.
77468         * lib/gl_anyrbtree_list1.h: New file.
77469         * lib/gl_anyrbtree_list2.h: New file.
77470         * lib/gl_anytree_list1.h: New file.
77471         * lib/gl_anytree_list2.h: New file.
77472         * lib/gl_linkedhash_list.h: New file.
77473         * lib/gl_linkedhash_list.c: New file.
77474         * lib/gl_anyhash_list1.h: New file.
77475         * lib/gl_anyhash_list2.h: New file.
77476         * lib/gl_avltreehash_list.h: New file.
77477         * lib/gl_avltreehash_list.c: New file.
77478         * lib/gl_rbtreehash_list.h: New file.
77479         * lib/gl_rbtreehash_list.c: New file.
77480         * lib/gl_anytreehash_list1.h: New file.
77481         * lib/gl_anytreehash_list2.h: New file.
77482
77483         * lib/gl_oset.h: New file.
77484         * lib/gl_oset.c: New file.
77485         * lib/gl_array_oset.h: New file.
77486         * lib/gl_array_oset.c: New file.
77487         * lib/gl_avltree_oset.h: New file.
77488         * lib/gl_avltree_oset.c: New file.
77489         * lib/gl_rbtree_oset.h: New file.
77490         * lib/gl_rbtree_oset.c: New file.
77491         * lib/gl_anytree_oset.h: New file.
77492
77493 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77494
77495         * m4/mkancesdirs.m4: New file.
77496         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77497         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77498         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77499         it.
77500
77501 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77502
77503         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77504         * lib/mkancesdirs.h: New files.
77505         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77506         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77507         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77508         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77509         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77510         callers changed.  Revamp internals significantly, by not
77511         attempting to create directories that are temporarily more
77512         permissive than the final results.  Do not attempt to use
77513         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77514         This removes some race conditions, fixes some bugs, and simplifies
77515         things.  Use new dirchownmod function to do owner and mode changes.
77516         * lib/mkdir-p.h: Likewise.
77517         * lib/modechange.c (octal_to_mode): New function.
77518         (struct mode_change): New member mentioned.
77519         (make_node_op_equals): New arg mentioned.  All callers changed.
77520         (mode_compile): Keep track of which mode bits the user has explicitly
77521         mentioned.
77522         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77523         New arg PMODE_BITS, to keep track of which mode bits the user
77524         mentioned; it treats S_ISUID and S_ISGID speciall.
77525         All callers changed.
77526         * lib/modechange.h: Likewise.
77527
77528 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77529
77530         * MODULES.html.sh: Add mkancestors.
77531         * modules/mkancesdirs: New module.
77532         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77533         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77534         The chdir-safer and afs files are now orphans; I'll remove them
77535         unless someone speaks up.
77536         Add lib/dirchownmod.c, lib/dirchownmod.h.
77537         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77538         Add lchown, mkancesdirs.
77539         (Maintainer): Add self.
77540
77541 2006-07-15  Karl Berry  <karl@gnu.org>
77542
77543         * gnulib-tool: help message wording/arrangement.
77544
77545 2006-07-14  Simon Josefsson  <jas@extundo.com>
77546
77547         * doc/gnulib.texi (Libtool and Windows): New section.
77548
77549 2006-07-12  Simon Josefsson  <jas@extundo.com>
77550
77551         * modules/gendocs (License): Fix license, approved by Karl.
77552
77553 2006-07-12  Eric Blake  <ebb9@byu.net>
77554
77555         * MODULES.html.sh: Add gendocs.
77556
77557 2006-07-11  Eric Blake  <ebb9@byu.net>
77558
77559         * modules/fdl: New module, to install doc/fdl.texi.
77560         * MODULES.html.sh: Add new section for documentation modules.
77561         * gnulib-tool: Avoid space-tab.
77562         (--doc-base): New option, to manage files from doc.
77563
77564 2006-07-11  Eric Blake  <ebb9@byu.net>
77565
77566         * m4/absolute-header.m4: Fix comments to match recent change.
77567
77568 2006-07-11  Eric Blake  <ebb9@byu.net>
77569
77570         * gnulib-tool: List --doc-base before --tests-base.
77571
77572 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77573
77574         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77575
77576 2006-07-11  Bruno Haible  <bruno@clisp.org>
77577
77578         * README: Mention where to put documentation.
77579
77580 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77581
77582         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77583
77584 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77585
77586         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77587         to stdint.m4.
77588
77589 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77590
77591         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77592         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77593         "no/such/file/stdint.h" when there is no such file, so that
77594         the resulting C code can be parsed by dodgy compilers.
77595         Problems reported by Bob Proulx.
77596
77597 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77598
77599         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77600         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77601         macros into the GNU _D_EXACT_NAMLEN.
77602         * lib/savedir.c:  Likewise.
77603         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77604
77605 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77606         and Paul Eggert  <eggert@cs.ucla.edu>
77607
77608         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77609         * m4/savedir.m4:
77610         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77611         macros into the GNU _D_EXACT_NAMLEN.
77612
77613 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77614
77615         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77616         around the absolute name, to work around a problem with the HP-UX
77617         11.23 native C compiler, reported by Bob Proulx.
77618
77619 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77620
77621         * doc/maintain.texi, make-stds.texi: Sync from
77622         <http://savannah.gnu.org/projects/gnustandards>.
77623
77624 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77625
77626         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77627
77628 2006-07-09  Jim Meyering  <jim@meyering.net>
77629
77630         * m4/glob.m4: Remove a doubled word in a comment.
77631
77632 2006-07-09  Jim Meyering  <jim@meyering.net>
77633
77634         * lib/argp-pv.c: Remove a doubled word in a comment.
77635         * lib/check-version.c (check_version): Likewise.
77636         * lib/javacomp.c (compile_java_class): Likewise.
77637
77638 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77639
77640         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77641         for the benefit of people using Autoconf 2.60.  If you want to
77642         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77643         (or m4/onceonly.m4, if pre-2.57) manually.
77644
77645 2006-07-08  Jim Meyering  <jim@meyering.net>
77646
77647         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77648         comment.
77649         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77650         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77651         comment.
77652
77653 2006-07-08  Jim Meyering  <jim@meyering.net>
77654
77655         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77656
77657 2006-07-07  Simon Josefsson  <jas@extundo.com>
77658
77659         * tests/test-crc.c: Change expected crc value, the test vector
77660         were probably computed using the old broken crc.c?
77661
77662 2006-07-06  Simon Josefsson  <jas@extundo.com>
77663
77664         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77665         now the canonical place for the M4 file).
77666
77667         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77668         from the sys_socket dependency now.
77669
77670         * modules/inet_pton (Files): Ditto.
77671
77672         * modules/inet_ntop (Files): Ditto.
77673
77674 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77675
77676         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77677         not gl_PREREQ_GETUSERSHELL.
77678
77679 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77680
77681         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77682         with only one argument, for Autoconf 2.60.
77683         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77684         expand to nothing, so add a shell command to avoid syntax error.
77685         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77686
77687 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77688
77689         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77690
77691 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77692
77693         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77694         no longer needed.  Check for isblank decl.
77695         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77696         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77697         of existence.
77698
77699 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77700
77701         * lib/getloadavg.c: Use __VMS, not VMS.
77702         * lib/getopt.c: Likewise.
77703         * lib/getpagesize.h: Likewise.
77704         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77705         and probably does not work.
77706
77707 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77708
77709         * lib/.cppi-disable: Add wcwidth.
77710         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77711         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77712         (ISGRAPH): Remove.  All uses changed to isgraph.
77713         (FOLD) [!defined _LIBC]: Remove special case.
77714         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77715         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77716         HAVE_ISBLANK.
77717         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77718         case.
77719
77720 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77721
77722         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77723         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77724         brackets.  Other minor changes to suppress some compiler
77725         warnings.
77726
77727 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77728         and Paul Eggert  <eggert@cs.ucla.edu>
77729
77730         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77731         of invoking obsolescent AC_HEADER_DIRENT macro.
77732         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77733         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77734         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77735         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77736         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77737         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77738         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77739         * m4/readdir.m4: Remove; no longer needed.
77740
77741 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77742         and Paul Eggert  <eggert@cs.ucla.edu>
77743
77744         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77745         Don't worry about this obsolete case any more.
77746         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77747         directories.
77748         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77749         worry about this obsolete case any more.
77750         * lib/fts.c: Likewise.
77751         * lib/getcwd.c: Likewise.
77752         * lib/glob.h: Likewise.
77753         * lib/savedir.c: Likewise.
77754
77755 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77756
77757         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77758         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77759         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77760         needed.
77761         All uses removed.
77762         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77763         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77764         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77765         needed.
77766         * m4/getdate.m4 (gl_GETDATE): Likewise.
77767         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77768         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77769         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77770         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77771         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77772         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77773         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77774         needed.
77775
77776 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77777
77778         * lib/memcasecmp.c: Include <limits.h>.
77779         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77780         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77781         Don't assume isdigit succeeds only on '0' through '9'.
77782
77783 2006-07-05  Eric Blake  <ebb9@byu.net>
77784
77785         * modules/getaddrinfo (Depends-on): Add snprintf.
77786
77787 2006-07-05  Eric Blake  <ebb9@byu.net>
77788
77789         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77790         to avoid 'header present but could not be compiled' on cygwin.
77791
77792 2006-07-05  Eric Blake  <ebb9@byu.net>
77793
77794         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77795         missing from netdb.h.
77796         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77797
77798 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77799
77800         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77801         no longer needed.
77802         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77803         * m4/getdate.m4 (gl_GETDATE): Likewise.
77804         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77805         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77806         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77807         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77808         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77809
77810 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77811
77812         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77813         All uses of is_space replaced by isspace.
77814         * lib/exit.h: Don't talk about STDC_HEADERS.
77815         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77816         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77817         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77818         replaced by isprint etc.
77819         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77820         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77821         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77822         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77823         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77824         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77825
77826 2006-07-05  Bruno Haible  <bruno@clisp.org>
77827
77828         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77829         the function exists, before testing against AIX.
77830         Reported by Martin Lambers <marlam@marlam.de>.
77831
77832 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77833
77834         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77835         From Mark D. Baushke.
77836
77837 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77838
77839         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77840         to the absolute name, not just one, to bypass Sun C 5.8's
77841         "warning: #include of /usr/include/... may be non-portable".
77842
77843 2006-07-04  Eric Blake  <ebb9@byu.net>
77844
77845         * modules/dirname-tests: New test module.
77846         * tests/test-dirname.c: New file, replacing dirname.c
77847         TEST_DIRNAME section that was recently deleted.
77848
77849 2006-07-04  Bruno Haible  <bruno@clisp.org>
77850
77851         Assume ANSI C header files and <ctype.h> functions.
77852         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77853         (mbsnwidth): Use isprint, iscntrl instead.
77854
77855 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         Merge from coreutils.
77858         * MODULES.html.sh: Add xstrtold.
77859         * modules/xstrtold: New file.
77860         * modules/cycle-check (Files): Add lib/same-inode.h.
77861         * modules/dirname (Files): Add m4/double-slash-root.m4.
77862         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77863         * modules/mkdir-p (Files): Add lib/same-inode.h.
77864         * modules/same (Files): Add lib/same-inode.h.
77865
77866 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77867
77868         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77869         This is to keep the terminology clean; POSIX talks about
77870         "absolute pathnames", not "full pathnames", but the GNU
77871         Coding Standards say to use "path" for something else;
77872         so use "absolute" to keep both sides happy.
77873         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77874         Set gl_absolute_header, not gl_full_header_path.
77875         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77876         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77877         All uses changed.
77878
77879         Merge from coreutils.
77880
77881         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77882
77883         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77884         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77885         want to require the building of c-strtod.o.
77886         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77887         needs -lm directly.
77888         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77889
77890         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77891
77892         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77893         --as-needed option if available.  Problem reported by Albert Chin in
77894         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77895         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77896         cc merely issues a bunch of annoying warnings for --as-needed
77897         (this problem was reported by Bob Proulx).  Also, try linking with
77898         -lm to detect a bug in binutils 2.16 (this problem was reported
77899         by Ralf Wildenhues).
77900
77901         2006-06-18  Jim Meyering  <jim@meyering.net>
77902
77903         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77904         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77905         macro.
77906         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77907         also check for glibc-2.4's abort-inducing bug.
77908
77909         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77910         Low-probability clean-up should be to use rmdir to get rid of
77911         the just-created directory, not unlink.
77912
77913         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77914         configure fail, and request a bug report to inform us about it.
77915         Add a comment that, barring reports to the contrary, in 2007 we'll
77916         assume ftruncate is universally available.
77917
77918         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77919
77920         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77921
77922         2006-03-12  Jim Meyering  <jim@meyering.net>
77923
77924         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77925         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77926         * m4/same.m4 (gl_SAME): Likewise.
77927         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77928
77929         2006-03-11  Eric Blake  <ebb9@byu.net>
77930
77931         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77932         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77933         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77934         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77935
77936 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77937
77938         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77939         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77940         reported by Mark D. Baushke, one in
77941         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77942
77943         Merge from coreutils.
77944
77945         * lib/.cppi-disable: Add stdint_.h.
77946         * lib/.cvsignore: Add stdint.h.
77947
77948         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77949
77950         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77951         both double and long double versions.
77952         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77953         * lib/xstrtold.c: New file.
77954         * lib/xstrtod.h (xstrtold): New decl.
77955
77956         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77957
77958         * lib/filemode.c (setst): Remove.
77959         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77960         (arguably) clearer, and the generated code is a bit smaller on my
77961         Debian GNU/Linux stable x86 host.
77962
77963         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77964
77965         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77966         Assume that filemode.h includes sys/types.h and sys/stat.h.
77967         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77968         (ftypelet): Reorder to put common cases first, for efficiency.
77969         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77970         to do 'M'.
77971         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77972         of 10, for compatibility with FreeBSD.  All callers changed.
77973         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77974         types that can't be deduced solely from st_mode.  First arg is now a
77975         const pointer.
77976         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77977         (strmode): Renamed from mode_string.
77978         (filemodestring): New decl.
77979         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77980         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77981         needed.
77982         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77983
77984         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77985
77986         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77987         fsusage.h now does that.  Include fsusage.h first, to test interface.
77988         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77989         at most one method (the old code could have generated decls that
77990         didn't conform to C89, not that this was ever exercised).
77991         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77992
77993         2006-03-19  Jim Meyering  <jim@meyering.net>
77994
77995         Work even in a chroot where d_ino values for entries in "/"
77996         don't match the stat.st_ino values for the same names.
77997         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77998         number, iterate through all entries again, using lstat instead.
77999         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
78000         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
78001
78002         * lib/getcwd.c (__getcwd): Clarify a comment.
78003         Use memcpy in place of a call to strcpy.
78004
78005         2006-03-12  Jim Meyering  <jim@meyering.net>
78006
78007         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
78008         matches that of the current directory (which we're about to chdir ".."
78009         out of), then save the dev-ino of the parent, instead.
78010
78011         * lib/same-inode.h (SAME_INODE): New file/macro.
78012         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78013         Include "same-inode.h", instead.
78014         * lib/same.c: Likewise.
78015         * lib/cycle-check.h: Include "same-inode.h".
78016         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78017         * lib/cycle-check.c (SAME_INODE): Remove definition.
78018         * lib/root-dev-ino.h: Include "same-inode.h".
78019
78020         2006-03-11  Eric Blake  <ebb9@byu.net>
78021
78022         * lib/same.c (same_name): s/base_name/last_component/
78023         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78024         * lib/filenamecat.c (file_name_concat): Likewise.
78025
78026         2006-03-11  Eric Blake  <ebb9@byu.net>,
78027                     Paul Eggert  <eggert@cs.ucla.edu>
78028
78029         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78030         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78031         drive prefix.
78032         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78033         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78034         (last_component): New method.
78035         * lib/dirname.c (dir_len): Determine when drive letters need a
78036         subsequent slash.  Preserve // when it is special.
78037         (dir_name): Don't append dot when drive letter is absolute.
78038         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78039         * lib/basename.c (base_name): New semantics - malloc the result.
78040         Preserve // when it is special.  Preserve relative files that look
78041         like drive letters.
78042         (base_len): Preserve // when it is special.
78043         (last_component): New method, similar to old base_name semantics.
78044         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78045         base_name.  Strip redundant slashes from ///.
78046
78047 2006-07-03  Jim Meyering  <jim@meyering.net>
78048
78049         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78050         macro is used before the first cycle_check call.
78051
78052 2006-07-03  Eric Blake  <ebb9@byu.net>
78053
78054         * modules/dirname (Depends-on): Add xstrndup.
78055
78056 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78057
78058         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78059         test cases, so that config.log is a bit easier to follow.
78060
78061 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78062
78063         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78064         both are 64 bits, since this seems to be the tradition, and this
78065         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78066         we ever run into a host that prefers long long to long in this
78067         case, we'll need another configure-time test.  Problem reported by
78068         Jim Meyering.
78069
78070 2006-07-02  Eric Blake  <ebb9@byu.net>
78071
78072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78073
78074 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78075
78076         * modules/inttypes (Depends-on): No longer depends on stdint.
78077         * modules/stdint (Description): Say more about assumptions.
78078         Say that the fast types might differ.  Say macros are used.
78079         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78080         (Makefile.am): Revise list of substituted symbols to match
78081         new stdint.m4.
78082         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78083         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78084         * tests/test-stdint.c (verify_same_types)
78085         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78086         the code conforms to C99/C89.
78087         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78088         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78089
78090 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78091
78092         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78093         but fix a bug, by requiring at least 64 bits.
78094         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78095         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78096         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78097         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78098
78099         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78100         changes.  Make 2.59 a prerequisite.  Check and substitute for
78101         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78102         inttypes.h.  Do not use special include files; just use the
78103         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78104         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78105         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78106         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78107         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78108         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78109         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78110         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78111         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78112         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78113         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78114         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78115         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78116         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78117         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78118         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78119         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78120         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78121         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78122         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78123         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78124         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78125         not check for things that C99 does not require, e.g., int8_t.  If
78126         a test isn't needed unless <stdint.h> isn't working, and is
78127         unlikely to be needed for any other reason, then don't do it
78128         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78129         size_t, since we assume C89 freestanding at least.  Do not check
78130         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78131         the right thing even if the types are not defined.  Instead use:
78132         (gl_STDINT_TYPE_PROPERTIES): New macro.
78133         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78134         testing whether <sys/types.h> clashes, as Autoconf does this for
78135         us now.  All uses removed.
78136         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78137         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78138         (gl_CHECK_TYPE_SAME):
78139         Remove; no longer needed.
78140         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78141         exists, since we'll return 0 anyway in that case.
78142         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78143
78144 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78145
78146         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78147         possible collision with system files.
78148         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78149         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78150         WCHAR_MIN and WCHAR_MAX in this case.
78151         (<stddef.h>): Do not include; no longer needed.
78152         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78153         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78154         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78155         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78156         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78157         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78158         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78159         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78160         !defined(__c99))]: Include in this case too, since it's harmless
78161         now.
78162         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78163         dangerous to do so.
78164         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78165         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78166         (_STDINT_MIN, _STDINT_MAX): New macros.
78167         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78168         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78169         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78170         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78171         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78172         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78173         macros, not typedefs; this simplifies things quite a bit.
78174         Use long int for all types narrower than int64_t.
78175         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78176         Define in terms of long long int or int64_t or long int,
78177         not int64_t or int32_t.  This saves some compile-time testing.
78178         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78179         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78180         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78181         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78182         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78183         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78184         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78185         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78186         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78187         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78188         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78189         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78190         undef any previous version and define our own version, for
78191         simplicity and consistency with the new macros for types.
78192         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78193         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78194         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78195         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78196         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78197         @WINT_T_SUFFIX@ to keep things simple here.
78198         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78199         Simplify by assuming typical 8/16/32/64 host, since we're
78200         already doing that elsewhere anyway.
78201         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78202         and assume long long int is 64 bits if available.  This
78203         speeds up 'configure'.
78204
78205 2006-07-01  Eric Blake  <ebb9@byu.net>
78206
78207         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78208         Reported by Andreas Buening.
78209
78210 2006-07-01  Eric Blake  <ebb9@byu.net>
78211
78212         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78213
78214 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78215
78216         * lib/getaddrinfo.c: fixed typo
78217
78218 2006-06-29  Jim Meyering  <jim@meyering.net>
78219
78220         * modules/strftime (Maintainer): Add my name, since with the
78221         FPRINTFTIME changes strftime.c has forked from glibc.
78222
78223 2006-06-29  Eric Blake  <ebb9@byu.net>
78224
78225         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78226
78227 2006-06-29  Eric Blake  <ebb9@byu.net>
78228
78229         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78230
78231 2006-06-29  Eric Blake  <ebb9@byu.net>
78232
78233         * lib/stat_.h: New file.
78234
78235 2006-06-29  Eric Blake  <ebb9@byu.net>
78236
78237         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78238         unused static function.
78239
78240 2006-06-29  Eric Blake  <ebb9@byu.net>
78241
78242         * doc/functions.texi (Function Portability): Document missing lstat
78243         on mingw.
78244
78245 2006-06-29  Eric Blake  <ebb9@byu.net>
78246
78247         * MODULES.html.sh: Add sys_stat.
78248         * modules/sys_stat: New module.
78249         * modules/mkstemp (Depends-on): Add sys_stat.
78250
78251 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78252
78253         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78254
78255 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78256
78257         * m4/c-bs-a.m4: Removed.
78258
78259 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78260
78261         * lib/strftime.c: Assume strftime() exists.
78262
78263 2006-06-29  Derek Price  <derek@ximbiot.com>
78264
78265         * modules/c-bs-a: Removed - \a is C89.
78266         * MODULES.html.sh: Remove c-bs-a.
78267
78268 2006-06-29  Bruno Haible  <bruno@clisp.org>
78269
78270         * modules/wcwidth (License): Change to LGPL.
78271
78272 2006-06-28  Simon Josefsson  <jas@extundo.com>
78273
78274         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78275         on _WIN32.
78276
78277         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78278         getnameinfo.
78279
78280 2006-06-28  Simon Josefsson  <jas@extundo.com>
78281
78282         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78283
78284 2006-06-28  Simon Josefsson  <jas@extundo.com>
78285
78286         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78287         functions there.  It will succeed on Windows XP, but on Windows
78288         2000 and (presumably) earlier, it will fail, and use the internal
78289         re-implementation.
78290         (use_win32_p): New function.
78291         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78292         Support AI_NUMERICSERV to disable getservbyname.
78293         (getnameinfo): New function, only supports
78294         NI_NUMERICHOST|NI_NUMERICSERV for now.
78295
78296         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78297         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78298         getnameinfo.
78299
78300 2006-06-28  Eric Blake  <ebb9@byu.net>
78301
78302         * modules/wcwidth: New file.
78303         * modules/mbchar (Depends-on): Add wcwidth.
78304         * modules/mbswidth (Depends-on): Add wcwidth.
78305         * MODULES.html.sh: Add wcwidth.
78306
78307 2006-06-28  Eric Blake  <ebb9@byu.net>
78308
78309         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78310         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78311
78312 2006-06-28  Eric Blake  <ebb9@byu.net>
78313
78314         * lib/xvasprintf.h: Fix comments.
78315
78316 2006-06-28  Eric Blake  <ebb9@byu.net>
78317
78318         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78319         * lib/mbswidth.c (wcwidth): Move from here...
78320         * lib/wcwidth.h: ...to this new file.
78321
78322 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78323
78324         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78325
78326         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78327         it's obsolete.
78328         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78329
78330 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78331
78332         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78333         Autoconf 2.60 says this stuff was obsolete.
78334
78335 2006-06-28  Bruno Haible  <bruno@clisp.org>
78336
78337         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78338
78339 2006-06-28  Bruno Haible  <bruno@clisp.org>
78340
78341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78342         gt_TYPE_WCHAR_T.
78343
78344 2006-06-28  Bruno Haible  <bruno@clisp.org>
78345
78346         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78347         declaration for wcwidth.
78348         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78349
78350 2006-06-28  Bruno Haible  <bruno@clisp.org>
78351
78352         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78353         (mkdir): Define using _mkdir.
78354
78355 2006-06-28  Bruno Haible  <bruno@clisp.org>
78356
78357         * lib/getaddrinfo.h: Fix POSIX URL.
78358         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78359         _WIN32.
78360         (use_win32_p): Make static.
78361         (getaddrinfo): Reject service name if it is empty or does not consist
78362         solely of decimal digits, or if its value is > 65535.
78363         (getnameinfo): Remove useless casts.
78364
78365 2006-06-27  Simon Josefsson  <jas@extundo.com>
78366
78367         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78368         Eggert and Martin Lambers.
78369
78370 2006-06-27  Simon Josefsson  <jas@extundo.com>
78371
78372         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78373         Eggert and Martin Lambers.
78374
78375 2006-06-27  Bruno Haible  <bruno@clisp.org>
78376
78377         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78378         result to 0, not to empty.
78379         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78380
78381 2006-06-27  Bruno Haible  <bruno@clisp.org>
78382
78383         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78384
78385 2006-06-26  Simon Josefsson  <jas@extundo.com>
78386
78387         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78388         present.
78389
78390 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78391
78392         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78393         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78394         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78395
78396 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78397
78398         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78399
78400 2006-06-26  Bruno Haible  <bruno@clisp.org>
78401
78402         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78403
78404 2006-06-26  Bruno Haible  <bruno@clisp.org>
78405
78406         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78407
78408 2006-06-26  Bruno Haible  <bruno@clisp.org>
78409
78410         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78411         SGI C compiler in pre-C99 mode.
78412         Suggested by Mark D. Baushke and Larry Jones.
78413
78414 2006-06-26  Bruno Haible  <bruno@clisp.org>
78415
78416         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78417         WCHAR_MAX.
78418         Reported by Mark D. Baushke and Larry Jones.
78419
78420 2006-06-26  Bruno Haible  <bruno@clisp.org>
78421
78422         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78423         in pre-C99 mode.
78424         Suggested by Mark D. Baushke and Larry Jones.
78425
78426 2006-06-23  Simon Josefsson  <jas@extundo.com>
78427             Bruno Haible  <bruno@clisp.org>
78428
78429         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78430         Emit mostlyclean-local rule.
78431         (func_emit_tests_Makefile_am): Likewise.
78432         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78433
78434 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78435
78436         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78437
78438 2006-06-23  Bruno Haible  <bruno@clisp.org>
78439
78440         * tests/test-stdint.c: Update to match ISO C 99 Technical
78441         Corrigendum 1.
78442
78443 2006-06-23  Bruno Haible  <bruno@clisp.org>
78444
78445         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78446
78447 2006-06-23  Bruno Haible  <bruno@clisp.org>
78448
78449         * lib/stdint_.h: Treat IRIX like OpenBSD.
78450
78451 2006-06-23  Bruno Haible  <bruno@clisp.org>
78452
78453         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78454         ISO C 99 Technical Corrigendum 1.
78455
78456 2006-06-22  Simon Josefsson  <jas@extundo.com>
78457
78458         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78459         MinGW.
78460
78461 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78462
78463         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78464         needed.  Some compiler complained about some of them.  Problem reported
78465         by Larry Jones in
78466         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78467
78468 2006-06-21  Simon Josefsson  <jas@extundo.com>
78469
78470         * tests/test-getaddrinfo.c: New file.
78471
78472         * modules/getaddrinfo-tests: New file.
78473
78474         * MODULES.html.sh: Add inet_pton.
78475
78476         * modules/inet_pton: New file.
78477
78478 2006-06-21  Simon Josefsson  <jas@extundo.com>
78479
78480         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78481         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78482         of using the (limited) gnulib implementation on Windows XP.
78483
78484         * m4/inet_pton.m4: New file.
78485
78486 2006-06-21  Simon Josefsson  <jas@extundo.com>
78487
78488         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78489         variable.
78490
78491         * lib/socket_.h: Don't define WINVER.
78492
78493         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78494         slightly modified to work in gnulib.
78495
78496 2006-06-21  Simon Josefsson  <jas@extundo.com>
78497
78498         * doc/gnulib.texi (Windows sockets): Add.
78499
78500 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78501
78502         * lib/read-file.c (fread_file): Start with buffer allocation of
78503         0 bytes rather than 1 byte; this simplifies the code.
78504         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78505         code to free buffer and save/restore errno.
78506         (internal_read_file): Remove unused local.
78507
78508 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78509
78510         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78511         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78512         Problem reported by Denis Excoffier in
78513         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78514
78515 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78516
78517         * modules/sys_socket, modules/socklen: Include sys/types since
78518         FreeBSD 4.x's sys/socket.h needs it.
78519
78520 2006-06-19  Simon Josefsson  <jas@extundo.com>
78521
78522         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78523
78524 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78525
78526         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78527
78528 2006-06-19  Bruno Haible  <bruno@clisp.org>
78529
78530         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78531         and FULL_PATH_INTTYPES_H in angle brackets.
78532         Reported by Mark D. Baushke <mdb@gnu.org>.
78533
78534 2006-06-17  Eric Blake  <ebb9@byu.net>
78535
78536         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78537         errno.
78538
78539 2006-06-17  Bruno Haible  <bruno@clisp.org>
78540
78541         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78542         <sys/inttypes.h>.
78543
78544 2006-06-17  Bruno Haible  <bruno@clisp.org>
78545
78546         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78547         whether errno is declared. Assume <errno.h> declares errno.
78548
78549 2006-06-17  Bruno Haible  <bruno@clisp.org>
78550
78551         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78552
78553 2006-06-17  Bruno Haible  <bruno@clisp.org>
78554
78555         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78556         problem on Solaris 2.5.1.
78557
78558 2006-06-16  Eric Blake  <ebb9@byu.net>
78559
78560         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78561         * lib/unicodeio.c [!defined errno]: Likewise.
78562         * lib/strtol.c [!defined errno]: Likewise.
78563         * lib/strtod.c [!defined errno]: Likewise.
78564
78565 2006-06-15  Eric Blake  <ebb9@byu.net>
78566
78567         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78568
78569 2006-06-15  Eric Blake  <ebb9@byu.net>
78570
78571         * config/srclist.txt (ssize_t.m4): Lose sync.
78572
78573 2006-06-15  Bruno Haible  <bruno@clisp.org>
78574
78575         * modules/stdint (Files): Include m4/full-header-path.m4,
78576         m4/size_max.m4, m4/wchar_t.m4.
78577         (Makefile.am): Many more substitutions.
78578         * modules/stdint-tests: New file.
78579         * tests/test-stdint.c: New file.
78580
78581 2006-06-15  Bruno Haible  <bruno@clisp.org>
78582
78583         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78584         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78585         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78586         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78587         gl_CHECK_TYPE_SAME): New macros.
78588
78589 2006-06-15  Bruno Haible  <bruno@clisp.org>
78590
78591         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78592
78593 2006-06-15  Bruno Haible  <bruno@clisp.org>
78594
78595         * lib/stdint_.h: Rewritten to be fully auto-configured.
78596         Fixes bug on HP-UX/IA64.
78597
78598 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78599
78600         * lib/getdate.y (__attribute__): Don't define if already defined.
78601         Problem reported by Larry Jones.
78602         * lib/utimens.c (__attribute__): Likewise.
78603
78604 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78607         reported by Andreas Schwab.
78608
78609 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78610             Bruno Haible  <bruno@clisp.org>
78611
78612         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78613         check for the declaration of strnlen and a run test that exposes the
78614         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78615         rpl_strndup.
78616
78617 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78618             Bruno Haible  <bruno@clisp.org>
78619
78620         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78621
78622 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78623
78624         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78625         compile test, for Tru64 4.0D.
78626
78627 2006-05-28  Karl Berry  <karl@gnu.org>
78628
78629         * config/srclist.txt (printf-args.c): lose sync.
78630
78631 2006-05-26  Martin Lambers  <marlam@marlam.de>
78632
78633         * lib/getpass.c: Updates the test for the native W32 API, and adds
78634         missing includes, thus fixing compilation warnings.
78635
78636 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78637
78638         * lib/exclude.c (exclude_fnmatch): New function.
78639         (excluded_file_name): Call exclude_fnmatch.
78640         * lib/exclude.h (excluded_file_name): New prototype
78641
78642 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78643
78644         * lib/tempname.c (small_open, large_open): New macros.
78645         (__open, __open64) [!_LIBC]: Remove.
78646         (__gen_tempname): Use small_open and large_open instead of __open
78647         and __open64.  This fixes a portability bug on HP-UX 11.11i
78648         reported by Simon Wing-Tang in
78649         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78650
78651 2006-05-24  Bruno Haible  <bruno@clisp.org>
78652
78653         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78654         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78655         Reported by Thorsten Maerz <torte@netztorte.de> via
78656         Aaron Stone <aaron@serendipity.cx>.
78657
78658 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78659
78660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78661         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78662         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78663         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78664         not really conditional on the cache.
78665         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78666
78667 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78668
78669         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78670         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78671         (my_usleep): Don't mishandle maximum value.
78672
78673 2006-05-19  Jim Meyering  <jim@meyering.net>
78674
78675         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78676
78677 2006-05-17  Bruno Haible  <bruno@clisp.org>
78678
78679         Cygwin portability.
78680         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78681
78682 2006-05-17  Bruno Haible  <bruno@clisp.org>
78683
78684         * lib/stdint_.h: Fix recognition of Cygwin.
78685
78686 2006-05-15  Bruno Haible  <bruno@clisp.org>
78687
78688         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78689         on libtool patch by Ralf Wildenhues.
78690
78691 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78692
78693         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78694         test for C99 conformance; (bool) 0.5 is an integer constant
78695         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78696         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78697
78698 2006-05-11  Simon Josefsson  <jas@extundo.com>
78699
78700         * m4/xvasprintf.m4: Fix obvious typo.
78701
78702 2006-05-11  Jim Meyering  <jim@meyering.net>
78703
78704         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78705         James Lemley.
78706
78707 2006-05-10  Simon Josefsson  <jas@extundo.com>
78708
78709         * lib/md4.c: Typo fix, update copyright years.
78710         (K1, K2): Don't use L because it turn computations into 64-bit on
78711         64-bit platforms.
78712
78713 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78714
78715         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78716         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78717         unwanted sign propagation, e.g., on hosts with 64-bit int.
78718         There still are some problems with reeelly weird theoretical hosts
78719         (e.g., 33-bit int) but it's not worth worrying about now.
78720         * lib/sha1.c (rol): Likewise.
78721         (K1, K2, K3, K4): Remove unnecessary L suffix.
78722
78723 2006-05-10  Bruno Haible  <bruno@clisp.org>
78724
78725         * lib/des.c: Cast to avoid warnings.
78726
78727 2006-05-09  Bruno Haible  <bruno@clisp.org>
78728
78729         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78730         (Depends-on): Depend also on xsize, stdarg.
78731         (configure.ac): Add gl_XVASPRINTF.
78732
78733 2006-05-09  Bruno Haible  <bruno@clisp.org>
78734
78735         * m4/xvasprintf.m4: New file.
78736
78737 2006-05-09  Bruno Haible  <bruno@clisp.org>
78738
78739         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78740         (EOVERFLOW): Define fallback value.
78741         (xstrcat): New function.
78742         (xvasprintf): Recognize the special case of a string concatenation.
78743
78744 2006-05-08  Eric Blake  <ebb9@byu.net>
78745
78746         * gnulib-tool (func_version): Base copyright year on CVS date.
78747         (func_emit_copyright_notice): New function.
78748         (func_emit_lib_Makefile_am): Use it.
78749         (func_emit_tests_Makefile_am): Likewise.
78750         (func_import): Likewise.
78751
78752 2006-05-08  Bruno Haible  <bruno@clisp.org>
78753
78754         * modules/stdarg: New file.
78755         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78756
78757 2006-05-08  Bruno Haible  <bruno@clisp.org>
78758
78759         * m4/stdarg.m4: New file, from GNU gettext.
78760
78761 2006-05-08  Bruno Haible  <bruno@clisp.org>
78762
78763         * config/srclist.txt (build-aux/config.rpath): different from latest
78764         release.
78765
78766 2006-05-08  Bruno Haible  <bruno@clisp.org>
78767
78768         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78769
78770 2006-05-05  Jim Meyering  <jim@meyering.net>
78771
78772         * m4/warning.m4: New file, derived from bison's file by the same name.
78773
78774 2006-05-03  Bruno Haible  <bruno@clisp.org>
78775
78776         * lib/stdint_.h: Shorter URL.
78777         * lib/inttypes.h: Likewise.
78778
78779 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78780
78781         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78782
78783 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78784
78785         * lib/verify.h: Document the internals better.  Most of this change
78786         was written by Bruno Haible.
78787
78788 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78789
78790         * doc/verify.texi: New file, partly based on a proposal by
78791         Bruno Haible.
78792
78793 2006-05-02  Bruno Haible  <bruno@clisp.org>
78794
78795         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78796         test from here...
78797         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78798
78799 2006-04-29  Bruno Haible  <bruno@clisp.org>
78800
78801         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78802         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78803
78804 2006-04-29  Bruno Haible  <bruno@clisp.org>
78805
78806         * gnulib-tool: Make --update option actually work.
78807
78808 2006-04-29  Bruno Haible  <bruno@clisp.org>
78809
78810         * doc/gcd.texi: New file.
78811         * doc/gnulib.texi: Include it.
78812
78813 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78814
78815         * lib/getdate.y (get_date): When adding relative date, start with the
78816         initial time, not with the result of the first mktime call.
78817
78818 2006-04-25  Bruno Haible  <bruno@clisp.org>
78819
78820         * gnulib-tool (func_import): Output the include directives in three
78821         blocks, sorted separately.
78822         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78823
78824 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78825
78826         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78827         to define main with arguments, for C++.  Reported by Eric Blake.
78828         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78829         Prefer 'int main ()' to 'int main (void)', for C++.
78830         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78831         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78832         for 'main', for C99 and C++.
78833
78834 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78835
78836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78837         Don't assume that exit status -1 is valid.
78838         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78839         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78840         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78841         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78842         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78843         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78844         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78845         functions can be used without declaring them, or that you can
78846         exit with status -1.
78847         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78848
78849 2006-04-24  Karl Berry  <karl@gnu.org>
78850
78851         * config/srclist.txt (longdouble.m4): sync lost.
78852
78853 2006-04-24  Eric Blake  <ebb9@byu.net>
78854
78855         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78856
78857 2006-04-24  Bruno Haible  <bruno@clisp.org>
78858
78859         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78860         poll() implementation in AIX.
78861         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78862
78863 2006-04-24  Bruno Haible  <bruno@clisp.org>
78864
78865         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78866         assigned exactly once.
78867
78868 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78869             Bruno Haible  <bruno@clisp.org>
78870
78871         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78872         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78873         for AM_CPPFLAGS.
78874
78875 2006-04-23  Bruno Haible  <bruno@clisp.org>
78876
78877         * modules/copy-file: Depend on unistd.
78878         * modules/execute: Likewise.
78879         * modules/fatal-signal: Likewise.
78880         * modules/findprog: Likewise.
78881         * modules/mkdtemp : Likewise.
78882         * modules/pipe: Likewise.
78883         * modules/wait-process: Likewise.
78884
78885 2006-04-23  Bruno Haible  <bruno@clisp.org>
78886
78887         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78888         condition was already detected.
78889         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78890
78891 2006-04-23  Bruno Haible  <bruno@clisp.org>
78892
78893         * lib/copy-file.c: Include <unistd.h> unconditionally.
78894         * lib/execute.c: Likewise.
78895         * lib/fatal-signal.c: Likewise.
78896         * lib/findprog.c: Likewise.
78897         * lib/mkdtemp.c: Likewise.
78898         * lib/pipe.h: Likewise.
78899         * lib/pipe.c: Likewise.
78900         * lib/wait-process.h: Likewise.
78901
78902 2006-04-23  Bruno Haible  <bruno@clisp.org>
78903
78904         * gnulib-tool (func_usage): Fix --import description. Document
78905         --update.
78906         (func_import): Create temporary file in a temporary directory, if
78907         --dry-run is specified. Silence errors from 'grep' when there are no
78908         m4 files in $m4dir.
78909         (func_create_testdir): Silence errors from 'grep' when there are no
78910         m4 files in $m4dir.
78911         Reported by Karl Berry <karl@freefriends.org>.
78912
78913 2006-04-20  Bruno Haible  <bruno@clisp.org>
78914
78915         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78916         one argument, so that the code will be portable to Autoconf 2.60.
78917         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78918         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78919         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78920
78921 2006-04-19  Derek Price  <derek@ximbiot.com>
78922             Eric Blake  <ebb9@byu.net>
78923
78924         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78925         rather than "/full/path.h".  Update comment to match.  Shorten &
78926         generalize m4_translit call via AS_TR_CPP.
78927
78928 2006-04-19  Derek Price  <derek@ximbiot.com>
78929             Eric Blake  <ebb9@byu.net>
78930
78931         * lib/inttypes.h: Correct grammar in comment.
78932
78933 2006-04-18  Derek Price  <derek@ximbiot.com>
78934             Paul Eggert  <eggert@cs.ucla.edu>
78935
78936         * modules/inttypes: New file.
78937         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78938
78939 2006-04-18  Derek Price  <derek@ximbiot.com>
78940             Paul Eggert  <eggert@cs.ucla.edu>
78941
78942         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78943         New files.
78944
78945 2006-04-18  Derek Price  <derek@ximbiot.com>
78946             Paul Eggert  <eggert@cs.ucla.edu>
78947
78948         * lib/inttypes.h: New file.
78949         * lib/strtoimax.c: Assume <inttypes.h>.
78950
78951 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78952
78953         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78954         isn't mounted.  Problem reported by Kir Kolyshkin.
78955
78956 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78959         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78960         Derek R. Price.
78961         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78962         implementation.
78963
78964 2006-04-12  Eric Blake  <ebb9@byu.net>
78965
78966         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78967         is now done automatically by the corresponding Autoconf macro.
78968
78969 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78970
78971         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78972         time_r.h.
78973
78974 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78975
78976         Merge regex changes from libc, removing some of our
78977         POSIX-conformance changes that were rejected and redoing them in a
78978         less-intrusive way.
78979
78980         * lib/regcomp.c (re_compile_internal, init_dfa):
78981         Length arg is now size_t, not Idx.  All uses changed.
78982         (peek_token): Forward decl now says internal_function.
78983         (__re_error_msgid, __re_error_msgid_idx):
78984         Now static rather than extern with attribute_hidden.
78985         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78986         For some reason libc prefers K&R style defns for external functions.
78987         (regerror) [!defined _LIBC]: Likewise.
78988         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78989         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78990         (build_range_exp, build_collating_symbol):
78991         Use K&R-style defn.
78992         (re_compile_fastmap): Use '\0' to memset, not 0.
78993         (utf8_sb_map): Make the calculations more obvious.
78994         (init_dfa, parse_bracket_exp, build_charclass_op):
78995         Call calloc and cast result, as glibc does.
78996         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78997         (build_range_exp, build_collating_symbol):
78998         Now internal functions.
78999
79000         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
79001
79002         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
79003         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
79004         Don't depend on VMS; depend on __VMS instead, for POSIX
79005         namespace cleanness.
79006         (regoff_t): Define to ssize_t, not long int.
79007
79008         Remove the REG_ macros named below.  Instead, make the old names
79009         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79010         __USE_GNU_REGEX.
79011         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79012         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79013         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79014         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79015         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79016         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79017         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79018         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79019         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79020         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79021         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79022         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79023         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79024         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79025         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79026         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79027         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79028         (REG_NREGS):
79029         Remove.  All uses replaced by the old RE_* names.
79030         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79031         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79032         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79033         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79034         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79035         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79036         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79037         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79038         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79039         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79040         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79041         Don't bother having these macros be independent of each others'
79042         values, since they no longer exist in the POSIX name space.
79043
79044         Rename the following member names back to their old names,
79045         unless !__USE_GNU_REGEX.  All uses changed back.
79046         (buffer): Renamed from re_buffer.
79047         (allocated): Renamed from re_allocated.
79048         (used): Renamed from re_used.
79049         (syntax): Renamed from re_syntax.
79050         (fastmap): Renamed from re_fastmap.
79051         (translate): Renamed from re_translate.
79052         (can_be_null): Renamed from re_can_be_null.
79053         (regs_allocated): Renamed from re_regs_allocated.
79054         (fastmap_accurate): Renamed from re_fastmap_accurate.
79055         (no_sub): Renamed from re_no_sub.
79056         (not_bol): Renamed from re_not_bol.
79057         (not_eol): Renamed from re_not_eol.
79058         (newline_anchor): Renamed from re_newline_anchor.
79059         (num_regs): Renamed from rm_num_regs.
79060         (start): Renamed from rm_start.
79061         (end): Renamed from rm_end.
79062
79063         (free_state): Move up a bit.
79064
79065         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79066         #define to be empty.
79067         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79068         when that is what is intended.
79069         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79070         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79071         (MAX): New macro.
79072         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79073         All uses changed back to re_malloc, etc.  It's now the caller's
79074         responsibility to check for overflow; all callers changed.
79075         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79076         (re_x2nrealloc): Remove.
79077         (free_state): Remove decl.
79078
79079         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79080         (re_set_registers, re_exec):
79081         Use K&R-style defn.
79082
79083         2006-01-31  Roland McGrath  <roland@redhat.com>
79084
79085         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79086         Reported by Mike Frysinger <vapier@gentoo.org>.
79087
79088         2006-01-15  Andreas Jaeger  <aj@suse.de>
79089
79090         [BZ #1950]
79091         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79092         build_wcs_upper_buffer change.
79093         (build_wcs_upper_buffer): Change return type.
79094
79095         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79096
79097         * lib/regex_internal.h: Include <stdint.h> if available.
79098
79099         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79100
79101         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79102
79103         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79104
79105         * lib/regcomp.c: Adjust for changed secondary hash function.
79106
79107         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79108
79109         * lib/regex.h: Pretty printing.
79110         Clean up namespace a bit.
79111
79112         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79113
79114         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79115         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79116
79117         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79118                     Ulrich Drepper  <drepper@redhat.com>
79119
79120         [BZ #1302]
79121         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79122         changed.
79123         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79124
79125         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79126
79127         [BZ #281]
79128         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79129         * lib/regcomp.c: Remove unnecessary uses of
79130         unsigned RE_TRANSLATE_TYPE.
79131         * lib/regex_internal.h: Likewise.
79132         * lib/regex_internal.c: Likewise.
79133         * lib/regexec.c: Likewise.
79134         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79135
79136         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79137
79138         * lib/regexec.c (find_recover_state): Remove unnecessary
79139         initialization.
79140         (transit_state_bkref): Make DFA a const pointer.
79141         (get_subexp): Likewise.
79142         (check_arrival): Likewise.
79143         (update_cur_sifted_state): Likewise.
79144         (re_search_internal): Likewise.
79145         (prune_impossible_nodes): Likewise.
79146         (acquire_init_state_context): Likewise.
79147         (proceed_next_node): Likewise.
79148         (set_regs): Likewise.
79149         (free_fail_stack_return): Likewise.
79150         (check_arrival_expand_ecl): Mark DFA parameter as const.
79151         (check_arrival_expand_ecl_sub): Likewise.
79152         (check_subexp_limits): Likewise.
79153         (sub_epsilon_src_nodes):  Likewise.
79154         (add_epsilon_src_nodes):  Likewise.
79155         (merge_state_array): Likewise.
79156         (update_regs): Likewise.
79157         (build_trtable): Likewise.
79158         (sift_states_backward): Mark MCTX parameter as const.
79159         (build_sifted_states): Likewise.
79160         (update_cur_sifted_state): Likewise.
79161         (sift_states_mkref): Likewise.
79162         (check_arrival_expand_ecl): Mark eclosure as const.
79163         (check_dst_limits_calc_pos_1): Likewise.
79164         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79165         pointer.
79166
79167         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79168
79169         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79170         (transit_state_sb): Likewise.
79171         (transit_state_mb): Likewise.
79172         (sift_states_iter_mb): Likewise.
79173         (check_arrival_add_next_nodes): Likewise.
79174         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79175         [_LIBC] (re_search_2_stub): Use mempcpy.
79176
79177         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79178         mbrtowc for very simple UTF-8 case.
79179
79180         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79181         a pointer-to-const.
79182         (re_acquire_state_context): Likewise.
79183         * lib/regex_internal.h: Adjust prototypes.
79184
79185         * lib/regex.c: Prevent using C++ compilers.
79186
79187         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79188         (re_acquire_state_context): Likewise.
79189
79190 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         * modules/regex (Depends-on): Add ssize_t.
79193
79194 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79195
79196         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79197         translation table.
79198
79199 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79200
79201         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79202
79203 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79204             Bruno Haible  <bruno@clisp.org>
79205
79206         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79207         <sys/types.h> and <inttypes.h>.
79208
79209 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79210
79211         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79212         `__error_t_defined', so argp.h will not typedef the former.
79213
79214 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79215
79216         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79217         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79218         glibc names.  Even if glibc is changed to conform to POSIX, the
79219         traditional names will be available anyway, since regex depends on
79220         the extensions module.  Also, fix a longstanding typo in the
79221         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79222         reported by Emanuele Giaquinta.  Also, change sense of cached
79223         variable, so that the message makes sense.
79224
79225 2006-03-24  Simon Josefsson  <jas@extundo.com>
79226
79227         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79228         including some doc fixes.
79229         (base64_encode_alloc): Fix +1 bug on allocation failures.
79230
79231 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79232
79233         * lib/base64.c (base64_encode): Do not read past end of array with
79234         unsanitized input on systems with CHAR_BIT > 8.
79235
79236 2006-03-24  Eric Blake  <ebb9@byu.net>
79237
79238         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79239
79240 2006-03-22  Karl Berry  <karl@gnu.org>
79241
79242         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79243         * config/srclistvars.sh (COREUTILS): new var.
79244
79245 2006-03-17  Jim Meyering  <jim@meyering.net>
79246
79247         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79248         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79249
79250 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79251
79252         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79253         no longer needs it.  Instead, check that regoff_t is as least
79254         as wide as ptrdiff_t.
79255
79256         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79257         so that our regex.h stays compatible with the installed regex.
79258         This is helpful for installers who configure --without-included-regex.
79259         Problem reported by Emanuele Giaquinta.
79260
79261 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79262
79263         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79264         Typedef to long int, not to off_, as POSIX will likely change
79265         in that direction.
79266
79267 2006-03-15  Eric Blake  <ebb9@byu.net>
79268
79269         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79270
79271 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79272
79273         * lib/argp-help.c (validate_uparams): Fix typo
79274         * lib/argp-parse.c (argp_default_options): Consistently begin help
79275         messages with a lowercase letter.
79276
79277 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79280         overrun buffers and shouldn't be used (much as gets shouldn't be
79281         used).
79282         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79283
79284 2006-03-08  Simon Josefsson  <jas@extundo.com>
79285
79286         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79287         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79288
79289 2006-03-08  Simon Josefsson  <jas@extundo.com>
79290
79291         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79292         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79293
79294 2006-03-08  Simon Josefsson  <jas@extundo.com>
79295
79296         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79297         signal that configure disabled the device.
79298
79299 2006-03-08  Simon Josefsson  <jas@extundo.com>
79300
79301         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79302         languages.
79303
79304 2006-03-07  Simon Josefsson  <jas@extundo.com>
79305
79306         * modules/getopt (Depends-on): Add unistd.
79307
79308         * modules/unistd: New file.
79309
79310 2006-03-07  Simon Josefsson  <jas@extundo.com>
79311
79312         * modules/gc-random: New file.
79313
79314 2006-03-07  Simon Josefsson  <jas@extundo.com>
79315
79316         * m4/unistd_h.m4: New file.
79317
79318 2006-03-07  Simon Josefsson  <jas@extundo.com>
79319
79320         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79321         test to be side-effect free by storing the result in the cache
79322         variable gl_cv_lib_readline, and moving the assignment of
79323         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79324         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79325
79326 2006-03-07  Simon Josefsson  <jas@extundo.com>
79327
79328         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79329         error on missing devices (the functions will return an error).
79330
79331         * m4/gc.m4: Move random stuff to gc-random.m4
79332
79333 2006-03-07  Simon Josefsson  <jas@extundo.com>
79334
79335         * lib/unistd_.h: New file.
79336
79337 2006-03-07  Simon Josefsson  <jas@extundo.com>
79338
79339         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79340
79341 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79342
79343         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79344         Problem reported by Juan Manuel Guerrero.
79345
79346 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79347
79348         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79349         the unistd module.
79350         * lib/getlogin_r.c: Likewise.
79351         * lib/getlogin_r.h: Likewise.
79352         * lib/glob.c: Likewise.
79353         * lib/pagealign_alloc.c: Likewise.
79354         * lib/unistd_.h: Remove; no longer needed.
79355
79356 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79357
79358         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79359         Add unistd.
79360         * modules/c-stack (Depends-on): Add unistd.
79361         * modules/getlogin_r: Likewise.
79362         * modules/glob: Likewise.
79363         * modules/pagealign_alloc: Likewise.
79364         * modules/unistd (Files): Remove lib/unistd_.h.
79365         (EXTRA_DIST): Remove.
79366         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79367         need unistd_.h.
79368         (MOSTLYCLEANFILES): Remove unistd.h-t.
79369
79370 2006-03-03  Simon Josefsson  <jas@extundo.com>
79371
79372         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79373
79374 2006-03-03  Simon Josefsson  <jas@extundo.com>
79375
79376         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79377         libidn and bison.
79378
79379 2006-03-03  Simon Josefsson  <jas@extundo.com>
79380
79381         * build-aux/maint.mk: Add indent target.
79382
79383 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79384
79385         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79386         our replacement poll.h in any case, to avoid a differing
79387         declaration from a system header.  Seen on AIX.
79388
79389 2006-03-01  Simon Josefsson  <jas@extundo.com>
79390
79391         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79392         <kasal@ucw.cz>.
79393
79394 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79395
79396         * modules/gettime (Depends-on): Add extensions module.
79397         * modules/nanosleep (Depends-on): Likewise.
79398         * modules/settime (Depends-on): Likewise.
79399
79400 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79401
79402         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79403         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79404         pedantically.
79405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79406         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79407
79408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79409         not "==".  Reported by Ralf Wildenhues.
79410
79411 2006-03-01  Karl Berry  <karl@gnu.org>
79412
79413         * doc/Copyright/request-*: new files, synced from gnuorg.
79414
79415 2006-03-01  Karl Berry  <karl@gnu.org>
79416
79417         * config/srclist.txt (Copyright/*): new entries.
79418
79419 2006-02-28  Simon Josefsson  <jas@extundo.com>
79420
79421         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79422
79423 2006-02-27  Simon Josefsson  <jas@extundo.com>
79424
79425         * lib/base64.h: Indent #define's.  From Jim Meyering
79426         <jim@meyering.net>.
79427
79428 2006-02-27  Jim Meyering  <jim@meyering.net>
79429
79430         Revert the change of 2006-02-24, so these files can continue
79431         to be sync'd from gettext.
79432         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79433         of `config.h'.
79434
79435 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         * modules/intprops: New file.
79438         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79439         Add intprops.
79440         * modules/getloadavg (Files): Remove lib/intprops.h.
79441         (Depends-on): Add intprops.
79442         * modules/human: Likewise.
79443         * modules/inttostr: Likewise.
79444         * modules/openat: Likewise.
79445         * modules/sig2str: Likewise.
79446         * modules/userspec: Likewise.
79447         * modules/utimecmp: Likewise.
79448         * modules/xnanosleep: Likewise.
79449         * modules/xstrtol: Likewise.
79450
79451 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79452
79453         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79454         * modules/lock-tests (TESTS): Use $(EXEEXT).
79455         * modules/tls-tests: Likewise.
79456         * modules/argp-tests: Likewise.
79457         (check_PROGRAMS): New var, replacing...
79458         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79459
79460 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79461
79462         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79463         `config.h'.
79464
79465 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79466
79467         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79468
79469 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79470
79471         Sync from coreutils.
79472         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79473         gl_CHDIR_SAFER.
79474
79475 2006-02-22  Jim Meyering  <jim@meyering.net>
79476
79477         Sync from coreutils.
79478         * m4/chdir-safer.m4: New file.
79479
79480 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79481
79482         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79483         AT_FDCWD exceeds INT_MAX.
79484         * lib/openat.h (AT_FDCWD): Likewise.
79485
79486 2006-02-17  Eric Blake  <address@hidden>
79487
79488         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79489
79490 2006-02-16  Simon Josefsson  <jas@extundo.com>
79491
79492         * modules/getaddrinfo (Depends-on): Add sys_socket.
79493
79494 2006-02-15  Simon Josefsson  <jas@extundo.com>
79495
79496         * build-aux/maint.mk: Add dsyntax-check rule.
79497
79498 2006-02-15  Eric Blake  <ebb9@byu.net>
79499
79500         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79501         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79502         'present but cannot compile' warnings on cygwin.
79503         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79504         use ws2tcpip.h if sys/socket.h works.
79505         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79506         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79507
79508 2006-02-14  Simon Josefsson  <jas@extundo.com>
79509
79510         * modules/maintainer-makefile (Files): Rename.
79511
79512         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79513         and (the local) Makefile.cfg to maint-cfg.mk.
79514
79515         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79516         to the latter.
79517
79518         * modules/maintainer-makefile: New module.
79519
79520         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79521         severaly stripped to make it possible to build it up from scratch
79522         with reliable tests.
79523
79524         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79525         fixes to permit overriding the default actions when configure and
79526         makefile are not available.
79527
79528 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79529
79530         Sync from coreutils.
79531         * modules/lstat (Depends-on): Don't depend on xalloc.
79532         (License): Change from GPL to LGPL, since this is now simply a
79533         replacement for a libc function.
79534
79535 2006-02-14  Jim Meyering  <jim@meyering.net>
79536
79537         Sync from coreutils.
79538
79539         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79540         failure on deficient systems, and simplify gnulib lgpl dependencies.
79541         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79542         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79543
79544         * lib/xalloc-die.c: Remove unused definition of N_.
79545
79546 2006-02-14  Jim Meyering  <jim@meyering.net>
79547
79548         Sync from coreutils.
79549         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79550         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79551         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79552         double-quote uses of that variable, to accommodate the rare case in
79553         which getmntent is available in none of the libraries checked.  This
79554         happens at least on FreeBSD 5.0.
79555
79556 2006-02-13  Simon Josefsson  <jas@extundo.com>
79557
79558         * gnulib-tool (Usage): Fix --import, from
79559         karl@freefriends.org (Karl Berry).
79560
79561 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79562
79563         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79564
79565 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79566
79567         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79568         "autoupdate" on 2005-12-12.
79569
79570 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         * modules/closeout (Depends-on): Remove atexit.
79573
79574 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79575
79576         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79577         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79578
79579 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79580
79581         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79582         __EXTENSIONS__ if this causes compilation to fail.  Problem
79583         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79584         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79585
79586 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79587
79588         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79589         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79590         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79591         All uses changed.
79592
79593 2006-01-26  Simon Josefsson  <jas@extundo.com>
79594
79595         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79596         prototype is visible on mingw32.
79597
79598         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79599         for mingw32.
79600
79601         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79602         mingw32).
79603
79604 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79605
79606         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79607         attempt to open for write; this always fails, at least on POSIX
79608         hosts.  This reinstates the 2006-01-09 change, which was
79609         inadvertently removed.
79610
79611 2006-01-26  Bruno Haible  <bruno@clisp.org>
79612
79613         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79614         Reported by Paul Eggert.
79615
79616 2006-01-26  Bruno Haible  <bruno@clisp.org>
79617             Paul Eggert  <eggert@cs.ucla.edu>
79618
79619         * lib/stdbool_.h (_Bool)
79620         [(! (defined __cplusplus || defined __BEOS__)
79621           && !defined __GNUC__
79622           && !(defined __HP_cc || defined __xlc__
79623                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79624                || defined __sgi))]:
79625         #define to signed char in these cases too; this simplifies
79626         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79627         etc., separately) and makes it more conservative.
79628
79629 2006-01-25  Simon Josefsson  <jas@extundo.com>
79630
79631         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79632         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79633         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79634
79635 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79636
79637         * lib/argp-namefrob.h: Bugfix. Remove stray #
79638
79639 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79640
79641         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79642         so that we test the test.
79643         Check for yet another HP-UX cc bug involving *bool |= bool.
79644
79645 2006-01-25  Karl Berry  <karl@gnu.org>
79646
79647         * config/srclist.txt (vasnprintf.c): sync lost.
79648
79649 2006-01-25  Jim Meyering  <jim@meyering.net>
79650
79651         Sync from the stable (b5) branch of coreutils:
79652
79653         * lib/fts.c (fts_children): Don't let close() clobber errno from
79654         failed fchdir().
79655
79656         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79657         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79658         a dangling symlink.  That can also happen at least for ELOOP.
79659         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79660         FYI, this bug predates the inclusion of fts.c in coreutils.
79661
79662         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79663         in their own block, so pre-c99 compilers don't object.
79664
79665         Avoid the double-free (first in fts_read, second in fts_close) that
79666         would occur when an `active' directory is made inaccessible (e.g.,
79667         via chmod a-x) during a traversal.
79668         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79669         before returning.  Reproduce this failure by
79670         mkdir -p a/b; cd a; chmod a-x . b
79671         Reported by Stavros Passas.
79672
79673 2006-01-25  Jim Meyering  <jim@meyering.net>
79674
79675         * lib/fileblocks.c: Remove more useless parentheses.
79676         * lib/readutmp.h: Likewise.
79677
79678 2006-01-25  Bruno Haible  <bruno@clisp.org>
79679
79680         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79681         warnings.
79682         Reported by Paul Eggert.
79683
79684 2006-01-25  Bruno Haible  <bruno@clisp.org>
79685
79686         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79687         rid of a trap command. For Solaris sh.
79688         Reported by Mark D. Baushke <mdb@gnu.org>.
79689
79690 2006-01-24  Simon Josefsson  <jas@extundo.com>
79691
79692         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79693         Bruno.
79694
79695 2006-01-24  Karl Berry  <karl@gnu.org>
79696
79697         * config/srclist.txt (argp-namefrob.h): sync lost.
79698
79699 2006-01-24  Jim Meyering  <jim@meyering.net>
79700
79701         * modules/openat (Files): Add lib/intprops.h.
79702         From Mark D. Baushke.
79703
79704 2006-01-24  Jim Meyering  <jim@meyering.net>
79705
79706         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79707         Reported by Mark D. Baushke.
79708
79709 2006-01-24  Jim Meyering  <jim@meyering.net>
79710
79711         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79712
79713 2006-01-24  Bruno Haible  <bruno@clisp.org>
79714
79715         * modules/strnlen (Maintainer): Change from glibc to all.
79716
79717 2006-01-24  Bruno Haible  <bruno@clisp.org>
79718
79719         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79720         Patch by Paul Eggert.
79721
79722 2006-01-24  Bruno Haible  <bruno@clisp.org>
79723
79724         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79725         already has it.
79726         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79727         2005-11-26.
79728
79729         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79730         'signed char' to avoid problems with the built-in _Bool type.
79731         Reported by Paul Eggert on 2005-11-26.
79732
79733 2006-01-24  Bruno Haible  <bruno@clisp.org>
79734
79735         * gnulib-tool (func_import): Avoid constructing complicated sed
79736         expressions inside backquote.
79737         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79738
79739 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79740
79741         These changes imported from libc.
79742         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79743         test and two separate function calls.
79744         * lib/strndup.c (__strndup): Add libc_hidden_def.
79745
79746 2006-01-23  Simon Josefsson  <jas@extundo.com>
79747
79748         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79749         Remove the test_*_SOURCES variable: automake infers it by default.
79750         * modules/tls-tests: Likewise.
79751
79752 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79753
79754         Work around porting bugs reported by Dieter in
79755         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79756         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79757         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79758         Include "getopt.h" first, to check interface.
79759         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79760         !HAVE_DECL_GETENV.
79761         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79762         (__strndup): Revert to K&R-style function dfns, the glibc style.
79763         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79764         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79765         Include strnlen.h first, to get prototype properly.
79766         (strnlen): Renamed from __strnlen.
79767         Remove weak alias.
79768
79769 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79770
79771         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79772
79773 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79774
79775         * config/srclist.txt: Adjust to reflect glibc reorganization.
79776         This affects only comments.
79777
79778 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79779
79780          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79781          Reported by Bruce Korb <bkorb@gnu.org>.
79782
79783 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79784
79785         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79786         to pacify gcc -Wswitch-default.
79787
79788 2006-01-22  Bruno Haible  <bruno@clisp.org>
79789
79790         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79791         temporary buffer for sprintf, take into account the precision also
79792         for 'd', 'i', 'u', 'o', 'x', 'X'.
79793
79794 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79795
79796         * modules/argp-tests: New module
79797         * tests/test-argp.c: New file
79798         * tests/test-argp-2.sh: New file
79799
79800 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79801
79802         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79803         (__argp_base_name): Removed
79804         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79805         typo.
79806         (__argp_base_name): Provide macro definition or extern declaration
79807         depending on the configuration
79808
79809 2006-01-20  Simon Josefsson  <jas@extundo.com>
79810
79811         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79812
79813 2006-01-20  Simon Josefsson  <jas@extundo.com>
79814
79815         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79816
79817 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79818
79819         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79820         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79821         Suggested by Bruno Haible.
79822
79823 2006-01-20  Karl Berry  <karl@gnu.org>
79824
79825         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79826         until changes propagate, I guess.
79827
79828 2006-01-19  Simon Josefsson  <jas@extundo.com>
79829
79830         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79831
79832 2006-01-19  Simon Josefsson  <jas@extundo.com>
79833
79834         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79835
79836 2006-01-19  Simon Josefsson  <jas@extundo.com>
79837
79838         * gnulib-tool: Set check_PROGRAMS.
79839
79840         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79841         modules/des-tests, modules/gc-arcfour-tests,
79842         modules/gc-arctwo-tests, modules/gc-des-tests,
79843         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79844         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79845         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79846         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79847         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79848         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79849         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79850         test_*_SOURCES.
79851
79852 2006-01-18  Simon Josefsson  <jas@extundo.com>
79853
79854         * modules/socklen (Depends-on): Depend on sys_socket.
79855
79856 2006-01-18  Simon Josefsson  <jas@extundo.com>
79857
79858         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79859         modules/des-tests, modules/gc-arcfour-tests,
79860         modules/gc-arctwo-tests, modules/gc-des-tests,
79861         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79862         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79863         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79864         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79865         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79866         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79867         $(EXEEXT) to automake TESTS variable, for mingw32.
79868
79869 2006-01-17  Simon Josefsson  <jas@extundo.com>
79870
79871         * modules/socklen (Include): Need sys/socket.h.
79872
79873 2006-01-17  Bruno Haible  <bruno@clisp.org>
79874
79875         * modules/ssize_t (Include): Add <sys/types.h>.
79876
79877 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79878
79879         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79880         it's not portable and it doesn't work with cross-compiles.
79881         Problem reported by Bruno Haible.  Fix missing-$ typo in
79882         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79883         -zignore from being used with Sun's C compiler.
79884
79885 2006-01-12  Simon Josefsson  <jas@extundo.com>
79886
79887         * lib/base64.c: Fix warning, reported by Bruno Haible
79888         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79889
79890 2006-01-12  Bruno Haible  <bruno@clisp.org>
79891
79892         * modules/ldd: New file.
79893         * build-aux/ldd.sh.in: New file.
79894         * MODULES.html.sh (Support for building libraries and executables): Add
79895         ldd.
79896
79897 2006-01-12  Bruno Haible  <bruno@clisp.org>
79898
79899         * m4/ldd.m4: New file.
79900
79901 2006-01-12  Bruno Haible  <bruno@clisp.org>
79902
79903         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79904         endless loop while replacing $auxdir with build-aux.
79905
79906 2006-01-11  Simon Josefsson  <jas@extundo.com>
79907
79908         * lib/stdint_.h (SIZE_MAX): Add missing (.
79909
79910 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79911
79912         Sync from coreutils.
79913         * lib/md5.c: Fix commentary typos.
79914         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79915         * lib/md5.h (__attribute__): Remove; unused.
79916         * lib/sha1.c: Fix commentary to match md5 better.
79917         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79918         so that we don't need to worry about alignment.  All uses changed.
79919         This merges the 2005-10-28 md5 change into sha1.
79920
79921 2006-01-11  Jim Meyering  <jim@meyering.net>
79922
79923         Sync from coreutils.
79924         * lib/md5.c (OP): Fix spacing.
79925
79926 2006-01-11  Bruno Haible  <bruno@clisp.org>
79927
79928         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79929         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79930         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79931
79932 2006-01-11  Bruno Haible  <bruno@clisp.org>
79933
79934         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79935         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79936         the "early" section as well.
79937
79938 2006-01-11  Bruno Haible  <bruno@clisp.org>
79939
79940         Avoid "ar: no archive members specified" error on MacOS X.
79941         * gnulib-tool (func_modules_add_dummy): New function.
79942         (func_import, func_create_testdir): Invoke it.
79943
79944 2006-01-11  Bruno Haible  <bruno@clisp.org>
79945
79946         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79947         with $auxdir in AC_CONFIG_FILES statements.
79948
79949 2006-01-11  Bruno Haible  <bruno@clisp.org>
79950
79951         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79952         Initialize also noinst_HEADERS to empty.
79953
79954 2006-01-11  Bruno Haible  <bruno@clisp.org>
79955
79956         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79957         variables.
79958         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79959         autoreconf.
79960
79961 2006-01-11  Bruno Haible  <bruno@clisp.org>
79962
79963         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79964         overridable by the user.
79965         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79966
79967 2006-01-10  Simon Josefsson  <jas@extundo.com>
79968
79969         * modules/sys_socket: New file.
79970
79971 2006-01-10  Simon Josefsson  <jas@extundo.com>
79972
79973         * m4/sys_socket_h.m4: New file.
79974
79975 2006-01-10  Simon Josefsson  <jas@extundo.com>
79976
79977         * lib/socket_.h: New file.
79978
79979 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79980
79981         * modules/readutmp (Maintainer): Add myself.
79982
79983 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79984
79985         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79986         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79987         People who are still concerned with buggy memcmp implementations
79988         can invoke gl_FUNC_MEMCMP themselves.
79989
79990 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79991
79992         * lib/regex_internal.h (BITSET_WORD_BITS):
79993         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79994         preprocessor mishandles large unsigned values as if they were signed.
79995         Problem reported by Claudio Fontana in
79996         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79997
79998 2006-01-10  Jim Meyering  <jim@meyering.net>
79999
80000         Avoid the double-free (first in fts_read, second in fts_close) that
80001         would occur when an `active' directory is made inaccessible (e.g.,
80002         via chmod a-x) during a traversal.
80003         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80004         before returning.  Reproduce this failure by
80005         mkdir -p a/b; cd a; chmod a-x . b
80006         Reported by Stavros Passas.
80007
80008         Sync from coreutils.
80009         * lib/sha1.c: Tweak grammar in a comment.
80010
80011 2006-01-10  Jim Meyering  <jim@meyering.net>
80012
80013         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80014         Patch by Joerg Sonnenberger.
80015
80016 2006-01-10  Bruno Haible  <bruno@clisp.org>
80017
80018         * modules/readutmp: Depend on module free.
80019         * modules/strtok_r: Depend on module restrict.
80020
80021 2006-01-10  Bruno Haible  <bruno@clisp.org>
80022
80023         * modules/gettext (configure.ac): Add an invocation of
80024         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80025
80026 2006-01-10  Bruno Haible  <bruno@clisp.org>
80027
80028         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80029         Reported by Werner Lemberg <wl@gnu.org>.
80030
80031 2006-01-10  Bruno Haible  <bruno@clisp.org>
80032
80033         * lib/localcharset.c: Update from GNU gettext.
80034
80035 2006-01-10  Bruno Haible  <bruno@clisp.org>
80036
80037         * lib/argp.h (__const): Remove macro. Use const instead.
80038         * lib/argp-fmtstream.h (__const): Likewise.
80039         * lib/glob_.h (__const): Remove macro.
80040         * lib/glob-libc.h: Use const instead of __const.
80041
80042 2006-01-10  Bruno Haible  <bruno@clisp.org>
80043
80044         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80045         variable.
80046         Needed to avoid an automake error regarding the 'gettext' module.
80047
80048 2006-01-09  Simon Josefsson  <jas@extundo.com>
80049
80050         * modules/inet_ntop (Depends-on): Add restrict.
80051
80052 2006-01-09  Simon Josefsson  <jas@extundo.com>
80053
80054         * modules/gc-rijndael-tests (License): Put under LGPL.
80055
80056         * modules/gc-des-tests (License): Likewise.
80057
80058         * modules/gc-arcfour-tests (License): Likewise.
80059
80060         * modules/gc-arctwo-tests (License): Likewise.
80061
80062         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80063
80064         * modules/gc-hmac-sha1-tests (Files): Likewise.
80065
80066         * modules/gc-hmac-md5-tests (License): Likewise.
80067
80068         * modules/gc-sha1-tests (License): Likewise.
80069
80070         * modules/gc-md5-tests (License): Likewise.
80071
80072         * modules/gc-md4-tests (License): Likewise.
80073
80074         * modules/gc-md2-tests (License): Likewise.
80075
80076         * modules/gc-tests (License): Likewise.
80077
80078         * modules/des-tests (License): Likewise.
80079
80080         * modules/md4-tests (License): Likewise.
80081
80082         * modules/md2-tests (License): Likewise.
80083
80084 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80085
80086         Sync from coreutils:
80087
80088         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80089         * modules/lib-ignore: New file.
80090         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80091         chdir-safer.m4, lchmod.m4.
80092         * modules/openat: Add mkdirat.c, openat-priv.h.
80093
80094 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80095
80096         Sync from coreutils.
80097         * m4/lib-ignore.m4: New file.
80098         * m4/lchmod.m4: New file.
80099
80100 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80101
80102         Sync from coreutils.
80103         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80104         for write access: POSIX says that must fail.
80105         * lib/fts.c (diropen): Likewise.
80106         * lib/save-cwd.c (save_cwd): Likewise.
80107         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80108         well, for minor improvements on hosts that lack O_DIRECTORY.
80109         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80110         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80111         Fall back on chown if open failed with EACCES.
80112
80113         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80114         Report an error at compile-time if only a 1-second nominal clock
80115         resolution is found.
80116
80117         * lib/lchmod.h: New file.
80118         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80119         (make_dir_parents): Use lchown rather than chown, and
80120         lchmod rather than chmod.
80121
80122         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80123         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80124         "proc" reported by n0dalus.
80125
80126         * lib/mountlist.c: Include <limits.h>.
80127         (dev_from_mount_options)
80128         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80129         New function.  It no longer assumes "dev=" has the System V meaning
80130         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80131         (read_file_system_list)
80132         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80133         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80134         dev= in that case.
80135
80136         * lib/posixtm.h (PDS_PRE_2000): New macro.
80137         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80138         allow_century.  All usages changed.  Reject dates outside the range
80139         1969-1999 if PDS_PRE_2000 is used.
80140
80141 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80142
80143         Sync from coreutils.
80144         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80145         (Time of day items): Mention the possibility of leap seconds.
80146         Problem reported by Dr. David Alan Gilbert.
80147
80148 2006-01-09  Jim Meyering  <jim@meyering.net>
80149
80150         Sync from coreutils.
80151
80152         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80153
80154         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80155
80156         * lib/modechange.c (mode_compile): Reject an invalid mode string
80157         that starts with an octal digit.  From Andreas Gruenbacher.
80158
80159         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80160         and dup to open_safer and dup_safer, respectively.
80161         (openat_permissive): Fix typo in comment.
80162
80163         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80164         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80165         (_): Remove; no longer needed.
80166         (openat): Renamed from rpl_openat; no need for rpl_openat
80167         since openat.h renames openat for us.
80168         Replace most of the body with a call to openat_permissive,
80169         to avoid duplicate code.
80170         Port to (probably hypothetical) environments were mode_t is
80171         wider than int.
80172         (openat_permissive): Require mode arg, so that we can check
80173         types better.  Put it just after flags.  Change cwd failure
80174         indicator from pointer-to-bool to pointer-to-errno-value.
80175         All callers changed.
80176         Invoke openat_save_fail and/or openat_restore_fail if
80177         cwd_errno is null, so that openat can call us.
80178         (openat_permissive, fdopendir, fstatat, unlinkat):
80179         Simplify errno handling to avoid some duplicate code,
80180         as it's OK to set errno on success.
80181         * lib/openat.h: Revamp code so that function macros depend on
80182         __OPENAT_PREFIX only, not also on AT_FDCWD.
80183         (openat_ro): Remove.  Caller changed to use openat_permissive.
80184         (openat_permissive): Now a macro, if not a function.
80185         (openat_restore_fail, openat_save_fail): Now always functions,
80186         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80187
80188         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80189         and openat.c.
80190         * lib/mkdirat.c: Include openat-priv.h.
80191         Remove definitions of macros defined therein.
80192         * lib/openat.c: Likewise.
80193
80194         * lib/mkdirat.c (mkdirat): New file and function.
80195         * lib/openat.h (mkdirat): Declare.
80196
80197         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80198
80199         * lib/openat.h (openat_permissive): Declare.
80200         (openat_ro): Define.
80201
80202         * lib/openat.c (EXPECTED_ERRNO): New macro.
80203         (openat_permissive): New function -- used in remove.c rewrite.
80204         (all functions): Set errno just before returning, only if there
80205         was an actual failure.
80206         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80207
80208         Emulate openat-family functions using Linux's procfs, if possible.
80209         Idea and some code based on Ulrich Drepper's glibc changes.
80210
80211         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80212         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80213         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80214         before falling back on save_cwd and restore_cwd.
80215         (fdopendir, fstatat, unlinkat): Likewise.
80216
80217         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80218         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80219
80220         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80221         as second argument to va_arg.  Otherwise, some versions of gcc
80222         warn that `if this code is reached, the program will abort'.
80223
80224 2006-01-09  Jim Meyering  <jim@meyering.net>
80225
80226         Sync from coreutils.
80227         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80228         Require openat-priv.h.
80229
80230 2006-01-09  Bruno Haible  <bruno@clisp.org>
80231
80232         * modules/strnlen (Include): Use strnlen.h.
80233
80234 2006-01-09  Bruno Haible  <bruno@clisp.org>
80235
80236         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80237
80238 2006-01-09  Bruno Haible  <bruno@clisp.org>
80239
80240         * lib/sysexit_.h (EX_OK): New macro.
80241         Suggested by Martin Lambers <marlam@marlam.de>.
80242
80243 2006-01-09  Bruno Haible  <bruno@clisp.org>
80244
80245         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80246         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80247
80248 2006-01-09  Bruno Haible  <bruno@clisp.org>
80249
80250         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80251         numbers.
80252
80253 2006-01-09  Bruno Haible  <bruno@clisp.org>
80254
80255         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80256         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80257         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80258         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80259
80260 2006-01-09  Bruno Haible  <bruno@clisp.org>
80261
80262         * build-aux/javacomp.sh.in: New file, moved from lib/.
80263         * modules/javacomp-script (Files): Update.
80264         (configure.ac): Add AC_CONFIG_FILES invocation.
80265         (EXTRA_DIST): Remove variable.
80266
80267         * build-aux/javaexec.sh.in: New file, moved from lib/.
80268         * modules/javaexec (Files): Update.
80269         (configure.ac): Add AC_CONFIG_FILES invocation.
80270         (EXTRA_DIST): Remove javaexec.sh.in.
80271
80272         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80273         * modules/csharpcomp-script (Files): Update.
80274         (configure.ac): Add AC_CONFIG_FILES invocation.
80275         (EXTRA_DIST): Remove variable.
80276
80277         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80278         * modules/csharpexec (Files): Update.
80279         (configure.ac): Add AC_CONFIG_FILES invocation.
80280         (EXTRA_DIST): Remove csharpexec.sh.in.
80281
80282 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80283
80284         Sync from coreutils.
80285
80286         Add POSIX ACL support
80287         * lib/acl.h (copy_acl, set_acl): Add declarations.
80288         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80289         systems other than Linux.
80290         (chmod_or_fchmod): New function: use fchmod when possible,
80291         and chmod otherwise.
80292         (file_has_acl): Add a POSIX ACL implementation, with a
80293         Linux-specific subcase.
80294         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80295         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80296         acls are unsupported.
80297         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80298         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80299         are unsupported.
80300
80301 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80302
80303         Sync from coreutils.
80304         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80305
80306 2006-01-07  Bruno Haible  <bruno@clisp.org>
80307
80308         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80309         gl_EARLY.
80310
80311 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80312
80313         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80314         Problem reported for Mingw by Mark Junker.
80315
80316 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80317
80318         * README: Gnulib normally doesn't generate a tarball.
80319
80320 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80321
80322         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80323         long int, not int, for nanosecond counts, so that people who are
80324         used to POSIX struct timespec won't be surprised.  Reported by Jim
80325         Meyering.
80326
80327 2005-12-28  Bruno Haible  <bruno@clisp.org>
80328
80329         * build-aux/config.rpath: Update from GNU gettext.
80330
80331 2005-12-16  Jim Meyering  <jim@meyering.net>
80332
80333         * modules/fprintftime: New module.
80334         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80335
80336 2005-12-16  Jim Meyering  <jim@meyering.net>
80337
80338         * m4/fprintftime.m4: New file.
80339
80340 2005-12-16  Jim Meyering  <jim@meyering.net>
80341
80342         * lib/fprintftime.c, lib/fprintftime.h: New files.
80343
80344 2005-12-15  Simon Josefsson  <jas@extundo.com>
80345
80346         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80347         new m4/socklen.m4.
80348
80349 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80350
80351         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80352         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80353
80354 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80355
80356         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80357         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80358         struct uparams is valid. Fall back to the default values if it is
80359         not.
80360
80361 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80362
80363         * modules/argp (Files): Add argp-pin.c
80364         (Depends-on): dirname
80365         (lib_SOURCES): Add argp-pin.c
80366
80367 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80368
80369         * m4/argp.m4:  Check if program_invocation_name and
80370         program_invocation_short_name are declared and define appropriate
80371         macros if they are not.
80372
80373 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80374
80375         * lib/argp-help.c (__argp_base_name): New function
80376         (__argp_short_program_name): Rewrite using __argp_base_name
80377         * lib/argp-namefrob.h: Define program_invocation_name and
80378         program_invocation_short_name if requested
80379         (__argp_base_name): Add prototype
80380         * lib/argp-parse.c (argp_def): Use gettext wrappers
80381         (argp_default_parser): Use __argp_base_name
80382         * lib/argp-pin.c: New file. Defines program_invocation_name and
80383         program_invocation_short_name on systems that lack them.
80384
80385 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80386
80387         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80388         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80389         porting problem reported by Georg Schwarz in
80390         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80391
80392 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80393
80394         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80395         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80396         porting problem reported by Georg Schwarz in
80397         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80398
80399 2005-12-05  Bruno Haible  <bruno@clisp.org>
80400
80401         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80402         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80403         Reported by Mark Junker <mjscod@gmx.de>.
80404
80405 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80406
80407         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80408         Use implementation from Albert Chin, with some
80409         comments/corrections by Stepan Kasal and myself.
80410
80411 2005-12-02  Bruno Haible  <bruno@clisp.org>
80412
80413         * gnulib-tool (func_import): Accept GPLed build tool modules when
80414         --lgpl is given.
80415         * modules/csharpcomp-script: New file.
80416         * modules/csharpcomp: Depend on it.
80417         * modules/javacomp-script: New file.
80418         * modules/javacomp: Depend on it.
80419         Suggested by Simon Josefsson.
80420
80421 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80422
80423         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80424         statement, to work around an HP-UX 10.20 compiler bug reported by
80425         Peter O'Gorman.
80426
80427 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80428
80429         * modules/savedir (Depends-on): Add openat.
80430
80431 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80432
80433         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80434         (uintmax_t) [defined uintmax_t]: Do not declare.
80435         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80436         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80437         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80438         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80439         sake of portability to weird hosts that C allows (though we don't
80440         know of any practical examples).
80441
80442         * lib/savedir.h (fdsavedir): New decl.
80443         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80444         contains most of the former guts of savedir.
80445         (savedir): Use savedirstream.
80446         Include "openat.h".
80447
80448 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80449
80450         * modules/obstack (Files): Add m4/ulonglong.m4.
80451         Problem reported by Davide Angelocola.
80452
80453 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80454
80455         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80456         coreutils no longer futzes with rounding modes.
80457
80458 2005-11-14  Jim Meyering  <jim@meyering.net>
80459
80460         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80461         replacement of mkstemp.
80462
80463 2005-11-10  Simon Josefsson  <jas@extundo.com>
80464
80465         * lib/readline.c: Remove EOL.
80466
80467 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80468
80469         * modules/gethrxtime (Depends-on): Add gettime.
80470
80471 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80472
80473         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80474         or gettimeofday; no longer needed.
80475
80476 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80477
80478         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80479         time business.
80480         (gethrxtime) [! (HAVE_NANOUPTIME
80481         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80482         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80483         our own approximation.
80484
80485 2005-11-08  Eric Blake  <ebb9@byu.net>
80486
80487         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80488
80489 2005-11-08  Eric Blake  <ebb9@byu.net>
80490
80491         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80492
80493 2005-11-04  Bruno Haible  <bruno@clisp.org>
80494
80495         * gnulib-tool: Implement --update mode.
80496
80497 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80498
80499         Fix porting problem reported by Theodoros V. Kalamatianos.
80500         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80501         Don't assume that futimes failing means we must fail.
80502
80503 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80504
80505         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80506         variables to suggest the intended function of the PATH_MAX check.
80507
80508 2005-10-30  Kean Johnston  <jkj@sco.com>
80509
80510         Trivial changes to support SCO systems.
80511         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80512         as PATH_MAX.
80513         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80514         where __ptr is null when no I/O is pending.
80515
80516 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80517
80518         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80519         leave errno alone.  Problem reported by Dmitry V. Levin.
80520
80521 2005-10-28  Simon Josefsson  <jas@extundo.com>
80522
80523         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80524         Test more.
80525
80526         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80527
80528         * modules/md2, modules/md2-tests: New files.
80529
80530 2005-10-28  Simon Josefsson  <jas@extundo.com>
80531
80532         * m4/inet_ntop.m4: More tests.
80533
80534         * m4/gc-md2.m4, md2.m4: New file.
80535
80536 2005-10-28  Simon Josefsson  <jas@extundo.com>
80537
80538         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80539         "restrict" keywords, as per POSIX.  Protect the function
80540         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80541         Don't use K&R prototypes.  Check the sprintf return values.
80542         Re-define EAFNOSUPPORT if not present.  Indent.
80543
80544         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80545         suggested by Bruno Haible <bruno@clisp.org>.
80546
80547         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80548
80549         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80550
80551         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80552         libgcrypt).
80553
80554         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80555
80556         * lib/md2.h, lib/md2.c: New files.
80557
80558 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80559
80560         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80561         errno alone.  Problem reported by Frederic Jolliton.
80562
80563 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80564
80565         * modules/verify (License): Change from GPL to LGPL.  This is a
80566         tiny module and there are apparently near-equivalents that are
80567         under the BSD license.
80568
80569 2005-10-24  Simon Josefsson  <jas@extundo.com>
80570
80571         * modules/sha1: Relicense to LGPL.
80572
80573 2005-10-24  Simon Josefsson  <jas@extundo.com>
80574
80575         * lib/md4.h: Shrink buffer size, now that we changed the type.
80576
80577 2005-10-23  Simon Josefsson  <jas@extundo.com>
80578
80579         * gnulib-tool (func_import): Fix --tests-base.
80580
80581 2005-10-22  Simon Josefsson  <jas@extundo.com>
80582
80583         * modules/arcfour (Depends-on): Need stdint.
80584
80585 2005-10-22  Simon Josefsson  <jas@extundo.com>
80586
80587         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80588         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80589
80590 2005-10-22  Simon Josefsson  <jas@extundo.com>
80591
80592         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80593         suggested by Bruno Haible <bruno@clisp.org>.
80594
80595 2005-10-22  Simon Josefsson  <jas@extundo.com>
80596
80597         * lib/crc.h: Include stddef.h, for size_t.
80598
80599 2005-10-22  Simon Josefsson  <jas@extundo.com>
80600
80601         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80602         arcfour_context struct (simplify test vector testing in GNU
80603         Shishi).
80604
80605 2005-10-21  Simon Josefsson  <jas@extundo.com>
80606
80607         * modules/des, modules/des-tests: New files.
80608
80609         * modules/gc-des, modules/gc-des-tests: New files.
80610
80611         * tests/test-des.c, tests/test-gc-des.c: New file.
80612
80613 2005-10-21  Simon Josefsson  <jas@extundo.com>
80614
80615         * modules/arctwo, modules/arctwo-tests: New files.
80616
80617         * tests/test-arctwo.c: New file.
80618
80619         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80620
80621         * tests/test-gc-arctwo.c: New file.
80622
80623 2005-10-21  Simon Josefsson  <jas@extundo.com>
80624
80625         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80626         Bruno Haible <bruno@clisp.org>.
80627
80628         * m4/gc-des.m4: New file.
80629
80630 2005-10-21  Simon Josefsson  <jas@extundo.com>
80631
80632         * m4/arctwo.m4: New file.
80633
80634         * m4/gc-arctwo.m4: New file.
80635
80636 2005-10-21  Simon Josefsson  <jas@extundo.com>
80637
80638         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80639         block.
80640
80641 2005-10-21  Simon Josefsson  <jas@extundo.com>
80642
80643         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80644         <bruno@clisp.org>.
80645
80646         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80647
80648         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80649         Bruno Haible <bruno@clisp.org>.
80650
80651         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80652         <bruno@clisp.org>.
80653
80654 2005-10-21  Simon Josefsson  <jas@extundo.com>
80655
80656         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80657
80658 2005-10-21  Simon Josefsson  <jas@extundo.com>
80659
80660         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80661
80662 2005-10-21  Simon Josefsson  <jas@extundo.com>
80663
80664         * lib/des.h, lib/des.c: New files.
80665
80666         * lib/gc-gnulib.c: Support DES.c
80667
80668 2005-10-21  Simon Josefsson  <jas@extundo.com>
80669
80670         * lib/arctwo.h, lib/arctwo.c: New files.
80671
80672         * lib/gc-gnulib.c: Support ARCTWO.
80673
80674 2005-10-21  Simon Josefsson  <jas@extundo.com>
80675
80676         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80677         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80678
80679 2005-10-21  Simon Josefsson  <jas@extundo.com>
80680
80681         * gnulib-tool (func_import, func_create_testdir): Define automake
80682         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80683         Makefile.am snippet),
80684         suggested by Bruno Haible <bruno@clisp.org>.
80685
80686         * modules/gc (Makefile.am): Use it.
80687
80688 2005-10-21  Bruno Haible  <bruno@clisp.org>
80689
80690         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80691         patch.
80692
80693 2005-10-19  Simon Josefsson  <jas@extundo.com>
80694
80695         * tests/test-gc-rijndael.c: New file.
80696
80697         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80698
80699 2005-10-19  Simon Josefsson  <jas@extundo.com>
80700
80701         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80702         interface too.
80703
80704 2005-10-19  Simon Josefsson  <jas@extundo.com>
80705
80706         * tests/test-gc-arcfour.c: New file.
80707
80708         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80709
80710 2005-10-19  Simon Josefsson  <jas@extundo.com>
80711
80712         * modules/gc-md4, modules/gc-md4-tests: New file.
80713
80714         * tests/test-gc-md4.c: New file.
80715
80716 2005-10-19  Simon Josefsson  <jas@extundo.com>
80717
80718         * m4/gc-md4.m4: New file.
80719
80720 2005-10-19  Simon Josefsson  <jas@extundo.com>
80721
80722         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80723         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80724         <kasal@ucw.cz>.
80725
80726 2005-10-19  Simon Josefsson  <jas@extundo.com>
80727
80728         * m4/gc-arcfour.m4: New file.
80729
80730         * m4/gc-rijndael.m4: New file.
80731
80732 2005-10-19  Simon Josefsson  <jas@extundo.com>
80733
80734         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80735
80736 2005-10-19  Simon Josefsson  <jas@extundo.com>
80737
80738         * lib/gc-gnulib.c: Support ARCFOUR.
80739
80740 2005-10-19  Simon Josefsson  <jas@extundo.com>
80741
80742         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80743         support.
80744
80745         * lib/gc.h: Add ECB enum type.
80746
80747         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80748
80749 2005-10-18  Simon Josefsson  <jas@extundo.com>
80750
80751         * tests/test-md5.c: New file.
80752
80753         * modules/md5-tests: New file.
80754
80755 2005-10-18  Simon Josefsson  <jas@extundo.com>
80756
80757         * tests/test-md4.c: New file.
80758
80759         * modules/md4, modules/md4-tests: New files.
80760
80761 2005-10-18  Simon Josefsson  <jas@extundo.com>
80762
80763         * m4/md4.m4: New file.
80764
80765 2005-10-18  Simon Josefsson  <jas@extundo.com>
80766
80767         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80768
80769 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80770
80771         * gnulib-tool (func_create_testdir): Omit the second check whether
80772         BUILT_SOURCES in nonempty.
80773
80774 2005-10-17  Simon Josefsson  <jas@extundo.com>
80775
80776         * tests/test-rijndael.c: New file.
80777
80778 2005-10-17  Simon Josefsson  <jas@extundo.com>
80779
80780         * modules/sha1: Depend on stdint instead of md5.
80781
80782         * modules/md5: Depend on stdint, remove uint32_t.
80783
80784 2005-10-17  Simon Josefsson  <jas@extundo.com>
80785
80786         * modules/gc-sha1-tests: New file.
80787
80788         * tests/test-gc-sha1.c: New file.
80789
80790 2005-10-17  Simon Josefsson  <jas@extundo.com>
80791
80792         * m4/md5.m4: Remove call to uint32_t.m4.
80793
80794 2005-10-17  Simon Josefsson  <jas@extundo.com>
80795
80796         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80797
80798         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80799         md5.h.
80800
80801         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80802
80803         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80804
80805 2005-10-17  Simon Josefsson  <jas@extundo.com>
80806
80807         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80808
80809 2005-10-17  Simon Josefsson  <jas@extundo.com>
80810
80811         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80812
80813 2005-10-17  Simon Josefsson  <jas@extundo.com>
80814
80815         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80816
80817         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80818
80819 2005-10-17  Bruno Haible  <bruno@clisp.org>
80820
80821         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80822         that it can also be used in a test.
80823
80824 2005-10-16  Bruno Haible  <bruno@clisp.org>
80825
80826         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80827         TESTS_ENVIRONMENT, so that individual tests can augment it.
80828
80829         * gnulib-tool (func_create_testdir): Use an intermediate target for
80830         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80831         macros, like $(ALLOCA_H), which cannot be passed through the command
80832         line.
80833
80834 2005-10-15  Simon Josefsson  <jas@extundo.com>
80835
80836         * modules/rijndael-tests: New file.
80837
80838         * modules/rijndael: New file.
80839
80840 2005-10-15  Simon Josefsson  <jas@extundo.com>
80841
80842         * m4/rijndael.m4: New file.
80843
80844 2005-10-15  Simon Josefsson  <jas@extundo.com>
80845
80846         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80847
80848         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80849
80850 2005-10-14  Simon Josefsson  <jas@extundo.com>
80851
80852         * tests/test-arcfour.c: New file.
80853
80854         * modules/arcfour, modules/arcfour-tests: New files.
80855
80856 2005-10-14  Simon Josefsson  <jas@extundo.com>
80857
80858         * m4/arcfour.m4: New file.
80859
80860 2005-10-14  Simon Josefsson  <jas@extundo.com>
80861
80862         * lib/arcfour.h, lib/arcfour.c: New files.
80863
80864 2005-10-14  Roland McGrath  <roland@redhat.com>
80865
80866         Import from libc.  [BZ #1331]
80867         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80868         macro argument.
80869         Reported by Matej Vela <vela@debian.org>.
80870
80871 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80872
80873         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80874         include <wchar.h>; no longer needed.
80875
80876 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80877
80878         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80879
80880 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80881         and  Ulrich Drepper  <drepper@redhat.com>
80882
80883         Import from libc.
80884         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80885         instead of inline stream orientation test and two separate
80886         function calls.  Pay no attention to USE_IN_LIBIO.
80887
80888 2005-10-13  Simon Josefsson  <jas@extundo.com>
80889
80890         * modules/gc-hmac-md5-tests: New file.
80891
80892         * tests/test-gc-hmac-sha1.c: New file.
80893
80894         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80895
80896         * modules/gc-hmac-md5-tests: New file.
80897
80898         * tests/test-gc-md5.c: New file.
80899
80900         * modules/gc-md5-tests: New file.
80901
80902 2005-10-13  Simon Josefsson  <jas@extundo.com>
80903
80904         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80905         Move memory allocation outside of loop.
80906
80907 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80908
80909         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80910         intermediate directory is in a read-only file system.  Problem
80911         reported by Eric Blake.
80912
80913 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80914
80915         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80916
80917 2005-10-12  Simon Josefsson  <jas@extundo.com>
80918
80919         * tests/test-hmac-sha1.c: New file.
80920
80921         * modules/hmac-sha1-tests: New file.
80922
80923         * modules/hmac-sha1: New file.
80924
80925 2005-10-12  Simon Josefsson  <jas@extundo.com>
80926
80927         * modules/gc-sha1: New file.
80928
80929 2005-10-12  Simon Josefsson  <jas@extundo.com>
80930
80931         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80932
80933         * tests/test-gc-pbkdf2-sha1.c: New file.
80934
80935 2005-10-12  Simon Josefsson  <jas@extundo.com>
80936
80937         * modules/gc-md5, modules/gc-hmac-md5: New files.
80938
80939         * modules/gc (Files): Remove md5, memxor and hmac files.
80940
80941 2005-10-12  Simon Josefsson  <jas@extundo.com>
80942
80943         * m4/gc-pbkdf2-sha1.m4: New file.
80944
80945         * m4/gc-hmac-sha1.m4: New file.
80946
80947         * m4/gc-sha1: New file.
80948
80949         * m4/hmac-sha1.m4: New file.
80950
80951 2005-10-12  Simon Josefsson  <jas@extundo.com>
80952
80953         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80954
80955         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80956
80957 2005-10-12  Simon Josefsson  <jas@extundo.com>
80958
80959         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80960         suggested by Bruno Haible <bruno@clisp.org>.
80961
80962 2005-10-12  Simon Josefsson  <jas@extundo.com>
80963
80964         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80965
80966 2005-10-12  Simon Josefsson  <jas@extundo.com>
80967
80968         * lib/gc-pbkdf2-sha1.c: New file.
80969
80970         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80971
80972 2005-10-12  Simon Josefsson  <jas@extundo.com>
80973
80974         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80975
80976         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80977
80978 2005-10-12  Simon Josefsson  <jas@extundo.com>
80979
80980         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80981         GC_USE_HMAC_MD5, respectively.
80982
80983         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80984         (gc_md5): Fix typo.
80985
80986         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80987
80988         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80989
80990         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80991
80992 2005-10-12  Bruno Haible  <bruno@clisp.org>
80993
80994         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80995         Reported by Stepan Kasal <kasal@ucw.cz>.
80996
80997 2005-10-11  Simon Josefsson  <jas@extundo.com>
80998
80999         * tests/test-crc.c: New file.
81000
81001         * modules/crc, modules/crc-tests: New files.
81002
81003 2005-10-11  Simon Josefsson  <jas@extundo.com>
81004
81005         * m4/crc.m4: New file.
81006
81007 2005-10-11  Simon Josefsson  <jas@extundo.com>
81008
81009         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81010
81011         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81012
81013         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81014
81015 2005-10-11  Simon Josefsson  <jas@extundo.com>
81016
81017         * lib/crc.h, lib/crc.c: New files.
81018
81019         * lib/gc.h (gc_hash_buffer): Add doc.
81020
81021 2005-10-11  Bruno Haible  <bruno@clisp.org>
81022
81023         * modules/c-strcasestr: New file.
81024         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81025
81026 2005-10-11  Bruno Haible  <bruno@clisp.org>
81027
81028         * modules/c-strcase: New file.
81029         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81030
81031 2005-10-11  Bruno Haible  <bruno@clisp.org>
81032
81033         * lib/strcasecmp.c: Include limits.h.
81034         (strcasecmp): Avoid integer overflow on exotic platforms.
81035         * lib/strncasecmp.c: Include limits.h.
81036         (strncasecmp): Avoid integer overflow on exotic platforms.
81037         Reported by Paul Eggert.
81038
81039 2005-10-11  Bruno Haible  <bruno@clisp.org>
81040
81041         * lib/c-strcasestr.h: New file, from GNU gettext.
81042         * lib/c-strcasestr.c: New file, from GNU gettext.
81043
81044 2005-10-11  Bruno Haible  <bruno@clisp.org>
81045
81046         * lib/c-strcase.h: New file, from GNU gettext.
81047         * lib/c-strcasecmp.c: New file, from GNU gettext.
81048         * lib/c-strncasecmp.c: New file, from GNU gettext.
81049
81050 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81051
81052         * modules/mempcpy (License): GPL -> LGPL.
81053         * modules/strchrnul (License): Likewise.
81054         * modules/sysexits (License): Likewise.
81055
81056 2005-10-08  Simon Josefsson  <jas@extundo.com>
81057
81058         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81059
81060 2005-10-07  Simon Josefsson  <jas@extundo.com>
81061
81062         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81063
81064 2005-10-06  Simon Josefsson  <jas@extundo.com>
81065
81066         * tests/test-hmac-md5.c: New file.
81067
81068         * modules/hmac-md5-tests: New file.
81069
81070         * modules/hmac-md5: New file.
81071
81072 2005-10-06  Simon Josefsson  <jas@extundo.com>
81073
81074         * m4/hmac-md5.m4: New file.
81075
81076         * m4/memxor.m4: Require gl_C_RESTRICT.
81077
81078 2005-10-06  Simon Josefsson  <jas@extundo.com>
81079
81080         * lib/memxor.c (memxor): Avoid casts and warnings.
81081
81082 2005-10-06  Simon Josefsson  <jas@extundo.com>
81083
81084         * lib/hmac-md5.c: New file.
81085
81086         * lib/hmac.h: New file.
81087
81088 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81089
81090         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81091         promotes to int, not unsigned int, to catch the AIX 5.3
81092         compiler bug.
81093
81094 2005-10-05  Simon Josefsson  <jas@extundo.com>
81095
81096         * modules/memxor: New file.
81097
81098         * modules/iconv (Files): Move config.rpath to havelib, it is used
81099         there.
81100
81101         * modules/havelib (Files): Add config.rpath.
81102
81103 2005-10-05  Simon Josefsson  <jas@extundo.com>
81104
81105         * m4/memxor.m4: New file.
81106
81107 2005-10-05  Simon Josefsson  <jas@extundo.com>
81108
81109         * lib/memxor.c (memxor): Fix compiler error.
81110
81111         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81112         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81113
81114         * lib/memxor.h, lib/memxor.c: New files.
81115
81116         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81117         we assume all systems have it, suggested by Jim Meyering
81118         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81119         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81120         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81121         same reasons.
81122
81123 2005-10-05  Simon Josefsson  <jas@extundo.com>
81124
81125         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81126
81127 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81128
81129         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81130         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81131         needed, since the source code now assumes these .h files.
81132
81133 2005-10-05  Derek Price  <derek@ximbiot.com>
81134
81135         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81136
81137 2005-10-05  Bruno Haible  <bruno@clisp.org>
81138
81139         * modules/stdint (License): Change to LGPL.
81140
81141 2005-10-04  Simon Josefsson  <jas@extundo.com>
81142
81143         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81144         D. Baushke" <mdb@gnu.org>.
81145
81146 2005-10-04  Bruno Haible  <bruno@clisp.org>
81147
81148         * lib/verify.h (verify_true): Provide alternative definition for C++.
81149
81150 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81151
81152         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81153         (SSIZE_MAX): New macro, if not already defined.
81154         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81155         than 2 GiB.
81156
81157 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81158
81159         Sync from coreutils.
81160         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81161         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81162         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81163         ULLONG_MAX doesn't work with 2.7.2.1.
81164
81165 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81166
81167         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81168         From Ben Pfaff.
81169
81170         * modules/exclude (Depends-on): Depend on verify.
81171         * modules/strtoimax (Depends-on): Likewise.
81172         * modules/utimecmp (Depends-on): Likewise.
81173
81174 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81175
81176         * lib/exclude.c: Include verify.h.
81177         (verify): Remove.  All callers changed to use verify.h's version.
81178         * lib/strtoimax.c: Likewise.
81179         * lib/utimecmp.c: Likewis.e
81180
81181         Sync from coreutils.
81182         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81183         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81184         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81185         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81186         bother returning ENOSYS if settimeofday or stime fails; just let
81187         them return whatever errno they want to return.
81188         * lib/utimens.c: Include unistd.h, for dup2.
81189         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81190         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81191
81192 2005-10-02  Jim Meyering  <jim@meyering.net>
81193
81194         Sync from coreutils.
81195         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81196         from glibc-2.2.5 that fails for read-only files.
81197
81198 2005-10-02  Jim Meyering  <jim@meyering.net>
81199
81200         Sync from coreutils.
81201         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81202         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81203         `#if HAVE_CONFIG_H'.
81204         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81205         Remove AT_FDCWD test.
81206         Do not consume the fd unless successful.
81207         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81208         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81209         block, so that we don't even try to compile it if settimeofday is
81210         available.  This works around a compilation failure on OSF1 V5.1,
81211         due to stime requiring a `long int*' while tv_sec is `int'.
81212
81213 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81214
81215         Sync from coreutils.
81216         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81217         against `yes', rather than just testing for nonempty.
81218
81219 2005-10-01  Simon Josefsson  <jas@extundo.com>
81220
81221         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81222         and Darwin.
81223
81224         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81225         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81226         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81227         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81228         Check if struct addrinfo is declared.
81229
81230 2005-10-01  Simon Josefsson  <jas@extundo.com>
81231
81232         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81233         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81234         AI_* and EAI_* definitions.  Protect function declarations.
81235
81236 2005-10-01  Jim Meyering  <jim@meyering.net>
81237
81238         Sync from coreutils.
81239
81240         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81241         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81242         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81243         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81244         in the inet and nsl libraries.  Required on Solaris 5.7.
81245
81246 2005-10-01  Jim Meyering  <jim@meyering.net>
81247
81248         Sync from coreutils.
81249         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81250         in the inet and nsl libraries.  Required on Solaris 5.7.
81251
81252 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81253
81254         * lib/getdelim.c (getdelim): Remove unused variables.
81255
81256 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81257
81258         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81259         so that the code works even with ancient cpp.  Portability problem
81260         with GCC 2.7.2.1 reported by Thomas M.Ott.
81261
81262 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81263
81264         * modules/regex (Depends-on): Add strcase.
81265
81266         * modules/gethostname (Licence): Change from GPL to LGPL, since
81267         gethostname.c is a trivial implementation of a standard library
81268         function.
81269         * modules/poll (License): Change from GPL to LGPL, since it's
81270         derived from LGPL code.
81271
81272 2005-09-27  Jim Meyering  <jim@meyering.net>
81273
81274         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81275         HAVE_CONFIG_H.
81276
81277         * lib/intprops.h (signed_type_or_expr__): Define.
81278         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81279         for unsigned types.
81280
81281 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81282
81283         * lib/verify.h (verify_expr): Remove, replacing with:
81284         (verify_true): New macro that returns true instead of void.
81285         (verify_type__): Remove.
81286         (verify): Use verify_true rather than verify_type__.
81287
81288 2005-09-26  Bruno Haible  <bruno@clisp.org>
81289
81290         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81291         is necessary.
81292         (lib_SOURCES): Remove mbchar.c.
81293         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81294         (Files): Add m4/mbrtowc.m4.
81295         * modules/mbiter: Likewise.
81296         * modules/mbuiter: Likewise.
81297
81298 2005-09-26  Bruno Haible  <bruno@clisp.org>
81299
81300         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81301         compile mbchar.c if they are not both present.
81302         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81303         * m4/mbiter.m4 (gl_MBITER): Likewise.
81304         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81305         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81306         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81307
81308 2005-09-25  Jim Meyering  <jim@meyering.net>
81309
81310         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81311         also uses socklen_t.
81312
81313 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81314
81315         * lib/utimens.c (ENOSYS): Define if not already defined.
81316         (futimens): Support having a null PATH if the file descriptor
81317         is nonnegative.
81318
81319         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81320         Remove.
81321         (__attribute): Define to empty unless GCC 3.1 or later.
81322         This works around a core dump on OpenBSD 3.4, which has GCC
81323         2.95.3, which dumps core when given __attribute__(()).  It also
81324         simplifies other tests, since we really don't want to bother with
81325         worrying about which ancient version of GCC supported what.
81326         Original problem reported by Yoann Vandoorselaere, with part of
81327         the fix suggested by Derek Price.
81328
81329 2005-09-24  Jim Meyering  <jim@meyering.net>
81330
81331         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81332         so we can once again use a positive bitfield width of 1 -- now we
81333         don't have to explain why we were using a bitfield width of 2.
81334
81335 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81336
81337         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81338         and similarly for the other external symbols.  Problem reported
81339         by James Gallager.
81340
81341         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81342         bug reported by Jim Meyering.
81343
81344         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81346         not needed, since socklen is a prerequisite module.
81347
81348 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81349
81350         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81351         Problem reported by Eric Blake.
81352         (getaddrinfo): Initialize se so that it's not garbage.
81353         Redo internal storage allocation so that it doesn't make unportable
81354         assumptions about alignment.
81355         Fix a memory leak.
81356
81357         * lib/utimens.c (futimens): Use futimesat if available.
81358         Prefer it to futimes since it doesn't have the futimes bug.
81359
81360         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81361         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81362         Instead, declare a function that returns a pointer to an array,
81363         and use verify_type__ to declare the size of the array.
81364         Problem and germ of a solution reported by Bruno Haible.
81365         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81366         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81367
81368 2005-09-23  Jim Meyering  <jim@meyering.net>
81369
81370         Sync from coreutils.
81371         Correct build failure (socklen_t not defined) on at least
81372         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81374
81375 2005-09-23  Jim Meyering  <jim@meyering.net>
81376
81377         * modules/getaddrinfo (Depends-on): Add socklen.
81378
81379 2005-09-23  Bruno Haible  <bruno@clisp.org>
81380
81381         * tests/test-verify.c: New file.
81382
81383 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81384
81385         Sync from coreutils.
81386
81387         * modules/argmatch (Depends-on): Add verify.
81388         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81389         unistd-safer.
81390         * modules/save-cwd (Depends-on): Likewise.
81391
81392         * modules/openat (Files): Add lib/openat-die.c.
81393         (Depends-on): Remove error, exitfail.
81394         Add dirname.
81395
81396         * modules/verify: New file.
81397         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81398         with "verify" module.
81399
81400 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81401
81402         Sync from coreutils.
81403
81404         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81405         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81406         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81407         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81408         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81409         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81410         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81411         Don't bother checking for string.h, stdlib.h, unistd.h.
81412         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81413         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81414         module's job.
81415         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81416         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81417
81418         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81419         (gl_GETDATE): Use it.
81420
81421         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81422
81423 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81424
81425         Sync from coreutils.
81426
81427         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81428         stat-time.h.
81429         * lib/argmatch.h: Include verify.h
81430         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81431         (ARGMATCH_ASSERT): Remove; unused.
81432         * lib/canonicalize.c: Assume STDC_HEADERS.
81433         * lib/exclude.c: Include "strcase.h".
81434         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81435         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81436         and stdio-safer.h.
81437         (getusershell): Call fopen, not fopen_safer.
81438         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81439         Do not include unistd-safer.h.
81440         (save_cwd): Don't call fd_safer; no longer needed
81441         now that we include fcntl--.h.
81442
81443         * lib/getdate.y (relative_time): New type.
81444         (RELATIVE_TIME_0): New constant.
81445         (parser_control): Use relative_time instead of doing it ourselves.
81446         (%union): Add new relative_time rel member.
81447         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81448         Now typeless.
81449         (relunit, relunit_snumber): Now of type rel.
81450         (zone, rel, relunit, get_date): Adjust to above changes.
81451
81452         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81453         Do not include unistd-safer.h.
81454         (getloadavg): Don't call fd_safer; no longer needed
81455         now that we include fcntl--.h.
81456
81457         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81458         (make_dir_parents): Treat ENOSYS like EEXIST.
81459
81460         Improve quality of diagnostics on restore_cwd failure.
81461         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81462         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81463         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81464         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81465         each time through the loop.  Do not diagnose restore_cwd failure;
81466         that is the caller's job (and perhaps the caller does not care).
81467
81468         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81469         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81470         If the file already exists but is not a directory, don't bother
81471         to try to make its parents.
81472         Close potential file descriptor leak if we can't chdir("/") (!).
81473         Don't always return true if chdir($PWD) fails; return true only
81474         if the requested action was done successfully (except for the
81475         chdir($PWD)).
81476         Don't log final directory unless we actually made it.
81477         Refactor to avoid duplicate code to fix up permissions.
81478         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81479
81480         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81481         to make it a bit faster and (I hope) clearer.
81482         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81483         Fix bug in formats like %2N.
81484
81485         * lib/verify.h: New file.
81486
81487 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81488
81489         Sync from coreutils.
81490         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81491
81492 2005-09-22  Jim Meyering  <jim@meyering.net>
81493
81494         Sync from coreutils.
81495
81496         * m4/lstat.m4 (gl_FUNC_LSTAT):
81497         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81498         Remove obsolete comment.
81499         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81500         * m4/xstrtod.m4: Likewise.
81501
81502         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81503
81504 2005-09-22  Jim Meyering  <jim@meyering.net>
81505
81506         Sync from coreutils.
81507
81508         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81509
81510         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81511         the .tm_year member, since otherwise gcc-4.0 would now warn about
81512         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81513
81514         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81515         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81516
81517         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81518         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81519         when run in a time zone for which daylight savings time is in effect
81520         for the starting date.
81521
81522         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81523         stop us from restricting permissions of just-created absolute-named
81524         directories.
81525         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81526         to restore initial working directory.
81527         * lib/mkdir-p.c (make_dir_parents): New parameter:
81528         different_working_dir, to tell caller if/when we change the working
81529         directory and are unable to return to the initial one.
81530         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81531         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81532         `return false'.  This fixes a bug introduced on 2004-07-30.
81533
81534         * lib/openat.c (fdopendir): Be sure to close the supplied
81535         file descriptor before returning.  This makes our replacement
81536         implementation a little closer to Solaris's, where fdopendir
81537         ties the file descriptor to the returned DIR* pointer.
81538         * lib/openat.c (unlinkat): New function.
81539         * lib/openat.h (unlinkat): Add prototype.
81540         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81541         (openat_restore_fail): Rename from openat_restore_die.
81542         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81543
81544         Provide an alternative to exiting immediately upon save_cwd or
81545         restore_cwd failure.  Now, an application can arrange e.g.,
81546         to perform a longjump in that case.
81547         * lib/openat.c: Include dirname.h.
81548         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81549         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81550         and openat_restore_die rather than calling error directly.
81551         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81552
81553         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81554         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81555         define.
81556
81557         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81558         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81559                             int utc, int nanoseconds);
81560         Background:
81561         date should not have to allocate a megabyte of virtual memory to
81562         handle a format argument like +%1048575T.  When implemented with
81563         strftime, it must allocate such a buffer, use strftime to fill it
81564         in, print it, then free it.
81565         With fprintftime, it simply prints everything and exits.
81566         With no need for memory allocation, that's one fewer way to fail.
81567         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81568         optional field width, not before, so we accept %9:z, not %:9z.
81569         (my_strftime): Be sure to use L_('x') for literals.
81570
81571         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81572         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81573         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81574         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81575         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81576         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81577         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81578         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81579         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81580         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81581         * lib/xgethostname.c, lib/xreadlink.c:
81582         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81583
81584         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81585         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81586         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81587         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81588         and don't include <sys/file.h>).
81589
81590 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81591
81592         Sync from coreutils.
81593
81594         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81595         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81596         [!LDAV_DONE]: Avoid unused variable warning.
81597
81598 2005-09-21  Bruno Haible  <bruno@clisp.org>
81599
81600         * lib/unicodeio.h (unicode_to_mb): New declaration.
81601
81602 2005-09-20  Derek Price  <derek@ximbiot.com>
81603
81604         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81605         getaddrinfo.h.
81606
81607 2005-09-20  Bruno Haible  <bruno@clisp.org>
81608
81609         * gnulib-tool: Remove trailing slashes from the values specified for
81610         --source-base, --m4-base, --tests-base, --aux-dir.
81611         Suggested by Simon Josefsson <jas@extundo.com>.
81612
81613 2005-09-20  Bruno Haible  <bruno@clisp.org>
81614
81615         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81616         func_modules_to_filelist, func_import, func_create_testdir): Make all
81617         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81618         change when gnulib-tool is invoked in a different locale.
81619
81620 2005-09-19  Simon Josefsson  <jas@extundo.com>
81621
81622         * m4/socklen.m4: Fix typo.
81623
81624 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81625
81626         Use a consistent style for including <config.h>.
81627         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81628         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81629         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81630         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81631         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81632         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81633         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81634         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81635         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81636         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81637         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81638         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81639         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81640         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81641         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81642         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81643         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81644         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81645         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81646         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81647         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81648         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81649         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81650         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81651         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81652         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81653         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81654         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81655         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81656         lib/xstrtoumax.c, lib/yesno.c:
81657         Standardize inclusion of config.h.
81658         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81659         lib/inttostr.h:  Removed inclusion of config.h from header files.
81660         * lib/inttostr.c:  Adjusted in-tree users.
81661         * lib/timespec.h: Remove superfluous warning to include config.h.
81662         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81663         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81664         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81665         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81666         config.h with HAVE_CONFIG_H.
81667
81668 2005-09-19  Jim Meyering  <jim@meyering.net>
81669
81670         * modules/pathmax (License): Change to LGPL.
81671
81672 2005-09-19  Derek Price  <derek@ximbiot.com>
81673
81674         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81675
81676 2005-09-19  Bruno Haible  <bruno@clisp.org>
81677
81678         * gnulib-tool (import): Provide default for --tests-base.
81679
81680 2005-09-19  Bruno Haible  <bruno@clisp.org>
81681
81682         * doc/quote.texi: New file, extracted from gnulib.texi.
81683         * doc/ctime.texi: New file, extracted from gnulib.texi.
81684         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81685         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81686         * doc/gnulib.texi: Include them.
81687
81688 2005-09-18  Bruno Haible  <bruno@clisp.org>
81689
81690         Portability fix.
81691         * gnulib-tool (func_readlink): New function.
81692         (func_ln_if_changed): Use it.
81693
81694 2005-09-18  Bruno Haible  <bruno@clisp.org>
81695
81696         * gnulib-tool: Support --with-tests also with --import.
81697         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81698         (func_import): Use variables $testsbase and $inctests. Emit a
81699         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81700         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81701         SUBDIRS += $testsdir.
81702         (func_create_testdir): Update.
81703
81704 2005-09-18  Bruno Haible  <bruno@clisp.org>
81705
81706         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81707         instead of $dry_run.
81708         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81709         (func_ln_if_changed): Don't handle dry-run here.
81710         (func_import): In dry-run mode, detect more precisely which actions
81711         would be performed, and don't use "...ing" verbs.
81712
81713 2005-09-18  Bruno Haible  <bruno@clisp.org>
81714
81715         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81716         (func_import): Use join on two temporary files instead of three nested
81717         loops, in order to determine which files are new or old.
81718
81719 2005-09-18  Bruno Haible  <bruno@clisp.org>
81720
81721         * gnulib-tool (func_import): Comment out code that spits out the
81722         new files with --dry-run.
81723
81724 2005-09-18  Bruno Haible  <bruno@clisp.org>
81725
81726         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81727
81728 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81729
81730         * lib/stat-time.h: New file.
81731         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81732         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81733         in a different way.
81734         (timespec_cmp): New function.
81735         * lib/utimecmp.c: Include stat-time.h.
81736         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81737         members exist, not on the obsolescent ST_MTIM_NSEC.
81738         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81739
81740 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81741
81742         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81743
81744 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81745
81746         * MODULES.html.sh (File system functions): Add stat-time.
81747         * modules/stat-time: New file.
81748         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81749         is now done in a different way, by the stat-time module.
81750         * modules/utimecmp (Depends-on): Add stat-time.
81751
81752 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81753
81754         * m4/st_mtim.m4: Remove.  Superseded by...
81755         * m4/stat-time.m4: New file.
81756         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81757         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81758
81759 2005-09-15  Derek Price  <derek@ximbiot.com>
81760
81761         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81762
81763 2005-09-15  Derek Price  <derek@ximbiot.com>
81764
81765         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81766         * lib/regex_internal.c: Ditto, using this...
81767         (__GNUC_PREREQ): ...new macro.
81768         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81769         using...
81770         (__GNUC_PREREQ): ...this new macro.
81771
81772         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81773
81774 2005-09-15  Derek Price  <derek@ximbiot.com>
81775             Paul Eggert  <eggert@cs.ucla.edu>
81776
81777         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81778         changes, consolidating in...
81779         * lib/regex_internal.h: ...this file.
81780
81781 2005-09-13  Jim Meyering  <jim@meyering.net>
81782
81783         * lib/canon-host.c: Filter through gnu indent and reword comments
81784         slightly.
81785         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81786
81787 2005-09-13  Derek Price  <derek@ximbiot.com>
81788
81789         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81790         failure.
81791         Reported by Jim Meyering  <jim@meyering.net>.
81792
81793 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81794
81795         * lib/base64.c: Typo.
81796         (base64_encode): Put b64str in initialized data section.
81797
81798 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81799
81800         Merge glibc and coreutils changes into gnulib, plus a few
81801         extra fixes.
81802         * lib/md5.c: Use #error rather than a string.
81803         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81804         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81805         (__attribute__): Define to empty for non recent-GCC.
81806         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81807         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81808         Renamed from their non-__ counterparts, with new macros replacing
81809         them if not _LIBC.  Add __THROW attribute.
81810         (rol): Remove.
81811         (struct md5_ctx): Align buffer if using GCC.
81812         * lib/sha1.h (struct sha1_ctx): Likewise.
81813         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81814         The old name was backwards.
81815         (NOTSWAP): Remove; not used.
81816         (rol): New macro, moved here from md5.h.
81817         (sha1_process_block): Remove a FIXME that doesn't make sense.
81818
81819 2005-09-12  Derek Price  <derek@ximbiot.com>
81820
81821         Return usable errors from canon-host.
81822         * lib/canon-host.h: New file.
81823         * lib/canon-host.c (canon_host): Wrap...
81824         (canon_host_r): ...this new function, which now relies exclusively on
81825         getaddrinfo.
81826         (ch_strerror): New function.
81827         (last_cherror): New global.
81828         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81829         interface.
81830         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81831         void *.
81832         (freeaddrinfo): Free ai->ai_canonname when set.
81833
81834 2005-09-12  Derek Price  <derek@ximbiot.com>
81835
81836         Make canon-host require getaddrinfo.
81837         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81838         AC_LIBSOURCE canon-host.h.  Call...
81839         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81840         gl_GETADDRINFO.
81841         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81842
81843 2005-09-12  Derek Price  <derek@ximbiot.com>
81844
81845         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81846         LGPL.
81847         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81848
81849 2005-09-12  Derek Price  <derek@ximbiot.com>
81850
81851         * lib/gai_strerror.c: Include config.h when available.  Include
81852         getaddrinfo.h before other headers to test interface.
81853         Reported by Larry Jones <lawrence.jones@ugs.com>.
81854
81855 2005-09-12  Derek Price  <derek@ximbiot.com>
81856             Paul Eggert  <eggert@cs.ucla.edu>
81857
81858         * modules/glob (Files): Add glob-libc.h.
81859
81860 2005-09-12  Derek Price  <derek@ximbiot.com>
81861             Paul Eggert  <eggert@cs.ucla.edu>
81862
81863         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81864         glob_.h, glob-libc.h.
81865         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81866
81867 2005-09-12  Derek Price  <derek@ximbiot.com>
81868             Paul Eggert  <eggert@cs.ucla.edu>
81869
81870         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81871         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81872         protecting things that should be done only in gnulib contexts.
81873         * lib/glob_.h: New file, containing only the glob things needed for
81874         gnulib.
81875         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81876         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81877         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81878         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81879         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81880         and to respect the namespace rules better.
81881
81882 2005-09-08  Simon Josefsson  <jas@extundo.com>
81883
81884         * modules/socklen: New file.
81885
81886 2005-09-08  Simon Josefsson  <jas@extundo.com>
81887
81888         * m4/socklen.m4: New file.
81889
81890 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81891
81892         * modules/utimens (Files): Add m4/utimbuf.m4, since
81893         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81894         Reported by Sergey Poznyakoff.
81895
81896 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81897
81898         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81899         definitions, since that's the preferred style in glibc.
81900         Fix a minor spacing issue, and update copyright notice to match
81901         glibc's.
81902
81903 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81904
81905         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81906
81907 2005-09-06  Simon Josefsson  <jas@extundo.com>
81908
81909         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81910         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81911
81912 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81913
81914         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81915         warning.
81916
81917 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81918
81919         * config/srclist.txt: Add glibc bug 1302.
81920
81921 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81922
81923         Change bitset word type from unsigned int to unsigned long int,
81924         as this has better performance on typical 64-bit hosts.
81925         Port bitset code to hosts with unusual word sizes.
81926         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81927         (build_collating_symbol):
81928         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81929         argument is a bitset.  This is merely a style issue, but it makes
81930         it clearer that an entire array is expected.
81931         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81932         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81933         Port to the case where bitset_word is not the same as unsigned int.
81934         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81935         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81936         Likewise.
81937         * lib/regexec.c (check_dst_limits_calc_pos_1,
81938         check_subexp_matching_top):
81939         (build_trtable, group_nodes_into_DFAstates):
81940         Likewise.
81941         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81942         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81943         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81944         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81945         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81946         * lib/regcomp.c (optimize_subexps, lower_subexp):
81947         Work even if bitset_word has holes in its bitwise representation.
81948         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81949         * lib/regexec.c (check_dst_limits_calc_pos_1,
81950         check_subexp_matching_top):
81951         Likewise.
81952         * lib/regex_internal.c (re_string_reconstruct):
81953         Don't assume UCHAR_MAX == 255.
81954         * lib/regex_internal.h (bitset_set_all): Likewise.
81955         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81956         All uses changed.
81957         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81958         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81959         All uses changed.
81960         (BITSET_WORD_MAX): New macro.
81961         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81962         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81963         (bitset_empty, bitset_copy):
81964         Prefer sizeof (bitset) to multiplying it out ourselves.
81965         (bitset_not_merge): Remove; unused.
81966         (bitset_contain): Return bool, not unsigned int with one bit on.
81967         All callers changed.
81968         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81969         alignment than re_node_set; do this by defining a new internal
81970         type struct dests_alloc and using it to allocate memory.
81971
81972 2005-09-05  Bruno Haible  <bruno@clisp.org>
81973
81974         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81975         links.
81976
81977 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81978
81979         * modules/size_max (Makefile.am): Add size_max.h
81980
81981 2005-09-04  Derek Price  <derek@ximbiot.com>
81982
81983         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81984
81985 2005-09-03  Simon Josefsson  <jas@extundo.com>
81986
81987         * gnulib-tool: Fix typo.
81988
81989 2005-09-03  Simon Josefsson  <jas@extundo.com>
81990
81991         * config/srclist.txt: Add glibc bug 1293.
81992
81993 2005-09-03  Derek Price  <derek@ximbiot.com>
81994
81995         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81996         From Larry Jones <lawrence.jones@ugs.com>.
81997
81998 2005-09-02  Simon Josefsson  <jas@extundo.com>
81999
82000         * modules/socklen: New file.
82001
82002 2005-09-02  Simon Josefsson  <jas@extundo.com>
82003
82004         * modules/havelib: New module.
82005
82006         * modules/gettext, modules/iconv, modules/lock, modules/readline:
82007         Use havelib.
82008
82009 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82010
82011         Check for arithmetic overflow when calculating sizes, to prevent
82012         some buffer-overflow issues.  These patches are conservative, in the
82013         sense that when I couldn't determine whether an overflow was possible,
82014         I inserted a run-time check.
82015         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82016         macros.
82017         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82018         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82019         (re_xnrealloc, re_x2nrealloc): New inline functions.
82020         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82021         parse_bracket_exp):
82022         (build_equiv_class, build_charclass): Check for arithmetic overflow
82023         in size expression calculations.
82024         * lib/regex_internal.c (re_string_realloc_buffers):
82025         (build_wcs_upper_buffer, re_node_set_add_intersect):
82026         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82027         (re_dfa_add_node, register_state): Likewise.
82028         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82029         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82030         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82031         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82032
82033 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82034
82035         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82036         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82037
82038 2005-09-02  Bruno Haible  <bruno@clisp.org>
82039
82040         Support for lib vs. lib64 distinction on biarch platforms.
82041         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82042         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82043         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82044
82045 2005-09-02  Bruno Haible  <bruno@clisp.org>
82046
82047         * gnulib-tool (import): In the other first-use case, provide defaults
82048         as well.
82049
82050 2005-09-02  Bruno Haible  <bruno@clisp.org>
82051
82052         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82053         patches not yet found in the latest gettext release.
82054
82055 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82056
82057         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82058         to avoid a collision with bits/local_lim.h in glibc.
82059         All uses changed.  Problem reported by Dmitry V. Levin in
82060         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82061
82062         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82063         bugs in int versus size_t comparisons.
82064         (re_string_context_at): Fix bug where the code assumed that
82065         Idx is signed.
82066
82067         Use bool where appropriate.
82068         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82069         All callers changed.
82070         (calc_eclosure_iter): Likewise, for ROOT arg.
82071         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82072         (build_charclass_op): Likewise, for NON_MATCH arg.
82073         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82074         (re_string_construct_common): Likewise, for ICASE arg.
82075         * lib/regexec.c (re_search_2_stub, re_search_stub):
82076         Likewise, for RET_LEN arg.
82077         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82078         (set_regs): Likewise, for FL_BACKTRACK arg.
82079         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82080         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82081         (calc_eclosure_iter, parse_bracket_exp):
82082         Use bool for internal variables that are booleans.
82083         * lib/regexec.c (re_search_internal, check_matching,
82084         proceed_next_node):
82085         (set_regs, build_sifted_states, sift_states_bkref):
82086         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82087         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82088         (find_collation_sequence_value):
82089         Likewise.
82090         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82091         (re_node_set_compare):
82092         Return bool, not int. All callers changed.
82093         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82094         (build_trtable, check_node_accept): Likewise.
82095         * lib/regex_internal.h: Include stdbool.h.
82096
82097         Fix bugs uncovered when converting to bool.
82098         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82099         failure instead of charging ahead blindly.
82100         * lib/regex_internal.c (register_state): Likewise.
82101         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82102         for freeing internal storage.
82103         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82104         bitset pieces used as boolean, to avoid undefined behavior
82105         on hosts that do int overflow checking.
82106
82107 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82108
82109         * config/srclist.txt: Add glibc bugs 1285-1287.
82110
82111 2005-09-01  Jim Meyering  <jim@meyering.net>
82112
82113         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82114         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82115         Require gl_STAT_MACROS, too.
82116
82117 2005-09-01  Bruno Haible  <bruno@clisp.org>
82118
82119         * gnulib-tool (import): In the first-use case, provide defaults.
82120
82121 2005-09-01  Bruno Haible  <bruno@clisp.org>
82122
82123         * gnulib-tool (func_import): Remove the .tmp files.
82124
82125 2005-09-01  Bruno Haible  <bruno@clisp.org>
82126
82127         * gnulib-tool (func_import): Fix handling of symbolic links.
82128
82129 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82130
82131         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82132         old glibc regex code mishandles strings longer than 2**31 bytes.
82133         This patch fixes this when the regex code is used in gnulib
82134         (i.e., outside glibc).
82135
82136         This patch should not affect the use of the regex code inside
82137         glibc.  No doubt this problem also needs to be handled for glibc
82138         as well, but the result will be an incompatible change to the
82139         glibc ABI, and the old ABI will have to be supported too.  That
82140         can be the the subject for another patch.
82141
82142         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82143         governing whether the rest of this patch is active.  By default,
82144         the macro is disabled and the patch has no effect.
82145         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82146         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82147         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82148         (re_match_2, re_set_registers): Use the new types.
82149         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82150         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82151         New macros.
82152         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82153         (re_string_context_at, bin_tree_t, re_dfastate_t):
82154         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82155         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82156         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82157         (re_string_char_size_at, re_string_wchar_at):
82158         (re_string_elem_size_at):
82159         Use the new types and macros to port to 64-bit hosts.
82160         Use unsigned types for internal values, so that the code
82161         mostly works even for arrays larger than SSIZE_MAX.
82162         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82163         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82164         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82165         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82166         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82167         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82168         (calc_inveclosure, parse_dup_op, build_range_exp):
82169         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82170         (fetch_number, create_token_tree, mark_opt_subexp):
82171         Likewise.
82172         * lib/regex_internal.c (re_string_construct_common,
82173         create_ci_newstate):
82174         (create_cd_newstate, re_string_allocate, re_string_construct):
82175         (re_string_realloc_buffers, build_wcs_upper_buffer):
82176         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82177         (re_string_reconstruct, re_string_peek_byte_case):
82178         (re_string_fetch_byte_case, re_string_context_at):
82179         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82180         (re_node_set_init_copy, re_node_set_add_intersect):
82181         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82182         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82183         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82184         (re_acquire_state, re_acquire_state_context, register_state):
82185         Likewise.
82186         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82187         search_cur_bkref_entry):
82188         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82189         (re_search_internal, re_search_2_stub, re_search_stub)
82190         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82191         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82192         (update_cur_sifted_state, check_dst_limits):
82193         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82194         (check_subexp_limits, sift_states_bkref, merge_state_array):
82195         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82196         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82197         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82198         (expand_bkref_cache, check_node_accept_bytes):
82199         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82200         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82201         (acquire_init_state_context, check_halt_node_context):
82202         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82203         (sift_states_backward, clean_state_log_if_needed):
82204         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82205         (find_recover_state, transit_state_sb, transit_state_mb):
82206         (transit_state_bkref, build_trtable, match_ctx_clean):
82207         Likewise.
82208         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82209         to work around an assumption that REG_MISSING is negative.
82210
82211         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82212         (seek_collating_symbol_entry) [defined _LIBC]:
82213         (lookup_collation_sequence_value) [defined _LIBC]:
82214         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82215         Use prototypes rather than old-style function definitions.
82216         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82217         (transit_state_sb) [0]:
82218         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82219
82220         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82221         rm_eo.
82222
82223         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82224         (optimize_subexps, lower_subexp):
82225         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82226         since the signed shift might overflow.  Use 1u<<31 instead.
82227         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82228         Likewise.
82229         * lib/regexec.c (check_dst_limits_calc_pos_1,
82230         check_subexp_matching_top): Likewise.
82231
82232         * lib/regcomp.c (optimize_subexps, lower_subexp):
82233         Use CHAR_BIT rather than 8, for clarity.
82234         * lib/regexec.c (check_dst_limits_calc_pos_1):
82235         (check_subexp_matching_top): Likewise.
82236         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82237         have to worry about portability issues when shifting it left.
82238         Remove no-longer-needed test for table_size > 0.
82239         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82240         in a word, as the resulting behavior is undefined.
82241         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82242         in one case, a <= should have been an <, and in another case the
82243         whole test was missing.
82244         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82245         the standard name CHAR_BIT.
82246         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82247         this is not true on one's complement and signed-magnitude hosts.
82248
82249         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82250         next_last_offset.
82251         (struct re_dfa_t): Remove unused member states_alloc.
82252         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82253
82254 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82255
82256         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82257         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82258         and large-file glibc and in 32-bit large-file Solaris.
82259
82260 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82261
82262         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82263         lengths fit in regoff_t; this isn't true if regoff_t is the same
82264         width as size_t.
82265         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82266         (= START + RANGE) instead of RANGE.  This avoids overflow
82267         problems when regoff_t is the same width as size_t.
82268         All callers changed.
82269         (re_search_2_stub): Check for overflow when adding the
82270         sizes of the two strings.
82271         (re_search_stub): Check for overflow when adding START
82272         to RANGE; if it occurs, substitute the extreme value.
82273
82274 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82275
82276         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82277
82278 2005-08-31  Jim Meyering  <jim@meyering.net>
82279
82280         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82281         a pointer-to-const.
82282         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82283         (register_state): Likewise.
82284         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82285         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82286         (group_nodes_into_DFAstates): Likewise.
82287
82288 2005-08-31  Jim Meyering  <jim@meyering.net>
82289
82290         * check-module: Add a FIXME comment.
82291
82292 2005-08-31  Eric Blake  <ebb9@byu.net>
82293
82294         * modules/unistd-safer (Files): Add unistd--.h.
82295         * modules/stdio-safer (Files): Add stdio--.h.
82296
82297 2005-08-31  Derek Price  <derek@ximbiot.com>
82298
82299         * lib/getdelim.c (getdelim): Return EOF on EOF.
82300         Reported by Larry Jones <lawrence.jones@ugs.com>.
82301
82302 2005-08-31  Bruno Haible  <bruno@clisp.org>
82303
82304         Avoid unnecessary diffs in the generated lib/Makefile.am.
82305         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82306         the generated files.
82307         (func_import): Don't set cmd.
82308
82309 2005-08-31  Bruno Haible  <bruno@clisp.org>
82310
82311         * lib/strstr.c: Include <stddef.h>, for NULL.
82312         * lib/strcasestr.c: Likewise.
82313         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82314
82315 2005-08-31  Bruno Haible  <bruno@clisp.org>
82316
82317         * gnulib-tool: New option --macro-prefix.
82318         (func_import): Use macro_prefix.
82319         (import): Handle option --macro-prefix.
82320
82321 2005-08-31  Bruno Haible  <bruno@clisp.org>
82322
82323         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82324         Also use new variables cached_lgpl, cached_libtool.
82325
82326 2005-08-31  Bruno Haible  <bruno@clisp.org>
82327
82328         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82329         always instantiating them.
82330
82331 2005-08-31  Bruno Haible  <bruno@clisp.org>
82332
82333         * gnulib-tool (func_import): Read the previous cached settings
82334         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82335         earlier added by gnulib but are now dropped. Warn when a gnulib file
82336         overwrites a non-gnulib file.
82337
82338 2005-08-31  Bruno Haible  <bruno@clisp.org>
82339
82340         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82341         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82342         projects that don't keep autogenerated files in CVS. Put into
82343         actioncmd only the specified modules, not the transitive closure.
82344
82345 2005-08-31  Bruno Haible  <bruno@clisp.org>
82346
82347         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82348         Create directories that shall be filled.
82349         (import): Don't look for gl_* macros in configure.ac. Recurse across
82350         all directories containing a gnulib-cache.m4 files, if meaningful.
82351
82352 2005-08-31  Bruno Haible  <bruno@clisp.org>
82353
82354         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82355         (import): Set seen_libtool when we see gl_LIBTOOL.
82356
82357 2005-08-31  Bruno Haible  <bruno@clisp.org>
82358
82359         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82360         declaration macro definitions from generated gnulib.m4.
82361
82362 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82363
82364         * lib/iconvme.h: Add prototype for iconv_alloc.
82365
82366 2005-08-29  Simon Josefsson  <jas@extundo.com>
82367
82368         * lib/iconvme.c: Fix errno.
82369
82370 2005-08-29  Bruno Haible  <bruno@clisp.org>
82371
82372         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82373         that it works when the directory contains spaces.
82374
82375 2005-08-29  Bruno Haible  <bruno@clisp.org>
82376
82377         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82378
82379 2005-08-29  Bruno Haible  <bruno@clisp.org>
82380
82381         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82382         Emit more advice.
82383
82384 2005-08-29  Bruno Haible  <bruno@clisp.org>
82385         and Stepan Kasal  <kasal@ucw.cz>
82386
82387         * check-module: If more parameters are given, check each of them
82388         separately; add more exceptions, as noted by Jim Meyering.
82389         (check_module): New procedure.
82390         (%exempt_header): Now contains all exceptions.
82391
82392 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82393
82394         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82395
82396 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82397
82398         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82399
82400 2005-08-28  Bruno Haible  <bruno@clisp.org>
82401
82402         * m4/gnulib-tool.m4: New file.
82403
82404 2005-08-27  Jim Meyering  <jim@meyering.net>
82405
82406         * modules/unistd-safer (Files): Add pipe-safer.c.
82407         * modules/fcntl-safer (Files): Add creat-safer.c.
82408
82409 2005-08-27  Jim Meyering  <jim@meyering.net>
82410
82411         * m4/stdlib-safer.m4: New file.  From coreutils.
82412         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82413         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82414         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82415         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82416         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82417
82418 2005-08-27  Jim Meyering  <jim@meyering.net>
82419
82420         * lib/fopen-safer.c: Merge minor changes from coreutils.
82421         * lib/dup-safer.c: Likewise.
82422         * lib/fd-safer.c: Likewise.
82423
82424         Merge from coreutils.
82425         * lib/stdio--.h: New file.
82426         * lib/stdlib--.h: New file.
82427         * lib/mkstemp-safer.c: New file.
82428
82429         GNU tar needs these.
82430         * lib/pipe-safer.c: New file.
82431         * lib/creat-safer.c: New file.
82432         * lib/fcntl--.h (creat): Define to creat_safer.
82433         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82434         * lib/unistd--.h (pipe): Define to pipe_safer.
82435         * lib/unistd-safer.h: Declare pipe_safer.
82436
82437 2005-08-26  Simon Josefsson  <jas@extundo.com>
82438
82439         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82440         Haible <bruno@clisp.org>.
82441
82442 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82443
82444         * lib/regex_internal.h: Remove all references to
82445         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82446         or better.
82447         (bitset_not, bitset_merge, bitset_not_merge):
82448         (bitset_mask, re_string_allocate, re_string_construct):
82449         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82450         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82451         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82452         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82453         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82454         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82455         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82456         (re_acquire_state_context):
82457         Remove unnecessary forward decls.
82458         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82459         Put __attribute at function definition,
82460         now that the function decl has been removed.
82461         * lib/regex_internal.c (re_string_peek_byte_case):
82462         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82463         Likewise.
82464
82465 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82466
82467         * m4/regex.m4: Add AC_PREREQ(2.50).
82468         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82469
82470 2005-08-25  Simon Josefsson  <jas@extundo.com>
82471
82472         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82473         __fsetlocking.
82474
82475 2005-08-25  Simon Josefsson  <jas@extundo.com>
82476
82477         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82478         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82479         GLIBC specific code.
82480
82481 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82482
82483         Make regex safe for g++.  This fixes one real bug (an "err"
82484         that should have been "*err").  g++ problem reported by
82485         Sam Steingold.
82486         * lib/regex_internal.h (re_calloc): New macro, consistent with
82487         re_malloc etc.  All callers of calloc changed to use re_calloc.
82488         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82489         not int.  All callers changed.
82490         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82491         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82492         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82493         (find_recover_state): Change "err" to "*err"; this fixes what
82494         appears to be a real bug.
82495         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82496         versus int.
82497
82498 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82499
82500         * modules/regex (Depends-on): Add malloc, since the code
82501         assumes that !malloc(0) means failure.
82502
82503 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82504
82505         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82506
82507         alloca modernization/simplification for regex.
82508         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82509         needs to be at the start of the file, and can be moved into
82510         regex_internal.h and simplified.
82511         * lib/regex_internal.h: Include <alloca.h>.
82512         (__libc_use_alloca) [!defined _LIBC]: New macro.
82513         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82514         now works outside glibc.
82515
82516 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82517
82518         * config/srclist.txt: Add glibc bugs 1241, 1245.
82519
82520 2005-08-25  Jim Meyering  <jim@meyering.net>
82521
82522         * lib/open-safer.c: Include <config.h>.
82523         Otherwise, we'd lose LARGEFILE support in any file using
82524         e.g. "fcntl--.h"
82525
82526 2005-08-25  Bruno Haible  <bruno@clisp.org>
82527
82528         * m4/minmax.m4: Require autoconf 2.52.
82529         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82530         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82531         alternatives of translit over the alphabet.
82532         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82533
82534 2005-08-24  Simon Josefsson  <jas@extundo.com>
82535
82536         * tests/test-getpass.c: New file.
82537
82538 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82539
82540         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82541         for GNU regex features.
82542
82543 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82544
82545         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82546         * lib/regex.h (regerror): Likewise.
82547
82548         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82549         requires this.  (The code never needed it.)
82550
82551         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82552         All uses of recently-renamed identifiers changed to use the new,
82553         POSIX-compliant names.  The code will build and run just fine
82554         without these changes, but it's better to eat our own dog food
82555         and use the standard-conforming names.
82556
82557         * lib/regex.h: Fix a multitude of POSIX name space violations.
82558         These changes have an effect only for programs that define
82559         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82560         do not change anything for programs compiled in the normal way.
82561         Also, there is no effect on the ABI.
82562
82563         (_REGEX_SOURCE): New macro.
82564         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82565         defined and _GNU_SOURCE is not; this fixes a name space violation.
82566
82567         Rename the following macros to obey POSIX requirements.
82568         The old names are still visible as macros if _REGEX_SOURCE is defined.
82569         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82570         RE_BACKSLASH_ESCAPE_IN_LISTS.
82571         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82572         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82573         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82574         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82575         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82576         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82577         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82578         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82579         (REG_INTERVALS): renamed from RE_INTERVALS.
82580         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82581         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82582         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82583         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82584         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82585         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82586         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82587         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82588         RE_UNMATCHED_RIGHT_PAREN_ORD.
82589         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82590         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82591         (REG_DEBUG): renamed from RE_DEBUG.
82592         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82593         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82594         unusual, since we can't clash with the POSIX REG_ICASE.
82595         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82596         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82597         (REG_NO_SUB): renamed from RE_NO_SUB.
82598         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82599         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82600         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82601         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82602         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82603         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82604         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82605         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82606         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82607         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82608         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82609         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82610         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82611         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82612         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82613         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82614         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82615         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82616         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82617         (REG_FIXED): Renamed from REGS_FIXED.
82618         (REG_NREGS): Renamed from RE_NREGS.
82619
82620         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82621         of other REG_* macros, since POSIX says the user is allowed to
82622         #undef these macros selectively.
82623
82624         (reg_errcode_t): Update comment stating what other tables need
82625         to be consistent.
82626
82627         Rename the following enum values to obey POSIX requirements.
82628         The old names are still visible as macros.
82629         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82630         is not defined, since GNU is supposed to be a superset of POSIX as
82631         much as possible, and since we want reg_errcode_t to be a signed
82632         type for implementation consistency.
82633         (_REG_NOERROR): Renamed from REG_NOERROR.
82634         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82635         (_REG_BADPAT): Renamed from REG_BADPAT.
82636         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82637         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82638         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82639         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82640         (_REG_EBRACK): Renamed from REG_EBRACK.
82641         (_REG_EPAREN): Renamed from REG_EPAREN.
82642         (_REG_EBRACE): Renamed from REG_EBRACE.
82643         (_REG_BADBR): Renamed from REG_BADBR.
82644         (_REG_ERANGE): Renamed from REG_ERANGE.
82645         (_REG_ESPACE): Renamed from REG_ESPACE.
82646         (_REG_BADRPT): Renamed from REG_BADRPT.
82647         (_REG_EEND): Renamed from REG_EEND.
82648         (_REG_ESIZE): Renamed from REG_ESIZE.
82649         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82650         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82651         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82652         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82653         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82654
82655         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82656         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82657         changed.  But support the old name if the new one is not defined
82658         and if _REGEX_SOURCE.
82659
82660         Change the following member names in struct re_pattern_buffer.
82661         The old names are still supported if !_REGEX_SOURCE.
82662         The new names are always supported, regardless of _REGEX_SOURCE.
82663         (re_buffer): Renamed from buffer.
82664         (re_allocated): Renamed from allocated.
82665         (re_used): Renamed from used.
82666         (re_syntax): Renamed from syntax.
82667         (re_fastmap): Renamed from fastmap.
82668         (re_translate): Renamed from translate.
82669         (re_can_be_null): Renamed from can_be_null.
82670         (re_regs_allocated): Renamed from regs_allocated.
82671         (re_fastmap_accurate): Renamed from fastmap_accurate.
82672         (re_no_sub): Renamed from no_sub.
82673         (re_not_bol): Renamed from not_bol.
82674         (re_not_eol): Renamed from not_eol.
82675         (re_newline_anchor): Renamed from newline_anchor.
82676
82677         Change the following member names in struct re_registers.
82678         The old names are still supported if !_REGEX_SOURCE.
82679         The new names are always supported, regardless of _REGEX_SOURCE.
82680         (rm_num_regs): Renamed from num_regs.
82681         (rm_start): Renamed from start.
82682         (rm_end): Renamed from end.
82683
82684         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82685         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82686         Prepend __ to parameter names.
82687
82688         Undo yesterday's changes.
82689
82690 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82691
82692         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82693         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82694         lib/regex.c.
82695
82696 2005-08-24  Jim Meyering  <jim@meyering.net>
82697
82698         Sync from coreutils.
82699         * m4/fcntl-safer.m4: New file.
82700
82701         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82702         and object files for this module.
82703
82704 2005-08-24  Jim Meyering  <jim@meyering.net>
82705
82706         Sync from coreutils.
82707         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82708
82709 2005-08-24  Jim Meyering  <jim@meyering.net>
82710
82711         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82712         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82713
82714 2005-08-24  Jim Meyering  <jim@meyering.net>
82715
82716         * modules/fcntl-safer: New module.
82717         * modules/fts (Depends-on): Add fcntl-safer.
82718         * MODULES.html.sh (File descriptor based Input/Output):
82719         Add fcntl-safer.
82720
82721 2005-08-24  Bruno Haible  <bruno@clisp.org>
82722
82723         Support for unit test modules.
82724         * modules/README: Mention tests modules.
82725         * modules/TEMPLATE-TESTS: New file.
82726         * gnulib-tool: New options --extract-tests-module, --with-tests and
82727         --tests-base (unused for the moment).
82728         (testsbase, inctests): New variables.
82729         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82730         (func_verify_module): Exclude TEMPLATE-TESTS.
82731         (func_verify_nontests_module, func_verify_tests_module): New functions.
82732         (func_get_dependencies): Add implicit dependency for tests modules.
82733         (func_get_tests_module): New function.
82734         (func_modules_transitive_closure): When --with-tests was specified,
82735         include the unit tests as well, unless explicitly avoided.
82736         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82737         (func_emit_tests_Makefile_am): New function.
82738         (func_create_testdir): When --with-tests was specified, emit a
82739         tests/ directory.
82740         * MODULES.html.sh (Future developments): Update.
82741
82742 2005-08-24  Bruno Haible  <bruno@clisp.org>
82743
82744         * modules/tls-tests: New file.
82745         * tests/test-tls.c: New file, from GNU gettext.
82746
82747 2005-08-24  Bruno Haible  <bruno@clisp.org>
82748
82749         * modules/lock-tests: New file.
82750         * tests/test-lock.c: New file, from GNU gettext.
82751
82752 2005-08-24  Bruno Haible  <bruno@clisp.org>
82753
82754         * lib/lock.h: Add multiple inclusion guard.
82755         * lib/tls.h: Add multiple inclusion guard.
82756
82757 2005-08-24  Bruno Haible  <bruno@clisp.org>
82758
82759         * gnulib-tool: Add support for the --aux-dir option to
82760         --create-testdir, --create-megatestdir, --test, --megatest.
82761         (func_create_testdir, func_create_megatestdir): Optionally emit a
82762         AC_CONFIG_AUX_DIR directive.
82763         (create-testdir, create-megatestdir, test, megatest): Provide a
82764         default value for $auxdir.
82765
82766 2005-08-24  Bruno Haible  <bruno@clisp.org>
82767
82768         * gnulib-tool (import): Use compound statement instead of subshell
82769         where possible.
82770
82771 2005-08-24  Bruno Haible  <bruno@clisp.org>
82772
82773         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82774
82775 2005-08-24  Bruno Haible  <bruno@clisp.org>
82776
82777         * gnulib-tool (func_version): Update.
82778
82779 2005-08-24  Bruno Haible  <bruno@clisp.org>
82780
82781         * gnulib-tool (func_import, func_create_testdir,
82782         func_create_megatestdir): Quote all autoconf macro arguments.
82783
82784 2005-08-24  Bruno Haible  <bruno@clisp.org>
82785
82786         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82787         option --force, because --force causes the aclocal.m4 of each
82788         subdirectory to be newer than the corresponding config.h.in.
82789
82790 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82791
82792         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82793         All contents moved to gl_REGEX.
82794         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82795         assume that it does.
82796
82797 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82798
82799         * lib/regex.h (REG_NOSYS)
82800         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82801         Define, since POSIX requires it as of 2001.
82802         (_REG_ENOSYS)
82803         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82804         New private symbol, used to keep the enum signed in all cases.
82805         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82806         Youngman in
82807         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82808
82809         * lib/regex_internal.c (re_string_skip_chars, register_state):
82810         (calc_state_hash):
82811         Remove forward decls; no longer needed now that we use prototypes.
82812         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82813         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82814         (clean_state_log_if_needed): Likewise.
82815
82816 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82817
82818         * config/srclist.txt: Add glibc bugs 1231-1233.
82819
82820 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82821
82822         Fix problems reported by Sam Steingold in
82823         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82824         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82825         assumed that reg_errcode_t is a signed type, which is not
82826         necessarily true if _XOPEN_SOURCE is not defined.
82827         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82828         since some compilers warn about it otherwise.
82829
82830 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82831
82832         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82833         (init_word_char, create_initial_state, duplicate_node_closure):
82834         (fetch_token, peek_token_bracket, build_range_exp):
82835         (build_collating_symbol): Remove forward decls; no longer needed
82836         now that we use prototypes.
82837
82838         * lib/regcomp.c:
82839         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82840         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82841         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82842         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82843         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82844         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82845         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82846         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82847         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82848         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82849         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82850         (build_charclass, build_charclass_op, fetch_number, create_tree):
82851         (create_token_tree, mark_opt_subexp, duplicate_tree):
82852         Use prototypes rather than old-style definitions.
82853
82854         * lib/regex_internal.c:
82855         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82856         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82857         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82858         (re_string_reconstruct, re_string_peek_byte_case):
82859         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82860         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82861         (re_node_set_init_copy, re_node_set_add_intersect):
82862         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82863         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82864         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82865         (re_acquire_state, re_acquire_state_context, register_state):
82866         (create_ci_newstate, create_cd_newstate, free_state):
82867         Likewise.
82868         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82869         re_search_2):
82870         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82871         (re_search_internal, prune_impossible_nodes):
82872         (acquire_init_state_context, check_matching, static):
82873         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82874         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82875         (update_regs, sift_states_backward, build_sifted_states):
82876         (clean_state_log_if_needed, merge_state_array):
82877         (update_cur_sifted_state, add_epsilon_src_nodes):
82878         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82879         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82880         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82881         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82882         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82883         (check_arrival, check_arrival_add_next_nodes):
82884         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82885         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82886         (check_node_accept_bytes, check_node_accept, extend_buffers):
82887         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82888         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82889         (sift_ctx_init):
82890         Likewise.
82891
82892         * lib/regex_internal.h:
82893         (re_string_allocate, re_string_construct, re_string_reconstruct):
82894         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82895         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82896         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82897         (re_string_context_at, re_string_peek_byte_case):
82898         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82899         is defined, since we now use prototypes always.
82900
82901         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82902         C89 or better.  All uses removed.
82903
82904 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82905
82906         * config/srclist.txt: Add glibc bugs 1220-1227.
82907
82908 2005-08-20  Jim Meyering  <jim@meyering.net>
82909
82910         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82911         of unused local, dfa.
82912
82913 2005-08-20  Bruno Haible  <bruno@clisp.org>
82914
82915         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82916
82917 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82918
82919         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82920         (re_node_set_insert_last, re_dfa_add_node):
82921         Rename local variables to avoid GCC shadowing warnings.
82922
82923 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82924
82925         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82926         [defined lint]: Suppress bogus uninitialized-variable warnings.
82927
82928         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82929         and let the caller return REG_ESPACE if out of space.  This
82930         removes an uninitialied-variable warning with GCC 4.0.1, and also
82931         avoids taking the address of a local variable.  All callers
82932         changed.
82933
82934 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82935
82936         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82937         $LIBCSRC/posix/regexec.c.
82938         Add glibc bug 1217 for regcomp.c.
82939
82940 2005-08-19  Jim Meyering  <jim@meyering.net>
82941
82942         * lib/regexec.c (proceed_next_node): Redo local variables to
82943         avoid GCC shadowing warnings.
82944
82945 2005-08-18  Bruno Haible  <bruno@clisp.org>
82946
82947         * lib/strstr.c (strstr): Fix return value in multibyte case.
82948         * lib/strcasestr.c (strcasestr): Likewise.
82949
82950 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82951
82952         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82953
82954 2005-08-17  Jim Meyering  <jim@meyering.net>
82955
82956         Make the %s format (seconds since the epoch) work for a negative
82957         number and when used with a zero-padded field width, e.g. %015s.
82958
82959         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82960         label so that it precedes the code to set `digits'.  Otherwise,
82961         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82962         print `00-22'.  Now, it prints `-0022', as it should.
82963
82964 2005-08-17  Bruno Haible  <bruno@clisp.org>
82965
82966         * modules/strstr (Files): Add m4/mbrtowc.m4.
82967         (Depends-on): Add mbuiter.
82968
82969 2005-08-17  Bruno Haible  <bruno@clisp.org>
82970
82971         * modules/strcasestr: New file.
82972         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82973         strcasestr.
82974
82975 2005-08-17  Bruno Haible  <bruno@clisp.org>
82976
82977         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82978
82979 2005-08-17  Bruno Haible  <bruno@clisp.org>
82980
82981         * modules/mbuiter: New file.
82982         * MODULES.html.sh (Extended multibyte and wide character utilities):
82983         Add mbuiter.
82984
82985 2005-08-17  Bruno Haible  <bruno@clisp.org>
82986
82987         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82988         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82989
82990 2005-08-17  Bruno Haible  <bruno@clisp.org>
82991
82992         * m4/strcasestr.m4: New file.
82993
82994 2005-08-17  Bruno Haible  <bruno@clisp.org>
82995
82996         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82997         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82998
82999 2005-08-17  Bruno Haible  <bruno@clisp.org>
83000
83001         * lib/strcasestr.h: New file.
83002         * lib/strcasestr.c: New file.
83003
83004 2005-08-17  Bruno Haible  <bruno@clisp.org>
83005
83006         * lib/strcasecmp.c: Use mbuiter.h.
83007
83008 2005-08-17  Bruno Haible  <bruno@clisp.org>
83009
83010         * lib/mbuiter.h: New file.
83011
83012 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83013
83014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83015         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83016         and gl_GETOPT are both invoked via different paths (as happens
83017         with GNU tar CVS because it uses both argp and getopt), the former
83018         wins.
83019
83020 2005-08-16  Bruno Haible  <bruno@clisp.org>
83021
83022         * modules/tls: New file.
83023         * MODULES.html.sh (Multithreading): Add tls.
83024
83025 2005-08-16  Bruno Haible  <bruno@clisp.org>
83026
83027         * modules/strnlen1: New file.
83028         * MODULES.html.sh (String handling): Add strnlen1.
83029
83030 2005-08-16  Bruno Haible  <bruno@clisp.org>
83031
83032         * modules/strcase (Files): Add m4/mbrtowc.m4.
83033         (Depends-on): Add strnlen1, mbchar.
83034
83035 2005-08-16  Bruno Haible  <bruno@clisp.org>
83036
83037         * modules/mbiter: New file.
83038         * MODULES.html.sh (Extended multibyte and wide character utilities):
83039         Add mbiter.
83040
83041 2005-08-16  Bruno Haible  <bruno@clisp.org>
83042
83043         * modules/mbfile: New file.
83044         * MODULES.html.sh (Extended multibyte and wide character utilities):
83045         Add mbfile.
83046
83047 2005-08-16  Bruno Haible  <bruno@clisp.org>
83048
83049         * modules/mbchar: New file.
83050         * MODULES.html.sh (Extended multibyte and wide character utilities):
83051         New section.
83052
83053 2005-08-16  Bruno Haible  <bruno@clisp.org>
83054
83055         * m4/tls.m4: New file, from GNU gettext.
83056
83057 2005-08-16  Bruno Haible  <bruno@clisp.org>
83058
83059         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83060         always.
83061         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83062
83063 2005-08-16  Bruno Haible  <bruno@clisp.org>
83064
83065         * m4/mbiter.m4: New file.
83066
83067 2005-08-16  Bruno Haible  <bruno@clisp.org>
83068
83069         * m4/mbfile.m4: New file.
83070
83071 2005-08-16  Bruno Haible  <bruno@clisp.org>
83072
83073         * m4/mbchar.m4: New file.
83074
83075 2005-08-16  Bruno Haible  <bruno@clisp.org>
83076
83077         * lib/tls.h: New file, from GNU gettext.
83078         * lib/tls.c: New file, from GNU gettext.
83079
83080 2005-08-16  Bruno Haible  <bruno@clisp.org>
83081
83082         * lib/strnlen1.h: New file.
83083         * lib/strnlen1.c: New file.
83084
83085 2005-08-16  Bruno Haible  <bruno@clisp.org>
83086
83087         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83088         (mbi_init): Update.
83089         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83090         NUL byte, not after it.
83091
83092 2005-08-16  Bruno Haible  <bruno@clisp.org>
83093
83094         * lib/strcase.h (strcasecmp): Add note in comments.
83095         * lib/strncasecmp.c: Use code from strcasecmp.c.
83096         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83097         (strcasecmp): Work correctly in multibyte locales.
83098
83099 2005-08-16  Bruno Haible  <bruno@clisp.org>
83100
83101         * lib/mbiter.h: New file.
83102
83103 2005-08-16  Bruno Haible  <bruno@clisp.org>
83104
83105         * lib/mbfile.h: New file.
83106
83107 2005-08-16  Bruno Haible  <bruno@clisp.org>
83108
83109         * lib/mbchar.h: New file.
83110         * lib/mbchar.c: New file.
83111
83112 2005-08-16  Bruno Haible  <bruno@clisp.org>
83113
83114         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83115         the valid ones. Makes the comparison operations transitive:
83116         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83117         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83118
83119 2005-08-15  Simon Josefsson  <jas@extundo.com>
83120
83121         * modules/ssize_t (License): Change to 'unlimited'.
83122
83123         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83124
83125 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83126
83127         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83128         Add comments for each pending glibc patch.
83129
83130 2005-08-15  Bruno Haible  <bruno@clisp.org>
83131
83132         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83133         __cplusplus is defined.
83134
83135 2005-08-14  Jim Meyering  <jim@meyering.net>
83136
83137         Sync from coreutils.
83138
83139         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83140         Use the hash-table-based cycle-detection code not just when
83141         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83142         Reported by James Youngman in
83143         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83144         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83145         FTS_TIGHT_CYCLE_CHECK.
83146         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83147         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83148         once again.
83149         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83150         * lib/fts.c (fd_safer): Remove decl.
83151         Include fcntl--.h rather than unistd-safer.h
83152         (fts_safe_changedir): Don't call fd_safer; no longer needed
83153         now that we include fcntl--.h.
83154
83155 2005-08-12  Simon Josefsson  <jas@extundo.com>
83156
83157         * modules/getndelim2: Use ssize_t module.
83158         * modules/getnline: Likewise.
83159         * modules/safe-read: Likewise.
83160         * modules/xreadlink: Likewise.
83161
83162         * modules/ssize_t: New file.
83163
83164 2005-08-12  Simon Josefsson  <jas@extundo.com>
83165
83166         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83167
83168 2005-08-12  Simon Josefsson  <jas@extundo.com>
83169
83170         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83171         ssize_t.
83172
83173 2005-08-12  Simon Josefsson  <jas@extundo.com>
83174
83175         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83176         readline, getdelim and check_version.
83177         (Support for systems lacking ISO C 99: Sizes of integer types):
83178         Add size_max.
83179
83180 2005-08-12  Bruno Haible  <bruno@clisp.org>
83181
83182         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83183
83184 2005-08-11  Simon Josefsson  <jas@extundo.com>
83185
83186         * modules/readline: New file.
83187
83188         * modules/strnlen (Files): Add strnlen.h.
83189
83190 2005-08-11  Simon Josefsson  <jas@extundo.com>
83191
83192         * m4/readline.m4: New file.
83193
83194 2005-08-11  Simon Josefsson  <jas@extundo.com>
83195
83196         * lib/readline.h, readline.c: New file.
83197
83198 2005-08-11  Simon Josefsson  <jas@extundo.com>
83199
83200         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83201         gl_AVOID.
83202
83203 2005-08-11  Bruno Haible  <bruno@clisp.org>
83204
83205         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83206
83207 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83208
83209         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83210
83211 2005-08-10  Simon Josefsson  <jas@extundo.com>
83212
83213         * tests/test-iconvme.c: New file.
83214
83215 2005-08-10  Simon Josefsson  <jas@extundo.com>
83216
83217         * m4/strnlen.m4: New file.
83218
83219         * m4/strndup.m4: Don't check for strnlen declaration, done in
83220         strnlen.m4.
83221
83222 2005-08-10  Simon Josefsson  <jas@extundo.com>
83223
83224         * lib/strndup.c: Use strnlen.h.
83225
83226         * lib/strnlen.h: New file.
83227
83228 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83229
83230         * README: Typos.
83231
83232 2005-08-02  Simon Josefsson  <jas@extundo.com>
83233
83234         * modules/readline: New file.
83235
83236 2005-08-02  Simon Josefsson  <jas@extundo.com>
83237
83238         * modules/getdelim: New file.
83239
83240         * modules/getline: Rewrite, don't use getndelim2.
83241
83242 2005-08-02  Simon Josefsson  <jas@extundo.com>
83243
83244         * m4/getline.m4: Separate out getdelim stuff into separate module.
83245
83246         * m4/getdelim.m4: New file.
83247
83248 2005-08-02  Simon Josefsson  <jas@extundo.com>
83249
83250         * lib/getline.h, getline.c: Rewrite.
83251
83252         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83253
83254 2005-07-31  Bruno Haible  <bruno@clisp.org>
83255
83256         * lib/lock.h (gl_lock_initializer): New macro.
83257         (gl_lock_define_initialized): Use it.
83258         (gl_rwlock_initializer): New macro.
83259         (gl_rwlock_define_initialized): Use it.
83260         (gl_recursive_lock_initializer): New macro.
83261         (gl_recursive_lock_define_initialized): Use it.
83262
83263 2005-07-30  Karl Berry  <karl@gnu.org>
83264
83265         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83266         Report from Ben Pfaff, regarding getopt.
83267
83268 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83269
83270         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83271         normal way.
83272         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83273         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83274         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83275         (gl_GETOPT): Use the new macros.  Most of the implementation
83276         is moved to the new macros.  This is for programs like Emacs
83277         that don't want all the functionality of gl_GETOPT.
83278
83279 2005-07-26  Bruno Haible  <bruno@clisp.org>
83280
83281         * m4/lock.m4: Update from GNU gettext.
83282
83283 2005-07-26  Bruno Haible  <bruno@clisp.org>
83284
83285         * lib/lock.h: Update from GNU gettext.
83286         * lib/lock.c: Update from GNU gettext.
83287
83288 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83289
83290         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83291         obsolescent AC_TRY_RUN.  Include the default includes files, for
83292         'exit'.
83293
83294 2005-07-24  Bruno Haible  <bruno@clisp.org>
83295
83296         * modules/visibility: New file.
83297         * MODULES.html.sh (Misc): Add visibility.
83298
83299 2005-07-24  Bruno Haible  <bruno@clisp.org>
83300
83301         * m4/visibility.m4: New file.
83302
83303 2005-07-24  Bruno Haible  <bruno@clisp.org>
83304
83305         * doc/visibility.texi: New file.
83306
83307 2005-07-22  Bruno Haible  <bruno@clisp.org>
83308
83309         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83310         $(ALLOCA_H), redundant through BUILT_SOURCES.
83311         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83312         redundant through BUILT_SOURCES.
83313         * modules/byteswap (Makefile.am): Remove explicit dependency on
83314         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83315         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83316         $(FNMATCH_H), redundant through BUILT_SOURCES.
83317         * modules/getopt (Makefile.am): Remove explicit dependency on
83318         $(GETOPT_H), redundant through BUILT_SOURCES.
83319         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83320         redundant through BUILT_SOURCES.
83321         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83322         redundant through BUILT_SOURCES.
83323         * modules/stdbool (Makefile.am): Remove explicit dependency on
83324         $(STDBOOL_H), redundant through BUILT_SOURCES.
83325         * modules/stdint (Makefile.am): Remove explicit dependency on
83326         $(STDINT_H), redundant through BUILT_SOURCES.
83327         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83328         Remove explicit dependency on $(SYSEXITS_H).
83329         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83330
83331 2005-07-18  Simon Josefsson  <jas@extundo.com>
83332
83333         * lib/check-version.c (check_version): Accept identical versions too.
83334
83335 2005-07-18  Bruno Haible  <bruno@clisp.org>
83336
83337         * modules/lock: New file.
83338         * MODULES.html.sh (Multithreading): New section.
83339
83340 2005-07-18  Bruno Haible  <bruno@clisp.org>
83341
83342         * m4/lock.m4: New file, from GNU gettext.
83343
83344 2005-07-18  Bruno Haible  <bruno@clisp.org>
83345
83346         * lib/lock.h: New file, from GNU gettext.
83347         * lib/lock.c: New file, from GNU gettext.
83348
83349 2005-07-18  Bruno Haible  <bruno@clisp.org>
83350
83351         * lib/lock.h (gl_once_t): New type.
83352         (gl_once_define, gl_once): New macros.
83353         * lib/lock.c (fresh_once): New variable.
83354         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83355         functions.
83356
83357 2005-07-16  Simon Josefsson  <jas@extundo.com>
83358
83359         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83360         workaround, suggested by Bruno.
83361
83362 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83363
83364         * modules/xalloc (Depends-on): Add xalloc-die.
83365         * modules/xvasprintf (Depends-on): Add xalloc-die.
83366
83367 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83368
83369         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83370         with a minor change.
83371
83372 2005-07-15  Bruno Haible  <bruno@clisp.org>
83373
83374         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83375         When using lib/poll.c, define poll as rpl_poll.
83376
83377 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83378
83379         * modules/argp (Depends-on): Remove unlocked-io.
83380
83381 2005-07-14  Derek Price  <derek@ximbiot.com>
83382
83383         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83384         for glob symlink bug.
83385
83386 2005-07-14  Bruno Haible  <bruno@clisp.org>
83387
83388         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83389         Instead, test for *_unlocked function declarations directly.
83390
83391 2005-07-11  Simon Josefsson  <jas@extundo.com>
83392
83393         * modules/size_max: New file.
83394
83395         * modules/xsize: Depend on size_max module for size_max.m4.
83396
83397 2005-07-11  Simon Josefsson  <jas@extundo.com>
83398
83399         * lib/size_max.h: New file.
83400
83401 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83402
83403         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83404         copyright symbol and the year.
83405         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83406         (version_etc_va): Use parameterized copyright notice.
83407         Reword to conform to the current GNU coding standards.
83408
83409 2005-07-11  Karl Berry  <karl@gnu.org>
83410
83411         * doc/gnulib.texi (Quoting): new node.
83412         (Initial import): more info, from Patrice.
83413
83414 2005-07-11  Bruno Haible  <bruno@clisp.org>
83415
83416         * gnulib-tool (func_usage): Document option --avoid.
83417         (Command line options): Handle --avoid.
83418         (func_acceptable): New function.
83419         (func_modules_transitive_closure): Use it.
83420
83421 2005-07-11  Bruno Haible  <bruno@clisp.org>
83422
83423         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83424         Reported by Jim Meyering.
83425
83426 2005-07-10  Bruno Haible  <bruno@clisp.org>
83427
83428         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83429         Needed when size_t is smaller than 'unsigned int'.
83430         Reported by Paul Eggert.
83431
83432 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83433
83434         * modules/argp (Depends-on): Add unlocked-io
83435
83436 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83437
83438         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83439         block of defines.
83440
83441 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83442
83443         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83444         fix now.
83445
83446 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83447         and Paul Eggert  <eggert@cs.ucla.edu>
83448
83449         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83450         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83451
83452 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83453
83454         * modules/regex (Files): Add lib/regex_internal.c,
83455         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83456         (Depends-on): Add extensions.
83457         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83458
83459 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83460
83461         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83462         pathconf.
83463         * m4/same.m4 (gl_SAME): Likewise.
83464         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83465
83466         * m4/regex.m4: Adjust to new libc regex implementation.
83467         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83468         all the .c and .h parts of (the new) regex.
83469         Quote the m4 stuff better.
83470         Check for RE_ICASE bug of old gnulib.
83471         Check for REG_STARTEND of recent libc.
83472         Rename local variables from jm_* to gl_*.
83473         Quote operand of "test -f".
83474         Say "recent enough" version of libc, not "version 2".
83475         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83476         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83477         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83478         Remove check for btowc, isascii.
83479         Require AM_LANGINFO_CODESET.
83480
83481 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83482
83483         * lib/regex.c, regex.h: Sync from libc.
83484         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83485         * lib/regexec.c:
83486         New files, synced from libc, except that regex_internal.h
83487         currently has a small porting fix.
83488
83489 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83490
83491         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83492         regex_internal.c, regexec.c.
83493         Add regex_internal.h too, but as a comment, since the libc version
83494         is currently broken in gnulib mode.
83495
83496 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83497
83498         Support programs like Emacs that use gnulib but not gettext.
83499         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83500         * modules/gettext-h: New file.
83501         * modules/gettext (Files): Remove lib/gettext.h.
83502         (Depends-on): Add gettext-h.
83503         (Makefile.am): Remove lib_SOURCES.
83504         * modules/argmatch, modules/c-stack, modules/closeout:
83505         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83506         * modules/execute, modules/file-type, modules/getaddrinfo:
83507         * modules/getopt, modules/human, modules/javacomp:
83508         * modules/javaexec, modules/mkdir-p, modules/obstack:
83509         * modules/openat, modules/pagealign_alloc, modules/pipe:
83510         * modules/quotearg, modules/regex, modules/rpmatch:
83511         * modules/unicodeio, modules/userspec, modules/version-etc:
83512         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83513         * modules/xsetenv:
83514         Depend on gettext-h, not gettext.
83515
83516 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83517
83518         * gnulib-tool (func_import): Add support for 'public domain' license.
83519         * modules/alloca, modules/atexit, modules/memmove:
83520         Now public domain, not GPL.
83521         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83522         * modules/realloc, modules/strerror, modules/strtod:
83523         Now LGPL, not GPL.
83524
83525 2005-07-05  Bruno Haible  <bruno@clisp.org>
83526
83527         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83528         autoconf CVS. Needed for mingw.
83529
83530 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83531
83532         Remove the dependency of the strftime module on the tzset module.
83533         * modules/strftime (Depends-on): Remove dependency on tzset.
83534
83535 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83536
83537         Remove the dependency of the strftime module on the tzset module.
83538         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83539         gl_FUNC_TZSET_CLOBBER.
83540
83541 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83542
83543         Remove the dependency of the strftime module on the tzset module.
83544         * lib/strftime.c (my_strftime)
83545         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83546         Copy the input structure, to work around some of the bug with
83547         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83548         Solaris releases, you should also use the tzset module, but we won't
83549         require it as a dependency any more since we don't want LGPLed code
83550         to depend on GPLed code.
83551
83552 2005-07-02  Jim Meyering  <jim@meyering.net>
83553
83554         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83555         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83556         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83557         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83558
83559 2005-07-02  Jim Meyering  <jim@meyering.net>
83560
83561         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83562
83563 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83564
83565         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83566         declares only 'struct timespec;' (!).
83567
83568 2005-07-01  Jim Meyering  <jim@meyering.net>
83569
83570         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83571         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83572         * lib/save-cwd.c, tempname.c:
83573         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83574         and don't include <sys/file.h>).
83575
83576 2005-06-29  Jim Meyering  <jim@meyering.net>
83577
83578         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83579         type name.  Use the variable name instead.
83580         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83581         Likewise.
83582
83583 2005-06-28  Simon Josefsson  <jas@extundo.com>
83584
83585         * modules/check-version (Files): Add check-version.m4.
83586
83587 2005-06-28  Simon Josefsson  <jas@extundo.com>
83588
83589         * m4/check-version.m4: New file, suggested by Jim Meyering
83590         <jim@meyering.net>.
83591
83592 2005-06-28  Simon Josefsson  <jas@extundo.com>
83593
83594         * lib/check-version.h, lib/check-version.c: New files.
83595
83596 2005-06-28  Simon Josefsson  <jas@extundo.com>
83597
83598         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83599         collision with global variable.  Better indentation.  Don't
83600         increment buffer pointer beyond buffer end.  Based on comments
83601         from Paul Eggert <eggert@cs.ucla.edu>.
83602
83603         * lib/base64.h: Indent.
83604
83605 2005-06-28  Simon Josefsson  <jas@extundo.com>
83606
83607         * doc/gnulib.texi (Library version handling): New section.
83608
83609 2005-06-28  Jim Meyering  <jim@meyering.net>
83610
83611         * check-module (find_included_lib_files): Hard-code another
83612         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83613         but modules/fts-lgpl (correctly) does not list those files.
83614
83615         * modules/canonicalize (Files): Add lib/pathmax.h.
83616
83617 2005-06-25  Simon Josefsson  <jas@extundo.com>
83618
83619         * modules/check-version: New file.
83620
83621 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83622
83623         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83624         initializer of struct addrinfo, as an indication that we don't
83625         care how many members the structure has.
83626
83627 2005-06-24  Derek Price  <derek@ximbiot.com>
83628         and Bruno Haible  <bruno@clisp.org>
83629
83630         Remove stat module & update lstat.
83631         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83632         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83633         * m4/stat.m4: Remove this file.
83634
83635 2005-06-24  Derek Price  <derek@ximbiot.com>
83636         and Bruno Haible  <bruno@clisp.org>
83637
83638         Remove stat module & update lstat.
83639         * lib/stat.c: Remove this file...
83640         (slash_aware_lstat): ...moving this content and its support...
83641         * lib/lstat.c (rpl_lstat): ...into here.
83642         * lib/lstat.h: New file.
83643
83644 2005-06-24  Derek Price  <derek@ximbiot.com>
83645         and Bruno Haible  <bruno@clisp.org>
83646
83647         Remove stat module & update lstat.
83648         * config/srclist.txt (libc sources): Remove stat.
83649
83650 2005-06-24  Derek Price  <derek@ximbiot.com>
83651         and Bruno Haible  <bruno@clisp.org>
83652
83653         Remove stat module & update lstat.
83654         * MODULES.html.sh (stat): Remove.
83655         * MODULES.html: Regenerated.
83656         * modules/lstat (Description): Correct function name.
83657         (Files): Add "lstat.h".
83658         (Depends-on): Remove stat, add xalloc, stat-macros.
83659         * modules/stat: Remove this file.
83660         (Include): Add "lstat.h", remove <sys/stat.h>.
83661
83662 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83663
83664         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83665         (ranged_convert): Don't save conversion in a temporary struct.
83666         This causes a warning with GCC 4.0.0, and anyway in the typical
83667         case it's not worth the extra 100 bytes or so of code.
83668         (ranged_convert, __mktime_internal): When calling a function via a
83669         pointer P, use P () rather than (*P) (), as we now assume C89 or
83670         better.
83671
83672 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83673
83674         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83675         "who -r" failed to give output.  Problem reported by Tim Waugh.
83676
83677         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83678         (xcalloc): Use it to avoid needless tests.
83679         Problem reported by Jim Meyering.
83680
83681 2005-06-20  Derek Price  <derek@ximbiot.com>
83682
83683         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83684         unnecessary for Autoconfs > 2.59c.
83685
83686 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83687
83688         * lib/argp.h (__option_is_short): Check upper limit of
83689         __key. Isprint() requires its argument to have the value
83690         of an unsigned char or EOF.
83691
83692 2005-06-16  Jim Meyering  <jim@meyering.net>
83693
83694         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83695         when either N or S is zero.
83696
83697 2005-06-16  Derek Price  <derek@ximbiot.com>
83698
83699         * m4/bison.m4: Declare YACC & YFLAGS precious.
83700
83701 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83702
83703         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83704         multibyte string or pattern, fall back on unibyte matching.
83705         Problem reported by James Youngman.
83706
83707 2005-06-08  Bruno Haible  <bruno@clisp.org>
83708
83709         * modules/csharpcomp: New file.
83710         * MODULES.html.sh (C#): Add csharpcomp.
83711
83712 2005-06-08  Bruno Haible  <bruno@clisp.org>
83713
83714         * m4/csharpcomp.m4: New file, from GNU gettext.
83715
83716 2005-06-08  Bruno Haible  <bruno@clisp.org>
83717
83718         * lib/csharpcomp.h: New file, from GNU gettext.
83719         * lib/csharpcomp.c: New file, from GNU gettext.
83720         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83721
83722 2005-06-08  Bruno Haible  <bruno@clisp.org>
83723
83724         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83725         warning on mingw.
83726
83727 2005-06-07  Derek Price  <derek@ximbiot.com>
83728
83729         Sync from CVS.
83730         * lib/glob_.h: Indent nested #ifdef.
83731
83732 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83733
83734         Sync from coreutils.
83735         Use "file name" when talking about file names, instead of "filename"
83736         or "path", as per the GNU coding standards.
83737         * lib/mkdir-p.c: Renamed from makepath.c.
83738         (make_dir_parents): Renamed from make_path.  All callers changed.
83739         * lib/mkdir-p.h: Likewise.  All includers changed.
83740         * lib/filenamecat.c: Renamed from path-concat.c.
83741         (file_name_concat): Renamed from path_concat.  All callers changed.
83742         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83743         * lib/filenamecat.h: Likewise.  All includers changed.
83744         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83745         in comments or local variable names.
83746         * lib/basename.c: Likewise.
83747         * lib/canonicalize.c, canonicalize.h: Likewise.
83748         * lib/dirname.c, dirname.h: Likewise.
83749         * lib/euidaccess.c: Likewise.
83750         * lib/exclude.c: Likewise
83751         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83752         * lib/fsusage.c, fsuage.h: Likewise.
83753         * lib/fts.c, fts_.h: Likewise.
83754         * lib/getcwd.c: Likewise.
83755         * lib/getloadavg.c: Likewise.
83756         * lib/mkstemp.c: Likewise.
83757         * lib/mountlist.c, mountlist.h: Likewise.
83758         * lib/openat.c, openat.h: Likewise.
83759         * lib/readlink-stub.c: Likewise.
83760         * lib/readutmp.c, readutmp.h: Likewise.
83761         * lib/rename.c: Likewise.
83762         * lib/rmdir.c: Likewise.
83763         * lib/same.c: Likewise.
83764         * lib/savedir.c: Likewise.
83765         * lib/stripslash.c: Likewise.
83766         * lib/tempname.c: Likewise.
83767         * lib/xreadlink.c: Likewise.
83768         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83769         All uses changed.
83770         * lib/exclude.h: Likewise.
83771
83772         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83773         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83774         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83775         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83776         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83777         files have been getting away with it for years (MORE/BSD 4.3
83778         is extinct now).
83779         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83780         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83781
83782         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83783         Define to 256, not 255, as per modern POSIX.
83784
83785 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83786
83787         Sync from coreutils.
83788         Use "file name" when talking about file names, instead of "filename"
83789         or "path", as per the GNU coding standards.
83790         * MODULES.html.sh: mkdir-p renamed from makepath.
83791         filenamecat renamed from path-concat.
83792         * modules/filenamecat: Renamed from modules/path-concat.
83793         (Files): filenamecat.h and filenamecat.c renamed from
83794         path-concat.h and path-concat.c.
83795         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83796         (Include): filenamecat.h, not path-concat.h.
83797         * modules/mkdir-p: Renamed from modules/makepath.
83798         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83799         makepath.c.
83800         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83801         (Include): mkdir-p.h, not makepath.h.
83802
83803 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83804
83805         Sync from coreutils.
83806         * m4/mkdir-p.m4: Renamed from makepath.m4.
83807         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83808         Rename files from makepath.c to mkdir-p.c, and from
83809         makepath.h to mkdir-p.h.
83810         * m4/filenamecat.m4: Renamed from path-concat.m4.
83811         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83812         Rename files from path-concat.c to filenamecat.c,
83813         and from path-concat.h to filenamecat.h.
83814         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83815         "file name" in local variables or comments.
83816         * m4/rename.m4: Likewise.
83817
83818 2005-06-01  Bruno Haible  <bruno@clisp.org>
83819
83820         * modules/csharpexec: New file.
83821         * MODULES.html.sh (C#): New section.
83822
83823 2005-06-01  Bruno Haible  <bruno@clisp.org>
83824
83825         * m4/csharp.m4: New file, from GNU gettext.
83826         * m4/csharpexec.m4: New file, from GNU gettext.
83827
83828 2005-06-01  Bruno Haible  <bruno@clisp.org>
83829
83830         * lib/csharpexec.h: New file, from GNU gettext.
83831         * lib/csharpexec.c: New file, from GNU gettext.
83832         * lib/csharpexec.sh.in: New file, from GNU gettext.
83833
83834 2005-05-31  Derek Price  <derek@ximbiot.com>
83835             Paul Eggert  <eggert@cs.ucla.edu>
83836
83837         Sync from cvs.
83838         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83839
83840 2005-05-31  Derek Price  <derek@ximbiot.com>
83841             Paul Eggert  <eggert@cs.ucla.edu>
83842
83843         Sync from cvs.
83844         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83845
83846 2005-05-29  Derek Price  <derek@ximbiot.com>
83847
83848         * config/srclist.txt (glob_.h, glob.c): Add these files.
83849
83850 2005-05-29  Derek Price  <derek@ximbiot.com>
83851
83852         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83853         * modules/glob: New file.
83854         * modules/getlogin_r: Add link to POSIX spec in description.
83855
83856 2005-05-29  Derek Price  <derek@ximbiot.com>
83857             Paul Eggert  <eggert@cs.ucla.edu>
83858
83859         * m4/glob.m4: New file.
83860
83861 2005-05-29  Derek Price  <derek@ximbiot.com>
83862             Paul Eggert  <eggert@cs.ucla.edu>
83863
83864         * lib/glob_.h, lib/glob.c: New files.
83865
83866 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83867
83868         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83869         * modules/fts-lgpl (Depends-on): Remove gettext.
83870
83871 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83872
83873         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83874         and don't require gt_INTTYPES_PRI.
83875
83876 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83877
83878         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83879
83880         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83881         the configuration hassle isn't worth it.
83882         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83883         (LONGEST_MODIFIER, PRIuMAX): Remove.
83884
83885 2005-05-27  Bruno Haible  <bruno@clisp.org>
83886
83887         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83888
83889 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83890
83891         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83892         _POSIX_PTHREAD_SEMANTICS for Solaris.
83893
83894 2005-05-25  Derek Price  <derek@ximbiot.com>
83895
83896         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83897
83898 2005-05-25  Derek Price  <derek@ximbiot.com>
83899             Paul Eggert  <eggert@cs.ucla.edu>
83900
83901         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83902         * lib/getlogin_r.c, getlogin_r.h: New files.
83903
83904 2005-05-25  Bruno Haible  <bruno@clisp.org>
83905             Derek Price  <derek@ximbiot.com>
83906
83907         * lib/getlogin_r.h: Simplify API documentation.
83908
83909 2005-05-23  Derek Price  <derek@ximbiot.com>
83910
83911         * modules/minmax (Files): Add m4/minmax.m4.
83912         (configure.ac): Add gl_MINMAX.
83913
83914 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83915
83916         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83917         so that unistd-safer.h (GPL'ed code) need not be included.
83918
83919 2005-05-22  Bruno Haible  <bruno@clisp.org>
83920
83921         * m4/minmax.m4: New file.
83922         Based on a patch by Derek Price <derek@ximbiot.com>.
83923
83924 2005-05-22  Bruno Haible  <bruno@clisp.org>
83925
83926         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83927         (INT64_MIN): Fix definition.
83928         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83929
83930         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83931         NEED_SIGNED_INT_TYPES.
83932
83933         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83934         HAVE_SYSTEM_INTTYPES.
83935
83936 2005-05-22  Bruno Haible  <bruno@clisp.org>
83937
83938         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83939         Also include <sys/param.h> if it defines MIN, MAX.
83940         Based on a patch by Derek Price <derek@ximbiot.com>.
83941
83942 2005-05-21  Jim Meyering  <jim@meyering.net>
83943
83944         * modules/fts (Files): Add m4/inttypes-pri.m4.
83945         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83946
83947 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83948
83949         New fts module.
83950         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83951         (setup_dir, free_dir): New functions.
83952         (enter_dir, leave_dir): Define trivial
83953         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83954         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83955         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83956         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83957         Move to fts-cycle.c.
83958         (fts_open): Use setup_dir.
83959         (fts_close): Use free_dir.
83960         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83961         This adds a label and some gotos, but the alternatives were messier.
83962         Check for memory allocation failure when entering a dir.
83963         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83964         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83965         (FTS): New member fts_cycle, that is a union that contains the
83966         old active_dir_ht and cycle_state.  All uses changed to mention
83967         fts_cycle.ht and fts_cycle.state.
83968         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83969         fts.c, with the following changes:
83970         (setup_dir, free_dir): New functions.
83971         (enter_dir): Now returns bool.  Return true if successful, false
83972         if memory exhausted.  All callers changed.
83973         Do not bother partly cleaning up on
83974         memory allocation failure; that is free_dir's job.
83975         However, free ad if hash_insert fails, to avoid memory leak.
83976         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83977         fts->fts_options to see which union member to use.
83978
83979 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83980
83981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83982         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83983
83984 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83985
83986         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83987
83988 2005-05-20  Jim Meyering  <jim@meyering.net>
83989
83990         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83991         Now a macro, to pacify GCC.
83992
83993 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83994
83995         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83996         of -1.
83997
83998 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83999
84000         * lib/chown.c (rpl_chown): Return -1 on failure.
84001
84002 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84003
84004         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
84005         Don't check for stddef.h.
84006         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
84007         don't use its results.
84008         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84009         since we include them unconditionally.  Don't require
84010         AM_STDBOOL_H, since stdbool is a prerequisite.
84011         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84012         since we assume C89 or better.
84013         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84014         as we don't use their results.
84015         Don't check for fchdir, memmove, memset, strrchr, as we use
84016         them unconditionally.
84017         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84018         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84019
84020 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84021
84022         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84023         Include <stddef.h> unconditionally, since we assume C89 now.
84024         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84025         * lib/fts.c: Include fts_.h first, to check interface.
84026         Do not include intprops.h; no longer needed.
84027         Include cycle-check.h and hash.h, since fts_.h no longer does.
84028         Remove unnecessary casts of closedir to void.
84029         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84030         decide whether to decrement nlinks.
84031         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84032         (FTS): Use struct hash_table * instead of Hash_table, so that
84033         we no longer need to include hash.h here.
84034
84035 2005-05-18  Jim Meyering  <jim@meyering.net>
84036
84037         * modules/dirfd (License): Change to LGPL.  Most of the code
84038         is already in the public domain.
84039
84040 2005-05-18  Jim Meyering  <jim@meyering.net>
84041
84042         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84043         Reported by Yoann Vandoorselaere.
84044
84045 2005-05-17  Jim Meyering  <jim@meyering.net>
84046
84047         * m4/fts.m4: New file, from coreutils.
84048
84049 2005-05-17  Jim Meyering  <jim@meyering.net>
84050
84051         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84052
84053 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84054
84055         Sync from coreutils.
84056         * m4/unlinkdir.m4: New file.
84057
84058 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84059
84060         Sync from coreutils.
84061         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84062         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84063         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84064         White space changes only.
84065         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84066         special.
84067         * lib/yesno.c: Include getline.h, not ctype.h.
84068         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84069         Use getline to remove arbitrary restriction on response length.
84070
84071 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84072
84073         * config/srclist-update: Spell out "Street" in FSF postal
84074         mail address; this is the style the FSF seems to prefer.
84075
84076         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84077         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84078         this updates FSF postal mail address.
84079
84080         Sync from coreutils.
84081         * modules/unlinkdir: New file.
84082         * modules/yesno (Depends-on): Add getline.
84083         * MODULES.html.sh (File system functions): Add unlinkdir.
84084
84085 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84086
84087         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84088         lib/strsep.h:
84089         Change the initial comment to refer to GPL, not LGPL.
84090         gnulib-tool will change it to LGPL as needed.
84091
84092         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84093         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84094         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84095         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84096         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84097         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84098         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84099         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84100         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84101         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84102         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84103         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84104         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84105         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84106         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84107         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84108         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84109         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84110         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84111         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84112         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84113         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84114         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84115         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84116         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84117         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84118         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84119         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84120         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84121         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84122         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84123         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84124         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84125         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84126         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84127         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84128         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84129         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84130         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84131         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84132         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84133         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84134         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84135         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84136         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84137         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84138         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84139         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84140         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84141         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84142         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84143         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84144         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84145         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84146         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84147         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84148         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84149         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84150         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84151         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84152         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84153         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84154         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84155         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84156         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84157         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84158         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84159         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84160         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84161         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84162         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84163         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84164         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84165         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84166         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84167         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84168         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84169         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84170         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84171         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84172         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84173         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84174         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84175         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84176         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84177         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84178         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84179         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84180         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84181         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84182         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84183         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84184         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84185         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84186         lib/yesno.c, lib/yesno.h:
84187         Update FSF postal mail address.
84188
84189 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84190
84191         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84192         tests/test-memmem.c, tests/test-stpncpy.c:
84193         Update FSF postal mail address.
84194
84195 2005-05-13  Bruno Haible  <bruno@clisp.org>
84196
84197         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84198         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84199         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84200         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84201         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84202         Add support for 64-bit integers in the MSVC compiler.
84203
84204 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84205
84206         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84207
84208 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84209
84210         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84211
84212 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84213
84214         * doc/getdate.texi (General date syntax): Don't say that date
84215         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84216         Problem reported by Nic Ferrier.
84217
84218 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84219
84220         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84221         specified in ai_socktype. Fix invalid ai_protocol
84222         check. ai_protocol is usually set to 0 or depending on
84223         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84224         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84225         ai_socktype / ai_protocol in the returned addrinfo structure.
84226
84227 2005-05-10  Simon Josefsson  <jas@extundo.com>
84228
84229         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84230         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84231
84232 2005-05-10  Karl Berry  <karl@gnu.org>
84233
84234         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84235         (from http://www.gnu.org/licenses).
84236         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84237         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84238         fdl.texi suffices.
84239
84240 2005-05-10  Karl Berry  <karl@gnu.org>
84241
84242         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84243         (COPYING.DOC): remove.
84244
84245         * config/srclist-update: new FSF address.
84246
84247 2005-05-10  Derek Price  <derek@ximbiot.com>
84248
84249         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84250         possible.
84251
84252 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84253             Bruno Haible  <bruno@clisp.org>
84254
84255         * modules/inet_ntop: New file.
84256         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84257         inet_ntop.
84258
84259 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84260             Bruno Haible  <bruno@clisp.org>
84261
84262         * m4/inet_ntop.m4: New file.
84263
84264 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84265             Bruno Haible  <bruno@clisp.org>
84266
84267         * lib/inet_ntop.h: New file.
84268         * lib/inet_ntop.c: New file, from glibc with modifications.
84269
84270 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84271
84272         * modules/time_r (License): Change to LGPL.
84273         * modules/extensions (License): Change to LGPL.  Actually,
84274         the license is more permissive than that, but currently gnulib-tool
84275         doesn't know how to handle more-permissive licenses.
84276
84277         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84278         Problem reported by Dave Love.
84279
84280 2005-05-08  Jim Meyering  <jim@meyering.net>
84281
84282         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84283         blank.
84284
84285 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84286
84287         * modules/argmatch (Depends-on): Add stdbool.
84288         * modules/backupfile (Depends-on): Likewise.
84289         * modules/chdir-long (Depends-on): Likewise.
84290         * modules/closeout (Depends-on): Likewise.
84291         * modules/cycle-check (Depends-on): Likewise.
84292         * modules/dirname (Depends-on): Likewise.
84293         * modules/fnmatch (Depends-on): Likewise.
84294         * modules/fsusage (Depends-on): Likewise.
84295         * modules/fwriteerror (Depends-on): Likewise.
84296         * modules/getcwd (Depends-on): Likewise.
84297         * modules/getloadavg (Depends-on): Likewise.
84298         * modules/hard-locale (Depends-on): Likewise.
84299         * modules/makepath (Depends-on): Likewise.
84300         * modules/mountlist (Depends-on): Likewise.
84301         * modules/nanosleep (Depends-on): Likewise.
84302         * modules/posixtm (Depends-on): Likewise.
84303         * modules/quotearg (Depends-on): Likewise.
84304         * modules/readtokens (Depends-on): Likewise.
84305         * modules/readtokens0 (Depends-on): Likewise.
84306         * modules/readutmp (Depends-on): Likewise.
84307         * modules/save-cwd (Depends-on): Likewise.
84308         * modules/strftime (Depends-on): Likewise.
84309         * modules/userspec (Depends-on): Likewise.
84310         * modules/utimecmp (Depends-on): Likewise.
84311         * modules/xgetcwd (Depends-on): Likewise.
84312         * modules/xnanosleep (Depends-on): Likewise.
84313         * modules/xstrtod (Depends-on): Likewise.
84314         * modules/yesno (Depends-on): Likewise.
84315
84316 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84319         needless checks.
84320
84321 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84322
84323         Merge from coreutils.  Among other things,
84324         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84325         * lib/fd-safer.c: New file.
84326         * lib/fcntl-safer.h, open-safer.c: Remove.
84327         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84328         * lib/dup-safer.c: Include unistd-safer.h first.
84329         Don't include errno.h.
84330         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84331         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84332         * lib/file-type.c: Rely on file-type.h change.
84333         * lib/getloadavg.c: Include unistd-safer.h.
84334         (getloadavg): Use safer open.
84335         * lib/getusershell.c: Include "stdio-safer.h".
84336         (getusershell): Use safer fopen.
84337         * lib/long-options.c (long_options): Use NULL rather than 0.
84338         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84339         'free'.
84340         * lib/modechange.c: Likewise.
84341         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84342         (MODE_DONE): New constant.
84343         (struct mode_change): Remove 'next' member.
84344         (make_node_op_equals): New function; like the old one of the
84345         same name, except it allocates an array.
84346         (mode_compile, mode_create_from_ref): Use it.
84347         (mode_compile): Allocate result as an array, not a linked list.
84348         Parse octal string ourself, so that we catch mistakes like "+0".
84349         (mode_adjust): Arg is an array, not a linked list.
84350         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84351         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84352         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84353         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84354         Remove.  This is now stat-macros.h's job.
84355         (talloc): Remove.  All callers replaced by xalloc, so that
84356         our invokers don't have to worry about reporting memory failures.
84357         (make_node_op_equals): Remove.
84358         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84359         New constants.
84360         (struct mode_change): Moved here from modechange.h.
84361         (mode_append_entry): Remove.
84362         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84363         apps to have incorrect behavior.  Use simpler algorithm for head
84364         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84365         Detect more invalid usages rather than having somewhat-random behavior.
84366         Don't insert an "a=" action, as that leads to incorrect behavior.
84367         (mode_compile, mode_create_from_ref): Return NULL on error instead
84368         of an enum, since now there's only one way to have an error.  All
84369         callers changed.
84370         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84371         at the correct time.  Simplify calculation of "+u" and its ilk.
84372         Don't mishandle "+X".
84373         (mode_free): Remove "register" and localize decls.
84374         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84375         (struct mode_change): Move to modechange.c; callers don't
84376         need to see this stuff.
84377         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84378         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84379         (mode_change, mode_adjust): Reflect the new signatures noted above.
84380         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84381         that might redefine system include files.
84382         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84383         (my_usleep): Use NULL rather than (void *) 0.
84384         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84385         Use siginterrupt to specify that system calls should be interrupted.
84386         (rpl_nanosleep): Move initialization of suspended closer to call of
84387         my_usleep.
84388         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84389         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84390         (desirable_utmp_entry): New function.
84391         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84392         using x2nrealloc, to simplify logic.
84393         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84394         size calculation.  Do not assume utmp file is a regular file.
84395         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84396         (READ_UTMP_CHECK_PIDS): New constant.
84397         * lib/save-cwd.c: Include unistd-safer.h.
84398         (save_cwd): Use fd_safer.
84399         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84400         [!_LIBC] Include "stat-macros.h" instead.
84401         * lib/unistd-safer.h (fd_safer): New decl.
84402
84403 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84404
84405         * modules/getloadavg (Depends-on): Add unistd-safer.
84406         * modules/getusershell (Depends-on): Add stdio-safer.
84407         * modules/lstat (Depends-on): Remove xalloc.
84408         * modules/mkstemp (Depends-on): Add stat-macros.
84409         * modules/modechange (Depends-on): Remove xstrtol.
84410         Add stat-macros, xalloc.
84411         * modules/save-cwd (Depends-on): Add unistd-safer.
84412         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84413         * modules/unistd-safer (Files): Add lib/fd-safer.c
84414         (Makefile.am): Remove lib_SOURCES.
84415
84416         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84417         Remove fcntl-safer; unistd-safer supersedes it.
84418
84419 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84420
84421         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84422         AC_HEADER_STAT.
84423         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84424         (gl_PREREQ_CHOWN): Remove.
84425         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84426         it.  Don't require AC_HEADER_STAT.
84427         (gl_PREREQ_LSTAT): Remove.
84428         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84429         Don't require AC_HEADER_STAT.
84430         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84431         (gl_PREREQ_RMDIR): Remove.
84432         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84433         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84434         the stat-macros module a prerequisite.
84435         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84436         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84437         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84438         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84439         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84440         variable names.
84441         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84442         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84443         variable prefixes.
84444         * m4/fcntl-safer.m4: Remove.
84445         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84446         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84447         Invoke gl_PREREQ_FD_SAFER.
84448         (gl_PREREQ_FD_SAFER): New macro.
84449         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84450         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84451         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84452         Remove duplicate call to AC_LIBOBJ(readutmp).
84453         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84454
84455         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84456         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84457
84458 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84459
84460         * MODULES.html.sh (Misc): Add byteswap.
84461
84462 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84463
84464         * modules/getcwd (Depends-on): Add extensions.
84465         * modules/openat (Depends-on): Likewise.
84466
84467 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84468
84469         * modules/byteswap: New file.
84470
84471 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84472
84473         * m4/byteswap.m4: New file.
84474
84475 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84476
84477         * lib/byteswap_.h: New file.
84478
84479 2005-04-25  Karl Berry  <karl@gnu.org>
84480
84481         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84482
84483 2005-04-25  Albert Chin  <china@thewrittenword.com>
84484
84485         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84486         Toolkit C bug.
84487
84488 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84489
84490         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84491         (func_ln_if_changed): Remove forcibly for no error message
84492         in case file does not exist.
84493
84494 2005-04-19  Simon Josefsson  <jas@extundo.com>
84495
84496         * gnulib-tool (Options): Make --symlink mean --symbolic.
84497
84498 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84499
84500         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84501
84502 2005-04-16  Simon Josefsson  <jas@extundo.com>
84503
84504         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84505
84506 2005-04-15  Simon Josefsson  <jas@extundo.com>
84507
84508         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84509
84510 2005-04-15  Simon Josefsson  <jas@extundo.com>
84511
84512         * gnulib-tool: Rename --symlink to --symbolic.
84513
84514 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84515
84516         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84517         symbolic links to files instead of copying/moving.  Add --aux-dir,
84518         specifying directory relative --dir where auxiliary build tools
84519         are placed.
84520
84521 2005-04-14  Bruno Haible  <bruno@clisp.org>
84522
84523         * modules/allocsa (License): Change to LGPL.
84524         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84525
84526 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84527
84528         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84529         that "UTC +1 second" continues to work.  Problem reported
84530         by Dmitry V. Levin.
84531         (relunit_snumber): New rule.
84532         (relunit): Use it.
84533
84534 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84535
84536         * lib/getdate.y (universal_time_zone_table): New constant.
84537         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84538         universal_time_zone_table.
84539         (lookup_zone): Prefer universal_time_zone_table to
84540         local_time_zone_table, so that "GMT" time stamps are allowed in
84541         London during the summer.  Problem reported by Ian Abbott.
84542
84543 2005-04-12  Jim Meyering  <jim@meyering.net>
84544
84545         * lib/human.c (humblock): Set *options even when returning due to
84546         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84547         warning from gcc-4.
84548
84549 2005-04-09  Jim Meyering  <jim@meyering.net>
84550
84551         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84552         -Wuninitialized: initialize tm0.tm_year.
84553
84554 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84555
84556         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84557         count, since there's no maximum.  All uses changed.
84558         Add member dsts_seen.
84559         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84560         not being INT_MAX.
84561         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84562         Use pc_rels_seen to decide whether a date is absolute.
84563
84564         * lib/getdate.y (number): Don't overwrite year.
84565         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84566         check.
84567
84568 2005-04-02  Simon Josefsson  <jas@extundo.com>
84569
84570         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84571         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84572
84573 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84574
84575         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84576         where no absolute path name can be longer than PATH_MAX.
84577
84578 2005-03-27  Jim Meyering  <jim@meyering.net>
84579
84580         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84581
84582 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84583
84584         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84585         "one's complement" -> "ones' complement" in comment, as per Knuth.
84586         "value of type" -> "type or expression" in comment.
84587         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84588
84589 2005-03-26  Jim Meyering  <jim@meyering.net>
84590
84591         Comment nits.
84592         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84593         Correct typos: s/or/of/.
84594
84595 2005-03-26  Jim Meyering  <jim@meyering.net>
84596
84597         * modules/check-include-files: Move to ../ and rename to...
84598         * check-module: ...this.
84599
84600 2005-03-25  Jim Meyering  <jim@meyering.net>
84601
84602         * modules/xvasprintf (Files): Add xalloc.h.
84603
84604 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84605
84606         * modules/gettext (Files): config/config.rpath ->
84607         build-aux/config.rpath
84608         * modules/iconv (Files): Likewise.
84609         Problem reported by Oskar Liljeblad.
84610
84611 2005-03-23  Jim Meyering  <jim@meyering.net>
84612
84613         * modules/check-include-files: New script to check for
84614         missing dependencies, multiple includes, etc.
84615
84616         * modules/c-strtold (Depends-on): Add xalloc.
84617         * modules/c-strtod (Depends-on): Add xalloc.
84618         * modules/hash (Depends-on): Add xalloc.
84619         (Files): Remove lib/xalloc.h.
84620
84621         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84622         * modules/userspec (Files): Add lib/inttostr.h.
84623
84624 2005-03-23  Jim Meyering  <jim@meyering.net>
84625
84626         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84627
84628 2005-03-22  Jim Meyering  <jim@meyering.net>
84629
84630         * modules/stat-macros: New module.
84631         * modules/canonicalize, modules/euidaccess, modules/file-type,
84632         * modules/filemode, modules/lchown, modules/makepath,
84633         * modules/rmdir, modules/stat: Depend on new stat-macros module
84634         rather than listing lib/stat-macros.h manually.
84635         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84636
84637 2005-03-22  Jim Meyering  <jim@meyering.net>
84638
84639         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84640
84641 2005-03-22  Bruno Haible  <bruno@clisp.org>
84642
84643         * config/srclist.txt: Replace target directory 'config' with
84644         'build-aux'.
84645         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84646         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84647         ../build-aux/.
84648
84649 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84650
84651         * modules/chdir-long (Depends-on): Add mempcpy.
84652
84653         * modules/acl, modules/backupfile, modules/c-strtod,
84654         modules/c-strtold, modules/canon-host, modules/canonicalize,
84655         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84656         modules/exclude, modules/exitfail, modules/file-type,
84657         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84658         modules/getdate, modules/getline, modules/getpagesize,
84659         modules/getpass, modules/getugroups, modules/group-member,
84660         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84661         modules/inttostr, modules/long-options, modules/makepath,
84662         modules/md5, modules/memcasecmp, modules/memcoll,
84663         modules/modechange, modules/mountlist, modules/path-concat,
84664         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84665         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84666         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84667         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84668         modules/strftime, modules/strndup, modules/strverscmp,
84669         modules/timespec, modules/unlocked-io, modules/userspec,
84670         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84671         modules/yesno:
84672         Remove lib_SOURCES line from Makefile.am section, as this is now
84673         done automatically by the corresponding Autoconf macro.
84674
84675 2005-03-21  Jim Meyering  <jim@meyering.net>
84676
84677         Changes imported from coreutils.
84678
84679         * lib/cycle-check.c: Don't include xalloc.h.
84680
84681         * lib/path-concat.c: Don't include assert.h.
84682         (path_concat): Remove assertion that would have triggered
84683         for ABASE starting with more than one slash.
84684         Reported by Andreas Schwab.
84685
84686         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84687         properly when ABASE is an absolute file name.
84688         Correct the description of this function.
84689         Include <assert.h>.
84690         Add an assertion and a test driver.
84691         This fixes a bug introduced on 2004-07-02.
84692         Andreas Schwab reported the resulting failure of cp --parents:
84693         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84694
84695 2005-03-21  Jim Meyering  <jim@meyering.net>
84696
84697         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84698         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84699
84700 2005-03-21  Jim Meyering  <jim@meyering.net>
84701         and  Paul Eggert  <eggert@cs.ucla.edu>
84702
84703         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84704         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84705         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84706         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84707         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84708         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84709         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84710         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84711         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84712         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84713         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84714         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84715         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84716         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84717         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84718         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84719         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84720         for these modules.
84721
84722 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84723
84724         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84725         (which shouldn't happen), generate nothing instead of returning 0
84726         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84727
84728 2005-03-16  Bruno Haible  <bruno@clisp.org>
84729
84730         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84731         HAVE_LONGLONG_64BIT.
84732
84733 2005-03-16  Bruno Haible  <bruno@clisp.org>
84734
84735         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84736         HAVE_LONGLONG_64BIT.
84737
84738 2005-03-16  Bruno Haible  <bruno@clisp.org>
84739
84740         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84741         HAVE_LONGLONG_64BIT.
84742
84743 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84744
84745         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84746         reliably distinguish strftime failure from empty output on POSIX
84747         hosts.
84748
84749 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84750
84751         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84752         (iconv_string): Don't guess a size-zero buffer, as that might cause
84753         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84754         result would be 'too large', where 'too large' is (heuristically)
84755         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84756         overflow concerns.  This will prevent some unwanted malloc failures
84757         when the inputs are very large.
84758
84759 2005-03-15  Karl Berry  <karl@gnu.org>
84760
84761         * config/srclist.txt (config.rpath): from gettext.
84762         * config/config.rpath: update.
84763
84764 2005-03-15  Bruno Haible  <bruno@clisp.org>
84765
84766         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84767         to 'negate'.
84768
84769         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84770         variable.
84771
84772         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84773         results.
84774
84775 2005-03-14  Simon Josefsson  <jas@extundo.com>
84776
84777         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84778         <fx@gnu.org>.
84779
84780 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84781
84782         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84783         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84784         intprops.h.
84785         * lib/strtol.c: Likewise.
84786
84787 2005-03-14  Jim Meyering  <jim@meyering.net>
84788
84789         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84790         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84791         to be nonzero so that we (and caller) can detect the difference
84792         between a valid zero-length expansion and an error return, even
84793         when the underlying strftime fails before writing anything into
84794         that location.
84795
84796 2005-03-14  Bruno Haible  <bruno@clisp.org>
84797
84798         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84799         Update from GNU gettext 0.14.3.
84800
84801 2005-03-10  Jim Meyering  <jim@meyering.net>
84802
84803         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84804
84805 2005-03-10  Jim Meyering  <jim@meyering.net>
84806
84807         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84808         so that this module works on systems without fchdir.
84809
84810 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84811
84812         Factor int-properties macros into a single file, except for
84813         glibc-related files.
84814         * lib/intprops.h: New file.
84815         * lib/getloadavg.c: Include it instead of limits.h.
84816         (INT_STRLEN_BOUND): Remove.
84817         * lib/human.c: Include intprops.h.
84818         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84819         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84820         302/1000.
84821         * lib/inttostr.h: Include intprops.h instead of limits.h.
84822         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84823         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84824         for consistency with intprops.h.
84825         (time_t_is_integer, twos_complement_arithmetic): Use them.
84826         * lib/sig2str.h: Include <signal.h>, intprops.h.
84827         (INT_STRLEN_BOUND): Remove.
84828         * lib/strftime.c (TYPE_SIGNED): Remove.
84829         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84830         * lib/strtol.c: Adjust comments to match intprops.h.
84831         * lib/userspec.c: Include intprops.h.
84832         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84833         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84834         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84835         instead of rolling our own expressions.
84836         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84837
84838         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84839         instead of int.
84840         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84841         the right thing even if adding 1900 would overflow.  Similarly
84842         for tm_mon + 1 and tm_yday + 1.
84843         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84844         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84845         (DO_SIGNED_NUMBER): New macro.
84846         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84847
84848 2005-03-07  Bruno Haible  <bruno@clisp.org>
84849
84850         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84851
84852 2005-03-07  Bruno Haible  <bruno@clisp.org>
84853
84854         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84855
84856 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84857
84858         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84859         (func_import): Only replace files via --import when they have actually
84860         changed.
84861
84862 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84863
84864         * m4/mmap-anon.m4: New file.
84865         * m4/pagealign_alloc.m4: New file.
84866
84867 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84868             Bruno Haible  <bruno@clisp.org>
84869
84870         * modules/pagealign_alloc: New file.
84871         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84872
84873 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84874             Bruno Haible  <bruno@clisp.org>
84875
84876         * lib/pagealign_alloc.h: New file.
84877         * lib/pagealign_alloc.c: New file.
84878
84879 2005-03-03  Bruno Haible  <bruno@clisp.org>
84880
84881         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84882         Use an all-permissive copyright notice, recommended by RMS.
84883
84884 2005-03-02  Bruno Haible  <bruno@clisp.org>
84885
84886         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84887         of AIX, the replacement has to be done only after <string.h> is
84888         included, therefore not in config.h. stpncpy.h does the replacement,
84889         and stpncpy.c uses it.
84890
84891 2005-03-02  Bruno Haible  <bruno@clisp.org>
84892
84893         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84894         stpncpy.c uses it.
84895
84896 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84897
84898         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84899         The workaround isn't strictly needed for POSIX conformance, and
84900         it's too much of a pain to configure and maintain.  We'll ask
84901         people to fix their kernels instead.
84902         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84903         (NANOSLEEP_BUG_WORKAROUND): Remove.
84904         (xnanosleep): Remove the workaround.
84905
84906 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84907
84908         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84909         Reported by Derek Price.
84910         (Include): Add "timespec.h".
84911
84912         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84913
84914 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84915
84916         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84917         to detect nanosleep bug.
84918
84919 2005-03-01  Bruno Haible  <bruno@clisp.org>
84920
84921         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84922
84923 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84924
84925         * modules/gethrxtime: New file.
84926         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84927         (Depends-on): Add gethrxtime.
84928         (configure.ac): Add gl_XNANOSLEEP.
84929         (Makefile.am): Remove lib_SOURCES line.
84930
84931 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84932
84933         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84934         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84935
84936 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84937
84938         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84939         * lib/timespec.h (gettime): Return void, since it always
84940         succeeds now.  All uses changed.
84941         * lib/gettime.c (gettime): Likewise.
84942         [HAVE_NANOTIME]: Prefer nanotime.
84943         Assume gettimeofday succeeds, as POSIX requires.
84944         Assime time () succeeds, since other code already does.
84945         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84946         (timespec_subtract): Remove.
84947         (NANOSLEEP_BUG_WORKAROUND): New constant.
84948         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84949         things considerably.  Use it only on GNU/Linux hosts, since the
84950         workaround shouldn't be needed elsewhere.
84951
84952 2005-02-24  Bruno Haible  <bruno@clisp.org>
84953
84954         * modules/gettext (Files): Add m4/glibc2.m4.
84955
84956 2005-02-24  Bruno Haible  <bruno@clisp.org>
84957
84958         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84959         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84960         * m4/progtest.m4:
84961         Update from GNU gettext 0.14.2.
84962         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84963
84964 2005-02-24  Bruno Haible  <bruno@clisp.org>
84965
84966         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84967         * lib/config.charset: Update from GNU gettext 0.14.2.
84968
84969 2005-02-24  Bruno Haible  <bruno@clisp.org>
84970
84971         * lib/gettext.h: Update from GNU gettext 0.14.2.
84972
84973 2005-02-23  Simon Josefsson  <jas@extundo.com>
84974
84975         * m4/iconvme.m4: New file.
84976
84977 2005-02-23  Jim Meyering  <jim@meyering.net>
84978
84979         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84980         change.
84981         Thanks to Bruno Haible for catching it.
84982
84983 2005-02-22  Simon Josefsson  <jas@extundo.com>
84984
84985         * modules/iconvme: New file.
84986
84987         * MODULES.html.sh: Add iconvme.
84988
84989 2005-02-22  Simon Josefsson  <jas@extundo.com>
84990
84991         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84992
84993 2005-02-22  Simon Josefsson  <jas@extundo.com>
84994
84995         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84996
84997 2005-02-22  Jim Meyering  <jim@meyering.net>
84998
84999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
85000         s/ifndef/ifdef/.
85001
85002 2005-02-20  Neil Conway  <neilc@samurai.com>
85003
85004         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
85005         returned by OSX/Darwin if the specified buffer is not large
85006         enough for the hostname.
85007
85008 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85009
85010         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85011         pass it to _help, otherwise the latter coredumps trying to
85012         dereference state.root_argp.
85013
85014 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85015
85016         * modules/chdir-long (Depends-on): Add memrchr.
85017         * modules/memrchr (Files): Add lib/memrchr.h.
85018         (Include): "memrchr.h".
85019
85020 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85021
85022         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85023
85024 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85025
85026         * lib/memrchr.h: New file.
85027         * lib/chdir-long.c: Include it.
85028         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85029         Don't bother including stddef.h.
85030
85031 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85032
85033         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85034         inclusion.
85035         Include <sys/types.h>, for dev_t.
85036         (ME_DUMMY, ME_REMOTE): Move from here....
85037         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85038         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85039         Dmitry V. Levin.
85040         Include mountlist.h first, to test the interface.
85041
85042 2005-01-29  Bruno Haible  <bruno@clisp.org>
85043
85044         * lib/progname.c (program_name): Initialize.
85045         Needed when linking statically on MacOS X.
85046
85047 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85048
85049         Sync from coreutils.
85050         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85051         (Depends-on): Add c-strtod.
85052         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85053
85054 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85055
85056         Sync from coreutils.
85057         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85058
85059         Remove files that are specific to coreutils.
85060         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85061
85062 2005-01-28  Bruno Haible  <bruno@clisp.org>
85063
85064         * modules/javacomp: New file.
85065         * MODULES.html.sh (Java): Add javacomp.
85066
85067 2005-01-28  Bruno Haible  <bruno@clisp.org>
85068
85069         * m4/javacomp.m4: New file, from GNU gettext.
85070
85071 2005-01-28  Bruno Haible  <bruno@clisp.org>
85072
85073         * lib/javacomp.sh.in: New file, from GNU gettext.
85074         * lib/javacomp.h: New file, from GNU gettext.
85075         * lib/javacomp.c: New file, from GNU gettext.
85076
85077 2005-01-26  Simon Josefsson  <jas@extundo.com>
85078
85079         * lib/gai_strerror.c: Use GPL in header.
85080
85081 2005-01-26  Bruno Haible  <bruno@clisp.org>
85082
85083         * modules/javaexec: New file.
85084         * MODULES.html.sh (Java): Add javaexec.
85085
85086 2005-01-26  Bruno Haible  <bruno@clisp.org>
85087
85088         * m4/javaexec.m4: New file, from GNU gettext.
85089
85090 2005-01-26  Bruno Haible  <bruno@clisp.org>
85091
85092         * lib/javaexec.sh.in: New file, from GNU gettext.
85093         * lib/javaexec.h: New file, from GNU gettext.
85094         * lib/javaexec.c: New file, from GNU gettext.
85095
85096 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85097
85098         * modules/lchown (Depends-on): Remove lchown.h
85099
85100 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85101
85102         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85103         must be defined if the header file was not found, in order
85104         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85105
85106 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85107
85108         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85109         initializers for struct pentry_state.
85110         (__argp_error): Check return value of __asprintf
85111         (__argp_failure): Translate error message
85112
85113         * lib/argp-parse.c: Removed braces around the expansion of N_()
85114
85115 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85116
85117         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85118         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85119         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85120         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85121         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85122         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85123         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85124         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85125         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85126         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85127         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85128         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85129         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85130         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85131         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85132         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85133         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85134         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85135         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85136         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85137         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85138         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85139         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85140         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85141         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85142         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85143         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85144         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85145         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85146         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85147         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85148         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85149         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85150         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85151         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85152         Use an all-permissive copyright notice, recommended by RMS.
85153
85154 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85155
85156         * modules/chdir-long (Depends-on): Remove mempcpy.
85157
85158 2005-01-21  Jim Meyering  <jim@meyering.net>
85159
85160         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85161         same value as for Solaris 9.
85162
85163         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85164         component length.  This included changing the parameter to be
85165         of type `char *' rather than `char const *'.
85166         * lib/chdir-long.h (chdir_long): Update prototype.
85167
85168         * lib/openat.c (fdopendir, fstatat): New functions.
85169         * lib/openat.h: Include headers required for use of DIR and struct
85170         stat.
85171         [AT_SYMLINK_NOFOLLOW]: Define.
85172         (fdopendir, fstatat): Add prototypes.
85173
85174 2005-01-21  Bruno Haible  <bruno@clisp.org>
85175
85176         * modules/classpath: New file.
85177         * MODULES.html.sh (Java): Add classpath.
85178
85179 2005-01-21  Bruno Haible  <bruno@clisp.org>
85180
85181         * lib/classpath.h: New file, from GNU gettext.
85182         * lib/classpath.c: New file, from GNU gettext.
85183
85184 2005-01-20  Simon Josefsson  <jas@extundo.com>
85185
85186         * modules/version-etc-fsf: New file.
85187
85188 2005-01-20  Simon Josefsson  <jas@extundo.com>
85189
85190         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85191         * lib/version-etc.c: Remove version_etc_copyright.
85192         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85193         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85194
85195 2005-01-20  Simon Josefsson  <jas@extundo.com>
85196
85197         * lib/base64.h (isbase64): Add.
85198
85199         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85200         using a unsigned prototype, don't inline.
85201         (base64_decode): Use it.
85202
85203 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85204
85205         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85206         it.
85207
85208 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85209
85210         * lib/save-cwd.c (save_cwd): Remove code to support the case
85211         where fchdir is missing or flaky.
85212
85213 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85214
85215         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85216
85217 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85218
85219         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85220         AC_LIBSOURCES now does this.
85221         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85222         with new ullong_max module.
85223
85224 2005-01-19  Bruno Haible  <bruno@clisp.org>
85225
85226         * modules/sh-quote: New file.
85227         * MODULES.html.sh (Executing programs): Add sh-quote.
85228
85229 2005-01-19  Bruno Haible  <bruno@clisp.org>
85230
85231         * lib/sh-quote.h: New file, from GNU gettext.
85232         * lib/sh-quote.c: New file, from GNU gettext.
85233
85234 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85235
85236         Merge from coreutils.
85237         * m4/ullong_max.m4: New file.
85238         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85239         (gl_MACROS): Assume localeconv exists.
85240
85241 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85242
85243         Merge changes from coreutils, as described below in several
85244         changelogs dated today.
85245
85246         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85247         (O_DIRECTORY): Remove; not needed here, since "." must be
85248         a directory.  All uses removed.
85249         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85250         universal on Suns, and we also need to test for IRIX.
85251         Revamp code to use 'if' rather than '#if'.
85252         Avoid unnecessary comparison of cwd->desc to 0.
85253
85254         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85255         for known valid error numbers rather than observed invalid ones.
85256
85257 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85258
85259         * modules/ullong_max: New file.
85260
85261         * modules/chdir-long, modules/openat: New files.
85262         * modules/save-cwd (Depends-on): Depend on chdir-long.
85263         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85264
85265 2005-01-18  Jim Meyering  <jim@meyering.net>
85266
85267         Merge from coreutils.
85268         * m4/chdir-long.m4, m4/openat.m4: New files.
85269         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85270         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85271         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85272         is sane and DOES follow symlinks.  Besides, testing 20 different
85273         systems found no broken chown implementations.
85274         Prompted by a change in rsync's copy of this macro.
85275         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85276
85277         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85278
85279         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85280         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85281         NULL-means-set-to-current-time semantics.
85282         Remove temporary file immediately, rather than waiting
85283         for configure's at-exit trap code to do it.
85284
85285 2005-01-18  Jim Meyering  <jim@meyering.net>
85286
85287         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85288
85289         * lib/utimens.c (futimens): Account for the fact that futimes
85290         can also fail with errno == ENOSYS or errno == ENOENT.
85291         Patch from Dmitry V. Levin.
85292
85293         Change the name of the robust chdir function from chdir to chdir_long.
85294         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85295         (restore_cwd): Use chdir_long, not chdir.
85296         * lib/chdir-long.c: Renamed from chdir.c.
85297         * lib/chdir-long.h: Renamed from chdir.h.
85298         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85299         Hurd.
85300
85301 2005-01-18  Bruno Haible  <bruno@clisp.org>
85302
85303         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85304         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85305         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85306         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85307         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85308         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85309         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85310         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85311         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85312         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85313         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85314         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85315         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85316         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85317         Use an all-permissive copyright notice, recommended by RMS.
85318
85319 2005-01-18  Bob Proulx  <bob@proulx.com>
85320
85321         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85322         simplify offsetof() macro construct to avoid compile failure with
85323         native HP-UX 11.0 ANSI C compiler.
85324
85325 2005-01-17  Bruno Haible  <bruno@clisp.org>
85326
85327         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85328         redundant because stpncpy.m4 takes care of it.
85329
85330 2005-01-17  Bruno Haible  <bruno@clisp.org>
85331
85332         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85333
85334 2005-01-17  Bruno Haible  <bruno@clisp.org>
85335
85336         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85337         used.
85338
85339 2005-01-17  Bruno Haible  <bruno@clisp.org>
85340
85341         * lib/fwriteerror.h (fwriteerror): Change specification to include
85342         fclose.
85343         * lib/fwriteerror.c: Include <stdbool.h>.
85344         (fwriteerror): At the end, close the file stream. Record whether
85345         stdout was already closed.
85346
85347 2005-01-17  Bruno Haible  <bruno@clisp.org>
85348
85349         * lib/execute.c (environ): Declare if needed.
85350         * lib/pipe.c (environ): Likewise.
85351         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85352
85353 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85354
85355         * modules/argp: Depend on vsnprintf
85356
85357 2005-01-10  Jim Meyering  <jim@meyering.net>
85358
85359         * modules/closeout (Depends-on): Add atexit.
85360
85361 2005-01-06  Bruno Haible  <bruno@clisp.org>
85362
85363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85364
85365 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85366
85367         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85368         definitions to be after all include files, to avoid collisions.
85369         Problem reported by Bob Proulx.
85370
85371 2005-01-04  Jim Meyering  <jim@meyering.net>
85372
85373         Changes imported from coreutils.
85374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85375         as the mkstemp template, use a temporary directory and an
85376         8.3-friendly template to avoid trouble on systems like DJGPP.
85377         Reported by Juan M. Guerrero via Stepan Kasal.
85378         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85379         close. Remove the temporary directory right away, rather than waiting
85380         for configure's at-exit trap code to do it.
85381         Suggestion from Stepan Kasal.
85382
85383 2005-01-01  Simon Josefsson  <jas@extundo.com>
85384
85385         * gnulib-tool: Print #include directives when --import'ing.
85386
85387 2004-12-28  Simon Josefsson  <jas@extundo.com>
85388
85389         * tests/test-base64.c: Include required header files.  Remove
85390         unused variables.
85391
85392 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85393
85394         * modules/error (Depends-on): Remove gettext.
85395
85396 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85397
85398         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85399         not needed.  This removes a dependency on the gettext module.
85400         [defined _LIBC]: Do not include <libintl.h>; not needed.
85401
85402 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85403
85404         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85405         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85406
85407 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85408
85409         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85410         HAVE_DECL_STRTOLD.
85411
85412 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85413
85414         * modules/getdate (Depends-on): Remove alloca-opt.
85415
85416 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85417
85418         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85419
85420 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85421
85422         * lib/argp-parse.c: Include <stddef.h>.
85423         (alignof, alignto): New macros.
85424         (parser_init): Don't assume that void * is aligned sufficiently
85425         for struct option.
85426
85427         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85428         need to extend the stack.
85429         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85430         large.
85431
85432 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85433
85434         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85435
85436 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85437
85438         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85439         (2004-10-24) change.  Apparently this was a false alarm.
85440
85441         * modules/getdate: Depend on alloca-opt, not alloca.
85442
85443 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85444
85445         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85446         Remove now-obsolete comment about AIX.
85447         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85448         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85449         (YYMAXDEPTH): New macro.
85450
85451 2004-12-18  Simon Josefsson  <jas@extundo.com>
85452
85453         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85454
85455 2004-12-18  Bruno Haible  <bruno@clisp.org>
85456
85457         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85458
85459 2004-12-18  Bruno Haible  <bruno@clisp.org>
85460
85461         * lib/fatal-signal.c (fatal_signals): Make non-const.
85462         (init_fatal_signals): New function.
85463         (uninstall_handlers, install_handlers): Ignore signals that were set to
85464         SIG_IGN.
85465         (at_fatal_signal): Call init_fatal_signals.
85466         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85467         SIG_IGN.
85468         Reported by Paul Eggert.
85469
85470 2004-12-18  Bruno Haible  <bruno@clisp.org>
85471
85472         * doc/alloca.texi: New file.
85473         * doc/alloca-opt.texi: New file.
85474
85475 2004-12-17  Jim Meyering  <jim@meyering.net>
85476
85477         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85478         Otherwise, install-sh could exit with improper exit status when
85479         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85480
85481 2004-12-16  Simon Josefsson  <jas@extundo.com>
85482
85483         * tests/test-base64.c: Add license.
85484
85485 2004-12-15  Stepan Kasal  <address@hidden>
85486
85487         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85488
85489 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85490
85491         * modules/getcwd (Files): Add m4/d-ino.m4.
85492         Suggested by Mark D. Baushke.
85493
85494 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85495
85496         * lib/getdate.y (textint): New member "negative".
85497         (time_zone_hhmm): New function.
85498         Expect 14 shift-reduce conflicts, not 13.
85499         (o_colon_minutes): New rule.
85500         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85501         (yylex): Set the "negative" member of signed numbers.
85502
85503 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85504
85505         * doc/getdate.texi (Time of day items, Time zone items):
85506         Describe new formats +00:00, UTC+00:00.
85507
85508 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85509
85510         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85511         spurious "-l"s.  Problem reported by Stepan Kasal.
85512
85513 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85514
85515         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85516         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85517
85518 2004-12-04  Simon Josefsson  <jas@extundo.com>
85519
85520         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85521         Vandoorselaere <yoann@prelude-ids.org>.
85522
85523 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85524
85525         Changes imported from coreutils.
85526         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85527         exist.
85528         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85529
85530 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85531
85532         Changes imported from coreutils.
85533         * lib/hard-locale.c: Assume <locale.h> exists.
85534         Include "strdup.h".
85535         (GLIBC_VERSION): New macro.
85536         (hard_locale): Assume setlocale exists.
85537         Rewrite to avoid #ifdef.
85538         Use strdup rather than malloc + strcpy.
85539         * lib/human.c: Assume <locale.h> exists.
85540         (human_readable): Assume localeconv exists.
85541
85542 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85543
85544         * modules/hard-locale (Depends-on): Add strdup.
85545
85546 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85547
85548         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85549         convert T2, not T.  (Imported from libc.)
85550
85551 2004-11-30  Simon Josefsson  <jas@extundo.com>
85552
85553         * modules/restrict (License): Change to LGPL.
85554
85555 2004-11-30  Simon Josefsson  <jas@extundo.com>
85556
85557         * m4/restrict.m4: Add copyright and copying conditions.
85558
85559 2004-11-30  Simon Josefsson  <jas@extundo.com>
85560
85561         * m4/base64.m4: New file.
85562
85563 2004-11-30  Simon Josefsson  <jas@extundo.com>
85564
85565         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85566         base64.
85567
85568         * tests/test-base64.c: New file.
85569
85570         * modules/base64: New file.
85571
85572 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85573
85574         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85575         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85576
85577         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85578
85579 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85580
85581         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85582         (__getcwd.c): Don't restore errno; glibc doesn't.
85583         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85584         first, falling back to our code only if its results look suspicious.
85585         Ensure that the resulting buffer is only as large as necessary.
85586
85587         * lib/readutmp.c: Include readutmp.h first.
85588         Include <errno.h>, since readutmp.h no longer does that.
85589         * lib/readutmp.h: Don't include <errno.h>,
85590         <sys/param.h>, <time.h>; not needed to establish interface.
85591         (errno): Remove decl.
85592         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85593         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85594         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85595
85596 2004-11-28  Simon Josefsson  <jas@extundo.com>
85597
85598         * lib/base64.h, base64.c: New file.
85599
85600 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85601
85602         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85603
85604 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85605
85606         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85607         (Depends-on): Remove pathmax, same.  Add mempcpy.
85608         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85609         (Makefile.am): Append getcwd.h to lib_SOURCES.
85610         (Include): Add getcwd.h.
85611         (Maintainer): Change from Jim Meyering to "all, glibc",
85612         since getdate now uses intended-for-glibc code.
85613         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85614         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85615
85616 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85617
85618         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85619         HP's ANSI C compiler.
85620         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85621         Declaring int functions causes warnings on some modern systems and
85622         shouldn't be needed to compile on ancient ones.
85623         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85624         defined.
85625
85626         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85627         with the following changes.
85628         (__set_errno): Parenthesize properly.
85629         Include <stdbool.h>.
85630         (MIN, MAX, MATCHING_INO): New macros.
85631         (__getcwd): Define with prototype, not K&R form.
85632         Use heuristics to allocate default buffer on stack if possible.
85633         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85634         behavior, and to avoid the PATH_MAX limit when computing
85635         ../../../../...
85636         Use MATCHING_INO to compare inode number to file.
85637         Check for arithmetic overflow in size calculations.
85638         Fix bug in reallocation of dot array that caused getcwd to fail
85639         on directories nested deeper than 75.
85640         Be more careful about saving errno on error.
85641         Do not use realloc; use only free+malloc, as this is a bit
85642         more flexible and avoids a needless copy operation.
85643         Do not inspect st_dev and st_ino for symbolic links; POSIX
85644         doesn't specify the latter.
85645         Check for closedir errors.
85646         Avoid needless casts.
85647         Use "#ifdef weak_alias" around weak_alias, to be like other
85648         glibc code.
85649         The following changes to getcwd.c have effect only when used in
85650         gnulib; they have no effect inside glibc proper.
85651         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85652         as alloca isn't used.
85653         (alloca, __alloca): Likewise.
85654         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85655         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85656         unconditionally, as gnulib assumes C89 or better.
85657         Do not include <sys/param.h>.
85658         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85659         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85660         better.
85661         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85662         Include <dirent.h> in a way that is compatible with modern Autoconf.
85663         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85664         New macros, if not already defined.
85665         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85666         Use "_LIBC", not "defined _LIBC", for consistency.
85667         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85668         a mempcpy module.
85669         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85670         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85671         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85672         credit only to Jim Meyering and adjust the copyright dates.
85673         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85674         <stdlib.h>, <unistd.h>, "pathmax.h".
85675         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85676         (INITIAL_BUFFER_SIZE): Remove.
85677         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85678
85679 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85680
85681         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85682         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85683         Use the _ONCE methods, for efficiency.
85684         Check for fcntl.h.  In test program, include <errno.h>
85685         and <fcntl.h> if available.  Remove old K&R cruft from
85686         test program.  Check for common errors in GNU/Linux,
85687         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85688         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85689         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85690         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85691         name accordingly.
85692         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85693         accommodate new getcwd.c.
85694         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85695         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85696         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85697         that's all we need now.
85698
85699 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85700
85701         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85702         argp-parse.c depends on getopt internals, that means we should
85703         always use our getopt, to be on the safe side.
85704         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85705         order not to spoil the result of an eventual previous invocation
85706         of gl_GETOPT_SUBSTITUTE.
85707
85708 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85709
85710         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85711         redefinition warnings. To avoid them, include the defines
85712         in `#if !defined __need_getopt ... #endif'. The only place
85713         where __getopt_argv_const is used is in definitions
85714         of getopt_long and getopt_long_only below, which are as well
85715         protected by `#ifndef __need_getopt'.
85716         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85717         __need_getopt after including <stdio.h> and <unistd.h> These
85718         headers might have defined it.
85719
85720 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85721
85722         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85723
85724 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85725
85726         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85727         (futimens): New function, which uses futimes if available.
85728         (futimens, utimens): Support timespec==NULL, with same semantics
85729         as utime and utimens.
85730         * lib/utimens.h (futimens): New decl.
85731
85732 2004-11-23  Jim Meyering  <jim@meyering.net>
85733
85734         * lib/getopt_.h: Remove trailing blanks.
85735
85736 2004-11-23  Jim Meyering  <jim@meyering.net>
85737
85738         * lib/__fpending.c: Add comment.
85739
85740 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85741
85742         * modules/canonicalize (Depends-on): Add xreadlink.
85743         Problem reported by James Youngman.
85744
85745 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85746
85747         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85748         New macros.
85749         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85750         optopt): Use them instead of invoking ## directly; otherwise, the
85751         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85752
85753 2004-11-19  Bruno Haible  <bruno@clisp.org>
85754
85755         * lib/strtok_r.c: Move comments from here...
85756         * lib/strtok_r.h: ... to here.
85757
85758 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85759
85760         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85761         implementations that mishandle size_t overflow.
85762
85763 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85764
85765         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85766         might fail.  Problem reported by Yoann Vandoorselaere.
85767         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85768         implementations that mishandle size_t overflow.
85769
85770 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85771
85772         * modules/canon-host (Depends-on): Add strdup.
85773
85774 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85775
85776         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85777
85778 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85779
85780         * lib/canon-host.c: Include "strdup.h".
85781         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85782         Use strdup instead of malloc/strcpy to duplicate strings.
85783
85784         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85785         (human_space_before_unit): New constant.
85786         * lib/human.c (human_readable): Support it.
85787
85788         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85789         (xgetcwd): Set errno correctly when failing.
85790         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85791         the failure is actually due to a PATH_MAX problem.
85792
85793         Further getopt changes to make it more likely that glibc will
85794         buy the changes back.
85795         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85796         (getopt): Use it, so to preserve glibc semantic
85797         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85798         when compiling for libc.
85799         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85800         (getopt_long, getopt_long_only): Use it.
85801
85802         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85803         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85804         (getopt): Argv is now char * const *, as per standard.
85805         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85806         not char *__getopt_argv_const *.
85807         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85808         _getopt_long_only_r): Likewise.
85809         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85810         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85811         _getopt_long_r, _getopt_long_only_r): Likewise.
85812         * lib/getopt_.h (__getopt_argv_const): Remove.
85813         (getopt): Argv is now char * const *, as per standard.
85814
85815         * lib/getdate.y (tORDINAL): New token.
85816         (day, relunit): Allow it for relative times.
85817         (relative_time_table): Use tORDINAL for ordinals.
85818
85819 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85820
85821         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85822         Document that "second" isn't allowed as an ordinal number.
85823
85824 2004-11-16  Jim Meyering  <jim@meyering.net>
85825
85826         * modules/closeout (Depends-on): Add fpending.
85827
85828 2004-11-15  Jim Meyering  <jim@meyering.net>
85829
85830         * lib/closeout.c: Include "__fpending.h" once again.
85831         Include <stdbool.h>.
85832         (close_stdout): Don't fail just because stdout was closed initially,
85833         since some programs don't write to stdout in the normal course of
85834         operation (other than --version and --help), and we don't want this
85835         function to make e.g. `touch file >&-' fail.
85836         But do fail if it was closed and someone has tried to write to it.
85837         E.g., `printf foo >&-' must fail.
85838
85839 2004-11-13  Jim Meyering  <jim@meyering.net>
85840
85841         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85842
85843 2004-11-12  Simon Josefsson  <jas@extundo.com>
85844
85845         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85846         small doc fix is still pending.
85847
85848 2004-11-11  Simon Josefsson  <jas@extundo.com>
85849
85850         * modules/strtok_r: New file.
85851
85852         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85853         strtok_r.
85854
85855 2004-11-11  Simon Josefsson  <jas@extundo.com>
85856
85857         * m4/strtok_r.m4: New file.
85858
85859         * m4/getopt.m4: Replace opterr.
85860
85861 2004-11-11  Simon Josefsson  <jas@extundo.com>
85862
85863         * lib/strtok_r.h, strtok_r.c: New file.
85864
85865 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85866
85867         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85868         of replacing opterr, getopt, etc.  This should handle the
85869         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85870
85871 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85872
85873         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85874         we can stop lying to compilers about the constness of argv when we
85875         are compiled outside glibc.
85876         (getopt, getopt_long, getopt_long_only): Use it.
85877         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85878         _getopt_internal, getopt): Likewise.
85879         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85880         _getopt_long_only_r): Likewise.
85881         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85882         _getopt_long_r, _getopt_long_only_r): Likewise.
85883
85884         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85885         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85886         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85887         the other external symbols.
85888         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85889         declaration, since the above renaming now works around collisions.
85890
85891 2004-11-11  Jim Meyering  <jim@meyering.net>
85892
85893         * lib/linebreak.c: Remove trailing blanks.
85894         * lib/alloca_.h: Likewise.
85895         * lib/acosl.c: Likewise.
85896         * lib/euidaccess.c: Likewise.
85897         * lib/allocsa.h: Likewise.
85898
85899 2004-11-10  Simon Josefsson  <jas@extundo.com>
85900
85901         * m4/getaddrinfo.m4: New file.
85902
85903 2004-11-10  Simon Josefsson  <jas@extundo.com>
85904
85905         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85906
85907 2004-11-10  Simon Josefsson  <jas@extundo.com>
85908
85909         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85910         getaddrinfo.
85911
85912         * modules/getaddrinfo: New file.
85913
85914 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85915
85916         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85917
85918 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85919
85920         * lib/mktime.c (SHR): New macro, which is a portable
85921         substitute for >> that should work even on Crays.
85922         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85923         Problem reported by Mark D. Baushke in
85924         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85925         * lib/getdate.y (SHR): Likewise.
85926         (tm_diff): Use it.
85927         * lib/strftime.c (SHR): Likewise.
85928         (tm_diff): Use it.
85929         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85930         quote_these_too, so that right shifts are well defined.  All uses
85931         changed.
85932
85933 2004-11-10  Jim Meyering  <jim@meyering.net>
85934
85935         Ensure that no close failure goes unreported.
85936         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85937         return early when it seems there's nothing to flush.
85938         Don't include __fpending.h.
85939
85940 2004-11-10  Jim Meyering  <jim@meyering.net>
85941
85942         * modules/closeout (Depends-on): Remove fpending.
85943
85944 2004-11-10  Jim Meyering  <jim@meyering.net>
85945
85946         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85947
85948 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85949
85950         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85951         gl_FUNC_STRFTIME.
85952         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85953         and AC_REQUIRE when possible, to avoid duplicate checks.
85954         Check for <wchar.h>.
85955
85956 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85957
85958         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85959
85960 2004-11-09  Bruno Haible  <bruno@clisp.org>
85961
85962         * m4/sockpfaf.m4: New file.
85963
85964 2004-11-05  Bruno Haible  <bruno@clisp.org>
85965
85966         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85967         Reported by Mark D. Baushke <mdb@cvshome.org>.
85968
85969 2004-11-04  Bruno Haible  <bruno@clisp.org>
85970
85971         2004-09-11  Bruno Haible  <bruno@clisp.org>
85972                 * allocsa.valgrind: New file.
85973         2004-02-06  Bruno Haible  <bruno@clisp.org>
85974                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85975                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85976                 Reported by Christopher Seip <chris.seip@hp.com>.
85977
85978 2004-11-04  Bruno Haible  <bruno@clisp.org>
85979
85980         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85981         (Makefile.am): Distribute it.
85982
85983 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85984
85985         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85986         with errno == ERANGE if the buffer is too small.
85987         Problem reported by Mark D. Baushke.
85988
85989 2004-11-03  Albert Chin  <china@thewrittenword.com>
85990             Paul Eggert  <eggert@cs.ucla.edu>
85991
85992         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85993         equivalent, substitute $ac_type for equivalent type rather than
85994         blindly using uint32_t *always* which won't work if uint32_t is not
85995         available.  Define _UINT32_T to work around typedef of uint32_t if
85996         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85997         2.5.1.
85998
85999 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86000
86001         * m4/jm-macros.m4: Sync from coreutils.
86002         (gl_MACROS): Check for mbrlen, for pathchk.
86003         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
86004
86005 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86006
86007         * lib/xreadlink.c (MAXSIZE): New macro.
86008         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86009         size does not exceed MAXSIZE.  Avoid cast.
86010         As suggested by Mark D. Baushke in
86011         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86012         if readlink fails with buffer size just under MAXSIZE, try again
86013         with MAXSIZE.
86014
86015 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86016
86017         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86018
86019 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86020         and  Paul Eggert  <eggert@cs.ucla.edu>
86021
86022         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86023         (get_date): Overparenthesize to avoid GCC warning.
86024
86025 2004-11-02  Bruno Haible  <bruno@clisp.org>
86026
86027         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86028         returns void.
86029
86030 2004-11-02  Bruno Haible  <bruno@clisp.org>
86031
86032         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86033         function returns void.
86034
86035 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86036
86037         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86038         fflush_unlocked, flockfile, funlockfile, funlockfile,
86039         fputs_unlocked, putc_unlocked.
86040
86041 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86042
86043         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86044         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86045         already declared.
86046
86047 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86048
86049         * modules/getdate (Files): Add doc/getdate.texi.
86050         (Depends-on): Add setenv, xalloc.
86051
86052 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86053
86054         * lib/getdate.y: Add support for TZ="foo" within a date string.
86055         Fix some bugs near time_t boundaries.  Reject dates with
86056         out-of-range components, e.g., "Sept 31".
86057         Include <stdlib.h>, "setenv.h", "xalloc.h".
86058         (ISDIGIT_LOCALE): Remove; unused.
86059         Note that the TZ and time functions used here are not reentrant.
86060         (mktime_ok, get_tz): New functions.
86061         (TZBUFSIZE): New constant.
86062         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86063         This requires that we sometimes generate our own TZ="XXX..." setting.
86064
86065 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86066
86067         * doc/getdate.texi: New file, from coreutils with modifications for
86068         the new TZ parsing.
86069
86070 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86071
86072         * lib/mktime.c (not_equal_tm): Remove redundant check.
86073
86074 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86075
86076         * modules/regex (lib_SOURCES): Add regex.c.
86077         Reported by James Youngman in
86078         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86079
86080 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86081
86082         * lib/getdate.y: Use Bison 1.875 features, and some minor
86083         code cleanups.  This change does not affect semantics.
86084         Don't include <stdlib.h>; no longer needed.
86085         Don't include unlocked-io.h; only the "#if TEST" code uses
86086         stdio, and performance isn't crucial there.
86087         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86088         Bison 1.875 features as described below.
86089         All uses of "PC." replaced by "pc->".
86090         (YYSTYPE): Add a forward declaration.
86091         (yylex, yyerror): Use full prototypes in forward decls.
86092         Use "%pure-parser" rather than obsolescent "%pure_parser".
86093         Use %parse-param and %lex-param instead of obsolescent
86094         YYPARSE_PARAM and YYLEX_PARAM.
86095         (meridian_table, month_and_day_table, time_units_table,
86096         relative_time_table, time_zone_table, military_table,
86097         lookup_zone, lookup_word, get_date):
86098         Use NULL instead of 0 where appropriate.
86099         (to_hour): Avoid abort (), to avoid a dependency on
86100         stdlib.h.
86101         (yyerror, yylex): Now accepts parser_control * arg.
86102         (main) [TEST]: Use '\0' rather than 0 for char.
86103
86104 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86105
86106         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86107
86108 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86109
86110         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86111         It's now the caller's responsibility to handle the case where
86112         !HAVE_GETPAGESIZE && !defined getpagesize.
86113
86114         * lib/mktime.c (leapyear): Arg is long int, not int.
86115
86116 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86117
86118         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86119
86120 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86121
86122         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86123         missing.  Problem reported by James Youngman.
86124
86125 2004-10-16  Simon Josefsson  <jas@extundo.com>
86126
86127         * gnulib-tool: Fix comments.  Fix parse problem.
86128         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86129
86130 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86131
86132         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86133         implementation of getopt_long.  Problem reported by Alexander Taler in:
86134         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86135
86136 2004-10-15  Bruno Haible  <bruno@clisp.org>
86137
86138         * gnulib-tool: Untabify. Initialize supplied_libname.
86139         (func_usage): More homogenous output.
86140         (func_modules_transitive_closure, func_modules_to_filelist,
86141         func_emit_lib_Makefile_am): New functions.
86142         (func_import): New function, extracted from big case statement. Use
86143         func_get_license, func_modules_transitive_closure,
86144         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86145         opt_lgpl. Don't use test -a, as it's not portable.
86146         (func_create_testdir): Use func_modules_transitive_closure,
86147         func_modules_to_filelist, func_emit_lib_Makefile_am.
86148
86149 2004-10-15  Bruno Haible  <bruno@clisp.org>
86150
86151         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86152
86153 2004-10-15  Bruno Haible  <bruno@clisp.org>
86154
86155         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86156         the portions belonging to each module.
86157         Suggested by Derek Robert Price <derek@ximbiot.com>.
86158
86159 2004-10-12  Simon Josefsson  <jas@extundo.com>
86160
86161         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86162         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86163         to real functions.
86164
86165 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86166
86167         * modules/vsnprintf: New file.
86168
86169 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86170
86171         * m4/vsnprintf.m4: New file.
86172
86173 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86174
86175         * lib/vsnprintf.h: New file.
86176         * lib/vsnprintf.c: New file.
86177
86178 2004-10-11  Bruno Haible  <bruno@clisp.org>
86179
86180         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86181         vsnprintf.
86182
86183 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86184
86185         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86186
86187 2004-10-07  Bruno Haible  <bruno@clisp.org>
86188
86189         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86190         fits into the provided buffer.
86191
86192 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86193
86194         * lib/diacrit.c, diacrit.h: Add GPL notice.
86195
86196         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86197         notice.
86198         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86199         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86200         This avoids a potential constant-folding bug.
86201
86202 2004-10-05  Bruno Haible  <bruno@clisp.org>
86203
86204         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86205         for the declaration of strsep.
86206
86207 2004-10-05  Bruno Haible  <bruno@clisp.org>
86208
86209         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86210
86211 2004-10-04  Simon Josefsson  <jas@extundo.com>
86212
86213         * modules/memmem: New file.
86214         * tests/test-memmem.c: New file.
86215         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86216
86217 2004-10-04  Simon Josefsson  <jas@extundo.com>
86218
86219         * m4/memmem.m4: New file.
86220
86221 2004-10-04  Simon Josefsson  <jas@extundo.com>
86222
86223         * lib/memmem.h: New file.
86224         * lib/memmem.c: New file, taken from glibc.
86225
86226 2004-10-04  Simon Josefsson  <jas@extundo.com>
86227
86228         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86229         '#ifdef USE_UNLOCKED_IO'.
86230
86231 2004-10-04  Simon Josefsson  <jas@extundo.com>
86232
86233         * config/srclist.txt: Add memmem from glibc.
86234
86235 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86236
86237         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86238
86239         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86240         modules/exclude, modules/getdate, modules/getline,
86241         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86242         modules/getusershell, modules/linebuffer, modules/md5,
86243         modules/mountlist, modules/posixtm, modules/readtokens,
86244         modules/readutmp, modules/regex, modules/sha1,
86245         modules/version-etc, modules/yesno:
86246         Remove dependency on unlocked-io.
86247
86248 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86249
86250         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86251
86252         * m4/unlocked-io.m4: Add copyright notice.
86253         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86254
86255 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86256
86257         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86258         * lib/xmalloc.c (xmemdup): Likewise.
86259         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86260         XFREE): Remove these long-obsolescent macros.
86261         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86262         * lib/xstrdup.c: Remove.
86263
86264         * lib/regex.c (re_comp): Cast gettext return value to char *,
86265         Problem reported by Martin Neitzel via Mark D. Baushke.
86266
86267 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86268
86269         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86270         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86271         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86272         regex.c, sha1.c, version-etc.c, yesno.c:
86273         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86274         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86275         the includer's responsibility.
86276
86277         Sync from coreutils.
86278
86279         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86280         points to the start of a string, as the C Standard says the
86281         resulting behavior is undefined.
86282
86283         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86284         simple -> simple_backups, numbered_existing ->
86285         numbered_existing_backups, numbered -> numbered_backups
86286         to avoid shadowing problems.  All uses changed.
86287         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86288         * lib/backupfile.c (check_extension, numbered_backup):
86289         Rename locals to avoid shadowing 'basename'.
86290         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86291         once.
86292
86293         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86294         * lib/.cvsignore: Add getopt.h.
86295
86296 2004-10-04  Bruno Haible  <bruno@clisp.org>
86297
86298         * modules/README: New file.
86299         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86300         not a module.
86301
86302 2004-10-02  Jim Meyering  <jim@meyering.net>
86303
86304         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86305
86306 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86307
86308         * modules/strsep: New file.
86309
86310 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86311
86312         * m4/strsep.m4: New file.
86313
86314 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86315
86316         * lib/strsep.h: New file.
86317         * lib/strsep.c: New file.
86318
86319 2004-10-01  Simon Josefsson  <jas@extundo.com>
86320
86321         * lib/snprintf.c (snprintf): Handle size==0.
86322
86323 2004-10-01  Simon Josefsson  <jas@extundo.com>
86324             Bruno Haible  <bruno@clisp.org>
86325
86326         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86327         (snprintf): Declare 'args'.
86328
86329 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86330
86331         * lib/snprintf.c: Remove comments as to why each header is needed.
86332
86333 2004-10-01  Bruno Haible  <bruno@clisp.org>
86334
86335         * MODULES.html.sh: Add strsep.
86336
86337 2004-09-30  Simon Josefsson  <jas@extundo.com>
86338
86339         * modules/snprintf: New file.
86340
86341 2004-09-30  Simon Josefsson  <jas@extundo.com>
86342
86343         * m4/snprintf.m4: New file.
86344
86345 2004-09-30  Simon Josefsson  <jas@extundo.com>
86346
86347         * lib/snprintf.h, lib/snprintf.c: New files.
86348
86349 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86350
86351         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86352         (hol_entry_help): Never translate an empty string.
86353         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86354         * lib/argp.h (OPTION_NO_TRANS): New option.
86355
86356 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86357
86358         * modules/argp (Maintainer): Replace Simon Josefsson
86359         by Sergey Poznyakoff.
86360
86361 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86362
86363         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86364         changes merged back into glibc.
86365
86366 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86367
86368         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86369
86370 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86371
86372         * lib/xvasprintf.c: Include xalloc.h.
86373         (xvasprintf): Use xalloc_die, not xmalloc_die.
86374
86375 2004-09-29  Bruno Haible  <bruno@clisp.org>
86376
86377         * modules/alloca-opt: New file, derived from modules/alloca.
86378         * modules/allocsa: Depend on alloca-opt instead of alloca.
86379         * modules/setenv: Likewise.
86380         * modules/vasnprintf: Likewise.
86381         * MODULES.html.sh: Add alloca-opt.
86382
86383 2004-09-28  Simon Josefsson  <jas@extundo.com>
86384
86385         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86386         LGPL, and to replace license template from GPL to LGPL.
86387
86388 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86389
86390         * modules/dummy: Change license to LGPL.
86391
86392 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86393
86394         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86395
86396 2004-09-24  Simon Josefsson  <jas@extundo.com>
86397
86398         * modules/minmax (License): Change from GPL to LGPL.
86399
86400 2004-09-23  Simon Josefsson  <jas@extundo.com>
86401
86402         * gnulib-tool (--import): Typo.
86403
86404 2004-09-23  Simon Josefsson  <jas@extundo.com>
86405
86406         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86407
86408 2004-09-22  Bruno Haible  <bruno@clisp.org>
86409
86410         * modules/*: Add 'License' field.
86411         * gnulib-tool: Accept --extract-license option.
86412         (func_get_license): New function.
86413
86414 2004-09-21  Bruno Haible  <bruno@clisp.org>
86415
86416         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86417         Reported by Simon Josefsson.
86418
86419 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86420
86421         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86422         gl_AC_TYPE_LONG_LONG.
86423
86424 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86425
86426         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86427
86428 2004-09-18  Simon Josefsson  <jas@extundo.com>
86429         and  Paul Eggert  <eggert@cs.ucla.edu>
86430
86431         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86432         calls with autoreconf.  Define GL_LIB.
86433
86434 2004-09-14  Karl Berry  <karl@gnu.org>
86435
86436         * config/srclist.txt: unsync setenv.c, sigh.
86437
86438 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86439
86440         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86441         Problem reported by Bruno Haible in:
86442         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86443
86444 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86445
86446         * config/srclist.txt: Comment out argp-pvh.c.
86447
86448 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86449
86450         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86451         in case some system header has #define'd it.  Problem reported by
86452         Soeren D. Schulze in
86453         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86454
86455 2004-09-09  Karl Berry  <karl@gnu.org>
86456
86457         * regex.[ch]: delete from the root.  These were supposed to be
86458                 synced with emacs cvs, but this has not happened for about
86459                 a year, and anyway nothing else uses emacs regex.[ch].
86460                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86461                 lib/regex[.ch] is untouched.
86462
86463 2004-09-09  Bruno Haible  <bruno@clisp.org>
86464
86465         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86466
86467 2004-09-09  Bruno Haible  <bruno@clisp.org>
86468
86469         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86470         modifications.
86471         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86472
86473 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86474
86475         * modules/xvasprintf: New file.
86476         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86477
86478 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86479
86480         * lib/xvasprintf.h: New file.
86481         * lib/xvasprintf.c: New file.
86482         * lib/xasprintf.c: New file.
86483
86484 2004-09-08  Bruno Haible  <bruno@clisp.org>
86485
86486         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86487
86488 2004-09-08  Bruno Haible  <bruno@clisp.org>
86489
86490         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86491         length is > INT_MAX.
86492         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86493         more.
86494
86495 2004-09-08  Bruno Haible  <bruno@clisp.org>
86496
86497         * lib/stdint_.h: New file, taken from GNU clisp.
86498
86499 2004-09-08  Bruno Haible  <bruno@clisp.org>
86500             Oskar Liljeblad  <oskar@osk.mine.nu>
86501
86502         * modules/stdint: New file.
86503         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86504
86505 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86506
86507         Import from coreutils.
86508         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86509         strings on unbounded length.  alloca's performance benefits aren't
86510         that important here.
86511         (V_STRDUP): Remove.
86512         (parse_with_separator): New function, with most of the internals
86513         of the old parse_user_spec.  Allow user to omit both user and group,
86514         for compatibility with FreeBSD.
86515         Clone only the user name, not the entire spec.
86516         Do not set *uid, *gid unless entirely successful.
86517         Avoid memory leak in some failing cases.
86518         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86519         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86520         (parse_user_spec): Rewrite to use parse_with_separator.
86521
86522 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86523
86524         * modules/userspec: Don't depend on alloca.
86525
86526 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86527
86528         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86529
86530 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86531
86532         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86533         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86534         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86535
86536 2004-08-16  Simon Josefsson  <jas@extundo.com>
86537
86538         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86539         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86540         Add --dry-run for --import.
86541         Let user provided command line parameters override configure.ac
86542         settings.
86543
86544 2004-08-12  Simon Josefsson  <jas@extundo.com>
86545
86546         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86547         as discussed with Paul Eggert in threads rooted at
86548         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86549         and
86550         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86551         Before, the test was empty, and relied on ELIDE_CODE in source
86552         code.)
86553         (gl_PREREQ_GETOPT): New macro.
86554         (gl_GETOPT): Use them.
86555
86556 2004-08-12  Simon Josefsson  <jas@extundo.com>
86557
86558         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86559         * lib/getopt_.h: Renamed from getopt.h.
86560
86561 2004-08-12  Simon Josefsson  <jas@extundo.com>
86562
86563         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86564         Change default library name from libfoo to libgnu.
86565         Now, if you have a configure.ac that says:
86566                 gl_SOURCE_BASE(gl)
86567                 gl_M4_BASE(gl/m4)
86568                 gl_MODULES(error getopt etcetera)
86569                 gl_INIT
86570         you can import all you need by running:
86571                 ../gnulib/gnulib-tool --import
86572
86573         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86574         (Makefile.am): Rewrite, use logic from argz.
86575         (Include): Use <getopt.h> instead of "getopt.h".
86576
86577 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86578
86579         * modules/argp (Files): Add m4/unlocked-io.m4.
86580         (Depends-on): Add extensions.
86581
86582 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86583
86584         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86585         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86586         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86587         Check for program_invocation_name, program_invocation_short_name,
86588         flockfile, funlockfile, features.h, _getopt_long_only_r.
86589
86590 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86591
86592         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86593         its complicated substitute.
86594         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86595         and program_invocation_name.
86596         (__argp_basename) [!_LIBC]: Remove; the only use was
86597         replaced by its body.
86598         (__argp_short_program_name): Change condition from
86599         !defined __argp_short_program_name to
86600         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86601         to match argp-namefrob.h.
86602         (__argp_failure): Don't assume strerror_r returns char *.
86603         * lib/argp-parse.c (N_): Define unconditionally.
86604         (argp_default_options): Fill out initializers with 0 to avoid
86605         gcc warnings.
86606
86607 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86608
86609         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86610         getopt1.c.
86611
86612 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86613
86614         Merge from coreutils.
86615
86616         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86617
86618         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86619         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86620
86621 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86622
86623         Merge from coreutils.
86624
86625         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86626         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86627         for Reliant Unix 5.43.
86628
86629         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86630         (union fooround): Use uintmax_t, not long int.
86631         The rest is a merge from libc:
86632         [defined _LIBC]: Include <shlib-compat.h>.
86633         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86634
86635         * lib/settime.c (settime): Recode to avoid warning with
86636         Sun Forte C 6U2.
86637
86638         * lib/strverscmp.c: Convert to UTF-8.
86639
86640 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86641
86642         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86643         m4/uintmax_t.m4.
86644
86645 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86646
86647         * modules/xalloc-die: New file.
86648         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86649
86650         * modules/md5 (Files): Add m4/uint32_t.m4.
86651         * modules/sha1: Renamed from modules/sha.
86652         (Files):
86653         Rename lib/sha.h to lib/sha1.h.
86654         Rename lib/sha.c to lib/sha1.c.
86655         Rename m4/sha.m4 to m4/sha1.m4.
86656         (lib_SOURCES): Likewise.
86657         (configure.ac): Rename gl_SHA to gl_SHA1.
86658         (Include): sha.h -> sha1.h.
86659
86660 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86661
86662         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86663         * m4/sha1.m4: Renamed from sha.m4.
86664         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86665
86666 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86667
86668         * lib/obstack.h (obstack_empty_p):
86669         Don't assume that chunk->contents is suitably aligned.
86670         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86671         Likewise. Problem reported by Benno in
86672         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86673
86674         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86675         readable.  This could be improved further but it'd take some work.
86676
86677 2004-08-08  Simon Josefsson  <jas@extundo.com>
86678
86679         * modules/xgethostname (Depends-on): Remove exit and error (not
86680         used).
86681
86682         * modules/getpass-gnu: Add getpass.h.
86683         (Depends-on): Add stdbool.
86684         * modules/getpass: Add getpass.h.
86685
86686 2004-08-08  Simon Josefsson  <jas@extundo.com>
86687
86688         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86689         Check getpass declaration.
86690
86691 2004-08-08  Simon Josefsson  <jas@extundo.com>
86692
86693         * lib/xgethostname.c: Don't include error.h (not used).
86694
86695         * lib/getpass.h: Add.
86696         * lib/getpass.c: Include getpass.h first.
86697
86698 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86699
86700         * lib/xalloc-die.c: New file.
86701         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86702         All uses removed.
86703         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86704         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86705         xalloc-die.c.
86706         (_, N_, xalloc_die): Move to xalloc-die.c.
86707         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86708         so that we needn't mess with xalloc_msg_memory_exhausted.
86709
86710         * lib/sha1.h: Renamed from sha.h.
86711         (SHA1_H): Renamed from _SHA_H.
86712         (sha1_ctx): Renamed from sha_ctx.
86713         (sha1_init_ctx): Renamed from sha_init_ctx.
86714         (sha1_process_block): Renamed from sha_process_block.
86715         (sha1_process_bytes): Renamed from sha_process_bytes.
86716         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86717         (sha1_read_ctx): Renamed from sha_read_ctx.
86718         (sha1_stream): Renamed from sha_stream.
86719         (sha1_buffer): Renamed from sha_buffer.
86720         * lib/sha1.c: Likewise; renamed from sha.c.
86721         Do not include <sys/types.h>.
86722         Include <stddef.h> rather than <stdlib.h>.
86723
86724 2004-08-08  Bruno Haible  <bruno@clisp.org>
86725
86726         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86727         FILESYSTEM_PREFIX_LEN.
86728         * lib/progreloc.c: Likewise.
86729         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86730
86731 2004-08-06  Simon Josefsson  <jas@extundo.com>
86732
86733         * modules/progname (Depends-on): Don't depend on stdbool.
86734
86735 2004-08-06  Simon Josefsson  <jas@extundo.com>
86736
86737         * modules/getsubopt: New file.
86738         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86739         getsubopt.
86740
86741 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86742
86743         More merge from coreutils.
86744
86745         * m4/utimens.m4, m4/utimecmp.m4: New files.
86746         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86747         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86748         prereq.m4, sha.m4: Import changes from coreutils.
86749
86750 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86751
86752         More merge from coreutils.
86753         * modules/raise, modules/readtokens0, modules/utimens:
86754         * modules/utimecmp, module/xnanosleep: New files.
86755         * modules/strftime: Add lib/strftime.h.
86756         Change include from <time.h> to "strftime.h".
86757         * modules/yesno: Add lib/yesno.h.
86758         * modules/backupfile: Remove lib/addext.c.
86759         * modules/euidaccess: Add stat-macros.h.
86760         * modules/canonicalize, modules/euidaccess,
86761         modules/filemode, modules/lchown, modules/makepath,
86762         modules/rmdir, modules/stat: Likewise.
86763
86764 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86765
86766         Merge from tar.
86767         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86768         SIZE_MAX is a valid preprocessor constant.
86769         (__argp_basename): Change from "#ifndef _LIBC"
86770         to "#ifndef __argp_short_program_name", so that
86771         we don't compile these functions for tar.
86772
86773         More merges from coreutils.
86774         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86775         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86776         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86777         * lib/addext.c: Remove; no longer needed.
86778         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86779         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86780         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86781         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86782         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86783         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86784         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86785         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86786         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86787         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86788         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86789         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86790         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86791         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86792         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86793         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86794         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86795         Import changes from coreutils.
86796
86797 2004-08-05  Simon Josefsson  <jas@extundo.com>
86798
86799         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86800
86801 2004-08-05  Simon Josefsson  <jas@extundo.com>
86802
86803         * m4/getsubopt.m4: New file.
86804
86805 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86806
86807         Merge from coreutils.
86808
86809         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86810         * m4/getcwd-path-max.m4: New files.
86811
86812         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86813         FILESYSTEM_PREFIX_LEN ->
86814         FILE_SYSTEM_PREFIX_LEN.
86815         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86816         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86817         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86818         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86819
86820         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86821         prerequisite modules now handle the DOS stuff.
86822         Don't check for unistd.h.
86823
86824 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86825
86826         Merge from coreutils.
86827
86828         * lib/.gdb-history: Remove; this doesn't belong here.
86829
86830         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86831         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86832         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86833         * lib/getcwd.c: New files.
86834
86835         * lib/dirname.h: Include <stdbool.h>.
86836         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86837         for consistency with POSIX terminology.  All uses changed.
86838         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86839         (strip_trailing_slashes): Use bool for booleans.
86840         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86841
86842         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86843         sometimes returns a positive errno value even when it succeeds.
86844         (print_errno_message) [!LIBC]: Fall back on strerror if
86845         __strerror_r fails.
86846
86847         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86848         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86849         (longest_relative_suffix): New function.
86850         (path_concat): Use it.  Assume first argument is not NULL.
86851         Port to DOS.  Omit redundant separators.
86852         Report an error instead of returning NULL.
86853         Use mempcpy instead of memcpy.
86854         (xpath_concat): Remove: not declared or used.
86855
86856         * lib/same.h: Include <stdbool.h>
86857         (same_name): Return bool, not int.
86858         * lib/same.c (same_name): Likewise.
86859         (errno): Don't declare; we assume C89 or better now.
86860
86861         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86862         if not already defined.
86863
86864         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86865         * lib/dup-safer.c (errno): Likewise.
86866
86867 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86868
86869         Merge from coreutils.
86870         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86871         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86872         * modules/path-concat: Don't depend on strdup.
86873
86874 2004-08-03  Simon Josefsson  <jas@extundo.com>
86875
86876         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86877         * lib/progname.h: Don't include stdbool.h.
86878
86879 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86880
86881         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86882         * MODULES.html.sh (func_all_modules): Remove fatal.
86883
86884 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86885
86886         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86887
86888 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86889
86890         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86891         working.
86892
86893 2004-08-02  Simon Josefsson  <jas@extundo.com>
86894
86895         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86896         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86897         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86898
86899 2004-08-01  Simon Josefsson  <jas@extundo.com>
86900
86901         * lib/xgetdomainname.c: Include stdlib.h, for free().
86902
86903 2004-07-19  Bruno Haible  <bruno@clisp.org>
86904
86905         * MODULES.html.sh (func_all_modules): Add dummy.
86906
86907 2004-07-16  Simon Josefsson  <jas@extundo.com>
86908
86909         * modules/dummy: New file.
86910
86911 2004-07-16  Simon Josefsson  <jas@extundo.com>
86912
86913         * lib/dummy.c: New file.
86914
86915 2004-07-16  Bruno Haible  <bruno@clisp.org>
86916
86917         * lib/backupfile.h: Add extern "C" for C++.
86918         * lib/closeout.h: Likewise.
86919         * lib/copy-file.h: Likewise.
86920         * lib/findprog.h: Likewise.
86921         * lib/full-write.h: Likewise.
86922         * lib/pathname.h: Likewise.
86923         * lib/progname.h: Likewise.
86924         * lib/stpcpy.h: Likewise.
86925         * lib/stpncpy.h: Likewise.
86926         * lib/strcase.h: Likewise.
86927         * lib/strstr.h: Likewise.
86928         * lib/xalloc.h: Likewise.
86929
86930         * lib/mbswidth.h: Add extern "C" for C++.
86931         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86932
86933 2004-07-13  Robert Millan  <robertmh@gnu.org>
86934
86935         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86936
86937 2004-07-09  Simon Josefsson  <jas@extundo.com>
86938
86939         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86940         failed without this.)
86941
86942 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86943
86944         * modules/chown (Files): Add lib/fchown-stub.c, since
86945         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86946
86947 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86948
86949         * lib/fchown-stub.c: New file.
86950
86951 2004-06-24  Jim Meyering  <jim@meyering.net>
86952
86953         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86954
86955 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86956
86957         * modules/argz: Omit "#include".
86958
86959         * MODULES.html.sh (func_all_modules): Add calloc, to match
86960         2004-06-01 addition of calloc module.
86961
86962 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86963
86964         * m4/argz.m4: New file, which is autoupdated from libtool.
86965
86966 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86967
86968         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86969         libtool.
86970
86971 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86972
86973         * config/srclist-update: Don't insist on "USA." before the
86974         close-comment, as libtool omits the period and puts the */ on a
86975         separate line.
86976         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86977         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86978
86979 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86980
86981         * modules/argz: New file.
86982         * MODULES.html.sh (func_all_modules): Add argz.
86983
86984 2004-06-12  Jim Meyering  <jim@meyering.net>
86985         and  Paul Eggert  <eggert@cs.ucla.edu>
86986
86987         * modules/hash (Files): Add lib/xalloc.h.
86988         * modules/pipe (Depends-on): Add wait-process.
86989         * modules/stat (Depends-on): Add xalloc.
86990         * modules/userspec (Files): Add lib/userspec.h.
86991         * modules/xstrto
86992
86993         Upgrade from gettext-0.13.
86994         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86995         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86996         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86997
86998 2004-06-10  Jim Meyering  <jim@meyering.net>
86999
87000         * lib/calloc.c: New file.
87001
87002 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87003
87004         * lib/getdate.y (yylex): Allow space between sign and number.
87005         Problem reported by Dan Jacobson.
87006
87007 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87008
87009         Merge from coreutils CVS.
87010
87011         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87012         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87013         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87014         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87015         xstrtol.m4: Fix copyright date and/or serial number.
87016
87017         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87018         See if we need an fchown replacement.
87019         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87020         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87021         and use the replacement function if we detect either defect.
87022
87023         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87024         gl_UTIMECMP.
87025
87026 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87027         and  Jim Meyering  <jim@meyering.net>
87028
87029         Merge from coreutils CVS.
87030
87031         * lib/stat-macros.h: New file, with contents from file-type.h
87032         and coreutils' system.h.
87033         * lib/file-type.c: Include "stat-macros.h".
87034         * lib/file-type.h (file_type): Move all macro definitions to new file,
87035         stat-macros.h.
87036
87037         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87038         Wrap old code with this conditional.
87039         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87040         function that does not dereference symlinks.
87041         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87042
87043         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87044         dependency problems.
87045         (xreadlink): Accept new arg SIZE, for efficiency.
87046         All decls and uses changed.
87047         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87048
87049         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87050         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87051
87052         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87053         sysexits.h.
87054
87055 2004-06-01  Jim Meyering  <jim@meyering.net>
87056
87057         * m4/calloc.m4: New file.
87058
87059 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87060
87061         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87062         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87063         Also, fix a typo in a diagnostic.
87064
87065 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87066
87067         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87068         or AC_FUNC_REALLOC.
87069
87070 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87071
87072         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87073         macros to be defined.
87074         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87075         the allocator returns NULL because the requested size is zero.
87076
87077 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87078
87079         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87080         var.  Add comment explaining why libc still defines it.  This
87081         merges the following patch from glibc:
87082         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87083
87084 2004-05-20  Andreas Schwab  <schwab@suse.de>
87085
87086         * m4/free.m4: Replace free if it not known to work, not the other
87087         way round.
87088
87089 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87090
87091         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87092         present in glibc since revision 1.1 of this file.
87093         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87094         obstack_alignment_mask, obstack_alloc, obstack_base,
87095         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87096         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87097         obstack_grow0, obstack_init, obstack_int_grow,
87098         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87099         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87100         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87101         nonexistent functions.
87102
87103 2004-05-18  Karl Berry  <karl@gnu.org>
87104
87105         * config/srclist.txt: break link for vasnprintf.c.
87106
87107 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87108
87109         Port obstack to the AS/400, where pointers are 16 bytes wide and
87110         you cannot cast an integer to a valid pointer.  This patch is
87111         currently waiting to be integrated into glibc; see
87112         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87113
87114         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87115         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87116         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87117         (struct obstack): temp member is now a union of a pointer and
87118         an integer, instead of an integer.  All integer uses changed.
87119         This does not affect the physical layout of struct obstack,
87120         except on hosts (like the AS/400) where the size or alignment of
87121         void * is greater than that of ptrdiff_t.
87122         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87123         __STDC__)]: Store temporary in pointer member of union, not
87124         integer member.
87125         * lib/obstack.c: Include <stddef.h>, for offsetof.
87126         (struct fooalign): Remove; it doesn't need a name.
87127         (union fooround): Change double to long double, and add void *.
87128         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87129         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87130         not a macro.  Hence the values are always int; so remove all
87131         casts-to-int in uses.
87132
87133 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87134
87135         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87136         we can get this patch merged into glibc.
87137
87138 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87139             Paul Eggert  <eggert@cs.ucla.edu>
87140
87141         * m4/argp: Depend on alloca.
87142
87143 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87144             Paul Eggert  <eggert@cs.ucla.edu>
87145
87146         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87147         freecoding.
87148
87149 2004-05-17  Bruno Haible  <bruno@clisp.org>
87150
87151         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87152         precision that consists of a '.' followed by an empty digit string.
87153         Patch by Tor Lillqvist <tml@iki.fi>.
87154
87155 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87156
87157         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87158         for backward compatibility with older code.  We need our own
87159         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87160         it under some other name, and our alloca.h will define it.
87161
87162 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87163             Derek Price  <derek@ximbiot.com>
87164
87165         * lib/alloca.c: Include <alloca.h>, to get our interface.
87166         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87167         include <alloca.h> first.  Use C89 prototype for alloca; this
87168         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87169         Use #elif for simplicity, since we can assume C89 now.
87170         Don't try to source the system alloca.h since it will not be found
87171         and to prevent recursively including its replacement.
87172         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87173         * lib/regex.c: Likewise.
87174
87175 2004-05-16  Derek Price  <derek@ximbiot.com>
87176             Paul Eggert  <eggert@cs.ucla.edu>
87177
87178         getline cleanup.  This changes the getndelim2 API: both order of
87179         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87180         no delimiter).
87181
87182         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87183         interface does that.
87184         (getline): Always use getdelim, so that we don't have two
87185         copies of this code.
87186         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87187         if available.
87188         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87189         (GETNDELIM2_MAXIMUM): New macro.
87190         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87191         instead of the old practice of delim2==0.  All callers changed.
87192         Return -1 on overflow, instead of returning junk.
87193         Do not set *linesize unless allocation succeeds.
87194         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87195         that we include sys/types.h.
87196         * lib/getnline.h: Likewise.
87197         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87198         (getndelim2): Reorder arguments.
87199         * lib/getnline.c (getnline, getndelim):
87200         Don't discard the NMAX argument.
87201         (getnline): Invoke getndelim, to avoid code duplication.
87202         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87203         of (size_t) -1 by callers of the getnline family.
87204
87205 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87206
87207         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87208         Check for gettimeofday.
87209         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87210         Check for settimeofday, stime.
87211
87212 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87213
87214         * lib/nanosleep.c (suspended): Change its type from int to
87215         sig_atomic_t volatile.
87216         (first_call): Make it private to rpl_nanosleep, and have it
87217         be zero initially as that's a bit faster.
87218         (my_usleep): Round up fractional times instead of truncating them,
87219         as this is the usual meaning for 'sleep'.
87220
87221         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87222         doesn't work.
87223         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87224         (ENOSYS): Define if not defined.
87225         (settime): Fall back on stime if it exists and settimeofday fails.
87226         But don't bother with fallbacks if a method fails with errno == EPERM.
87227
87228 2004-05-11  Jim Meyering  <jim@meyering.net>
87229
87230         Prior to this change, the save_cwd caller required read access to the
87231         current directory on most systems (ones with the fchdir function).
87232
87233         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87234         fails, try write-only, and finally, resort to using xgetcwd.
87235
87236 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87237
87238         * lib/obstack.c, obstack.h: Import changes from libc.
87239
87240 2004-04-28  Bruno Haible  <bruno@clisp.org>
87241
87242         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87243         also implicitly appends .exe to executables.
87244         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87245         accepts Windows pathnames.
87246         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87247         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87248         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87249         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87250         Reported by Derek Robert Price <derek@ximbiot.com>.
87251
87252 2004-04-21  Karl Berry  <karl@gnu.org>
87253
87254         * config/srclist.txt (localcharset.c): break sync.
87255
87256 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87257
87258         * m4/host-os.m4: Add a copyright notice.
87259
87260 2004-04-20  Jim Meyering  <jim@meyering.net>
87261
87262         Change UTILS_ to gl_ in AC_DEFINE'd names.
87263         Change utils_- and jm_-prefixed variables, too.
87264         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87265         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87266         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87267
87268         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87269         Don't emit trailing blanks.
87270         Also rename jm_-prefixed variables to have gl_ prefix.
87271
87272         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87273         Also rename jm_-prefixed variables to have gl_ prefix.
87274
87275         * m4/jm-macros.m4: Reflect the renamings.
87276         * m4/prereq.m4: Likewise.
87277
87278 2004-04-20  Jim Meyering  <jim@meyering.net>
87279
87280         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87281         memory.
87282
87283 2004-04-20  Jim Meyering  <jim@meyering.net>
87284             Bruno Haible  <bruno@clisp.org>
87285
87286         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87287         memory when realloc fails.
87288
87289 2004-04-19  Jim Meyering  <jim@meyering.net>
87290
87291         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87292         now that readutmp.c may call `free (0)'.
87293
87294 2004-04-19  Bruno Haible  <bruno@clisp.org>
87295
87296         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87297         * m4/inttypes_h.m4: Likewise.
87298         * m4/stdint_h.m4: Likewise.
87299         * m4/intmax_t.m4: Likewise.
87300         * m4/uintmax_t.m4: Likewise.
87301
87302 2004-04-18  Jim Meyering  <jim@meyering.net>
87303
87304         * m4/prereq.m4: Don't forbid jm_ prefix.
87305
87306         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87307         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87308         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87309         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87310         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87311         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87312         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87313         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87314         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87315         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87316         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87317         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87318         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87319         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87320         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87321         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87322         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87323         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87324         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87325
87326 2004-04-18  Jim Meyering  <jim@meyering.net>
87327
87328         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87329         failure, don't leak memory and do call END_UTMP_ENT.
87330
87331 2004-04-16  Jim Meyering  <jim@meyering.net>
87332
87333         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87334         coreutils' stat program.
87335         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87336
87337 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87338
87339         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87340         C89.
87341         (CHAR_BIT): Remove, since we assume C89.
87342         Include <stdint.h> if available, as per current Autoconf CVS advice.
87343
87344 2004-03-31  Jim Meyering  <jim@meyering.net>
87345
87346         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87347         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87348         * m4/xalloc.m4: Likewise.
87349
87350 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87351
87352         Merge from coreutils.
87353
87354         * m4/inttostr.m4: New file.
87355         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87356         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87357         Require gl_CLOCK_TIME.
87358         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87359
87360 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87361
87362         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87363         not bool, to be more consistent with Unix conventions.
87364         Suggested by Bruno Haible.
87365
87366         Merge from coreutils.
87367
87368         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87369         * lib/umaxtostr.c: New files.
87370
87371         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87372         the usual <time.h> dance.
87373         (get_date): Change signature to support fractional time stamps.
87374         All callers changed.
87375         * lib/getdate.y: Include "getdate.h" first, as we can now
87376         assume C89 and don't need to worry about 'const'.
87377         Similarly, include "unlocked-io.h" near start, not in middle.
87378         Include <limits.h>.
87379         (textint.value): Use long int rather than int.
87380         (textint.digits): Use size_t rather than int.
87381         (BILLION, LOG10_BILLION): New constants.
87382         (parser_control): New member rel_ns.  Members day_ordinal,
87383         time_zone, month, day, hour, minutes, rel_year, rel_month,
87384         rel_day, rel_hour, rel_minutes, rel_seconds
87385         are now long int, not int.  Member seconds is now struct timespec,
87386         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87387         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87388         not int.
87389         (%union.intval): Now long int, not int.
87390         New member timespec.
87391         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87392         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87393         (spec): Now is a timespec or an item list.
87394         (timespec, items): New nonterminals.
87395         (time, rel, relunit, number, get_date):
87396         Add support for fractional seconds.
87397         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87398         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87399         (to_hour): First arg is now long int, not int.
87400         (to_year): Returns long int, not int.
87401         Don't treat year -70 like 70.
87402         (tm_diff): Returns long int, not int.
87403         (lookup_word): Use bool instead of int when appropriate.
87404         (yylex): Use size_t for count, not int.
87405         Detect overflow when parsing large integer constants.
87406         Add support for fractions.
87407         (get_date): Make pointers 'const' if possible.
87408         Use more-portable code to detect integer overflow.
87409         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87410         Don't use ctime; it's not reliable if the year has >4 digits.
87411
87412         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87413         This is for compatibility with BSD.
87414
87415         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87416         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87417         From coreutils' system.h.
87418
87419         * lib/userspec.c: Don't include "posixver.h".
87420         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87421         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87422         compatible extension.  Simplify code by removing a boolean int
87423         that was always nonzero if a string was nonnull.
87424
87425 2004-03-30  Jim Meyering  <jim@meyering.net>
87426
87427         Merge from coreutils.
87428
87429         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87430         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87431         on some systems one must include <grp.h> before it.
87432         Reported by Christian Krackowizer.
87433
87434 2004-03-30  Jim Meyering  <jim@meyering.net>
87435
87436         Merge from coreutils.
87437
87438         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87439
87440         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87441         an empty input stream.
87442
87443         * lib/readtokens.c: Include <stdbool.h>.
87444         (readtoken): Use `size_t' rather than int/long.
87445         All callers adjusted.
87446         Use `bool' rather than `int' where appropriate.
87447         Use memset rather than an explicit loop.
87448         Use x2nrealloc rather than xrealloc.
87449         Allow the use of `\0' as a delimiter.
87450         (readtokens): Likewise.
87451         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87452
87453 2004-03-30  Jim Meyering  <jim@meyering.net>
87454
87455         * m4/realloc.m4: Remove file, since now it does no more than
87456         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87457         the `configure.ac' section of module/realloc.
87458         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87459
87460 2004-03-30  Bruno Haible  <bruno@clisp.org>
87461
87462         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87463         nonnull.
87464
87465 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87466
87467         Merge changes to getloadavg.c from coreutils and Emacs.
87468
87469         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87470         Define to an expression, not to the empty string.
87471         Include cloexec.h and xalloc.h.
87472         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87473         Use set_cloexec_flag rather than rolling our own.
87474         * lib/cloexec.c, lib/cloexec.h: New files.
87475
87476 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87477
87478         * m4/cloexec.m4: New file.
87479
87480 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87481
87482         * lib/getopt.h: Sync with libc CVS.
87483
87484 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87485             Bruno Haible  <bruno@clisp.org>
87486
87487         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87488         mbswidth.
87489
87490 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87491             Bruno Haible  <bruno@clisp.org>
87492
87493         * lib/mbswidth.h: Include <wchar.h> only if
87494         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87495         <wchar.h>.
87496         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87497
87498 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87499
87500         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87501         Sync with libc CVS.
87502         * lib/getopt_int.h: New file, also synced from libc.
87503
87504 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87505
87506         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87507         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87508         Bring back getopt.c, getopt.h, getopt1.c.
87509
87510 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87511
87512         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87513         All uses changed.  Check for sa_sigaction member; this fixes
87514         a bug first reported by Jason Andrade in
87515         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87516
87517 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87518
87519         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87520         '#if' expressions.  Unlike the code it replaces, it does not
87521         depend on (defined _SC_PAGESIZE).  However, it does depend on
87522         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87523         first reported by Jason Andrade in
87524         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87525
87526 2004-02-25  Simon Josefsson  <jas@extundo.com>
87527
87528         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87529
87530 2004-02-25  Simon Josefsson  <jas@extundo.com>
87531
87532         * lib/strdup.h: New file.
87533         * lib/strdup.c: Include it.
87534         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87535         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87536
87537 2004-02-23  Karl Berry  <karl@gnu.org>
87538
87539         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87540         (from fencepost.gnu.org:/gd/gnuorg).
87541
87542 2004-02-23  Karl Berry  <karl@gnu.org>
87543
87544         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87545         * config/srclist.txt: add maintain/standards documents.
87546
87547 2004-02-18  Bruno Haible  <bruno@clisp.org>
87548
87549         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87550         Reported by Derek Robert Price <derek@ximbiot.com>.
87551
87552 2004-02-16  Karl Berry  <karl@gnu.org>
87553
87554         * config/mkinstalldirs, install-sh: update from automake.
87555
87556 2004-02-06  Karl Berry  <karl@gnu.org>
87557
87558         * m4/po.m4: update from gettext 0.14.1.
87559
87560 2004-02-06  Karl Berry  <karl@gnu.org>
87561
87562         * lib/config.charset: update from gettext 0.14.1.
87563
87564 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87565
87566         Add comments and code, prompted by suggestions from Bruno Haible
87567         for sh-quote.
87568         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87569         describing the enum quoting_style values.
87570         * lib/quotearg.c (quotearg_alloc): New function.
87571         (quotearg_buffer_restyled): Treat lone { and } as special.
87572         Treat = as special.  Work around bug with older shells
87573         that "see" a '\' that is really the 2nd byte of a multibyte char.
87574         Quote empty string with shell_quoting_style.
87575
87576 2004-02-03  Bruno Haible  <bruno@clisp.org>
87577
87578         * m4/pipe.m4: New file, from GNU gettext.
87579
87580 2004-02-03  Bruno Haible  <bruno@clisp.org>
87581
87582         * lib/pipe.h: New file, from GNU gettext.
87583         * lib/pipe.c: New file, from GNU gettext.
87584
87585 2004-01-27  Bruno Haible  <bruno@clisp.org>
87586
87587         * m4/execute.m4: New file, from GNU gettext.
87588
87589 2004-01-27  Bruno Haible  <bruno@clisp.org>
87590
87591         * lib/execute.h: New file, from GNU gettext.
87592         * lib/execute.c: New file, from GNU gettext.
87593         * lib/w32spawn.h: New file, from GNU gettext.
87594
87595 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87596
87597         Merge from diffutils.
87598
87599         * lib/file-type.c (file_type): Add typed memory objects.
87600         * lib/file-type.h (S_TYPEISTMO): New macro.
87601
87602         * lib/c-stack.h (c_stack_action): Remove argv argument.
87603         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87604         (die): Don't calculate message unless segv_action returns.
87605         (get_stack_location, min_address_from_argv, max_address_from_argv,
87606         volatile stack_base, volatile_stack_size): Remove.
87607         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87608         that every segmentation violation is a stack overflow.  (Ouch!)
87609         See Debian bug 136249 (still outstanding) for more info about why
87610         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87611
87612 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87613
87614         Exit-status fix from coreutils.
87615
87616         Use exit_failure consistently in place of EXIT_FAILURE,
87617         so that program exit statuses are consistent on failure.
87618
87619         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87620         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87621         * lib/argmatch.h: Comment fix to match the above.
87622         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87623         Now a macro referring to exit_failure, instead of a separate
87624         variable.  Include "exitfail.h" to get it.
87625         * lib/xstrtol.h: Include "exitfail.h".
87626         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87627
87628         * lib/long-options.c (parse_long_options): Use prototype
87629         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87630         for clarity.
87631
87632 2004-01-21  Jim Meyering  <jim@meyering.net>
87633
87634         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87635         so as not to conflict with a different-sized __mktime_internal
87636         function in GNU libc.
87637         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87638         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87639
87640 2004-01-20  Karl Berry  <karl@gnu.org>
87641
87642         * config/config.guess: update from config.
87643
87644         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87645
87646 2004-01-20  Bruno Haible  <bruno@clisp.org>
87647
87648         Safer stack allocation.
87649         * lib/setenv.c: Include allocsa.h.
87650         (alloca): Remove fallback definition.
87651         (freea): Remove macro.
87652         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87653         instead of freea.
87654
87655 2004-01-20  Bruno Haible  <bruno@clisp.org>
87656
87657         * m4/eealloc.m4: New file, from GNU gettext.
87658
87659 2004-01-20  Bruno Haible  <bruno@clisp.org>
87660
87661         * m4/allocsa.m4: New file, from GNU gettext.
87662
87663 2004-01-20  Bruno Haible  <bruno@clisp.org>
87664
87665         * lib/xallocsa.h: New file, from GNU gettext.
87666         * lib/xallocsa.c: New file, from GNU gettext.
87667
87668 2004-01-20  Bruno Haible  <bruno@clisp.org>
87669
87670         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87671
87672 2004-01-20  Bruno Haible  <bruno@clisp.org>
87673
87674         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87675         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87676         specially.
87677
87678 2004-01-20  Bruno Haible  <bruno@clisp.org>
87679
87680         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87681         patch.
87682
87683 2004-01-20  Bruno Haible  <bruno@clisp.org>
87684
87685         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87686
87687 2004-01-20  Bruno Haible  <bruno@clisp.org>
87688
87689         * lib/eealloc.h: New file.
87690
87691 2004-01-20  Bruno Haible  <bruno@clisp.org>
87692
87693         * lib/binary-io.h: Avoid warnings on Cygwin.
87694
87695 2004-01-20  Bruno Haible  <bruno@clisp.org>
87696
87697         * lib/allocsa.h: New file, from GNU gettext.
87698         * lib/allocsa.c: New file, from GNU gettext.
87699
87700 2004-01-18  Karl Berry  <karl@gnu.org>
87701
87702         * doc/gpl.texi, doc/lgpl.texi: new files.
87703
87704 2004-01-18  Karl Berry  <karl@gnu.org>
87705
87706         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87707         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87708
87709 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87710
87711         Merge from coreutils.
87712
87713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87714         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87715         (gl_DEFAULT_POSIX2_VERSION): Move
87716         the documentation from 'configure' into 'config.hin',
87717         so that 'configure --help' isn't burdened by it and
87718         we don't have to worry about its formatting there.
87719         Reword the documentation so that it's more succinct
87720         and can be run together into a single paragraph.
87721         * m4/same.m4 (gl_SAME): Check for pathconf.
87722
87723 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87724
87725         Merge from coreutils.
87726
87727         * lib/posixver.c: Include posixver.h.
87728
87729         * lib/same.c: Include <stdbool.h>, <limits.h>.
87730         (_POSIX_NAME_MAX): Define if not defined.
87731         (MIN): New macro.
87732         (same_name): If file names are silently truncated, report
87733         that the file names are the same if they are the same after
87734         the silent truncation.
87735
87736         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87737         conversion function.
87738         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87739         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87740         longer needed.
87741
87742 2004-01-15  Jim Meyering  <jim@meyering.net>
87743
87744         Merge from coreutils.
87745
87746         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87747         if no library is required.
87748         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87749         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87750         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87751         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87752         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87753         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87754         value, $ac_cv_search_crypt, if it's "none required".
87755         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87756         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87757         not gl_FUNC_GETLOADAVG.
87758         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87759         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87760
87761 2004-01-15  Jim Meyering  <jim@meyering.net>
87762
87763         Merge from coreutils.
87764
87765         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87766         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87767         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87768
87769         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87770         optional configure-time default.
87771
87772         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87773
87774         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87775
87776 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87777
87778         Merge from coreutils.
87779
87780         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87781         value, $ac_cv_search_nanosleep, if it's "none required".
87782
87783 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87784
87785         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87786         with like-named macro in fnmatch.c.
87787         (EXT): Use an internal constant instead.
87788
87789         Merge fnmatch patches from glibc.
87790         * lib/fnmatch.c (mbsinit): Remove define.
87791         Add libc_hidden_ver (__fnmatch, fnmatch).
87792         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87793         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87794
87795 2004-01-14  Karl Berry  <karl@gnu.org>
87796
87797         * config/install-sh: update from automake.
87798
87799 2004-01-13  Karl Berry  <karl@gnu.org>
87800
87801         * config/install-sh: update from automake.
87802
87803 2004-01-09  Karl Berry  <karl@gnu.org>
87804
87805         * config/install-sh: update from automake.
87806
87807 2004-01-05  Karl Berry  <karl@gnu.org>
87808
87809         * config/config.{sub,guess}: update from config.
87810
87811 2003-12-31  Karl Berry  <karl@gnu.org>
87812
87813         * config/depcomp: update from automake.
87814
87815 2003-12-14  Karl Berry  <karl@gnu.org>
87816
87817         * lib/config.charset: update from gettext-runtime.
87818
87819 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87820
87821         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87822         Bug reported by Alfred M. Szmidt.
87823
87824 2003-12-03  Bruno Haible  <bruno@clisp.org>
87825
87826         * m4/gettext.m4: Upgrade from gettext-0.13.
87827         * m4/po.m4: Upgrade from gettext-0.13.
87828         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87829         * m4/intmax.m4: New file, from gettext-0.13.
87830         * m4/printf-posix.m4: New file, from gettext-0.13.
87831
87832 2003-11-29  Karl Berry  <karl@gnu.org>
87833
87834         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87835
87836 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87837             Bruno Haible  <bruno@clisp.org>
87838
87839         * lib/printf-parse.h: Don't include sys/types.h.
87840         (ARG_NONE): New macro.
87841         (char_directive): Change type of *arg_index fields to size_t.
87842         * lib/printf-parse.c: Don't include sys/types.h.
87843         (SSIZE_MAX): Remove macro.
87844         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87845         Remove unnecessary overflow check.
87846         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87847         fields.
87848
87849 2003-11-25  Bruno Haible  <bruno@clisp.org>
87850
87851         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87852
87853 2003-11-25  Bruno Haible  <bruno@clisp.org>
87854
87855         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87856         gt_TYPE_SSIZE_T.
87857
87858 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87859
87860         * modules/alloca: Remove dependency on xalloc.
87861
87862 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87863
87864         * lib/alloca.c: Remove dependency on xalloc module.
87865         (xalloc_die): Remove.
87866         (memory_full) [!defined emacs]: New macro.
87867         [!defined emacs]: Don't include xalloc.h.
87868         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87869         address arithmetic overflows.  Change datatypes a bit to avoid
87870         unnecessary casts.
87871
87872 2003-11-22  Jim Meyering  <jim@meyering.net>
87873
87874         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87875         s/size/size_t/.
87876
87877 2003-11-21  Karl Berry  <karl@gnu.org>
87878
87879         * config/config.{sub,guess}: update from config.
87880
87881 2003-11-18  Karl Berry  <karl@gnu.org>
87882
87883         * config/config.{sub,guess}: update from config.
87884
87885         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87886
87887 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87888
87889         * README: Mention that S+T cannot overflow if S is the size of
87890         an existing object and T is sufficiently small.
87891
87892 2003-11-17  Jim Meyering  <jim@meyering.net>
87893
87894         On systems without utime and without a utimes function capable of
87895         dealing with a NULL struct utimbuf* argument, this utime replacement
87896         could -- in unusual circumstances -- leak a file descriptor.
87897         * lib/utime.c: Include <unistd.h> and <errno.h>.
87898         (utime_null): Be sure to close `fd' and to preserve errno.
87899         Reported by Geoff Collyer via Arnold Robbins.
87900
87901 2003-11-17  Bruno Haible  <bruno@clisp.org>
87902
87903         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87904         (Depends-on): Add xsize.
87905
87906 2003-11-17  Bruno Haible  <bruno@clisp.org>
87907
87908         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87909
87910 2003-11-17  Bruno Haible  <bruno@clisp.org>
87911
87912         * lib/vasnprintf.c (alloca): Remove fallback definition.
87913         (freea): Remove definition.
87914         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87915         Reported by Paul Eggert.
87916
87917 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87918             Bruno Haible  <bruno@clisp.org>
87919
87920         Protect against address arithmetic overflow.
87921         * lib/printf-args.h: Include stddef.h.
87922         (arguments): Change type of field 'count' to size_t.
87923         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87924         'unsigned int' where appropriate.
87925         * lib/printf-parse.h: Include sys/types.h.
87926         (char_directive): Change type of *arg_index fields to ssize_t.
87927         (char_directives): Change type of fields 'count', max_*_length to
87928         size_t.
87929         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87930         (SSIZE_MAX): Define fallback value.
87931         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87932         instead of 'int' where appropriate. Check a_allocated, d_allocated
87933         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87934         * lib/vasnprintf.c: Include xsize.h.
87935         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87936         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87937         overflow. Avoid wraparound when converting a width or precision from
87938         decimal to binary.
87939
87940 2003-11-16  Bruno Haible  <bruno@clisp.org>
87941
87942         Update from GNU gettext.
87943         * lib/printf-parse.c: Generalize to it can be compiled for wide
87944         strings.
87945         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87946         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87947         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87948         SNPRINTF): New macros.
87949         Don't include <alloca.h> if the file is used inside libintl.
87950         (local_wcslen): New function, for Solaris 2.5.1.
87951         (VASNPRINTF): Use it instead of wcslen.
87952
87953 2003-11-16  Bruno Haible  <bruno@clisp.org>
87954
87955         * lib/xsize.h (xmax): New function.
87956         (xsum, xsum3, xsum4): Declare as "pure" functions.
87957
87958 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87959
87960         * modules/xalloc (Files): Undo latest change, since xalloc.h
87961         no longer needs SIZE_MAX or PTRDIFF_MAX.
87962
87963 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87964
87965         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87966         gl_PTRDIFF_MAX.
87967
87968 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87969
87970         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87971         "return", to pacify some unknown compiler.  Problem reported
87972         by Joerg Schilling.
87973
87974 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87975
87976         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87977         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87978         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87979         heuristic is just as accurate as far as we know, and it removes a
87980         dependency on size_max.m4 and ptrdiff_max.m4.
87981
87982 2003-11-11  Bruno Haible  <bruno@clisp.org>
87983
87984         * modules/xsize (Files): Add m4/size_max.m4.
87985         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87986
87987 2003-11-11  Bruno Haible  <bruno@clisp.org>
87988
87989         * m4/size_max.m4: New file.
87990         * m4/ptrdiff_max.m4: New file.
87991         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87992         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87993         (gl_XALLOC): Invoke it.
87994
87995 2003-11-11  Bruno Haible  <bruno@clisp.org>
87996
87997         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87998         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87999         defined.
88000
88001 2003-11-10  Paul Eggert  <eggert@twinsun.com>
88002
88003         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
88004         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
88005         rejected some allocations of exactly SIZE_MAX - 2 bytes.
88006         From Bruno Haible.
88007         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
88008         not (size_t) -1, since it's defined here.
88009
88010 2003-11-09  Karl Berry  <karl@gnu.org>
88011
88012         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88013
88014 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88015
88016         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88017         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88018         Reject sizes of exactly SIZE_MAX bytes.
88019         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88020         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88021
88022 2003-11-05  Bruno Haible  <bruno@clisp.org>
88023
88024         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88025         SIZE_MAX defined in <limits.h> on Solaris.
88026
88027 2003-11-04  Jim Meyering  <jim@meyering.net>
88028
88029         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88030         variable names, rather than @VAR@.
88031         * modules/poll: Likewise.
88032
88033 2003-11-04  Bruno Haible  <bruno@clisp.org>
88034
88035         * modules/xsize: New file.
88036         * modules/linebreak: Depend on xsize.
88037         * MODULES.html.sh (func_all_modules): Add xsize.
88038
88039 2003-11-04  Bruno Haible  <bruno@clisp.org>
88040
88041         * m4/xsize.m4: New file.
88042
88043 2003-11-04  Bruno Haible  <bruno@clisp.org>
88044
88045         * lib/xsize.h: New file.
88046         * lib/linebreak.c: Include xsize.h.
88047         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88048         argument for overflow.
88049         Suggested by Paul Eggert.
88050
88051 2003-11-03  Karl Berry  <karl@gnu.org>
88052
88053         * config/config.{guess,sub}: update from config.
88054
88055 2003-11-03  Jim Meyering  <jim@meyering.net>
88056
88057         * modules/userspec (lib_SOURCES): Add userspec.h.
88058         (Include): Add "userspec.h".
88059         Improve description.
88060
88061 2003-11-03  Jim Meyering  <jim@meyering.net>
88062
88063         * lib/userspec.c: Include "userspec.h".
88064         * lib/userspec.h: New file.
88065
88066 2003-11-03  Bruno Haible  <bruno@clisp.org>
88067
88068         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88069
88070 2003-11-03  Bruno Haible  <bruno@clisp.org>
88071
88072         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88073         available, to avoid (extremely rare) race condition.
88074         Suggested by Paul Eggert.
88075
88076 2003-11-02  Karl Berry  <karl@gnu.org>
88077
88078         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88079
88080 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88081
88082         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88083         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88084         (read_filesystem_list): Set and use me_type_malloced.
88085         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88086         whatever the type happens to be), for brevity and consistency.
88087         Check for size calculation overflow on Alphas running OSF/1.
88088
88089 2003-10-31  Jim Meyering  <jim@meyering.net>
88090
88091         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88092
88093         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88094
88095 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88096             Bruno Haible  <bruno@clisp.org>
88097
88098         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88099         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88100
88101 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88102
88103         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88104         netbsd*-gnu*.  Suggested by Robert Millan.
88105
88106 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88107
88108         * modules/group-member: Depend on stdbool.
88109
88110 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88111
88112         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88113
88114 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88115
88116         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88117         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88118         after the 'gnu' in these cases.  This fixes some bugs in the
88119         previous change, and is based on suggestions by Robert Millan.
88120
88121 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88122
88123         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88124         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88125         no longer needed.
88126         * lib/quotearg.c (quotearg_n_options): Use it.
88127         * lib/group-member.c: Include <stdbool.h>.
88128         (free_group_info): Arg is now const *; don't free arg.
88129         (get_group_info): Now returns bool and accepts struct group_info *,
88130         rather than returning a malloc'ed struct group_info *.
88131         All uses changed.  Check for overflow in internal size calculation.
88132
88133         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88134         rather than xmalloc/xrealloc.
88135         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88136         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88137         conformance bug: the old code used a pointer after freeing the
88138         storage that it addressed.
88139         * lib/hash.c (hash_initialize): Simplify the code by using
88140         xalloc_oversized rather than doing it by hand.
88141         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88142         the buffer preserved.  Use free and xmalloc instead.
88143         * lib/quotearg.c (quotearg_n_options): Likewise.
88144         Use a simpler test for size overflow.  Don't use xalloc_oversized
88145         because unsigned int might be wider than size_t (!); this suggests
88146         that we should switch from unsigned int to size_t for slot numbers.
88147
88148 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88149
88150         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88151         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88152         NetBSD kernels.  Requested by Richard Stallman.
88153
88154 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88155
88156         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88157         to allocate the returned structure.  Do not allocate a subarray,
88158         as x2nrealloc will do that.
88159         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88160         instead of xnrealloc.
88161         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88162
88163 2003-10-27  Bruno Haible  <bruno@clisp.org>
88164
88165         * lib/stdbool_.h: Better support for BeOS.
88166
88167 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88168
88169         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88170         now uses inline.
88171
88172 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88173
88174         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88175         callers that want to do their own size-overflow checking.  Include
88176         <stdbool.h>, since xalloc_oversized returns bool.
88177         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88178         to use xalloc_oversized.
88179
88180         Add two functions x2realloc, x2nrealloc, for programs that grow
88181         arrays dynamically by doubling their sizes.
88182         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88183         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88184         New functions.
88185
88186         Port to C99 semantics for 'inline' of external functions.
88187         Bug reported by Bruno Haible.
88188         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88189         with the old contents of xnmalloc.
88190         (xnmalloc, xmalloc): Use it.
88191         (xnrealloc_inline): New static inline function,
88192         with the old contents of xnrealloc.
88193         (xnrealloc, xrealloc): Use it.
88194
88195         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88196         that.
88197
88198 2003-10-26  Karl Berry  <karl@gnu.org>
88199
88200         * config/srclist.txt (COPYING.DOC): no longer available from
88201         /gd/gnuorg; don't know where the ultimate source is.
88202
88203 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88204
88205         Fix several address-calculation bugs in the hash modules,
88206         plus some minor code cleanup.
88207
88208         * lib/hash.h: Include <stdbool.h>, for bool.
88209         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88210         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88211         hash_get_n_entries, hash_get_max_bucket_length,
88212         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88213         hash_rehash): Use size_t rather than unsigned.
88214         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88215         hash_get_n_buckets_used, hash_get_n_entries,
88216         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88217         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88218         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88219         Likewise.
88220         (SIZE_MAX): Define if not defined.
88221         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88222         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88223         hash_print):
88224         Use const * when possible.
88225         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88226         (check_tuning): Fix bug: if tuning parameters were very close to
88227         0 or 1, rounding errors could have caused subscript violations.
88228         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88229         (hash_initialize): Add 'fail:' label
88230         to free table and return NULL, and use it to simplify code.
88231         Use calloc rather than clearing the storage ourself.
88232         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88233         buffer size calculations.
88234         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88235         Include <stddef.h>, for size_t.
88236         * lib/hash-pjw.c (hash_pjw): Likewise.
88237         Switch to method described by Bruno Haible.
88238         Include <limits.h>, for CHAR_BIT.
88239         (SIZE_BITS): New macro.
88240
88241 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88242
88243         * m4/getline.m4 (AM_FUNC_GETLINE):
88244         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88245         hosts.  Problem reported by Derek Robert Price in
88246         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88247         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88248         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88249
88250 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88251
88252         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88253         ceiling the allocation at NMAX bytes rather than silently
88254         discarding input bytes before NMAX is reached.  This makes
88255         a difference only if NMAX exceeds SIZE_MAX / 2.
88256
88257         * lib/obstack.c: Merge from glibc.
88258         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88259         Add libc_hidden_def (_obstack_newchunk).
88260         (_obstack_free) [! defined _LIBC]: Remove.
88261         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88262         a clone of the function body.
88263         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88264         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88265
88266         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88267         glibc.
88268         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88269         arg to memcpy.
88270
88271         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88272         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88273         Don't use lvalue casts, as GCC plans to remove support for them
88274         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88275         was also present in the non-GCC version, indicating that this
88276         code had always been buggy and had never been widely used.
88277         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88278         Use the fast variant of each macro, rather than copying the
88279         definiens of the fast variant; that way, we'll be more likely to
88280         catch future bugs in the fast variants.
88281
88282 2003-10-20  Bruno Haible  <bruno@clisp.org>
88283
88284         * modules/wait-process: New file.
88285         * MODULES.html.sh (func_all_modules): Add wait-process.
88286
88287 2003-10-20  Bruno Haible  <bruno@clisp.org>
88288
88289         * m4/wait-process.m4: New file.
88290
88291 2003-10-20  Bruno Haible  <bruno@clisp.org>
88292
88293         * lib/wait-process.h: New file, from GNU gettext.
88294         * lib/wait-process.c: New file, from GNU gettext.
88295
88296 2003-10-19  Jim Meyering  <jim@meyering.net>
88297
88298         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88299         HPUX 10.20.
88300
88301 2003-10-18  Karl Berry  <karl@gnu.org>
88302
88303         * config/config.guess: update from config.
88304
88305 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88306
88307         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88308         (getgroups): First arg is int, not size_t.
88309         Don't let 'free' mangle errno.
88310
88311 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88312
88313         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88314
88315 2003-10-16  Karl Berry  <karl@gnu.org>
88316
88317         * config/config.{guess,sub}: update from config.
88318
88319 2003-10-16  Jim Meyering  <jim@meyering.net>
88320
88321         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88322         memcpy.
88323
88324 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88325
88326         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88327         (SIZE_MAX): Remove.
88328         (new_exclude, add_exclude_file): Initial size no longer needs to
88329         be a power of 2.
88330         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88331         our own address arithmetic overflow checking.
88332
88333         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88334         (fnmatch): Do not alloca more than 2000 wide characters;
88335         instead, use malloc for large buffers.
88336         Check for address arithmetic overflow, and return -1
88337         with errno set to ENOMEM in that case.
88338         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88339         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88340         instead, return -1.  Check for address arithmetic overflow.
88341
88342 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88343
88344         Handle invalid suffixes and overflow independently, so that
88345         callers can treat them independently as needed.  Fix some bugs in
88346         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88347         suffix for a human-readable blocksize.  The major caller-visible
88348         change is the addition of a new
88349         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88350         that both overflow and suffix chars were found.
88351
88352         * lib/human.c (humblock): Don't check separately for invalid suffix
88353         char; that is xstrtoumax's job (now that its bug is fixed).
88354         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88355         INTMAX_MAX]: New macros.
88356         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88357         TYPE_MAXIMUM): New macros.
88358         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88359         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88360         if overflow occurs, as it's what __strtol does and it's more useful
88361         in practice.
88362         (__xstrtol): If __strtol reports some error other than ERANGE,
88363         reflect it to the caller as LONGINT_INVALID.  If it reports
88364         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88365         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88366         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88367         value.
88368         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88369         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88370         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88371         [defined UINTMAX_MAX]: New macros.
88372
88373 2003-10-14  Bruno Haible  <bruno@clisp.org>
88374
88375         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88376
88377 2003-10-14  Bruno Haible  <bruno@clisp.org>
88378
88379         * m4/sig_atomic_t: New file, from GNU gettext.
88380         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88381
88382 2003-10-14  Bruno Haible  <bruno@clisp.org>
88383
88384         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88385         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88386         Also use volatile where needed.
88387
88388 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88389
88390         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88391         Change maintainer from Bruno Haible to 'all'.
88392
88393 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88394
88395         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88396
88397 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88398
88399         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88400         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88401         and define in terms of the other primitives.
88402         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88403         (SIZE_MAX): Define if not already defined.
88404         (array_size_overflow): New function.
88405         (xalloc_die): Abort instead of exiting if 'error' returns.
88406         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88407         (xmalloc, xrealloc): Use them.
88408         (xcalloc): Check for address arithmetic overflow.
88409         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88410         a bit faster than strcpy.
88411
88412 2003-10-10  Simon Josefsson  <jas@extundo.com>
88413
88414         * modules/argp (Depends-on): Add restrict and strcase.
88415
88416 2003-10-10  Simon Josefsson  <jas@extundo.com>
88417
88418         * m4/argp.m4: Add AC_C_INLINE.
88419
88420 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88421
88422         Merge getpass from libc, plus a few fixes.
88423
88424         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88425         Include <stdbool.h>.
88426         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88427         __fsetlocking to empty.
88428         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88429         do include <bits/libc-lock.h>.
88430         Do not include <fcntl.h>; not needed.
88431         [_LIBC]: Include <wchar.h>.
88432         (NOTCANCEL_MODE): New macro.
88433         (flockfile, funlockfile) [_LIBC]: New macros.
88434         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88435         [!_LIBC]: New macros.
88436         (call_fclose): New function.
88437         (getpass): Use it.  Save tty stream separately; this simplifies the
88438         code and makes it more reliable if stdin happens to equal stdout.
88439         Invoke __fsetlocking on tty.
88440         Handle thread cancellation if needed.
88441         Namespace cleanup (use __tcgetattr, __getline).
88442         Use bool for Booleans.
88443         [USE_IN_LIBIO]: Handle wide streams.
88444         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88445         stream might go where.
88446
88447         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88448         doesn't have to include <stdio.h> before us.
88449         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88450         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88451         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88452         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88453         if not declared, so that we can use getpass.c code from libc without
88454         rewriting it.
88455         (flockfile, ftrylockfile, funlockfile): New macros.
88456
88457 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88458
88459         * modules/getpass: Depend on stdbool.
88460
88461 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88462
88463         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88464
88465 2003-10-07  Karl Berry  <karl@gnu.org>
88466
88467         * config/config.{guess,sub}: update from config.
88468
88469 2003-10-06  Jim Meyering  <jim@meyering.net>
88470             Bruno Haible  <bruno@clisp.org>
88471
88472         This lets translators provide better translations for the
88473         "Written by ..." part of --version output.
88474         * lib/version-etc.h: Include stdarg.h.
88475         (version_etc_copyright): Declare as readonly.
88476         (version_etc): Make this function variadic with a NULL-terminated list
88477         of author name strings.
88478         (version_etc_va): New declaration.
88479         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88480         (version_etc_copyright): Declare as readonly.
88481         (version_etc_va): New function. Provide a different translatable string
88482         for each possible number of authors < 10. Abbreviate when there are 10
88483         authors or more.
88484         (version_etc): Make this function variadic. Call version_etc_va.
88485         Suggestion from Gary V. Vaughan.
88486
88487         * lib/long-options.h (parse_long_options): Change prototype: the
88488         authors string is moved to the end and becomes variadic.
88489         * lib/long-options.c: Include stdarg.h.
88490         (parse_long_options): Make this function variadic, too.
88491         Call version_etc_va, not version_etc.
88492
88493 2003-10-06  Bruno Haible  <bruno@clisp.org>
88494
88495         * modules/version-etc-2: Remove file.
88496         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88497
88498 2003-10-06  Bruno Haible  <bruno@clisp.org>
88499
88500         * modules/fatal-signal: New file.
88501         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88502
88503 2003-10-06  Bruno Haible  <bruno@clisp.org>
88504
88505         * m4/fatal-signal.m4: New file.
88506         * m4/signalblocking.m4: New file, from GNU gettext.
88507
88508 2003-10-06  Bruno Haible  <bruno@clisp.org>
88509
88510         * lib/version-etc-2.h: Remove file.
88511         * lib/version-etc-2.c: Remove file.
88512
88513 2003-10-06  Bruno Haible  <bruno@clisp.org>
88514
88515         * lib/fatal-signal.h: New file, from GNU gettext.
88516         * lib/fatal-signal.c: New file, from GNU gettext.
88517
88518 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88519
88520         * README: Rework advice for preventing empty .o files.
88521         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88522         not <sys/types.h>.
88523
88524 2003-10-04  Karl Berry  <karl@gnu.org>
88525
88526         * lib/argp*: update from libc.
88527
88528 2003-10-04  Karl Berry  <karl@gnu.org>
88529
88530         * config/config.{guess,sub}: update from config.
88531
88532 2003-10-02  Bruno Haible  <bruno@clisp.org>
88533
88534         * modules/lchown (Include): Add lchown.h.
88535         * modules/time_r (Include): Use "..." syntax.
88536         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88537
88538 2003-10-01  Simon Josefsson  <jas@extundo.com>
88539
88540         * MODULES.html.sh (func_all_modules): Move gethostname from section
88541         'based on' to section 'lacking' POSIX:2001.
88542
88543 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88544
88545         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88546         to output mode on the same stream.
88547
88548 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88549
88550         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88551         Fix arg typo in previous patch.
88552
88553 2003-09-28  Jim Meyering  <jim@meyering.net>
88554
88555         * lib/error.c: Correct cpp indentation.
88556
88557 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88558
88559         * modules/free: New file.
88560
88561 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88562
88563         * m4/free.m4: New file.
88564
88565 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88566
88567         * lib/minmax.h (MIN, MAX)
88568         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88569         Omit the special code that used __typeof__, since we worry that
88570         it could be more trouble than it's worth.  See:
88571         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88572         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88573
88574         * lib/free.c: New file.
88575
88576 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88577
88578         Trivial fixes to Makefile.am parts of module listings.
88579         * modules/strstr: Append strstr.h to lib_SOURCES.
88580         * modules/strcase: Likewise, for strcase.h.
88581
88582 2003-09-27  Karl Berry  <karl@gnu.org>
88583
88584         * config/mkinstalldirs: update from automake.
88585
88586 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88587
88588         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88589         (error_tail): Do not loop, reallocating temporary buffer, since
88590         the output cannot contain more wide characters than the input
88591         contains bytes, the size must be big enough already.  This avoids
88592         one potential size overflow calculation.  Check for size overflow
88593         when calculating temporary buffer size.  Free temporary buffer
88594         when done, if it was allocated with malloc; this plugs a memory
88595         leak.  Remove casts from void * to pointers, that are no longer
88596         needed now that we're assuming C89 or better.
88597
88598         Merge error changes from glibc.
88599
88600         * lib/error.c, error.h: Update copyright notice header to match glibc.
88601         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88602         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88603         Disable cancellation while printing error.
88604         * lib/error.h: Prepend __ to parameter names.
88605
88606 2003-09-26  Jim Meyering  <jim@meyering.net>
88607
88608         * lib/error.c (error_tail): Move some declarations
88609         into inner scope where the local variables are used.
88610
88611 2003-09-26  Bruno Haible  <bruno@clisp.org>
88612
88613         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88614         stpncpy().
88615         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88616
88617 2003-09-26  Bruno Haible  <bruno@clisp.org>
88618
88619         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88620         (stpncpy): Define as alias for gnu_stpncpy.
88621         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88622
88623 2003-09-25  Simon Josefsson  <jas@extundo.com>
88624
88625         * lib/xgetdomainname.h: New file.
88626         * lib/xgetdomainname.c: New file.
88627
88628 2003-09-25  Simon Josefsson  <jas@extundo.com>
88629             Bruno Haible  <bruno@clisp.org>
88630
88631         * modules/getdomainname: New file.
88632         * modules/xgetdomainname: New file.
88633         * MODULES.html.sh (func_all_modules): Add getdomainname,
88634         xgetdomainname.
88635
88636 2003-09-25  Simon Josefsson  <jas@extundo.com>
88637             Bruno Haible  <bruno@clisp.org>
88638
88639         * m4/getdomainname.m4: New file.
88640
88641 2003-09-25  Simon Josefsson  <jas@extundo.com>
88642             Bruno Haible  <bruno@clisp.org>
88643
88644         * lib/getdomainname.h: New file.
88645         * lib/getdomainname.c: New file.
88646
88647 2003-09-25  Karl Berry  <karl@gnu.org>
88648
88649         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88650
88651 2003-09-25  Karl Berry  <karl@gnu.org>
88652
88653         * config/install-sh: update from automake.
88654
88655 2003-09-25  Bruno Haible  <bruno@clisp.org>
88656
88657         * modules/version-etc-2: New file, from modules/version-etc with
88658         modifications.
88659         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88660
88661 2003-09-25  Bruno Haible  <bruno@clisp.org>
88662
88663         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88664         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88665
88666 2003-09-24  Simon Josefsson  <jas@extundo.com>
88667
88668         * modules/xgethostname: Add xgethostname.h.
88669
88670 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88671
88672         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88673         the buffer associated with the argument.  Bug reported by
88674         Simon Josefsson.
88675
88676 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88677
88678         * README: Document assumptions that 'int' is at least 32 bits
88679         wide, that integer arithmetic is 2's complement without overflow,
88680         that there are no holes in integer values, that adding sizes of
88681         two nonoverlapping objects can't overflow, and that all-bits-zero
88682         yields scalar zero.  Fix spelling and capitalization typos.
88683
88684 2003-09-19  Karl Berry  <karl@gnu.org>
88685
88686         * lib/argp.h: update from libc.
88687
88688 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88689
88690         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88691         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88692         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88693
88694 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88695
88696         * gnulib-tool: Use "test -h", not "test -L", for portability
88697         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88698         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88699         (sed_extract_prog): Issue s commands one-by-one, rather than
88700         using \| in one s command.
88701
88702 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88703
88704         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88705         input error, instead of returning NULL the next time we are called
88706         (and therefore losing track of errno).
88707
88708 2003-09-16  Bruno Haible  <bruno@clisp.org>
88709
88710         * gnulib-tool (func_create_testdir): Warn about duplicated
88711         dependencies.
88712
88713 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88714
88715         * modules/argmatch, modules/fatal, modules/obstack,
88716         modules/xalloc, modules/xgethostname: Sort dependencies by
88717         importance, not alphabetically.
88718
88719 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88720
88721         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88722         fails, so that the caller gets the proper errno.
88723
88724         * lib/readutmp.c (read_utmp): Likewise.
88725         Check for fstat error.  Close stream and free storage
88726         when failing.
88727
88728 2003-09-14  Karl Berry  <karl@gnu.org>
88729
88730         * config/srclist.txt (strdup.c): disable for c89 changes.
88731
88732 2003-09-14  Jim Meyering  <jim@meyering.net>
88733
88734         * lib/getloadavg.c: Correct cpp indentation.
88735         * lib/strdup.c: Likewise.
88736         * lib/vasnprintf.c: Likewise.
88737
88738 2003-09-14  Bruno Haible  <bruno@clisp.org>
88739
88740         * modules/fwriteerror: New file.
88741         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88742
88743 2003-09-14  Bruno Haible  <bruno@clisp.org>
88744
88745         * lib/fwriteerror.h: New file.
88746         * lib/fwriteerror.c: New file.
88747
88748 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88749
88750         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88751         modules/xgethostname, modules/xalloc: Depend on exit.
88752
88753 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88754
88755         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88756
88757         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88758         and AC_MINIX, too, so that their extensions are available.
88759
88760         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88761         This macro has been superseded by gl_BACKUPFILE.
88762
88763         More patches to assume C89 or better.
88764
88765         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88766
88767         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88768         unconditionally.
88769         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88770         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88771         Include <string.h>, <stdlib.h> unconditionally.
88772         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88773         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88774         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88775         headers or for string.h.
88776         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88777         or strtoul.
88778
88779         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88780         headers.
88781         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88782         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88783         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88784         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88785         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88786         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88787         memcpy, memset.
88788         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88789         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88790         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88791         strtol.
88792         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88793         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88794         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88795         strtoul.
88796
88797 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88798
88799         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88800         * lib/obstack.c [!defined _LIBC]: Likewise.
88801         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88802         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88803         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88804
88805         More changes to assume C89 or better.
88806
88807         * lib/error.c (error_tail): Assume vprintf.
88808
88809         * lib/argmatch.c (getenv): Remove decl.
88810         * lib/progreloc.c (get_full_program_name): Define via prototype.
88811         * lib/setenv.c (clearenv): Likewise.
88812         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88813         needed.
88814         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88815         (malloc, memcpy): Remove decls.
88816         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88817         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88818         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88819         (memcpy): Remove macro.
88820         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88821         (__P): Remove.  All uses removed.
88822         (PTR): Remove.  All uses changed to void *.
88823         (CHAR_BIT, NULL): Remove.
88824         (spaces, zeros, memset_space, memset_zero)
88825         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88826         Remove.
88827         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88828         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88829         Define with prototype.
88830         Remove now-unnecessary prototype decl.
88831         (extra_args_spec): Assume ANSI C.  All uses changed.
88832         (extra_args_spec_iso): Remove.
88833         (my_strftime, emacs_strftimeu): Define via prototype.
88834         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88835         unconditionally.
88836         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88837         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88838         (strtoul, strtol): Remove decls.
88839         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88840         LONG_MAX): Remove.
88841         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88842         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88843         (LOCALE_PARAM_PROTO): New macro.
88844         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88845         (INTERNAL (strtol), strtol): Define with a prototype.
88846         (PARAMS): Remove.  All uses removed.
88847         * lib/tempname.c: Include <string.h> unconditionally.
88848         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88849         * lib/xgethostname.c (main): Define with a prototype.
88850         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88851         Include <stdlib.h> unconditionally.
88852         (calloc, malloc, realloc, free): Remove decls.
88853         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88854         Include <stdlib.h> unconditionally.  Sort include file names.
88855         (strtod): Remove.
88856         (xstrtod): Define with a prototype.
88857         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88858         (strtol, strtoul): Remove decls.
88859
88860 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88861
88862         More patches to assume C89 or better.
88863         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88864         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88865         string.h, memchr, STDC_HEADERS.
88866
88867 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88868
88869         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88870         Include <stdlib.h>, <string.h> unconditionally.
88871         Remove now-unnecessary cast to char *.
88872         * lib/strnlen.c: Include <string.h> unconditionally.
88873         * lib/yesno.c (yesno): Define with a prototype.
88874
88875 2003-09-11  Bruno Haible  <bruno@clisp.org>
88876
88877         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88878
88879 2003-09-10  Jim Meyering  <jim@meyering.net>
88880
88881         * lib/error.c: Correct indentation of cpp directives.
88882
88883 2003-09-10  Bruno Haible  <bruno@clisp.org>
88884
88885         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88886         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88887         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88888         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88889         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88890         <stdlib.h> and <string.h> checks.
88891         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88892         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88893
88894 2003-09-10  Bruno Haible  <bruno@clisp.org>
88895
88896         * lib/strcspn.c: Include <string.h> unconditionally.
88897         * lib/strpbrk.c: Include <string.h> unconditionally.
88898         * lib/strstr.c: Include <string.h> unconditionally.
88899         * lib/unicodeio.c: Include <string.h> unconditionally.
88900         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88901         * lib/unsetenv.c: Likewise.
88902         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88903         * lib/yesno.c: Include <stdlib.h> unconditionally.
88904         (rpmatch): Add prototype.
88905
88906 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88907
88908         More patches to assume C89 or better.
88909         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88910         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88911         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88912         or for string.h.
88913         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88914         stdlib.h.
88915         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88916         C headers.
88917         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88918         string.h.
88919         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88920         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88921         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88922         or for string.h.
88923         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88924         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88925         C headers.
88926         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88927         memcpy.
88928         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88929         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88930         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88931         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88932         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88933         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88934         string.h, free.
88935         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88936         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88937         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88938         C headers, or for string.h.
88939         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88940         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88941         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88942         headers, memory.h, stdlib.h, string.h, strings.h.
88943         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88944         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88945         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88946         strchr.
88947         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88948         headers, memory.h, string.h.
88949         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88950         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88951         free.
88952         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88953         headers.
88954         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88955         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88956         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88957         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88958         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88959
88960 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88961
88962         More K&R removal.
88963
88964         * lib/acosl.c (main): Use a prototype.
88965         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88966         tanl.c: Likewise.
88967
88968         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88969
88970         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88971         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88972         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88973         with a prototype.
88974         * lib/getopt.c (const): Remove macro.
88975         Include <string.h> unconditionally.
88976         (my_index): Remove; all uses changed to strchr.
88977         (strlen): Remove decl.
88978         (exchange): Remove forward decl; no longer needed.
88979         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88980         Define with prototype.
88981         * lib/getopt1.c (const): Remove macro.
88982         (getopt_long, getopt_long_only, main): Define with prototype.
88983
88984         * lib/getugroups.c: Include <string.h> unconditionally.
88985
88986         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88987         (getusershell, setusershell, endusershell, readname, main):
88988         Define with prototypes.
88989
88990         * lib/group-member.c: Include group-member.h first.
88991         Include <stdlib.h> unconditionally.
88992
88993         * lib/hard-locale.c: Include hard-locale.h first.
88994         Include <stdlib.h>, <string.h> unconditionally.
88995
88996         * lib/hash.c (free, malloc): Remove decls.
88997         Include <stdlib.h> unconditionally.
88998
88999         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
89000         (getenv): Do not declare.
89001
89002         * lib/idcache.c: Include <string.h> unconditionally.
89003
89004         * lib/long-options.c: Include long-options.h first, to test interface.
89005         Include <stdlib.h> unconditionally.
89006
89007         * lib/makepath.c: Include makepath.h first, to test interface.
89008         Include <stdlib.h> and <string.h> unconditionally.
89009
89010         * lib/linebuffer.c: Include <stdlib.h>.
89011         (free): Remove decl.
89012
89013         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89014         stddef.h. rpl_malloc returns void *, not char *.
89015         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89016         prototype.
89017
89018         * lib/md5.h: Include <limits.h> unconditionally.
89019         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89020         (__P): Remove; all uses removed.
89021         * lib/md5.c: Include "md5.h" first.
89022         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89023         md5_buffer, md5_process_bytes, md5_process_block):
89024         Define with prototypes.
89025         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89026         * lib/sha.c: Include "sha.h" first.
89027         Include <stdlib.h>, <string.h> unconditionally.
89028
89029         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89030         * lib/memcmp.c (__ptr_t): Likewise.
89031         * lib/memrchr.c (__ptr_t): Likewise.
89032         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89033         Include <string.h> unconditionally.
89034         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89035         * lib/memchr.c: Include <stdlib.h> unconditionally.
89036         * lib/memchr.c (LONG_MAX): Remove.
89037         * lib/memrchr.c (LONG_MAX): Likewise.
89038         * lib/memchr.c (__memchr): Define via a prototype.
89039         * lib/memrchr.c (__memrchr): Likewise.
89040         * lib/memcmp.c (__P): Remove, and remove all uses.
89041         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89042         Remove forward decls; no longer needed.
89043         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89044         Use types required by C89 in prototype.
89045
89046         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89047         * lib/savedir.c: Likewise.
89048         * lib/mkdir.c (free): Remove decl.
89049         * lib/rmdir.c (rmdir): Define with a prototype.
89050         * lib/savedir.c: Include savedir.h first, to test interface.
89051
89052         * lib/mktime.c (STDC_HEADERS): Remove.
89053         Include <stdlib.h>, <string.h> unconditionally.
89054
89055         * lib/modechange.c: Include <stdlib.h> unconditionally.
89056         (malloc): Remove decl.
89057
89058         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89059         (free): Remove decl.
89060
89061         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89062         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89063         (This type really should be intptr_t, but that's a C99ism.)
89064         (_obstack_memcpy): Remove: all uses changed to memcpy.
89065         Include <string.h> unconditionally.
89066         (struct obstack): Assume __STDC__ for types of members
89067         chunkfun, freefun, extra_arg.
89068         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89069         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89070         obstack_begin, obstack_specify_allocation,
89071         obstack_specify_allocation_with_arg, obstack_chunkfun,
89072         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89073         Remove unprototyped decls and the macros that use them.
89074         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89075         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89076         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89077         (defined __STDC__ && __STDC__)]:
89078         Remove nonprototyped code.
89079         Include <stdlib.h> unconditionally.
89080         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89081         _obstack_allocated_p, _obstack_free, obstack_free,
89082         _obstack_memory_used, print_and_abort):
89083         Define using prototypes.
89084         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89085         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89086         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89087         obstack_next_free, obstack_object_size, obstack_room) [0]:
89088         Remove unused, unprototyped code.
89089
89090         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89091
89092         * lib/physmem.c (physmem_total, physmem_available, main): Define
89093         with prototypes.
89094
89095         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89096         (main): Define with a prototype.
89097
89098         * lib/posixver.c (getenv): Remove decl.
89099
89100         * lib/putenv.c (malloc): Returns void *, not char *.
89101         Include <string.h> unconditionally.
89102         (strchr, memcpy, NULL): Do not define.
89103
89104         * lib/readtokens.c: Include readtokens.h first, to test interface.
89105         Include <stdlib.h>, <string.h> unconditionally.
89106         (init_tokenbuffer): Define with a prototype.
89107
89108         * lib/regex.c (PARAMS): Remove.  All uses removed.
89109         All uses of _RE_ARGS removed, too.
89110         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89111         unconditionally.
89112         (bzero): Assume memset exists.
89113         (memcmp, memcpy, NULL): Remove.
89114         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89115         char, or assignments to local vars of type signed char.
89116         (init_syntax_once, PREFIX(extract_number_and_incr),
89117         PREFIX(print_partial_compiled_pattern),
89118         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89119         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89120         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89121         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89122         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89123         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89124         wcs_compile_range, byte_compile_range, truncate_wchar,
89125         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89126         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89127         count_mbs_length, wcs_re_match_2_internal,
89128         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89129         PREFIX(alt_match_null_string_p),
89130         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89131         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89132         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89133         now-unnecessary declaration, if any.
89134         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89135         regcomp, regexec):
89136         Remove now-unnecessary casts among pointer types.
89137         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89138
89139         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89140         (free): Remove decl.
89141
89142         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89143
89144         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89145         (free): Remove decl.
89146
89147         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89148         * lib/xgetcwd.c: Likewise.
89149
89150         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89151         (free): Remove decl.
89152
89153         * lib/strchrnul.c (strchrnul): Define with a prototype.
89154         Fix bug: c_in was not converted to char before searching.
89155
89156         The following changes are not K&R related:
89157
89158         * lib/group-member.h: Include <sys/types.h>, so that this file is
89159         self-contained.
89160         * lib/makepath.h: Likewise.
89161
89162         * lib/getusershell.c (readname, default_index, line_size, readname):
89163         Use size_t, not int, for sizes.
89164         (readname): If the size overflows, report an error instead of
89165         looping forever.
89166
89167 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89168
89169         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89170         libc.
89171
89172 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89173
89174         * README: New section: portability guidelines.
89175
89176 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89177
89178         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89179         C89 spec.
89180
89181 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89182
89183         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89184
89185 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89186
89187         Assume C89 or better; remove K&R cruft.
89188         A few of these changes were first proposed by Derek Robert Price
89189         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89190
89191         * lib/addext.c: Include <string.h> unconditionally.
89192         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89193         Don't declare getenv or malloc.
89194
89195         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89196         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89197         (NULL): Remove.
89198         (find_stack_direction, alloca): Use prototypes.
89199
89200         * lib/atexit.c (atexit): Define using a prototype.
89201
89202         * lib/basename.c, dirname.c, stripslash.c:
89203         Include <string.h> unconditionally.
89204
89205         * lib/bcopy.c: Include <stddef.h>.
89206         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89207
89208         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89209
89210         * lib/error.h (error, error_at_line, error_print_progname)
89211         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89212         * lib/error.c: Include error.h first, to check interface.
89213         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89214         (VA_START): Remove; all uses changeed to va_start.
89215         (exit, strerror): Remove decls.
89216         (error_print_progname): Prototype uncondionally.
89217         Don't include <errno.h>; no longer needed.
89218         (private_strerror): Remove.
89219         (error_tail): Always define.
89220         (error, error_at_line): Assume C89 or better; always use prototypes.
89221         * lib/fatal.c: Include "fatal.h" first, to test interface.
89222         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89223         (VA_START): Remove; all uses changed to va_start.
89224         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89225         this case.
89226         (exit): Remove decl.
89227         (fatal): Prototype unconditionally.  Assume va_start works.
89228         Abort at end, to pacify gcc.
89229
89230         * lib/euidaccess.c (main): Define with a prototype.
89231
89232         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89233
89234         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89235
89236         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89237         prototypes.
89238         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89239         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89240         (getenv): Remove decl.
89241         (fnmatch): Define using a prototype.
89242         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89243         (FCT): Define using a prototype.
89244
89245         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89246
89247         * lib/gethostname.c: Include <stddef.h>.
89248         (gethostname): Define with prototype.  Length is size_t, not int.
89249
89250 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89251
89252         Assume C89 or better; remove K&R cruft.
89253         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89254         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89255         string.h, getenv, malloc.
89256         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89257         headers.
89258         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89259         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89260         do not check for strerror.
89261         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89262         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89263         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89264         do not check for doprnt or vprintf.
89265         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89266         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89267
89268 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89269
89270         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89271         getversion.c should have been removed then, but was accidentally
89272         preserved.
89273
89274         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89275         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89276
89277 2003-09-08  Karl Berry  <karl@gnu.org>
89278
89279         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89280                 config, forget about prep.
89281
89282         * config/depcomp, missing: update from automake.
89283
89284 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89285
89286         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89287         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89288
89289 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89290
89291         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89292         copy_tm_result.  Bug reported by Simon Josefsson in
89293         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89294
89295 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89296
89297         * m4/time_r.m4: New file.
89298         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89299         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89300         is. Check for timegm declaration.
89301         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89302         Do not check for gmtime_r.
89303         Replace mktime if __mktime_internal does not exist and if mktime
89304         hasn't been replaced already.
89305
89306 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89307
89308         * lib/time_r.c, lib/time_r.h: New files.
89309
89310         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89311         __localtime_r.
89312         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89313         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89314
89315         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89316         __gmtime_r.
89317         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89318         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89319         Include <time_r.h>.
89320
89321         * lib/timegm.c: Switch to glibc implementation, with the following
89322         changes:
89323         [defined HAVE_CONFIG_H]: Include <config.h>.
89324         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89325         (__mktime_internal) [!defined _LIBC]: New decl.
89326         (__gmtime_r) [!defined _LIBC]: New macro and function.
89327         (timegm): Use a prototype, since gnulib assumes C89.
89328         Do not bother declaring tmp to be const, as it's not really usefu.
89329         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89330         (timegm): Declare only if HAVE_DECL_TIMEGM.
89331
89332 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89333
89334         * MODULES.html.sh (func_all_modules): Add time_r.
89335         * modules/time_r: New file.
89336         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89337         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89338
89339 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89340
89341         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89342         Bug reported by Lute Kamstra in
89343         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89344
89345         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89346         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89347         course with correspondingly smaller numbers for tomorrow and
89348         yesterday.  From Tadayoshi Funaba.  Originally installed into
89349         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89350         coreutils merge?).
89351
89352 2003-08-31  Simon Josefsson  <jas@extundo.com>
89353
89354         * modules/timegm: New file.
89355         * MODULES.html.sh (func_all_modules): Add timegm.
89356
89357 2003-08-31  Simon Josefsson  <jas@extundo.com>
89358
89359         * m4/timegm.m4: New file.
89360
89361 2003-08-31  Simon Josefsson  <jas@extundo.com>
89362
89363         * lib/timegm.h: New file.
89364         * lib/timegm.c: New file.  Based on
89365         wget-1.8.2/src/http.c:mktime_from_utc.
89366
89367 2003-08-31  Karl Berry  <karl@gnu.org>
89368
89369         * lib/argp.h: update from libc.
89370
89371 2003-08-28  Bruno Haible  <bruno@clisp.org>
89372
89373         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89374         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89375         followed by '#define fnmatch fnmatch_posix' gives an error.
89376
89377 2003-08-28  Bruno Haible  <bruno@clisp.org>
89378
89379         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89380         warning on QNX, which defines O_BINARY to 000000.
89381
89382 2003-08-27  Jim Meyering  <jim@meyering.net>
89383
89384         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89385         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89386         would fail after 32.  Reported by Danny Levinson.  Details here:
89387         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89388
89389 2003-08-24  Bruno Haible  <bruno@clisp.org>
89390
89391         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89392         MSVC7 <stdio.h> is included later.
89393
89394 2003-08-22  Simon Josefsson  <jas@extundo.com>
89395
89396         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89397
89398 2003-08-20  Karl Berry  <karl@gnu.org>
89399
89400         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89401
89402 2003-08-20  Bruno Haible  <bruno@clisp.org>
89403
89404         * modules/progname: New file.
89405         * MODULES.html.sh (func_all_modules): Add progname.
89406
89407 2003-08-20  Bruno Haible  <bruno@clisp.org>
89408
89409         * lib/progname.h: New file, from GNU gettext.
89410         * lib/progname.c: New file, from GNU gettext.
89411         * lib/progreloc.c: New file, from GNU gettext.
89412
89413 2003-08-19  Jim Meyering  <jim@meyering.net>
89414
89415         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89416         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89417
89418 2003-08-19  Bruno Haible  <bruno@clisp.org>
89419
89420         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89421         more.
89422
89423 2003-08-19  Bruno Haible  <bruno@clisp.org>
89424
89425         * lib/xstrdup.c: Assume <string.h> exists.
89426
89427 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89428
89429         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89430         in makefile rules.
89431
89432 2003-08-18  Jim Meyering  <jim@meyering.net>
89433
89434         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89435         * m4/lib-ld.m4: Likewise.
89436
89437 2003-08-18  Jim Meyering  <jim@meyering.net>
89438
89439         * lib/setenv.h: Indent nested cpp directive.
89440         * lib/vasnprintf.c: Remove trailing blanks.
89441
89442 2003-08-17  Simon Josefsson  <jas@extundo.com>
89443
89444         * modules/xstrndup: New file.
89445         * MODULES.html.sh (func_all_modules): Add xstrndup.
89446
89447 2003-08-17  Simon Josefsson  <jas@extundo.com>
89448
89449         * modules/argp: Fix autoconf macro name. Add more dependencies.
89450
89451 2003-08-17  Simon Josefsson  <jas@extundo.com>
89452
89453         * m4/xstrndup.m4: New file.
89454
89455 2003-08-17  Simon Josefsson  <jas@extundo.com>
89456
89457         * m4/argp.m4: New file.
89458
89459 2003-08-17  Simon Josefsson  <jas@extundo.com>
89460             Bruno Haible  <bruno@clisp.org>
89461
89462         * lib/xstrndup.h: New file.
89463         * lib/xstrndup.c: New file.
89464
89465 2003-08-17  Bruno Haible  <bruno@clisp.org>
89466
89467         * modules/strndup (Files, Include): Add lib/strndup.h.
89468
89469 2003-08-17  Bruno Haible  <bruno@clisp.org>
89470
89471         * modules/euidaccess (Files): Add lib/euidaccess.h.
89472
89473 2003-08-17  Bruno Haible  <bruno@clisp.org>
89474
89475         * lib/strndup.h: New file.
89476
89477 2003-08-17  Bruno Haible  <bruno@clisp.org>
89478
89479         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89480         like AC_GNU_SOURCE.
89481         * modules/extensions (configure.ac): Comment out the invocation of
89482         gl_USE_SYSTEM_EXTENSIONS.
89483
89484 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89485
89486         Merges from coreutils, etc.
89487         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89488         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89489         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89490         fixing a typo.
89491         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89492         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89493
89494 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89495
89496         Document merge from coreutils.
89497         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89498         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89499         * modules/utime: Add m4/utimes-null.m4.
89500
89501 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89502
89503         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89504         space, undoing this 2003-08-12 change:
89505         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89506
89507 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89508
89509         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89510         strtoul.c from libc, undoing this 2003-08-12 change:
89511         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89512
89513 2003-08-16  Jim Meyering  <jim@meyering.net>
89514
89515         Merges from coreutils.
89516         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89517         prefix.  Adjust cache variables similarly.  Create 500 rather than
89518         just 300 files, to exercise bug on Darwin6.5, too.
89519         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89520         $missing_dir.
89521         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89522         AM_SYS_POSIX_TERMIOS.
89523         Reported by mkc@mathdogs.com.
89524         Also change use of $am_cv_sys_posix_termios
89525         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89526         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89527         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89528         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89529         in /proc/mounts until it finds one with matching device number.  This
89530         is unnecessary when the FILE argument *is* a mount point.  No stat call
89531         is necessary in that case.  So, disable the statvfs-testing code on
89532         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89533         as RedHat bug# 84846.
89534         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89535         to 1MB, so as not to render systems with no stack size limit (e.g.,
89536         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89537         Include <unistd.h>.  On some systems,
89538         it is required for the definition of _SC_PAGESIZE.
89539
89540 2003-08-16  Jim Meyering  <jim@meyering.net>
89541
89542         Merge from coreutils.
89543         * lib/xstrtoimax.c: #else #if -> #elif.
89544         * lib/xstrtoumax.c: Likewise.
89545
89546 2003-08-16  Jim Meyering  <jim@meyering.net>
89547
89548         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89549         * m4/utimes.m4: Removed.
89550         * m4/utimes-null.m4: Renamed from utimes.m4.
89551
89552         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89553         to 1MB, so as not to render systems with no stack size limit (e.g.,
89554         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89555         Include <unistd.h>.  On some systems,
89556         it is required for the definition of _SC_PAGESIZE.
89557
89558 2003-08-16  Jim Meyering  <jim@meyering.net>
89559         and Paul Eggert  <eggert@cs.ucla.edu>
89560
89561         Merges from coreutils, etc.
89562
89563         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89564         using the latest version from cvs.  This avoids problems with #line
89565         directives using a vendor (Sun) compiler.
89566         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89567         Don't set GETGROUPS_LIB here; now it's
89568         done via getgroups.m4's wrapper function.
89569         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89570         rather than just in sh-util/configure.in, so that the
89571         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89572         same.
89573         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89574         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89575         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89576         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89577         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89578         Remove code that is now done by the newly-required macros.
89579         Append $(EXEEXT) to DF_PROG.
89580         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89581         Do not invoke or require the following here,
89582         since prereq.m4 or some gnulib .m4 now does this for us:
89583         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89584         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89585         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89586         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89587         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89588         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89589         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89590         AC_FUNC_OBSTACK.
89591         Do not replace the following functions, as this is now the job
89592         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89593         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89594         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89595         atexit getpass, strdup, getpagesize.
89596         Replace 'raise'.
89597         Do not check for the following functions, as this is now the job
89598         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89599         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89600         setregid.
89601         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89602         Check for sys/sysctl.h.
89603         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89604         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89605         of checking for ssize_t ourselves.
89606
89607         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89608         Require every macro that gnulib/modules/* suggests for us.
89609         (jm_PREREQ_ADDEXT): New macro.
89610         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89611         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89612
89613         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89614         (gl_PHYSMEM): Use it.
89615         Also check for `table' function.
89616         Check for new headers and functions.
89617         Add check for sys/sysmp.h.
89618         With suggestions from Kaveh Ghazi.
89619         Ignore headers that are present but cannot be compiled.  This
89620         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89621         C 5.4.
89622
89623 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89624
89625         Document merge from coreutils.
89626         * modules/userspec: Depend on posixver.
89627         * modules/strftime: Depend on tzset.
89628
89629 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89630
89631         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89632         rather than tab, after '#' in shell-script copyright notices.
89633         Suggested by Bruno Haible.
89634
89635 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89636
89637         * config/srclist-update: Use three spaces, rather than tab, after '#'
89638         in shell-script copyright notices.  Suggested by Bruno Haible.
89639         Remove unnecessary parenthesization in regular expression.
89640
89641 2003-08-15  Jim Meyering  <jim@meyering.net>
89642
89643         Merge from coreutils.
89644         * lib/xgethostname.c: Include <stdlib.h>.
89645         (xghostname): Don't exit for anything other than memory-related
89646         failure; just return NULL.
89647         * lib/userspec.c: Include "posixver.h".
89648         (parse_user_spec): Accept `.' as a separator only
89649         in pre-POSIX-200112 mode.
89650         * lib/strtoimax.c: Use #elif rather than #else #if.
89651         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89652         Remove function, now that we can rely on a working tzset function.
89653         [!_LIBC]: Ensure that the required autoconf test has been run.
89654         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89655         Use underlying_strftime for %r.
89656         * lib/sha.c: Merge in some clean-up and optimization changes from
89657         glibc.
89658         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89659         Ensure that it is a multiple of 64.
89660         Rearrange loop exit tests so as to avoid performing an
89661         additional fread after encountering an error or EOF.
89662         * lib/realloc.c: Update copyright date.
89663
89664 2003-08-15  Jim Meyering  <jim@meyering.net>
89665         and Paul Eggert  <eggert@twinsun.com>
89666
89667         Merge from coreutils.
89668         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89669         member but strut utmpx does not.  Needed for AIX 4.3.3.
89670         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89671
89672 2003-08-15  Jim Meyering  <jim@meyering.net>
89673         and Paul Eggert  <eggert@cs.ucla.edu>
89674
89675         Merges from coreutils, etc.
89676         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89677         Require gl_FUNC_TZSET_CLOBBER.
89678         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89679         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89680         members.
89681
89682 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89683
89684         Help the merge from coreutils.
89685         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89686         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89687         * m4/tzset.m4: Use it too.
89688
89689 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89690
89691         * modules/tzset: New file.
89692
89693 2003-08-14  Jim Meyering  <jim@meyering.net>
89694
89695         Merges from coreutils.
89696         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89697         variable names, rather than @FNMATCH_H@.
89698         * modules/alloca: Likewise for $(ALLOCA_H).
89699
89700         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89701         the three copies of the literal target, `fnmatch.h'.
89702         * modules/alloca (alloca.h): Likewise.
89703
89704 2003-08-14  Jim Meyering  <jim@meyering.net>
89705
89706         Merge from coreutils.
89707         * m4/tzset.m4: New file.
89708         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89709         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89710         otherwise, AIX 5.1 systems would end up using the latter.
89711         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89712         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89713         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89714         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89715
89716 2003-08-14  Jim Meyering  <jim@meyering.net>
89717
89718         Merge from coreutils.
89719         * lib/obstack.h: Whitespace changes.
89720         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89721         and xcalloc return values.
89722         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89723         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89724         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89725         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89726         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89727         error from mntctl.
89728         Use mntctl's return value to drive the entry-processing loop, since
89729         we can't rely on the value of the vmt_length member in the last
89730         entry.  On some systems doing so could result in exhausting
89731         virtual memory.  Based in part on a patch from Mike Jetzer.
89732
89733 2003-08-14  Jim Meyering  <jim@meyering.net>
89734         and Paul Eggert  <eggert@twinsun.com>
89735
89736         Merges from coreutils, plus other fixes.
89737         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89738         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89739         for credits and details.  Thanks to Kaveh Ghazi for helping
89740         to keep these files in sync.
89741         (ARRAY_SIZE): Define it.
89742         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89743         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89744         (memcasecmp): Don't assume size_t fits in unsigned int.
89745         Remove casts and duplicate code.
89746         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89747         (memcpy): Remove definition.
89748         Merge in some clean-up and optimization changes from glibc.
89749         [BLOCKSIZE]: Move definition to top of file.
89750         Ensure that it is a multiple of 64.
89751         Rearrange loop exit tests so as to avoid performing an
89752         additional fread after encountering an error or EOF.
89753         * lib/md5.h (md5_uintptr): Define.
89754         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89755         return to the initial working directory.  Preserve errno
89756         for caller.
89757         * lib/idcache.c: Include "xalloc.h".
89758         (xmalloc, xrealloc): Remove decls.
89759         (getuser): Remove casts no longer required in C89.
89760         * lib/human.c: Include stdio.h, for sprintf.
89761         * lib/group-member.c: Include "xalloc.h".
89762         (xmalloc, xrealloc): Remove decls.
89763         (get_group_info): Remove casts no longer required in C89.
89764         * lib/getusershell.c (readname): Remove casts no longer required in
89765         C89.
89766         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89767         * lib/getline.c: Whitespace fix, from coreutils.
89768
89769 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89770
89771         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89772         Check for isascii.
89773
89774         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89775         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89776         Undo previous (whitespace-only) change.
89777
89778 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89779
89780         * lib/exclude.c: Include <ctype.h>
89781         (IN_CTYPE_DOMAIN): New macro.
89782         (is_space): New fn.
89783         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89784         and empty lines.
89785
89786         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89787         Undo previous (whitespace-only) change.
89788
89789 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89790
89791         * config/srclist-update: Change update back to the old behavior,
89792         leaving whitespace alone.  Use one 'sed' command rather than a
89793         pipeline.
89794         (fixlicense): Now a variable, not a function.
89795         (remove_trailing_blanks): Remove.
89796         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89797         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89798         Undo previous (whitespace-only) change.
89799
89800 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89801
89802         Merge from coreutils.
89803         * modules/euidaccess: Add lib_SOURCES, include for new
89804         file euidaccess.h
89805
89806 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89807
89808         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89809         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89810         Normalize leading white space and remove trailing white space.
89811
89812         Merge from coreutils
89813         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89814
89815         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89816         0.12.1.  These files are now being upgraded automatically by
89817         ../config/srclist-update.
89818
89819 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89820
89821         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89822         Normalize leading white space and remove trailing white space.
89823         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89824         notice, as per ../config/srclist-update.
89825
89826         Merge from coreutils.
89827         * lib/euidaccess.h: New file.
89828         * lib/euidaccess.c: Include it.
89829         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89830         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89831         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89832
89833 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89834
89835         * config/srclist-update: Add copyright notice.
89836         (remove_id_lines, remove_trailing_blanks): New constants.
89837         (fixfile): Use them to normalize spacing a bit in copied files.
89838         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89839         Normalize leading white space and remove trailing white space.
89840
89841         * config/texinfo.tex: Sync with texinfo.
89842
89843         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89844         strtoul.c from libc, to merge coreutils whitespace changes.
89845
89846         * config/srclist.txt: Get the following m4 files from gettext:
89847         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89848         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89849         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89850         wint_t.m4.
89851
89852 2003-08-12  Karl Berry  <karl@gnu.org>
89853
89854         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89855         been made.
89856
89857 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89858
89859         * modules/gnu-source, m4/gnu-source.m4:
89860         Remove; we're assuming Autoconf 2.54 or later now.
89861         Suggested by Bruno Haible.
89862         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89863
89864 2003-08-11  Bruno Haible  <bruno@clisp.org>
89865
89866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89867
89868 2003-08-11  Bruno Haible  <bruno@clisp.org>
89869
89870         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89871         (vasnprintf): Use it instead of wcslen.
89872
89873 2003-08-11  Bruno Haible  <bruno@clisp.org>
89874
89875         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89876         value to ensure that _Bool promotes to int. Use #define for _Bool when
89877         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89878
89879 2003-08-10  Karl Berry  <karl@gnu.org>
89880
89881         * lib/regex.h: update from libc (whitespace fix).
89882
89883 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89884
89885         Merge some files from coreutils.  These changes were
89886         originally made by Jim Meyering.
89887         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89888         many older Unixes require this.
89889         * lib/alloca.c (alloca): Remove cast to argument of free;
89890         no longer needed in C89.
89891         * lib/alloca_.h, regex.h: Fix white space to match
89892         what GNU indent does.
89893
89894 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89895
89896         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89897         apparently Emacs's Unicode mode got confused before my 2003-08-05
89898         checkin.
89899
89900 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89901
89902         * m4/extensions.m4: New file.
89903         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89904         Require gl_USE_SYSTEM_EXTENSIONS.
89905         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89906         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89907
89908 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89909
89910         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89911         * modules/extensions, modules/gnu-source: New files.
89912         * modules/timespec, modules/unlocked-io: Depend on extensions.
89913
89914 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89915
89916         * modules/restrict: New file.
89917         * MODULES.html.sh (func_all_modules): Add restrict.
89918         * modules/regex: Depend on restrict.
89919
89920 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89921
89922         * m4/restrict.m4: New file.
89923         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89924
89925 2003-08-07  Bruno Haible  <bruno@clisp.org>
89926
89927         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89928         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89929
89930 2003-08-07  Bruno Haible  <bruno@clisp.org>
89931
89932         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89933         makes the module 'getndelim2' compatible with the module 'getline'.
89934
89935 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89936
89937         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89938         byte with "\201" to avoid glitches when editing that source file
89939         with multi-gnome-terminal.
89940
89941 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89942
89943         * lib/bumpalloc.h: Remove.
89944
89945 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89946
89947         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89948         * modules/bumpalloc: Remove.
89949
89950 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89951
89952         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89953         GNU coding style.
89954
89955         Merge from coreutils.
89956         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89957         1. From glibc.
89958         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89959         from Karl Berry, implemented by Jim Meyering.
89960         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89961         from Dmitry V. Levin.
89962         Remove anachronistic cast of xrealloc.
89963         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89964         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89965         type. Otherwise, it wouldn't compile with at least /bin/cc on
89966         ymp-cray-unicos9.0.2.X.
89967         Combine two mostly-identical uses of alloca into one.
89968         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89969
89970 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89971
89972         [From Emacs.]
89973
89974         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89975         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89976         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89977         obsolete NLIST_NAME_UNION.
89978         [__GNU__]: Undef BSD and FSCALE.
89979         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89980
89981 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89982
89983         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89984         an enum type, so that it's guaranteed to promote to int.  See:
89985         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89986
89987 2003-08-03  Karl Berry  <karl@gnu.org>
89988
89989         * config/depcomp: update from automake.
89990
89991 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89992
89993         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89994         (strerror): Don't assume that a printable int fits in 14 bytes.
89995
89996 2003-07-31  Bruno Haible  <bruno@clisp.org>
89997
89998         * modules/getpass-gnu: New file.
89999         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
90000
90001 2003-07-31  Bruno Haible  <bruno@clisp.org>
90002
90003         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
90004
90005 2003-07-24  Karl Berry  <karl@gnu.org>
90006
90007         * config/missing: update from automake.
90008
90009 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90010             Bruno Haible  <bruno@clisp.org>
90011
90012         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90013         * lib/getline.c (getline, getdelim): Likewise.
90014         Remove _GNU_SOURCE define; now it's defined in config.h through
90015         m4/getline.m4.
90016
90017 2003-07-23  Karl Berry  <karl@gnu.org>
90018
90019         * config/config.sub: update from prep.
90020
90021 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90022
90023         * modules/xalloc (Depends-on): Add exitfail.
90024         * modules/xmemcoll: Likewise.
90025
90026 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90027
90028         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90029         over-parenthesization in macros.
90030
90031         Sync with coreutils.
90032
90033         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90034         required by C99.
90035
90036         Use `exit_failure' for xalloc and xmemcoll instead of their own
90037         private exit-failure variables.
90038         * lib/xalloc.h (xalloc_exit_failure): Remove.
90039         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90040         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90041         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90042         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90043         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90044
90045 2003-07-20  Jim Meyering  <jim@meyering.net>
90046
90047         * modules/closeout (Depends-on): Add exitfail.
90048         Suggestion from Bruno Haible.
90049
90050 2003-07-19  Karl Berry  <karl@gnu.org>
90051
90052         * config/config.sub: update from prep.
90053
90054 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90055
90056         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90057         Remove.
90058         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90059         to test that it can stand by itself.  Include "exitfail.h".
90060         Clients should set exit_failure instead.
90061         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90062
90063 2003-07-18  Bruno Haible  <bruno@clisp.org>
90064
90065         * modules/getndelim2: New file.
90066         * modules/getline: Share files with module getndelim2.
90067         * modules/getnline: Depend on getndelim2 instead of sharing files with
90068         it. Add getnline.c to lib_SOURCES.
90069         * MODULES.html.sh (func_all_modules): Add getndelim2.
90070
90071 2003-07-18  Bruno Haible  <bruno@clisp.org>
90072
90073         * m4/getndelim2.m4: New file.
90074         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90075         invoke gl_PREREQ_GETNDELIM2.
90076         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90077         gl_PREREQ_GETNDELIM2.
90078         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90079         gl_GETNDELIM2.
90080
90081 2003-07-18  Bruno Haible  <bruno@clisp.org>
90082
90083         * lib/getndelim2.h: New file.
90084         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90085         getndelim2.h.
90086         (getndelim2): Make non-static. Change return type to ssize_t.
90087         * lib/getline.h: Change argument names.
90088         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90089         * lib/getnline.c: Include getndelim2.h.
90090
90091 2003-07-18  Andreas Schwab  <schwab@suse.de>
90092
90093         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90094
90095 2003-07-17  Karl Berry  <karl@gnu.org>
90096
90097         * config/config.sub: update from prep.
90098
90099 2003-07-17  Bruno Haible  <bruno@clisp.org>
90100
90101         * modules/getnline: New file.
90102         * modules/getline: Add lib/getndelim2.c to source file list.
90103         * MODULES.html.sh (func_all_modules): Add getnline.
90104
90105 2003-07-17  Bruno Haible  <bruno@clisp.org>
90106
90107         * m4/getnline.m4: New file.
90108
90109 2003-07-17  Bruno Haible  <bruno@clisp.org>
90110
90111         * m4/Makefile.am.in: Remove file.
90112         * m4/Makefile.am: Remove file.
90113         * m4/Makefile.in: Remove file.
90114
90115 2003-07-17  Bruno Haible  <bruno@clisp.org>
90116
90117         * lib/getnline.h: New file.
90118         * lib/getnline.c: New file.
90119         * lib/getndelim2.c: New file, extracted from getline.c.
90120         (getndelim2): Renamed from getdelim2, with added nmax argument.
90121         * lib/getline.c: Include getndelim2.c.
90122         (getdelim2): Moved out to getndelim2.c.
90123         (getline, getdelim): Update.
90124
90125 2003-07-17  Bruno Haible  <bruno@clisp.org>
90126
90127         * lib/Makefile.am: Remove file.
90128         * lib/Makefile.in: Remove file.
90129
90130 2003-07-17  Bruno Haible  <bruno@clisp.org>
90131
90132         * configure.in: Remove file.
90133         * Makefile.in: Remove file.
90134
90135 2003-07-17  Bruno Haible  <bruno@clisp.org>
90136
90137         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90138
90139 2003-07-16  Karl Berry  <karl@gnu.org>
90140
90141         * config/srclist-update: was running fixlicense twice, which caused
90142                 texinfo.tex to be nullified for some reason.  Simplify,
90143                 $gplsrc is no longer needed as far as I can see?
90144
90145 2003-07-16  Jim Meyering  <jim@meyering.net>
90146
90147         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90148
90149 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90150
90151         * config/srclist.txt: Get the following files from gettext-runtime/intl
90152         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90153         ref-del.sin.  From Bruno Haible.
90154         * config/srclist-update (fixfile): Change grep pattern again, since the
90155         previous fix didn't work (there was another trailing $).  Use
90156         '[$]' to escape the $s.
90157
90158 2003-07-15  Karl Berry  <karl@gnu.org>
90159
90160         * lib/vasnprintf.c: update from gettext.
90161
90162 2003-07-15  Karl Berry  <karl@gnu.org>
90163
90164         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90165         gets expanded when surrounded by '$'.
90166
90167 2003-07-15  Jim Meyering  <jim@meyering.net>
90168
90169         * modules/save-cwd: Don't depend on error.  From Derek Price.
90170
90171 2003-07-15  Jim Meyering  <jim@meyering.net>
90172
90173         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90174
90175 2003-07-14  Simon Josefsson  <jas@extundo.com>
90176
90177         * modules/mempcpy: New file.
90178         * MODULES.html.sh (func_all_modules): Add mempcpy.
90179
90180 2003-07-14  Simon Josefsson  <jas@extundo.com>
90181
90182         * m4/mempcpy.m4: New file.
90183
90184 2003-07-14  Simon Josefsson  <jas@extundo.com>
90185
90186         * lib/mempcpy.h: New file.
90187         * lib/mempcpy.c: New file.
90188
90189 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90190
90191         * modules/getdate, modules/posixtm: Depend on mktime.
90192
90193 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90194
90195         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90196         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90197         unicodeio.c, unicodeio.h, unlocked-io.h:
90198         Switch from LGPL to GPL.
90199
90200 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90201
90202         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90203         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90204         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90205         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90206         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90207         updated automatically by ../config/srclist-update.  This changes
90208         their license from LPGL to GPL.
90209
90210 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90211
90212         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90213         assumed to refer to the root of the most recent stable gettext version.
90214         * config/srclistvars.sh: Add defaults for eggert.
90215         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90216         Match "This program" as well as "The program".  This is needed
90217         for gettext.
90218
90219 2003-07-14  Jim Meyering  <jim@meyering.net>
90220
90221         Don't emit diagnostics.  Let callers do that.
90222         * lib/save-cwd.c: Don't include "error.h".
90223         (save_cwd): Don't call error.  Ensure that errno is valid
90224         when returning nonzero.
90225
90226         * lib/save-cwd.h (restore_cwd): Update prototype.
90227         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90228         Simplify.  Don't call error upon failure.  Let callers do that.
90229         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90230         when auditing is enabled.  But don't bother updating the #if.
90231
90232 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90233
90234         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90235         it breaks C++ compilation.
90236         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90237
90238 2003-07-10  Simon Josefsson  <jas@extundo.com>
90239
90240         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90241
90242 2003-07-10  Jim Meyering  <jim@meyering.net>
90243
90244         * m4/clock_time.m4: Remove trailing blank.
90245         * m4/intmax_t.m4: Likewise.
90246
90247 2003-07-10  Jim Meyering  <jim@meyering.net>
90248
90249         * lib/vasnprintf.c: Remove trailing blanks.
90250         Make cpp indentation consistent.
90251
90252 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90253
90254         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90255         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90256         Switch from LGPL to GPL.
90257
90258 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90259
90260         * config/srclist.txt: Sort sublists.  Add
90261         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90262         that differ from gnulib for one reason or another; we'd like this list
90263         to be smaller but for now let's document what we have.
90264
90265 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90266
90267         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90268         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90269         and sweeter "eval x=$x".
90270         * config/srclist.txt: Get lib/argp* from glibc.
90271
90272 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90273
90274         * lib/mktime.c: Fix some boundary cases and remove need for floating
90275         point.
90276
90277         Issue a compile-time diagnostic if time_t is floating point, or if
90278         two's complement arithmetic is not in effect, or if arithmetic
90279         right shift does not propagate the sign.  These assumptions were
90280         all in the original code but they weren't checked.
90281
90282         (TIME_T_MIDPOINT, verify): New macros.
90283         (__isleap): Remove; it has integer overflow problems.
90284         (leapyear): New function, without those problems.
90285         (ydhms_tm_diff): Remove; splitting into two parts.
90286         (ydhms_diff): New function, containing the arithmetic part of
90287         the old ydhms_tm_diff function.  Issue a compile-time
90288         diagnostic if we are not using C99 integer division.
90289         Avoid casts when possible.
90290         (guess_time_tm): New function, containing the checking part of
90291         the old ydhms_tm_diff function.  Return the new value, rather than
90292         the difference between it and the old.  Accept a new argument T
90293         so that *T specifies the old value.  Check for overflow in the result.
90294
90295         (__mktime_internal): Use a time_t offset, not a long int offset.
90296         This undoes the 2003-06-04 change, which is no longer needed now
90297         that we have better overflow checking.
90298         (localtime_offset): Likewise.
90299
90300         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90301         and long are 64-bit but int is only 32-bit.
90302         (ydhms_diff): Use long int to store year1 and yday1.
90303         Issue a compile-time diagnostic if long int is not wide enough.
90304
90305         (__mktime_internal): Use long int to store adjusted year and yday.
90306         Use plain C rather than preprocessor commands, if that doesn't
90307         affect efficiency.
90308         Check for overflow (and try to repair) after each probe
90309         rather than checking only at the very end.  This avoids some bugs
90310         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90311         does not equal GMT offset at maximum time).
90312         Use integer to check for overflow rather than floating point; this
90313         is more portable to non-IEEE hosts, and is a tad faster.
90314         When we detect that we are oscillating between two values,
90315         don't check whether tm_isdst has the requested value, since
90316         we already know the answer.  When tm_isdst has the wrong value,
90317         use a different heuristic to find the right one, based on the
90318         extreme values actually observed in practice in tz2003a,
90319         rather than the (overly optimistic) "previous 3 calendar quarters".
90320
90321         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90322         "T const" to accommodate glibc style.
90323         (check_result): Use less-confusing report format.  "long" -> "long int.
90324         (main): Likewise.
90325         Don't loop if the iteration overflows time_t.
90326         Allow a negative step in the iteration.
90327
90328 2003-07-06  Karl Berry  <karl@gnu.org>
90329
90330         * config/depcomp: update from automake.
90331         * config/config.sub: update from prep.
90332
90333 2003-07-03  Karl Berry  <karl@gnu.org>
90334
90335         * config/config.guess: update from prep.
90336
90337 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90338
90339         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90340         xreadlink.c now includes it unconditionally.
90341
90342 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90343
90344         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90345         having it depend on HAVE_SYS_TYPES_H.
90346
90347 2003-07-01  Bruno Haible  <bruno@clisp.org>
90348
90349         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90350         <sys/types.h> should be sufficient.
90351         Reported by Paul Eggert.
90352
90353 2003-06-26  Karl Berry  <karl@gnu.org>
90354
90355         * config/depcomp: update from automake.
90356
90357 2003-06-26  Bruno Haible  <bruno@clisp.org>
90358
90359         * modules/human: Depend on module stdbool.
90360
90361 2003-06-25  Bruno Haible  <bruno@clisp.org>
90362
90363         * modules/readlink: New file.
90364         * modules/xreadlink: Depend on it.
90365         * MODULES.html.sh (func_all_modules): Add readlink.
90366
90367 2003-06-25  Bruno Haible  <bruno@clisp.org>
90368
90369         * m4/readlink.m4: New file.
90370
90371 2003-06-25  Bruno Haible  <bruno@clisp.org>
90372
90373         * lib/readlink.c: New file.
90374
90375 2003-06-22  Karl Berry  <karl@gnu.org>
90376
90377         * config/srclist.txt: update mkinstalldirs from automake.
90378         * config/mkinstalldirs: update.
90379
90380 2003-06-22  Bruno Haible  <bruno@clisp.org>
90381
90382         Portability to mingw32.
90383         * m4/ssize_t.m4: New file, from GNU gettext.
90384         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90385         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90386
90387 2003-06-22  Bruno Haible  <bruno@clisp.org>
90388
90389         * modules/safe-read: Add m4/ssize_t.m4.
90390         * modules/xreadlink: Add m4/ssize_t.m4.
90391
90392 2003-06-20  Bruno Haible  <bruno@clisp.org>
90393
90394         Assume C89, so PARAMS isn't needed.
90395         * lib/unicodeio.h (PARAMS): Remove.
90396         * lib/unicodeio.c: Don't use PARAMS.
90397
90398 2003-06-18  Karl Berry  <karl@gnu.org>
90399
90400         * config/config.{guess,sub}: update from prep.
90401
90402 2003-06-18  Jim Meyering  <jim@meyering.net>
90403
90404         Merge changes from coreutils.
90405         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90406         Remove explicit declarations of xmalloc and realloc.
90407         Include xalloc.h.
90408         (read_utmp): Remove anachronistic cast of xmalloc.
90409
90410 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90411
90412         Assume C89, so PARAMS isn't needed.
90413         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90414         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90415         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90416         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90417         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90418         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90419         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90420         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90421         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90422         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90423         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90424         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90425         no longer needed. Anyway, config.h should always be included before any
90426         other file.
90427
90428 2003-06-11  Simon Josefsson  <jas@extundo.com>
90429
90430         * modules/sysexits: New file.
90431         * MODULES.html.sh (func_all_modules): Add sysexits.
90432
90433 2003-06-11  Simon Josefsson  <jas@extundo.com>
90434
90435         * lib/sysexit_.h: New file.
90436
90437 2003-06-11  Derek Price  <derek@ximbiot.com>
90438
90439         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90440         necessary.
90441
90442 2003-06-11  Bruno Haible  <bruno@clisp.org>
90443
90444         * m4/sysexits.m4: New file.
90445
90446 2003-06-10  Simon Josefsson  <jas@extundo.com>
90447
90448         * lib/argp.h: New file, from glibc.
90449         * lib/argp-ba.c: New file, from glibc.
90450         * lib/argp-eexst.c: New file, from glibc.
90451         * lib/argp-fmtstream.c: New file, from glibc.
90452         * lib/argp-fmtstream.h: New file, from glibc.
90453         * lib/argp-fs-xinl.c: New file, from glibc.
90454         * lib/argp-help.c: New file, from glibc.
90455         * lib/argp-namefrob.h: New file, from glibc.
90456         * lib/argp-parse.c: New file, from glibc.
90457         * lib/argp-pv.c: New file, from glibc.
90458         * lib/argp-pvh.c: New file, from glibc.
90459         * lib/argp-xinl.c: New file, from glibc.
90460
90461 2003-06-10  Simon Josefsson  <jas@extundo.com>
90462
90463         * modules/strchrnul: New file.
90464
90465 2003-06-10  Simon Josefsson  <jas@extundo.com>
90466
90467         * modules/argp: New file.
90468
90469 2003-06-10  Simon Josefsson  <jas@extundo.com>
90470
90471         * m4/strchrnul.m4: New file.
90472
90473 2003-06-10  Simon Josefsson  <jas@extundo.com>
90474
90475         * lib/strchrnul.h: New file.
90476         * lib/strchrnul.c: New file.
90477
90478 2003-06-10  Bruno Haible  <bruno@clisp.org>
90479
90480         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90481
90482 2003-06-07  Karl Berry  <karl@gnu.org>
90483
90484         * config/config.{guess,sub}: update from prep.
90485
90486 2003-06-07  Jim Meyering  <jim@meyering.net>
90487
90488         * modules/strtod: Use $(...) notation, not @...@ for
90489         AC_REPLACE'd variables.
90490         * modules/localcharset: Likewise.
90491
90492 2003-06-07  Jim Meyering  <jim@meyering.net>
90493
90494         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90495         in place of my name in the copyright comment.
90496         Remove definition and uses of __P.
90497
90498         From coreutils.
90499         * lib/stat.c: Don't declare xmalloc explicitly.
90500         Instead, include "xalloc.h".
90501         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90502         xrealloc, and xcalloc return values.
90503         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90504         Improve comment.
90505         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90506
90507 2003-06-07  Bruno Haible  <bruno@clisp.org>
90508
90509         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90510         avoid AC_CONFIG_LINKS.
90511         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90512         fnmatch.h, to avoid AC_CONFIG_LINKS.
90513         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90514
90515 2003-06-07  Bruno Haible  <bruno@clisp.org>
90516
90517         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90518         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90519         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90520         directory.
90521         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90522         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90523         directory.
90524
90525 2003-06-06  Jim Meyering  <jim@meyering.net>
90526
90527         Merge from coreutils.
90528         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90529         Consolidate declarations and initializations of *_base* locals.
90530
90531         Merge from coreutils.
90532         This avoids a core dump on systems without GNU putenv,
90533         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90534         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90535         (unsetenv): New static function, from GNU libc.
90536         (rpl_putenv): Use it.
90537
90538         * lib/modechange.c: Remove trailing blanks.
90539
90540         Merge from coreutils.
90541         * lib/fsusage.c: Remove declaration of statfs.
90542         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90543
90544         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90545
90546 2003-06-06  Jim Meyering  <jim@meyering.net>
90547
90548         * lib/stdbool_.h: Renamed from stdbool.h.in.
90549
90550 2003-06-06  Jim Meyering  <jim@meyering.net>
90551             Bruno Haible  <bruno@clisp.org>
90552
90553         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90554         Adjust Makefile.am snippet not to redirect directly to target.
90555         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90556
90557 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90558
90559         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90560         mismatch, look in future quarters as well as past.  This fixes a
90561         bug when processing fall-backwards gaps immediately after a long
90562         period of daylight-saving time.
90563
90564         * lib/mktime.c: Assume freestanding C89 or better.
90565         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90566         (__P): Remove; not used.
90567         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90568         (mktime, not_equal_tm, print_tm, check_result,
90569         main): Use prototypes.  Use const * where appropriate.
90570         (main): Fix typo in testing code that uncovered by above changes.
90571         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90572
90573 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90574
90575         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90576         locale.h, localeconv.  This merges changes from coreutils.
90577
90578         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90579         It can be removed after the next Autoconf is released.
90580         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90581         needed.
90582
90583 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90584
90585         * lib/mktime.c: Fix Debian bug 177940
90586         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90587         (localtime_offset): Now long int, not time_t, because we want it
90588         to be guaranteed to be signed.  All uses changed.
90589         (__mktime_internal): If overflow would occur when adding offset,
90590         don't add it.
90591
90592         Merge 'human' changes from coreutils.  Rewrite to support
90593         locale-specific notations like thousands separators.
90594         * lib/human.c: Simplify authorship notice.
90595         Include human.h immediately after config.h.
90596         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90597         <limits.h>: Do not include, since human.h does.
90598         (SIZE_MAX, UINTMAX_MAX): New macros.
90599         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90600         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90601         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90602         (power_letter): Renamed from suffixes.
90603         (generate_suffix_backwards): Remove.
90604         (adjust_value): Now takes int style (because of human.h changes)
90605         and long double value (for greater precision on some platforms).
90606         (group_number): New function.
90607         (human_readable): Use it.  Use integer options, not enum.
90608         Put the options before the sizes in the arg list.
90609         Support all the new options.
90610         The old human_readable function has been removed;
90611         use inttostr.h instead.
90612         (human_readable, default_block_size, humblock):
90613         Use uintmax_t, not int, for block sizes.
90614         (human_readable_inexact, block_size_types): Remove.
90615         (block_size_opts): New constant.
90616         (human_options): Renamed from human_block_size, with new signature
90617         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90618         * lib/human.h: Add copyright and authorship notice.
90619         Include <limits.h> and <stdbool.h> unconditionally.
90620         (PARAMS): Remove.  All uses removed.
90621         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90622         (enum human_inexact_style): Remove tag; now a nameless enum.
90623         (human_floor, human_ceiling, human_round_to_even): Now have
90624         values 2, 0, 1 rather than -1, 1, 0.
90625         (human_group_digits, human_suppress_point_zero, human_autoscale,
90626         human_base_1024, human_SI, human_B): New constants.
90627         (human_readable_inexact, human_block_size): Remove.
90628         (human_readable): Size args are now uintmax_t, not int.
90629         (human_options): New decl.
90630
90631         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90632         unnecessary now that we assume C89 or better.  This change
90633         imported from coreutils.
90634
90635         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90636         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90637         in the 2003-05-30 sync from glibc.
90638
90639         .h files should stand alone, but we shouldn't include <sys/types.h>
90640         if we can get away with just <stddef.h>.
90641
90642         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90643         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90644         rather than <sys/types.h>, as we merely need size_t.
90645         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90646         to get size_t.
90647         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90648         Include <stdio.h>, to get FILE.
90649         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90650         memcasecmp.h has included <stddef.h> and all we need is size_t.
90651         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90652         our interface, instead of including <sys/types.h>
90653
90654 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90655
90656         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90657         now, as glibc mktime is buggy on non-glibc systems.
90658
90659 2003-06-03  Karl Berry  <karl@gnu.org>
90660
90661         * config/config.sub: update from prep.
90662
90663 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90664
90665         [from coreutils]
90666         Fix some minor time-related bugs with POSIX time arguments.
90667         Some valid time stamps were being rejected (notably -1, and
90668         time stamps before 1900 on 64-bit hosts).  And some invalid
90669         time stamps were being accepted, e.g. September 31.
90670
90671         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90672         that we can return (time_t) -1 successfully.
90673         * lib/posixtm.c: Likewise.
90674         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90675         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90676         (t): Remove static var.
90677         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90678         of static var.  All uses changed.
90679         (year): Do not reject years before 1900; they can occur with
90680         64-bit time_t.
90681         (posix_time_parse): Do not check for out-of-range components;
90682         that is now the caller's responsibility, since our checks were
90683         only approximations.
90684         (posixtime): Use mktime to check for out-of-range components,
90685         since it knows them exactly.
90686         If mktime returns (time_t) -1, check whether an error actually occurred
90687         by invoking localtime on -1.
90688         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90689         posixtime failures better.
90690         Improve the test data (in comments only).
90691
90692 2003-06-02  Karl Berry  <karl@gnu.org>
90693
90694         * config/mkinstalldirs (version): new variable.
90695         (--version): new option.
90696         (usage): improve message.
90697
90698 2003-05-30  Karl Berry  <karl@gnu.org>
90699
90700         * lib/mktime.c: update from libc.
90701
90702 2003-05-30  Bruno Haible  <bruno@clisp.org>
90703
90704         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90705         * config/config.rpath: Upgrade to gettext-0.12.1.
90706
90707 2003-05-30  Bruno Haible  <bruno@clisp.org>
90708
90709         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90710         * m4/nls.m4: New file, from gettext-0.12.1.
90711         * m4/po.m4: New file, from gettext-0.12.1.
90712         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90713
90714 2003-05-30  Bruno Haible  <bruno@clisp.org>
90715
90716         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90717         * lib/localcharset.h: Likewise.
90718         * lib/localcharset.c: Likewise.
90719
90720 2003-05-29  Karl Berry  <karl@gnu.org>
90721
90722         * config/config.rpath: update from gettext.
90723
90724 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90725
90726         Assume the headers required for C89 freestanding compilers.
90727         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90728         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90729         * m4/human.m4 (gl_HUMAN): Likewise.
90730         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90731         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90732         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90733         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90734         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90735         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90736
90737 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90738
90739         Assume the headers required for C89 freestanding compilers.
90740         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90741         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90742         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90743         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90744         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90745         define, since <limits.h> is guaranteed to do that.
90746         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90747         * lib/exclude.c: Include <stdbool.h> unconditionally.
90748         * lib/tempname.c: Include <stddef.h> unconditionally.
90749         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90750         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90751         <stddef.h> does that.
90752         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90753         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90754         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90755         needed.
90756         * lib/xstrtol.c: Likewise.
90757         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90758         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90759
90760         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90761         warnings on some platforms.
90762
90763         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90764         arbitrarily.
90765
90766 2003-05-26  Jim Meyering  <jim@meyering.net>
90767
90768         Merge in a change from coreutils:
90769         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90770         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90771         that condition, rather than `-1' which is slightly misleading.
90772         Change the name of the cache variable to have the gl_ prefix.
90773         Prompted by a patch from Richard Dawe for DJGPP.
90774
90775 2003-05-24  Karl Berry  <karl@gnu.org>
90776
90777         * config/config.guess: update from prep.
90778
90779 2003-05-22  Karl Berry  <karl@gnu.org>
90780
90781         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90782
90783 2003-05-20  Karl Berry  <karl@gnu.org>
90784
90785         * config/config.guess: update from prep.
90786
90787 2003-05-18  Karl Berry  <karl@gnu.org>
90788
90789         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90790         might actually be set by the user.
90791
90792         * config/depcomp, install-sh, mdate-sh: update from automake.
90793
90794 2003-05-17  Bruno Haible  <bruno@clisp.org>
90795
90796         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90797         invalid expansion for AC_EGREP_CPP.
90798         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90799         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90800         Suggested by Akim Demaille <akim@epita.fr> in
90801         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90802
90803 2003-05-12  Jim Meyering  <jim@meyering.net>
90804
90805         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90806         the space-padded-by-default conversion specifiers, %e, %k, %l.
90807
90808 2003-05-12  Bruno Haible  <bruno@clisp.org>
90809
90810         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90811         the string is longer than 4 KB.
90812
90813 2003-05-11  Karl Berry  <karl@gnu.org>
90814
90815         * config/config.{guess,sub}: update from prep.
90816
90817 2003-05-09  Bruno Haible  <bruno@clisp.org>
90818
90819         * modules/error: Add m4/strerror_r.m4 to file list.
90820
90821 2003-05-03  Bruno Haible  <bruno@clisp.org>
90822
90823         Upgrade to Unicode-4.0.
90824         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90825         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90826         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90827         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90828         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90829         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90830         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90831         Change width of U+E0100..U+E01EF from 1 to 0.
90832
90833 2003-04-25  Jim Meyering  <jim@meyering.net>
90834
90835         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90836         of type size_t, not int.
90837
90838 2003-04-25  Bruno Haible  <bruno@clisp.org>
90839
90840         * lib/copy-file.c: Include <stddef.h>, for size_t.
90841
90842 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90843
90844         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90845         code which expansion is under static control.  Patch imported from
90846         Akim Demaille's patch to Bison; see
90847         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90848
90849 2003-04-14  Bruno Haible  <bruno@clisp.org>
90850
90851         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90852
90853 2003-04-11  Jim Meyering  <jim@meyering.net>
90854
90855         Merge changes from Coreutils.
90856
90857         2003-03-22  Jim Meyering  <jim@meyering.net>
90858
90859         * lib/strftime.c (widen): Cast alloca return value to proper type.
90860
90861         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90862
90863         From GNU libc.
90864         * lib/strftime.c (my_strftime): Handle very large width
90865         specifications for numeric values correctly.  Improve checks for
90866         overflow.
90867
90868         2003-01-19  Jim Meyering  <jim@meyering.net>
90869
90870         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90871         definitions.
90872         (nl_get_alt_digit) [! defined my_strftime]: Define.
90873         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90874         _nl_get_alt_digit and _nl_get_walt_digit.
90875
90876         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90877         libc. These changes have no effect outside of _LIBC.
90878
90879 2003-04-10  Bruno Haible  <bruno@clisp.org>
90880
90881         * modules/findprog: New file.
90882         * MODULES.html.sh (func_all_modules): Add it.
90883
90884 2003-04-10  Bruno Haible  <bruno@clisp.org>
90885
90886         * m4/findprog.m4: New file.
90887         * m4/eaccess.m4: New file.
90888
90889 2003-04-10  Bruno Haible  <bruno@clisp.org>
90890
90891         * lib/findprog.h: New file, from GNU gettext.
90892         * lib/findprog.c: New file, from GNU gettext.
90893
90894 2003-04-05  Jim Meyering  <jim@meyering.net>
90895
90896         Merge changes from Coreutils.
90897
90898         * lib/exclude.h (PARAMS): Remove definition and uses.
90899         * lib/exclude.c: Remove uses of `PARAMS'.
90900
90901         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90902         Add test-cases for DOS filenames. Declare program_name.
90903         (main): Set up program_name.  Patch by Rich Dawe.
90904
90905         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90906         error from mntctl.
90907         Use mntctl's return value to drive the entry-processing loop, since
90908         we can't rely on the value of the vmt_length member in the last
90909         entry.  On some systems doing so could result in exhausting
90910         virtual memory.  Based in part on a patch from Mike Jetzer.
90911
90912 2003-04-04  Bruno Haible  <bruno@clisp.org>
90913
90914         * modules/linebreak: New file.
90915         * MODULES.html.sh (func_all_modules): Add it.
90916
90917 2003-04-04  Bruno Haible  <bruno@clisp.org>
90918
90919         * m4/linebreak.m4: New file.
90920
90921 2003-04-04  Bruno Haible  <bruno@clisp.org>
90922
90923         * lib/linebreak.h: New file, from GNU gettext.
90924         * lib/linebreak.c: New file, from GNU gettext with slight
90925         modifications.
90926         * lib/lbrkprop.h: New file, from GNU gettext.
90927
90928 2003-04-03  Bruno Haible  <bruno@clisp.org>
90929
90930         * modules/utf8-ucs4: New file.
90931         * modules/utf16-ucs4: New file.
90932         * modules/ucs4-utf8: New file.
90933         * modules/ucs4-utf16: New file.
90934         * MODULES.html.sh (func_all_modules): Add them.
90935
90936 2003-04-03  Bruno Haible  <bruno@clisp.org>
90937
90938         * m4/utf-ucs4.m4: New file.
90939         * m4/ucs4-utf.m4: New file.
90940
90941 2003-04-03  Bruno Haible  <bruno@clisp.org>
90942
90943         * lib/utf8-ucs4.h: New file, from GNU gettext.
90944         * lib/utf16-ucs4.h: New file, from GNU gettext.
90945         * lib/ucs4-utf8.h: New file, from GNU gettext.
90946         * lib/ucs4-utf16.h: New file, from GNU gettext.
90947
90948 2003-04-02  Bruno Haible  <bruno@clisp.org>
90949
90950         * modules/binary-io: New file.
90951         * MODULES.html.sh (func_all_modules): Add it.
90952
90953 2003-04-02  Bruno Haible  <bruno@clisp.org>
90954
90955         * lib/binary-io.h: New file, from GNU gettext.
90956
90957 2003-04-01  Bruno Haible  <bruno@clisp.org>
90958
90959         * modules/pathname: New file.
90960         * MODULES.html.sh (func_all_modules): Add it.
90961
90962 2003-04-01  Bruno Haible  <bruno@clisp.org>
90963
90964         * lib/pathname.h: New file, from GNU gettext.
90965         * lib/concatpath.c: New file, from GNU gettext.
90966
90967 2003-03-30  Bruno Haible  <bruno@clisp.org>
90968
90969         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90970
90971 2003-03-30  Bruno Haible  <bruno@clisp.org>
90972
90973         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90974         function chown() doesn't exist.
90975
90976 2003-03-28  Bruno Haible  <bruno@clisp.org>
90977
90978         * modules/copy-file: New file.
90979         * MODULES.html.sh (func_all_modules): Add it.
90980
90981 2003-03-28  Bruno Haible  <bruno@clisp.org>
90982
90983         * m4/copy-file.m4: New file.
90984
90985 2003-03-28  Bruno Haible  <bruno@clisp.org>
90986
90987         * lib/copy-file.h: New file, from GNU gettext.
90988         * lib/copy-file.c: New file, from GNU gettext.
90989
90990 2003-03-18  Jim Meyering  <jim@meyering.net>
90991
90992         * lib/quote.c (quote_n): Fix typo in comment.
90993
90994 2003-03-18  Bruno Haible  <bruno@clisp.org>
90995
90996         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90997         checking.
90998         * m4/onceonly_2_57.m4: Likewise.
90999
91000 2003-03-17  Bruno Haible  <bruno@clisp.org>
91001
91002         * m4/onceonly.m4: Require autoconf 2.54 or newer.
91003         (m4_quote): Remove macro.
91004         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
91005
91006 2003-03-14  Jim Meyering  <jim@meyering.net>
91007
91008         Merge changes from Coreutils.
91009         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91010         to be const, in order to avoid warnings.
91011         (obstack_room): Likewise.
91012         (obstack_empty_p): Likewise.
91013
91014 2003-03-14  Bruno Haible  <bruno@clisp.org>
91015
91016         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91017         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91018
91019 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91020
91021         Merge changes from Bison.
91022         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91023         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91024         when compiling Bison 1.875's `bitset bset = obstack_alloc
91025         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91026         * lib/hash.c: Include <stdbool.h> unconditionally.
91027
91028 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91029
91030         * m4/onceonly.m4 (m4_quote): New macro.
91031         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91032         Quote AC_FOREACH variable-expansions properly.
91033
91034 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91035
91036         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91037
91038 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91039
91040         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91041         Reported by Bruce Becker; see:
91042         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91043
91044 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91045             Bruno Haible  <bruno@clisp.org>
91046
91047         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91048         Reported by John Hughes, see
91049         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91050
91051 2003-02-20  Bruno Haible  <bruno@clisp.org>
91052
91053         * MODULES.html.sh (func_all_modules): Add poll.
91054
91055 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91056
91057         * modules/poll: New file.
91058
91059 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91060
91061         * lib/poll_.h: New file.
91062         * lib/poll.c: New file.
91063
91064 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91065
91066         * m4/poll.m4: New file.
91067
91068 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91069
91070         * modules/mathl: New file.
91071
91072 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91073
91074         * lib/mathl.h: New file.
91075         * lib/acosl.c: New file.
91076         * lib/asinl.c: New file.
91077         * lib/atanl.c: New file.
91078         * lib/ceill.c: New file.
91079         * lib/cosl.c: New file.
91080         * lib/expl.c: New file.
91081         * lib/floorl.c: New file.
91082         * lib/frexpl.c: New file.
91083         * lib/ldexpl.c: New file.
91084         * lib/logl.c: New file.
91085         * lib/sincosl.c: New file.
91086         * lib/sinl.c: New file.
91087         * lib/sqrtl.c: New file.
91088         * lib/tanl.c: New file.
91089         * lib/trigl.c: New file.
91090         * lib/trigl.h: New file.
91091
91092 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91093
91094         * m4/mathl.m4: New file.
91095
91096 2003-02-18  Bruno Haible  <bruno@clisp.org>
91097
91098         * MODULES.html.sh (func_all_modules): Add mathl.
91099
91100 2003-02-17  Bruno Haible  <bruno@clisp.org>
91101
91102         * modules/mkdtemp: New module.
91103         * MODULES.html.sh (func_all_modules): Add it.
91104
91105 2003-02-17  Bruno Haible  <bruno@clisp.org>
91106
91107         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91108
91109 2003-02-17  Bruno Haible  <bruno@clisp.org>
91110
91111         * lib/mkdtemp.h: New file, from GNU gettext.
91112         * lib/mkdtemp.c: New file, from GNU gettext.
91113
91114 2003-02-02  Jim Meyering  <jim@meyering.net>
91115
91116         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91117         e.g. glibc-2.2.93.
91118
91119 2003-01-31  Bruno Haible  <bruno@clisp.org>
91120
91121         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91122         'rpl_rename'.
91123         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91124         'rpl_strnlen'.
91125         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91126         'rpl_strtod'.
91127         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91128         'rpl_utime'.
91129
91130 2003-01-31  Bruno Haible  <bruno@clisp.org>
91131
91132         * lib/rename.c: #undef rename before defining rpl_rename.
91133         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91134
91135 2003-01-30  Bruno Haible  <bruno@clisp.org>
91136
91137         * modules/vasnprintf, modules/vasprintf: New modules.
91138         * MODULES.html.sh (func_all_modules): Add them.
91139
91140 2003-01-30  Bruno Haible  <bruno@clisp.org>
91141
91142         * m4/signed.m4: New file, from GNU gettext.
91143         * m4/longdouble.m4: New file, from GNU gettext.
91144         * m4/wchar_t.m4: New file, from GNU gettext.
91145         * m4/wint_t.m4: New file, from GNU gettext.
91146         * m4/vasnprintf.m4: New file.
91147         * m4/vasprintf.m4: New file.
91148
91149 2003-01-30  Bruno Haible  <bruno@clisp.org>
91150
91151         * lib/printf-args.h: New file, from GNU gettext.
91152         * lib/printf-args.c: New file, from GNU gettext.
91153         * lib/printf-parse.h: New file, from GNU gettext.
91154         * lib/printf-parse.c: New file, from GNU gettext.
91155         * lib/vasnprintf.h: New file, from GNU gettext.
91156         * lib/vasnprintf.c: New file, from GNU gettext.
91157         * lib/asnprintf.c: New file, from GNU gettext.
91158         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91159         * lib/vasprintf.c: New file, from GNU gettext.
91160         * lib/asprintf.c: New file, from GNU gettext.
91161
91162 2003-01-29  Bruno Haible  <bruno@clisp.org>
91163
91164         * modules/stpncpy: New module.
91165         * MODULES.html.sh (func_all_modules): Add it.
91166
91167 2003-01-29  Bruno Haible  <bruno@clisp.org>
91168
91169         * m4/stpncpy.m4: New file.
91170
91171 2003-01-29  Bruno Haible  <bruno@clisp.org>
91172
91173         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91174         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91175
91176 2003-01-28  Bruno Haible  <bruno@clisp.org>
91177
91178         * modules/c-ctype: New module.
91179         * MODULES.html.sh (func_all_modules): Add it.
91180
91181 2003-01-28  Bruno Haible  <bruno@clisp.org>
91182
91183         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91184         Paul Eggert.
91185         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91186         Paul Eggert.
91187
91188 2003-01-27  Bruno Haible  <bruno@clisp.org>
91189
91190         * modules/xsetenv: New module.
91191         * MODULES.html.sh (func_all_modules): Add it.
91192
91193 2003-01-27  Bruno Haible  <bruno@clisp.org>
91194
91195         * lib/xsetenv.h: New file, from GNU gettext.
91196         * lib/xsetenv.c: New file, from GNU gettext.
91197
91198 2003-01-23  Jim Meyering  <jim@meyering.net>
91199
91200         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91201         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91202
91203 2003-01-23  Bruno Haible  <bruno@clisp.org>
91204
91205         * modules/minmax: New module.
91206         * MODULES.html.sh (func_all_modules): Add it.
91207
91208 2003-01-23  Bruno Haible  <bruno@clisp.org>
91209
91210         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91211         Eggert.
91212
91213 2003-01-22  Bruno Haible  <bruno@clisp.org>
91214
91215         * modules/exit: New module.
91216         * MODULES.html.sh (func_all_modules): Add it.
91217
91218 2003-01-22  Bruno Haible  <bruno@clisp.org>
91219
91220         * lib/exit.h: New file, from GNU gettext.
91221
91222 2003-01-19  Bruno Haible  <bruno@clisp.org>
91223
91224         * gnulib-tool: Recognize option --extract-maintainer.
91225         (func_get_maintainer): New function.
91226         * modules/*: Add Maintainer entry.
91227
91228 2003-01-16  Jim Meyering  <jim@meyering.net>
91229
91230         * m4/regex.m4: The `regex' struct is both input and output.
91231         Initialize it before each use.  Patch by Tim Waugh.
91232
91233 2003-01-16  Bruno Haible  <bruno@clisp.org>
91234
91235         * MODULES.html.sh: Add a table of contents. Add the module name as
91236         leftmost column. Add hyperlinks.
91237
91238 2003-01-15  Bruno Haible  <bruno@clisp.org>
91239
91240         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91241
91242 2003-01-15  Bruno Haible  <bruno@clisp.org>
91243
91244         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91245         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91246         suffix.
91247
91248 2003-01-15  Bruno Haible  <bruno@clisp.org>
91249
91250         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91251
91252 2003-01-15  Bruno Haible  <bruno@clisp.org>
91253
91254         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91255         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91256
91257 2003-01-14  Jim Meyering  <jim@meyering.net>
91258
91259         * lib/same.c (same_name): Tweak a comment.
91260
91261 2003-01-14  Bruno Haible  <bruno@clisp.org>
91262
91263         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91264         when a string comparison is sufficient.
91265
91266 2003-01-14  Bruno Haible  <bruno@clisp.org>
91267
91268         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91269         'unsigned int'.
91270
91271 2003-01-14  Bruno Haible  <bruno@clisp.org>
91272
91273         * lib/hash-pjw.c: Add comment about low quality of this function.
91274
91275 2003-01-13  Bruno Haible  <bruno@clisp.org>
91276
91277         * modules/stpcpy: Distribute lib/stpcpy.h.
91278         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91279
91280 2003-01-13  Bruno Haible  <bruno@clisp.org>
91281
91282         * modules/*: Add a description.
91283         * modules/strpbrk: Fix Makefile.am snippet.
91284         * modules/strtoimax: Fix dependencies.
91285         * modules/strtoumax: Likewise.
91286
91287 2003-01-13  Bruno Haible  <bruno@clisp.org>
91288
91289         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91290         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91291         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91292
91293 2003-01-13  Bruno Haible  <bruno@clisp.org>
91294
91295         * gnulib-tool (func_create_testdir): Store config/* files in the main
91296         directory.
91297         * config.rpath: Move to ...
91298         * config/config.rpath: ... here.
91299         * modules/gettext: Contains config/config.rpath, not config.rpath.
91300         * modules/iconv: Likewise.
91301
91302 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91303
91304         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91305         to avoid collisions with libcurses and libreadline.
91306
91307         * m4/getstr.m4: Remove.
91308         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91309
91310 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91311
91312         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91313         to avoid collisions with libcurses and libreadline.
91314
91315         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91316         * lib/getstr.h, getstr.c: Remove.
91317         * lib/getline.c: Include "getline.h", to check interface.
91318         Move body of old getstr.c here: this defines MIN_CHUNK and
91319         declares getdelim2, which is renamed from getstr.
91320         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91321
91322         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91323         All uses changed.
91324         * lib/linebuffer.h: Likewise.
91325         (readline): Remove backward-compatibility macro.
91326
91327 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91328
91329         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91330         to avoid collisions with libcurses and libreadline.
91331         * getstr: Remove.
91332         * MODULES.html.sh: Remove getstr.
91333         * modules/getline: Depend on unlocked-io, not getstr.
91334
91335 2003-01-12  Jim Meyering  <jim@meyering.net>
91336
91337         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91338
91339 2003-01-10  Bruno Haible  <bruno@clisp.org>
91340
91341         * modules/alloca: Change Makefile.am requirements. Simplify Include
91342         requirements. Add lib/alloca_.h to file list.
91343
91344 2003-01-10  Bruno Haible  <bruno@clisp.org>
91345
91346         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91347
91348 2003-01-10  Bruno Haible  <bruno@clisp.org>
91349
91350         * lib/alloca_.h: New file.
91351         * lib/getdate.y: Unconditionally include alloca.h.
91352         * lib/makepath.c: Likewise.
91353         * lib/setenv.c: Likewise.
91354         * lib/userspec.c: Likewise.
91355
91356 2003-01-09  Karl Berry  <karl@gnu.org>
91357
91358         * MODULES.html.sh: include `dirname $0` in PATH, to find
91359         gnulib-tool.
91360
91361 2003-01-09  Bruno Haible  <bruno@clisp.org>
91362
91363         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91364         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91365
91366 2003-01-09  Bruno Haible  <bruno@clisp.org>
91367
91368         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91369
91370 2003-01-09  Bruno Haible  <bruno@clisp.org>
91371
91372         * lib/stdbool.h.in: New file.
91373
91374 2003-01-09  Bruno Haible  <bruno@clisp.org>
91375
91376         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91377         * MODULES.html.sh: Likewise.
91378
91379 2003-01-08  Jim Meyering  <jim@meyering.net>
91380
91381         * lib/full-write.c: Undefine and define-away `const' after inclusion
91382         of errno.h, not before.  Suggestion from Bruno Haible.
91383
91384 2003-01-08  Bruno Haible  <bruno@clisp.org>
91385
91386         * modules/full-read: Depend on full-write.
91387
91388 2003-01-08  Bruno Haible  <bruno@clisp.org>
91389
91390         * lib/safe-read.c: Include specification header first, to ensure its
91391         selfcontainedness.
91392         * lib/full-write.c: Likewise.
91393
91394 2003-01-07  Jim Meyering  <jim@meyering.net>
91395
91396         * lib/full-write.c: Rework so that it may serve to define full_read,
91397         too.
91398         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91399
91400 2003-01-07  Bruno Haible  <bruno@clisp.org>
91401
91402         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91403         <inttypes.h>.
91404         * lib/xstrtol.h: Likewise.
91405         * lib/xstrtoimax.c: Likewise.
91406         * lib/xstrtoumax.c: Likewise.
91407         * lib/human.h: Likewise.
91408
91409         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91410         on systems that have <inttypes.h> but not <stdint.h>.
91411
91412 2003-01-07  Bruno Haible  <bruno@clisp.org>
91413
91414         * MODULES.html.sh: Add copyright notice.
91415         (missed_files): Omit CVS directory entries.
91416         (func_module): Make it work with sed-3.02.
91417         * MODULES.txt: Remove file.
91418
91419 2003-01-06  Jim Meyering  <jim@meyering.net>
91420
91421         * lib/version-etc.c: Update year in translatable copyright string.
91422
91423 2003-01-03  Karl Berry  <karl@gnu.org>
91424
91425         * config/config.{guess,sub}: update from prep.
91426
91427 2003-01-02  Karl Berry  <karl@gnu.org>
91428
91429         * doc/COPYING.DOC: belatedly updated to 1.2.
91430
91431 2003-01-01  Karl Berry  <karl@gnu.org>
91432
91433         * gnulib-tool (func_verify_module): report module name $module in
91434         error message, not $1.
91435         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91436         be created, only if it doesn't exist.
91437         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91438
91439 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91440
91441         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91442
91443 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91444
91445         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91446         memcmp if strcoll doesn't work.
91447
91448 2002-12-31  Bruno Haible  <bruno@clisp.org>
91449
91450         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91451         nonempty.
91452
91453 2002-12-31  Bruno Haible  <bruno@clisp.org>
91454
91455         * lib/memcoll.c (STRCOLL): New macro.
91456         (memcoll): Use it.
91457
91458 2002-12-31  Bruno Haible  <bruno@clisp.org>
91459
91460         * lib/localcharset.h: New file.
91461         * lib/localcharset.c: Include it.
91462         * lib/unicodeio.c: Likewise.
91463
91464 2002-12-31  Bruno Haible  <bruno@clisp.org>
91465
91466         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91467         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91468
91469 2002-12-31  Bruno Haible  <bruno@clisp.org>
91470
91471         * lib/getline.h: Include <stddef.h>, for size_t.
91472
91473         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91474         * lib/unicodeio.c: Don't include <stddef.h>.
91475
91476 2002-12-31  Bruno Haible  <bruno@clisp.org>
91477
91478         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91479         HAVE_TM_ZONE.
91480
91481 2002-12-24  Karl Berry  <karl@gnu.org>
91482
91483         * config/config.guess: update from prep.
91484
91485 2002-12-24  Bruno Haible  <bruno@clisp.org>
91486
91487         General infrasructure.
91488         * m4/README: Rewritten.
91489         * m4/onceonly.m4: New file.
91490         * m4/onceonly_2_57.m4: New file.
91491
91492         Module atexit.
91493         * m4/atexit.m4: New file.
91494
91495         Module strtod.
91496         * m4/strtod.m4: New file.
91497
91498         Module strtol.
91499         * m4/strtol.m4: New file.
91500
91501         Module strtoul.
91502         * m4/strtoul.m4: New file.
91503
91504         Module memchr.
91505         * m4/memchr.m4: New file.
91506
91507         Module memcmp.
91508         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91509         (jm_FUNC_MEMCMP): Invoke it.
91510
91511         Module memcpy.
91512         * m4/memcpy.m4: New file.
91513
91514         Module memmove.
91515         * m4/memmove.m4: New file.
91516
91517         Module memset.
91518         * m4/memset.m4: New file.
91519
91520         Module strcspn.
91521         * m4/strcspn.m4: New file.
91522
91523         Module strpbrk.
91524         * m4/strpbrk.m4: New file.
91525
91526         Module strstr.
91527         * m4/strstr.m4: New file.
91528
91529         Module strerror.
91530         * m4/strerror.m4: New file.
91531
91532         Module mktime.
91533         * m4/mktime.m4: Renamed from jm-mktime.m4.
91534         (gl_PREREQ_MKTIME): New macro.
91535         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91536
91537         Module malloc.
91538         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91539         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91540         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91541
91542         Module realloc.
91543         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91544         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91545         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91546
91547         Module strftime.
91548         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91549         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91550         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91551         gl_TM_GMTOFF.
91552         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91553
91554         Module xalloc.
91555         * m4/xalloc.m4: New file.
91556
91557         Module alloca.
91558         * m4/alloca.m4: New file.
91559
91560         Module putenv.
91561         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91562         (jm_FUNC_PUTENV): Invoke it.
91563
91564         Module setenv.
91565         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91566         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91567         when invoked twice.
91568         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91569         gt_FUNC_SETENV.
91570
91571         Module memrchr.
91572         * m4/memrchr.m4: New file.
91573
91574         Module stpcpy.
91575         * m4/stpcpy.m4: New file.
91576
91577         Module strcase.
91578         * m4/strcase.m4: New file.
91579
91580         Module strdup.
91581         * m4/strdup.m4: New file.
91582
91583         Module strnlen.
91584         * m4/strnlen.m4: New file.
91585
91586         Module strndup.
91587         * m4/strndup.m4: New file.
91588
91589         Module xstrtod.
91590         * m4/xstrtod.m4: New file.
91591
91592         Module xstrtol.
91593         * m4/xstrtol.m4: New file.
91594
91595         Module getdate.
91596         * m4/getdate.m4: New file.
91597
91598         Module unlocked-io.
91599         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91600         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91601         * m4/jm-glibc-io.m4n: Remove file.
91602
91603         Module long-options.
91604         * m4/long-options.m4: New file.
91605
91606         Module md5.
91607         * m4/md5.m4: New file.
91608
91609         Module sha.
91610         * m4/sha.m4: New file.
91611
91612         Module getstr.
91613         * m4/getstr.m4: New file.
91614
91615         Module getline.
91616         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91617         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91618         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91619         simply getline. Infoke gl_PREREQ_GETLINE.
91620
91621         Module obstack.
91622         * m4/obstack.m4: New file.
91623
91624         Module hash.
91625         * m4/hash.m4: New file.
91626
91627         Module readtokens.
91628         * m4/readtokens.m4: New file.
91629
91630         Module strverscmp.
91631         * m4/strverscmp.m4: New file.
91632
91633         Module stdbool.
91634         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91635         OSF/1.
91636
91637         Module strtoll.
91638         * m4/strtoll.m4: New file.
91639
91640         Module strtoull.
91641         * m4/strtoull.m4: New file.
91642
91643         Module strtoimax.
91644         * m4/strtoimax.m4: New file.
91645
91646         Module strtoumax.
91647         * m4/strtoumax.m4: New file.
91648
91649         Module xstrtoimax.
91650         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91651         jm_AC_PREREQ_XSTRTOIMAX.
91652         Moved the strtol prerequisites to strtol.m4.
91653         Moved the strtoll prerequisites to strtoll.m4.
91654         Moved the strtoimax prerequisites to strtoimax.m4.
91655
91656         Module xstrtoumax.
91657         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91658         jm_AC_PREREQ_XSTRTOUMAX.
91659         Moved the strtoul prerequisites to strtoul.m4.
91660         Moved the strtoull prerequisites to strtoull.m4.
91661         Moved the strtoumax prerequisites to strtoumax.m4.
91662
91663         Module chown.
91664         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91665         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91666
91667         Module dup2.
91668         * m4/dup2.m4: New file.
91669
91670         Module ftruncate.
91671         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91672         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91673
91674         Module getgroups.
91675         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91676         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91677
91678         Module gettimeofday.
91679         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91680         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91681         gl_PREREQ_GETTIMEOFDAY.
91682
91683         Module mkdir.
91684         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91685         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91686
91687         Module mkstemp.
91688         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91689         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91690         jm_AC_TYPE_UINTMAX_T.
91691         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91692
91693         Module stat.
91694         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91695         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91696
91697         Module lstat.
91698         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91699         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91700
91701         Module timespec.
91702         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91703         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91704         * m4/st_mtim.m4: Indentation.
91705
91706         Module nanosleep.
91707         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91708         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91709         gl_PREREQ_NANOSLEEP.
91710
91711         Module regex.
91712         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91713         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91714         (gl_REGEX): New macro.
91715
91716         Module rename.
91717         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91718         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91719
91720         Module rmdir.
91721         * m4/rmdir.m4: New file.
91722
91723         Module utime.
91724         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91725         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91726         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91727
91728         Module dirname.
91729         * m4/dirname.m4: New file.
91730
91731         Module getopt.
91732         * m4/getopt.m4: New file.
91733
91734         Module unistd-safer.
91735         * m4/unistd-safer.m4: New file.
91736
91737         Module fnmatch.
91738         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91739         declaration.
91740         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91741         (gl_FUNC_FNMATCH_POSIX): New macro.
91742         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91743         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91744         simply fnmatch.
91745
91746         Module exclude.
91747         * m4/exclude.m4: New file.
91748
91749         Module human.
91750         * m4/human.m4: New file.
91751
91752         Module acl.
91753         * m4/acl.m4: Nop.
91754
91755         Module backupfile.
91756         * m4/backupfile.m4: New file.
91757         * m4/d-ino.m4: Indentation.
91758
91759         Module fsusage.
91760         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91761         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91762         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91763
91764         Module dirfd.
91765         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91766         requirements.
91767
91768         Module euidaccess.
91769         * m4/euidaccess.m4: New file.
91770
91771         Module file-type.
91772         * m4/file-type.m4: New file.
91773
91774         Module fileblocks.
91775         * m4/fileblocks.m4: New file.
91776
91777         Module filemode.
91778         * m4/filemode.m4: New file.
91779
91780         Module isdir.
91781         * m4/isdir.m4: New file.
91782
91783         Module lchown.
91784         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91785         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91786
91787         Module makepath.
91788         * m4/makepath.m4: New file.
91789
91790         Module modechange.
91791         * m4/modechange.m4: New file.
91792
91793         Module mountlist.
91794         * m4/mountlist.m4: New file.
91795         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91796         Indentation.
91797
91798         Module path-concat.
91799         * m4/path-concat.m4: New file.
91800
91801         Module pathmax.
91802         * m4/pathmax.m4: New file.
91803
91804         Module same.
91805         * m4/same.m4: New file.
91806
91807         Module save-cwd.
91808         * m4/save-cwd.m4: New file.
91809
91810         Module savedir.
91811         * m4/savedir.m4: New file.
91812
91813         Module xgetcwd.
91814         * m4/xgetcwd.m4: New file.
91815         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91816
91817         Module xreadlink.
91818         * m4/xreadlink.m4: New file.
91819
91820         Module safe-read.
91821         * m4/safe-read.m4: New file.
91822
91823         Module safe-write.
91824         * m4/safe-write.m4: New file.
91825
91826         Module closeout.
91827         * m4/closeout.m4: New file.
91828
91829         Module stdio-safer.
91830         * m4/stdio-safer.m4: New file.
91831
91832         Module getpass.
91833         * m4/getpass.m4: New file.
91834
91835         Module getugroups.
91836         * m4/getugroups.m4: New file.
91837
91838         Module group-member.
91839         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91840         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91841
91842         Module idcache.
91843         * m4/idcache.m4: New file.
91844
91845         Module userspec.
91846         * m4/userspec.m4: New file.
91847
91848         Module gettime.
91849         * m4/clock_time.m4: New file.
91850         * m4/gettime.m4: New file.
91851
91852         Module settime.
91853         * m4/settime.m4: New file.
91854
91855         Module posixtm.
91856         * m4/posixtm.m4: New file.
91857
91858         Module gethostname.
91859         * m4/gethostname.m4: New file.
91860
91861         Module canon-host.
91862         * m4/canon-host.m4: New file.
91863
91864         Module gettext.
91865         * m4/codeset.m4: New file, from gettext-0.11.5.
91866         * m4/gettext.m4: New file, from gettext-0.11.5.
91867         * m4/glibc21.m4: New file, from gettext-0.11.5.
91868         * m4/iconv.m4: New file, from gettext-0.11.5.
91869         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91870         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91871         * m4/inttypes.m4: New file, from gettext-0.11.5.
91872         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91873         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91874         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91875         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91876         * m4/lib-link.m4: New file, from gettext-0.11.5.
91877         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91878         * m4/progtest.m4: New file, from gettext-0.11.5.
91879         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91880         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91881         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91882
91883         Module localcharset.
91884         * m4/localcharset.m4: New file.
91885
91886         Module hard-locale.
91887         * m4/hard-locale.m4: New file.
91888
91889         Module mbswidth.
91890         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91891         onceonly macros.
91892         * m4/mbrtowc.m4: Add comment.
91893
91894         Module memcasecmp.
91895         * m4/memcasecmp.m4: New file.
91896
91897         Module memcoll.
91898         * m4/memcoll.m4: New file.
91899
91900         Module unicodeio.
91901         * m4/unicodeio.m4: New file.
91902
91903         Module rpmatch.
91904         * m4/rpmatch.m4: New file.
91905
91906         Module yesno.
91907         * m4/yesno.m4: New file.
91908
91909         Module exitfail.
91910         * m4/exitfail.m4: New file.
91911
91912         Module c-stack.
91913         * m4/c-stack.m4 (gl_C_STACK): New macro.
91914         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91915
91916         Module error.
91917         * m4/error.m4 (gl_ERROR): New macro.
91918         (jm_PREREQ_ERROR): Use onceonly macros.
91919
91920         Module fatal.
91921         * m4/fatal.m4: New file.
91922
91923         Module getloadavg.
91924         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91925         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91926
91927         Module getpagesize.
91928         * m4/getpagesize.m4: New file.
91929
91930         Module getusershell.
91931         * m4/getusershell.m4: New file.
91932
91933         Module physmem.
91934         * m4/physmem.m4: New file.
91935
91936         Module posixver.
91937         * m4/posixver.m4: New file.
91938
91939         Module quotearg.
91940         * m4/quotearg.m4: New file.
91941
91942         Module quote.
91943         * m4/quote.m4: New file.
91944
91945         Module readutmp.
91946         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91947
91948         Module sig2str.
91949         * m4/sig2str.m4: New file.
91950
91951         Other.
91952         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91953         ulonglong.m4.
91954         * m4/intmax_t.m4: New file.
91955         * m4/d-type.m4: Indentation.
91956         * m4/jm-macros.m4: Update.
91957         * m4/prereq.m4 (jm_PREREQ): Update.
91958         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91959         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91960         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91961         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91962         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91963         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91964         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91965         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91966         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91967         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91968         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91969         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91970         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91971         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91972         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91973         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91974         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91975         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91976         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91977
91978 2002-12-24  Bruno Haible  <bruno@clisp.org>
91979
91980         * MODULES.txt: Update according to m4/ changes.
91981
91982         Module gettext.
91983         * config.rpath: New file, from gettext-0.11.5.
91984
91985         * modules/*: New module descriptions.
91986         * gnulib-tool: New file.
91987         * MODULES.html.sh: New file.
91988
91989 2002-12-21  Karl Berry  <karl@gnu.org>
91990
91991         * doc/fdl.texi: update to version 1.2.
91992
91993 2002-12-19  Karl Berry  <karl@gnu.org>
91994
91995         * config/config.guess: update from prep.
91996
91997 2002-12-18  Bruno Haible  <bruno@clisp.org>
91998
91999         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
92000         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
92001
92002 2002-12-17  Bruno Haible  <bruno@clisp.org>
92003
92004         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
92005         stdlib.h, string.h.
92006
92007 2002-12-17  Bruno Haible  <bruno@clisp.org>
92008
92009         * lib/canon-host.c (strdup): Remove unused declaration.
92010
92011         * lib/fsusage.c: Include full_read.h.
92012         (get_fs_usage): Use full_read instead of safe_read.
92013
92014         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92015
92016 2002-12-12  Karl Berry  <karl@gnu.org>
92017
92018         * config/config.guess: update from prep.
92019
92020 2002-12-11  Bruno Haible  <bruno@clisp.org>
92021
92022         * m4/setenv.m4: New file, from gettext-0.11.5.
92023
92024 2002-12-11  Bruno Haible  <bruno@clisp.org>
92025
92026         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92027         not unsetenv().
92028         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92029         modifications:
92030
92031         2002-12-11  Bruno Haible  <bruno@clisp.org>
92032
92033                 * setenv.c (alloca): Fall back to malloc.
92034                 (freea): New macro.
92035                 (setenv): Use freea() to free memory allocated with alloca().
92036
92037         2002-11-13  Bruno Haible  <bruno@clisp.org>
92038
92039                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92040                 function declarations.
92041                 * unsetenv.c (unsetenv): Likewise.
92042
92043         2002-03-04  Bruno Haible  <bruno@clisp.org>
92044
92045                 Portability to AIX 4.3.3.
92046                 * unsetenv.c: New file, extracted from setenv.c.
92047                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92048
92049         2001-12-20  Bruno Haible  <bruno@clisp.org>
92050
92051                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92052                 use malloc instead. For SunOS 4.
92053
92054         2001-12-11  Bruno Haible  <bruno@clisp.org>
92055
92056                 * setenv.c: Declare alloca.
92057                 (compar_fn_t): New typedef.
92058                 (KNOWN_VALUE, STORE_VALUE): Use it.
92059
92060         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92061         setenv.h.
92062
92063 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92064
92065         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92066         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92067         Choose values that are less likely to collide with system fnmatch
92068         options.
92069         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92070         defined (e.g., a pure POSIX system).
92071         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92072         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92073
92074 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92075
92076         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92077         a pain in practice to deal with generated m4 files.  This change
92078         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92079
92080         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92081         and jm-glibc-io.m4, as they are no longer a special case.
92082         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92083         kludge and the auto-generation stuff.  Check only whether the
92084         functions are declared, not whether they exist, since older hosts
92085         that don't declare the functions can't use the optimization anyway.
92086
92087 2002-12-06  Jim Meyering  <jim@meyering.net>
92088
92089         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92090
92091         Merge in changes from libc's misc/error.c, in preparation
92092         for the merge of gnulib's changes back into libc.
92093
92094         * lib/error.c (_): Define only if not already defined.
92095         Move definition to follow all #include directives.
92096         Include unlocked-io.h only if !_LIBC.
92097         [_LIBC]: Include <libio/libioP.h>.
92098         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92099         (fflush): Tweak definition to use INTUSE.
92100         (putc): Define.
92101
92102 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92103
92104         * lib/alloca.c [defined emacs]: Include "lisp.h".
92105         (xalloc_die) [defined emacs]: New macro.
92106         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92107         [! defined emacs]: Include <xalloc.h>.
92108         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92109         (pointer): Typedef to POINTER_TYPE *.
92110         (malloc): Remove decl; we now always use xmalloc.
92111         (alloca): Use old-style definition, since Emacs needs this.
92112         Check for arithmetic overflow when computing combined size.
92113
92114 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92115
92116         Do not generate unlocked-io.h automatically, since it's easier to
92117         maintain it by hand.
92118
92119         * lib/unlocked-io.h: New file, from GNU diffutils,
92120         but with proper copyright notice and attribution.
92121         * lib/gen-uio: Remove.
92122         * lib/Makefile.am: Add copyright notice.
92123         (libfetish_a_SOURCES): Add unlocked-io.h.
92124         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92125         (DISTCLEANFILES, io_functions): Remove macros.
92126         (EXTRA_DIST): Remove gen_uio.
92127         (unlocked-io.h): Remove rule.
92128
92129 2002-12-04  Jim Meyering  <jim@meyering.net>
92130
92131         Reflect the fact that stat.c and lstat.c are no longer generated.
92132         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92133         (DISTCLEANFILES): Likewise.
92134         (EXTRA_DIST): Likewise.
92135         (all_local): Don't depend on stat.c or lstat.c.
92136         (stat.c, lstat.c): Remove rules.
92137         (EXTRA_DIST): Remove xstat.in.
92138
92139         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92140         * lib/stat.c: New file.  Contents mostly from xstat.in.
92141         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92142         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92143
92144         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92145         too.
92146         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92147
92148 2002-12-03  Jim Meyering  <jim@meyering.net>
92149
92150         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92151         but not semantics, to minimize the differences between these two files.
92152         (safe_read): Change comment to mention SAFE_READ_ERROR.
92153
92154         * lib/safe-read.c (IS_EINTR): Define.
92155         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92156
92157 2002-12-02  Jim Meyering  <jim@meyering.net>
92158
92159         * lib/safe-read.c (EINTR): Define.
92160         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92161         (INT_MAX): Provide fallback.
92162         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92163
92164         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92165
92166 2002-12-02  Bruno Haible  <bruno@clisp.org>
92167
92168         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92169         Define, taken from safe-read.c.
92170         (INT_MAX): Provide fallback.
92171         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92172         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92173
92174         * lib/safe-read.c (EINTR): Remove definition.
92175         (safe_read): Don't use EINTR if it is absent.
92176
92177 2002-12-01  Jim Meyering  <jim@meyering.net>
92178
92179         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92180         zero.
92181         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92182
92183 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92184
92185         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92186         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92187         with `if (! (value < limit)) abort ();', for readability.
92188
92189 2002-11-26  Karl Berry  <karl@gnu.org>
92190
92191         * lib/strdup.c: copy from libc again, with jim's ok.
92192         * lib/.cppi-disable: re-add strdup.c
92193
92194 2002-11-25  Karl Berry  <karl@gnu.org>
92195
92196         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92197         instead of "strtol.c".
92198
92199 2002-11-25  Karl Berry  <karl@gnu.org>
92200
92201         * config/install-sh: update from automake for variable quoting, $0 in
92202         error msgs, etc.
92203
92204         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92205         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92206         entry.
92207
92208 2002-11-25  Jim Meyering  <jim@meyering.net>
92209
92210         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92211
92212 2002-11-24  Karl Berry  <karl@gnu.org>
92213
92214         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92215         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92216
92217 2002-11-24  Jim Meyering  <jim@meyering.net>
92218
92219         Update from coreutils:
92220
92221         * lib/mktime.c: Merge in changes from libc.
92222
92223         Avoid a link-time failure on some Linux systems.
92224         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92225         (otherwise).
92226         (__mon_yday): Declare with the STATIC attribute.
92227         (__mktime_internal): Likewise.
92228         Based on a report from Greg Schafer.
92229
92230 2002-11-23  Jim Meyering  <jim@meyering.net>
92231
92232         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92233         Use `unsigned', not `int', as type of index.
92234
92235         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92236
92237         * lib/fsusage.c: Remove unneeded parentheses around operands of
92238         `defined'.
92239
92240 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92241
92242         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92243         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92244         so that we can be included first.
92245         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92246         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92247         No need to include stddef.h or sys/types.h any more.
92248         Surround local include files with "", not "<>".
92249         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92250         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92251         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92252         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92253         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92254         (ISPRINT): Remove; no longer needed now that we assume C89.
92255
92256         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92257         Preserve errno.
92258
92259         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92260         quotearg_char): Use SIZE_MAX rather than
92261         (size_t) -1 when we are talking about "infinity".
92262
92263         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92264
92265 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92266
92267         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92268         hint that one should use `if (! x) abort ();' rather than `assert
92269         (x);', and anyway it's one less thing to worry about configuring.
92270         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92271         hash_rehash, hash_insert): Use abort rather than assert.
92272
92273 2002-11-22  Bruno Haible  <bruno@clisp.org>
92274
92275         * lib/safe-read.h: Assume C89. Add comments.
92276         (safe_read): Change return type to size_t.
92277         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92278         byte counts > SSIZE_MAX correctly.
92279         * lib/safe-write.h: New file.
92280         * lib/safe-write.c: New file.
92281         * lib/full-read.h: New file.
92282         * lib/full-read.c: New file.
92283         * lib/full-write.h: Assume C89. Add comments.
92284         * lib/full-write.c: Include safe-write.h.
92285         (full_write): Rewritten to use safe_write.
92286         Suggested by Jim Meyering and Paul Eggert.
92287
92288 2002-11-21  Jim Meyering  <jim@meyering.net>
92289
92290         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92291
92292         Merge in changes from the coreutils.
92293
92294         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92295         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92296         <stdint.h>.
92297         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92298         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92299         int.  Work more efficiently if X is the same width as uintmax_t.
92300         Do not compare X to -1, to avoid bogus compiler warning.
92301         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92302         Don't assume that f_frsize and f_bsize are the same type.
92303
92304         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92305         warning on FreeBSD.
92306
92307         * lib/makepath.c (make_path): Restore umask *before* creating the final
92308         component.
92309         (make_path): Minor reformatting.
92310
92311         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92312         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92313         HAVE_MALLOC/HAVE_REALLOC.
92314
92315         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92316         dummy ones.  At least on GNU/Linux systems, `auto' means something
92317         else.
92318         From Michael Stone.
92319
92320 2002-11-21  Bruno Haible  <bruno@clisp.org>
92321
92322         Remove case insensitive option matching.
92323         * lib/argmatch.h (argcasematch): Remove declaration.
92324         (ARGCASEMATCH): Remove macro.
92325         (__xargmatch_internal): Remove case_sensitive argument.
92326         (XARGMATCH): Update.
92327         (XARGCASEMATCH): Remove macro.
92328         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92329         case_sensitive argument.
92330         (argcasematch): Remove function.
92331         (__xargmatch_internal): Remove case_sensitive argument.
92332         (main): Use XARGMATCH instead of XARGCASEMATCH.
92333
92334         * lib/xmalloc.c: Change compile-time error message. Add comment about
92335         required autoconf version.
92336
92337 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92338
92339         Merge argmatch cleanups from Bison.  Assume C89.
92340
92341         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92342         Include stdlib.h, for EXIT_FAILURE.
92343         Always include <string.h>, since we assume C89.
92344         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92345         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92346         Include <stddef.h> instead, since it's all we need for size_t.
92347         (PARAMS): Remove.  All uses removed.
92348         (ARRAY_CARDINALITY): Do not bother to #undef.
92349         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92350         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92351         Remove unnecessary parentheses.
92352         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92353         Insert necessary parentheses.
92354         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92355         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92356
92357 2002-11-19  Bruno Haible  <bruno@clisp.org>
92358
92359         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92360         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92361
92362         * lib/mbswidth.h (PARAMS): Remove macro.
92363         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92364         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92365
92366         * lib/gcd.h (PARAMS): Remove macro.
92367         (gcd): Use ANSI C function declarations.
92368         * lib/gcd.c (gcd): Likewise.
92369
92370 2002-11-15  Bruno Haible  <bruno@clisp.org>
92371
92372         * lib/strcspn.c: Include <stddef.h>.
92373         (strcspn): Use ANSI C function declaration. Change return type to
92374         size_t. Use NULL.
92375         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92376         (strpbrk): Use NULL.
92377         * lib/strpbrk.h (PARAMS): Remove macro.
92378         (strpbrk): Use ANSI C function declaration.
92379         * lib/strstr.c: Don't include <sys/types.h>.
92380         * lib/strstr.h (PARAMS): Remove macro.
92381         (strstr): Use ANSI C function declarations.
92382
92383 2002-11-14  Karl Berry  <karl@gnu.org>
92384
92385         * config/mkinstalldirs: `do' on separate line, instead of
92386         `for var; do'.
92387
92388 2002-11-06  Bruno Haible  <bruno@clisp.org>
92389
92390         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92391         * lib/gcd.c (gcd): Likewise.
92392
92393 2002-11-05  Bruno Haible  <bruno@clisp.org>
92394
92395         * lib/gcd.h: New file, from gettext-0.11.5.
92396         * lib/gcd.c: New file, from gettext-0.11.5.
92397
92398 2002-11-05  Bruno Haible  <bruno@clisp.org>
92399
92400         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92401         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92402         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92403         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92404
92405         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92406         <libintl.h>.
92407         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92408         <libintl.h>.
92409
92410         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92411         * lib/human.c: Include gettext.h instead of <libintl.h>.
92412         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92413         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92414         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92415         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92416         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92417         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92418         (textdomain): Remove definition.
92419         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92420
92421         * lib/long-options.c: Remove include of <libintl.h> and definition of
92422         _.
92423         * lib/same.c: Remove include of <libintl.h> and definition of _.
92424
92425 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92426
92427         * lib/config.charset: A few additions for Solaris.
92428
92429 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92430
92431         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92432         * lib/localcharset.c (locale_charset): Declare as extern "C".
92433
92434 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92435
92436         * lib/config.charset: msdos in uk_UA uses CP1125.
92437
92438 2002-11-04  Bruno Haible  <bruno@clisp.org>
92439
92440         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92441         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92442         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92443         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92444         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92445
92446 2002-11-04  Bruno Haible  <bruno@clisp.org>
92447
92448         * lib/localcharset.c (locale_charset): Don't return an empty string.
92449
92450 2002-11-04  Bruno Haible  <bruno@clisp.org>
92451
92452         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92453         aliases.
92454
92455 2002-11-04  Bruno Haible  <bruno@clisp.org>
92456
92457         * lib/config.charset: Update for newest glibc. Add canonical names
92458         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92459
92460 2002-11-04  Bruno Haible  <bruno@clisp.org>
92461
92462         * lib/config.charset: Add support for NetBSD.
92463
92464 2002-11-04  Bruno Haible  <bruno@clisp.org>
92465
92466         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92467
92468 2002-11-01  Bruno Haible  <bruno@clisp.org>
92469
92470         * configure.in: Add AC_CONFIG_AUX_DIR call.
92471         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92472         test/Makefile.
92473         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92474
92475 2002-09-28  Karl Berry  <karl@gnu.org>
92476
92477         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92478         installed automake until the next release, since changes have been
92479         made.
92480
92481 2002-09-25  Karl Berry  <karl@gnu.org>
92482
92483         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92484         * lib/getopt*: copy from libc/posix.
92485         * lib/gettext.h: copy from gettext.
92486         * lib/.cppi-disable: add strdup.c, gettext.h.
92487
92488 2002-09-25  Karl Berry  <karl@gnu.org>
92489
92490         * config/srclist.txt: enable gettext.h check.
92491         * config/config.{guess,sub}: update from prep.
92492         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92493                 from automake 1.6.3.
92494         See srclist*.
92495
92496 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92497
92498         * regex.c (PATFETCH): Remove the translating fetch.
92499         (PATFETCH_RAW): Rename to PATFETCH.
92500         (set_image_of_range): New fun.
92501         (SET_RANGE_TABLE_WORK_AREA): Use it.
92502         (regex_compile): Don't translate the pattern chars so eagerly.
92503         Only do it when inserting an `exactn' bytecode or when handling
92504         a char-range.
92505         (mutually_exclusive_p): Avoid empty statement.
92506
92507 2002-07-06  Jim Meyering  <meyering@lucent.com>
92508
92509         * m4/README: Don't mention Makefile.am.in.
92510         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92511
92512 2002-07-01  Jim Meyering  <meyering@lucent.com>
92513
92514         * lib/c-stack.c: Include sys/time.h.
92515         From Volker Borchert.
92516
92517 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92518
92519         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92520
92521 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92522
92523         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92524         New macro.  Use it uniformly instead of
92525         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92526         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92527         reported by Vin Shelton.
92528
92529 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92530
92531         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92532         Do not assume SA_SIGINFO behavior.
92533         Bug reported by Jim Meyering on NetBSD 1.5.2.
92534
92535 2002-06-22  Jim Meyering  <meyering@lucent.com>
92536
92537         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92538         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92539
92540         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92541         now that configure.ac uses AC_GNU_SOURCE.
92542         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92543         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92544
92545         Update to latest tools.  Suggestions from Paul Eggert.
92546         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92547         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92548         * m4/fnmatch.m4: Likewise.
92549         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92550         to AC_HEADER_STDBOOL
92551
92552 2002-06-22  Jim Meyering  <meyering@lucent.com>
92553
92554         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92555         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92556
92557 2002-06-22  Jim Meyering  <meyering@lucent.com>
92558
92559         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92560
92561         * lib/exitfail.c, exitfail.h: Likewise.
92562         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92563
92564         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92565         of fnmatch.h.
92566         (EXTRA_DIST): Add fnmatch_loop.c.
92567         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92568
92569         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92570         * lib/fnmatch.c: Update from diffutils-2.8.2.
92571         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92572         * lib/fnmatch.h: Remove file.
92573
92574 2002-06-21  Jim Meyering  <meyering@lucent.com>
92575
92576         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92577         * m4/mbrtowc.m4: Likewise.
92578
92579         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92580         * m4/mbswidth.m4: Reflect name change:
92581         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92582         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92583
92584         * m4/lib-link.m4: Update from gettext-0.11.2.
92585         * m4/gettext.m4: Likewise.
92586
92587         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92588         From Alfred M. Szmidt.
92589
92590 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92591
92592         * lib/file-type.h: Report an error if neither S_ISREG nor
92593         S_IFREG is defined, instead of using a test specific to glibc
92594         2.2.  This should be safe, since POSIX requires S_ISREG and
92595         Unix Version 7 had S_IFREG.  We don't need to check for
92596         <sys/types.h> since we don't use any symbols that it defines.
92597
92598 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92599
92600         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92601         $@-t, so that each temporary file name is unique and valid in the first
92602         8 characters, for operation under DOS.
92603
92604 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92605
92606         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92607
92608 2002-06-15  Jim Meyering  <meyering@lucent.com>
92609
92610         Work even with DJGPP 2.03, which lacks support for symlinks.
92611         From Richard Dawe.
92612         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92613         is defined.
92614         * lib/lchown.c (S_ISLNK): Likewise.
92615
92616 2002-06-15  Jim Meyering  <meyering@lucent.com>
92617
92618         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92619         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92620         have been included before this file.
92621
92622 2002-06-14  Jim Meyering  <meyering@lucent.com>
92623
92624         * lib/file-type.h: Use the version from diffutils-2.8.2.
92625         * lib/file-type.c: Likewise.
92626
92627 2002-06-07  Jim Meyering  <meyering@lucent.com>
92628
92629         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92630         They're needed at least for NetBSD 1.5.2.
92631         ($statxfs_includes): Include those same headers.
92632         ($statxfs_includes): Include sys/vfs.h if available.
92633         ($statxfs_includes): Likewise for sys/statvfs.h.
92634         Check for the following members in both structs statfs and statvfs:
92635         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92636
92637 2002-06-01  Jim Meyering  <meyering@lucent.com>
92638
92639         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92640         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92641
92642 2002-05-28  Jim Meyering  <meyering@lucent.com>
92643
92644         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92645         Reported by Volker Borchert.
92646
92647 2002-05-27  Jim Meyering  <meyering@lucent.com>
92648
92649         Fix a problem seen only on nonconforming systems whereby ls.c's
92650         use of localtime, and then of gettimeofday would cause trouble:
92651         the localtime call used to initialize rpl_gettimeofday's save
92652         mechanism would clobber ls's current local time information so
92653         that in any long listing the first file would always be listed
92654         with date 1970-01-01.  Analysis by Volker Borchert.
92655
92656         * lib/gettimeofday.c (localtime): Undefine.
92657         (rpl_localtime): New function.
92658
92659 2002-05-27  Jim Meyering  <meyering@lucent.com>
92660
92661         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92662         localtime.
92663
92664         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92665         use the replacement function; it wouldn't resolve at link time.
92666         Reported by Volker Borchert.
92667
92668 2002-05-22  Jim Meyering  <meyering@lucent.com>
92669
92670         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92671         file-type.h.
92672         * lib/file-type.h: New file.
92673         * lib/file-type.c (file_type): New file/function.  Extracted from
92674         diffutils.
92675
92676 2002-04-30  Jim Meyering  <meyering@lucent.com>
92677
92678         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92679
92680 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92681
92682         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92683
92684 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92685
92686         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92687         Do not check for alloca.h (no longer used) or stdbool.h (was never
92688         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92689
92690 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92691
92692         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92693
92694 2002-04-29  Jim Meyering  <meyering@lucent.com>
92695
92696         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92697         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92698         Use AC_FUNC_STRNLEN here instead.
92699
92700         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92701         With autoconf-2.53a, it's part of AC_PROG_CC.
92702
92703 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92704
92705         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92706         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92707
92708 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92709
92710         * lib/sig2str.h, lib/sig2str.c: New files.
92711         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92712
92713 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92714
92715         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92716         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92717         of 127, since 64 is the largest conceivable number for ancient
92718         nonstandard hosts.
92719         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92720
92721 2002-04-28  Jim Meyering  <meyering@lucent.com>
92722
92723         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92724
92725 2002-04-24  Jim Meyering  <meyering@lucent.com>
92726
92727         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92728         (jm_PREREQ): Use it.
92729
92730         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92731         mach/mach.h fcntl.h.
92732         Check for this function: setlocale.
92733
92734 2002-04-24  Jim Meyering  <meyering@lucent.com>
92735
92736         * lib/gettext.h: New file, from Gettext.
92737         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92738         (libfetish_a_SOURCES): Add gettext.h.
92739
92740 2002-04-16  Jim Meyering  <meyering@lucent.com>
92741
92742         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92743         ut_pid, ut_id, ut_exit.
92744
92745 2002-04-16  Jim Meyering  <meyering@lucent.com>
92746
92747         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92748         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92749         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92750
92751 2002-04-12  Jim Meyering  <meyering@lucent.com>
92752
92753         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92754         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92755         existence of the getmntinfo function.  Needed for Darwin 5.3.
92756
92757         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92758         This is necessary at least on Darwin 5.3.
92759
92760         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92761         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92762         strnlen.o in the library, and that makes some versions of ranlib
92763         object.
92764
92765 2002-04-12  Jim Meyering  <meyering@lucent.com>
92766
92767         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92768
92769 2002-04-09  Jim Meyering  <meyering@lucent.com>
92770
92771         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92772         to be more precise.  Rather than saying we're checking whether the
92773         function `works', say what we're testing.
92774         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92775         Reported by Bruno Haible.
92776
92777 2002-03-10  Jim Meyering  <meyering@lucent.com>
92778
92779         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92780         Suggestion from Santiago Vila.
92781
92782 2002-03-08  Jim Meyering  <meyering@lucent.com>
92783
92784         * lib/rename.c: Mention that this wrapper is needed also on
92785         mips-dec-ultrix4.4 systems.
92786
92787 2002-03-02  Jim Meyering  <meyering@lucent.com>
92788
92789         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92790         not HAVE_CLOCK_SETTIME.
92791
92792 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92793
92794         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92795         Check for clock_settime.
92796
92797 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92798
92799         * lib/nanosleep.h: Rename to....
92800         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92801
92802         * lib/gettime.c: New file.
92803         * lib/settime.c: New file.
92804         * lib/stime.c: Remove.
92805
92806         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92807         timespec.h.  Remove nanosleep.h.
92808
92809 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92810
92811         * m4/acl.m4: New file.
92812         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92813         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92814
92815 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92816
92817         * lib/acl.c, lib/acl.h: New files.
92818         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92819
92820 2002-02-24  Jim Meyering  <meyering@lucent.com>
92821
92822         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92823         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92824         cause trouble.  Reported by Nelson Beebe.
92825
92826 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92827
92828         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92829         compilers that don't know that xalloc_die never returns.
92830
92831 2002-02-20  Jim Meyering  <meyering@lucent.com>
92832
92833         * lib/getdate.c: Regenerate using bison-1.33.
92834
92835 2002-02-17  Jim Meyering  <meyering@lucent.com>
92836
92837         * config/config.guess (main): Don't use `head -1'; it's no longer
92838         portable. Use `sed 1q' instead.
92839
92840 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92841
92842         * m4/codeset.m4: Upgrade to gettext-0.11.
92843         * m4/gettext.m4: Upgrade to gettext-0.11.
92844         * m4/glibc21.m4: Upgrade to gettext-0.11.
92845         * m4/iconv.m4: Upgrade to gettext-0.11.
92846         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92847         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92848         * m4/lib-ld.m4: New file, from gettext-0.11.
92849         * m4/lib-link.m4: New file, from gettext-0.11.
92850         * m4/lib-prefix.m4: New file, from gettext-0.11.
92851         * m4/progtest.m4: Upgrade to gettext-0.11.
92852
92853 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92854
92855         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92856         (jm_PREREQ): Use it.
92857
92858 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92859
92860         * lib/posixver.c, lib/posixver.h: New files.
92861         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92862
92863 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92864             Bruno Haible  <bruno@clisp.org>
92865
92866         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92867         (fwrite_success_callback): New declaration.
92868         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92869         print_unicode_char. Call failure callback instead of error.
92870         (fwrite_success_callback): New function.
92871         (exit_failure_callback): New function.
92872         (fallback_failure_callback): New function.
92873         (print_unicode_char): Call unicode_to_mb.
92874
92875 2002-01-26  Jim Meyering  <meyering@lucent.com>
92876
92877         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92878         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92879
92880 2002-01-26  Jim Meyering  <meyering@lucent.com>
92881
92882         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92883
92884 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92885
92886         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92887
92888 2002-01-22  Jim Meyering  <meyering@lucent.com>
92889
92890         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92891         Otherwise, some versions of automake would omit the rule that makes
92892         Makefile from Makefile.in.
92893
92894 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92895
92896         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92897         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92898         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92899         (memcoll): Set errno to zero if there is no error.
92900
92901         * lib/quotearg.c (quotearg_buffer_restyled):
92902         Fix bug with quoting buffers containing NUL when backslashing escapes.
92903         This bug was exposed by the other changes in this patch.
92904         (quotearg_n_options): New arg ARGSIZE.
92905         All callers changed.
92906         (quoting_options_from_style): New function.
92907         (quotearg_n_style): Use it.
92908         (quotearg_n_style_mem): New function.
92909
92910         * lib/quotearg.h (quotearg_n_style_mem): New function.
92911
92912 2002-01-19  Jim Meyering  <meyering@lucent.com>
92913
92914         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92915         Remove useless quotes: DF_PROG="df".
92916         * m4/strnlen.m4: New file.
92917
92918 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92919
92920         * lib/backupfile.c (ISDIGIT): Comment fix.
92921         * lib/getdate.y (ISDIGIT): Likewise.
92922         * lib/posixtm.c (ISDIGIT, year): Likewise.
92923         * lib/strverscmp.c (ISDIGIT): Likewise.
92924         * lib/userspec.c (ISDIGIT): Likewise.
92925
92926 2002-01-16  Jim Meyering  <meyering@lucent.com>
92927
92928         * lib/getdate.y: Add three semicolons, each just before a closing
92929         brace. Bison (as of version 1.31) no longer papers over that mistake.
92930
92931 2002-01-05  Jim Meyering  <meyering@lucent.com>
92932
92933         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92934
92935 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92936
92937         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92938         not silently exit merely because the output buffer happens to
92939         have nothing pending.
92940
92941 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92942
92943         See the big note in ../ChangeLog.
92944         * lib/human.c (suffixes): Prefer K to k for 1024.
92945         (generate_suffix_backwards): New function.
92946         (human_readable_inexact): Use it.
92947         * lib/xstrtol.c (__xstrtol): If there is no number but there
92948         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92949         Accept 'K' as well as 'k'.
92950
92951 2001-12-15  Jim Meyering  <meyering@lucent.com>
92952
92953         * lib/regex.h (__restrict_arr): Update from libc.
92954
92955         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92956         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92957         (STREQ): Define.
92958
92959 2001-12-14  Jim Meyering  <meyering@lucent.com>
92960
92961         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92962         Suggestion from Bruno Haible.
92963
92964 2001-12-10  Jim Meyering  <meyering@lucent.com>
92965
92966         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92967         xrealloc, Instead, include "xalloc.h".
92968         (initbuffer): Don't cast xmalloc return value to char*.
92969         (readline): Reword comment.
92970         Don't cast xrealloc return value to char*
92971         Return NULL, not 0.
92972
92973 2001-12-09  Jim Meyering  <meyering@lucent.com>
92974
92975         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92976         about `signed and unsigned type in conditional expression'.
92977         * lib/posixtm.c (posix_time_parse): Likewise.
92978
92979         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92980
92981         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92982         to avoid a pedantic warning.
92983
92984         * lib/getstr.c: Don't include assert.h.
92985         (getstr): Remove warning-evoking assertions.
92986         Return -1 if offset parameter is out of bounds.
92987         Change the type of a local from int to size_t.
92988
92989         * lib/strftime.c (my_strftime_localtime_r): Include this function
92990         definition in the `#if ! HAVE_TM_GMTOFF' block.
92991
92992         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92993         Include xalloc.h instead.
92994
92995 2001-12-02  Jim Meyering  <meyering@lucent.com>
92996
92997         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92998         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92999         included.
93000
93001         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
93002         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
93003
93004 2001-11-30  Akim Demaille  <akim@epita.fr>
93005
93006         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
93007         before being defined.
93008
93009 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93010
93011         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93012         First arg is int, not unsigned.
93013         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93014         (SIZE_MAX, UINT_MAX): New macros.
93015         (quotearg_n_options): Abort if N is negative.
93016         Avoid overflow check on hosts where size_t is 64 bits and int
93017         is 32 bits, as overflow is impossible there.
93018         Fix off-by-one typo that caused unnecessary reallocation.
93019
93020 2001-11-27  Jim Meyering  <meyering@lucent.com>
93021
93022         * lib/tempname.c: Merge with version from libc.
93023         * lib/regex.c: Likewise.
93024
93025         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93026         systems for which STDC_HEADERS is 0, it was not included, resulting in
93027         a warning about an integer-to-pointer conversion problem with getenv.
93028         Reported by Volker Borchert.
93029
93030 2001-11-26  Jim Meyering  <meyering@lucent.com>
93031
93032         * lib/gtod.h: Remove file.
93033         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93034         * lib/gettimeofday.c: Don't include gtod.h.
93035         (GTOD_init): Remove function.
93036         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93037         Suggestion from Volker Borchert.
93038
93039 2001-11-23  Jim Meyering  <meyering@lucent.com>
93040
93041         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93042         it.
93043         * lib/hash.c (struct hash_table): Define it here instead.
93044
93045 2001-11-22  Jim Meyering  <meyering@lucent.com>
93046
93047         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93048
93049 2001-11-20  Jim Meyering  <meyering@lucent.com>
93050
93051         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93052         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93053
93054 2001-11-19  Jim Meyering  <meyering@lucent.com>
93055
93056         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93057         directory.  Use "conftestXXXXXX" as the template.
93058         Suggestion from Paul Eggert.
93059
93060         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93061         immediately, so the test doesn't mistakenly hit the max-open-files
93062         limit.
93063
93064 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93065
93066         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93067         (TEMPORARIES): New macro.
93068         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93069         removes an artificial limitation (e.g. HP-UX 10.20, where
93070         TMP_MAX is 17576).
93071
93072 2001-11-18  Jim Meyering  <meyering@lucent.com>
93073
93074         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93075
93076 2001-11-18  Jim Meyering  <meyering@lucent.com>
93077
93078         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93079         on SunOS 4.
93080
93081         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93082         files will be created before anything else.
93083
93084 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93085
93086         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93087         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93088
93089 2001-11-17  Jim Meyering  <meyering@lucent.com>
93090
93091         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93092         Prompted by a report from Bob Proulx.
93093
93094         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93095         Instead, require UTILS_FUNC_MKSTEMP.
93096
93097 2001-11-17  Jim Meyering  <meyering@lucent.com>
93098
93099         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93100         Now, that's done as part of AC_FUNC_STRTOD.
93101
93102 2001-11-17  Jim Meyering  <meyering@lucent.com>
93103
93104         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93105         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93106         rather than group writable.  Patch by Juan F. Codagnone.
93107
93108         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93109         xrealloc, Instead, include "xalloc.h".
93110
93111         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93112         Remove explicit declarations of xmalloc, xrealloc,
93113         and xstrdup.  Instead, include "xalloc.h".
93114
93115         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93116         unlocked-io.h.
93117         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93118         Likewise.
93119         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93120
93121         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93122         Reported by Padraig Brady.
93123
93124         * lib/mkstemp.c: #undef mkstemp.
93125         Include config.h.
93126         (rpl_mkstemp): Rename from mkstemp.
93127         Protoize.
93128
93129 2001-11-16  Jim Meyering  <meyering@lucent.com>
93130
93131         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93132         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93133         determine the amount of total physical memory, use pstat_getstatic.
93134         HPUX-11 doesn't define _SC_PHYS_PAGES.
93135         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93136         If sysconf couldn't be used to determine the amount of available
93137         physical memory, use both pstat_getstatic and pstat_getdynamic.
93138         Based on a patch from Bob Proulx.
93139
93140 2001-11-10  Jim Meyering  <meyering@lucent.com>
93141
93142         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93143         (jm_PREREQ): Use it.
93144
93145 2001-11-09  Jim Meyering  <meyering@lucent.com>
93146
93147         * m4/jm-macros.m4: Require autoconf-2.52f.
93148         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93149         Use these AC_-prefixed names, not the AM_-prefixed ones.
93150
93151         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93152
93153 2001-11-05  Jim Meyering  <meyering@lucent.com>
93154
93155         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93156
93157 2001-11-04  Jim Meyering  <meyering@lucent.com>
93158
93159         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93160         $DEFS.
93161
93162 2001-11-03  Jim Meyering  <meyering@lucent.com>
93163
93164         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93165         of AC_DEFUN.
93166
93167         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93168         know the name of the variable in the macro definition.
93169
93170 2001-11-03  Jim Meyering  <meyering@lucent.com>
93171
93172         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93173         in argmatch_to_argument call.
93174
93175         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93176         argument.
93177
93178         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93179         e.g., a fault due to an attempt to free a NULL pointer.
93180
93181 2001-11-01  Jim Meyering  <meyering@lucent.com>
93182
93183         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93184         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93185
93186 2001-11-01  Jim Meyering  <meyering@lucent.com>
93187
93188         * lib/dirfd.c, lib/dirfd.h: New files.
93189         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93190
93191         * lib/hash.c (hash_print) [TESTING]: Clean up.
93192
93193 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93194
93195         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93196         to avoid a warning if -Wall.
93197
93198 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93199
93200         * README: New file
93201         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93202         (per RMS's instructions, this is now the canonical source)
93203         * lgpl/, gpl/: New directories.
93204
93205 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93206
93207         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93208
93209 2001-10-21  Jim Meyering  <meyering@lucent.com>
93210
93211         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93212         this code would end up calling gettext even in packages built
93213         with --disable-nls.
93214         * lib/getopt.c (_): Likewise.
93215         * lib/regex.c (_): Likewise.
93216
93217 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93218
93219         * m4/error.m4 (jm_PREREQ_ERROR):
93220         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93221         AC_FUNC_STRERROR_R does that.
93222         Check for strerror declaration.
93223
93224         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93225         are supposed to have them these days.
93226         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93227         Merge changes from latest Autoconf CVS.
93228         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93229         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93230         POSIX decided to standardize on the int flavor of strerror_r.
93231
93232 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93233
93234         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93235         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93236         Use strerror_r that is only a macro, even if it is not a function.
93237         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93238         (private_strerror): Use prototypes, not old-style function definition.
93239         (print_errno_message): New function.
93240         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93241         char*-flavored one.
93242         (error_tail, error, error_at_line): Use it.
93243
93244 2001-10-11  Jim Meyering  <meyering@lucent.com>
93245
93246         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93247         and quote_n (1, ... to avoid clobbering a buffer.
93248
93249 2001-10-05  Jim Meyering  <meyering@lucent.com>
93250
93251         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93252         hash-pjw.h.
93253         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93254         * lib/hash-pjw.h: New file.
93255
93256 2001-09-30  Jim Meyering  <meyering@lucent.com>
93257
93258         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93259         `struct fsstat' has the `f_fstypename' member.
93260         Use that to define FS_TYPE, which is now used to make
93261         the getfsstat link test tighter.
93262
93263 2001-09-30  Jim Meyering  <meyering@lucent.com>
93264
93265         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93266         Include <sys/ucred.h>, for Apple Darwin.
93267         Include sys/mount.h and sys/fs_types.h only if available.
93268         (FS_TYPE): Define.
93269         (read_filesystem_list): Use FS_TYPE.
93270
93271 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93272
93273         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93274         a boolean context.
93275
93276 2001-09-29  Jim Meyering  <meyering@lucent.com>
93277
93278         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93279         [one-argument getmntent function]): Include stdio.h before mntent.h.
93280         SunOS 4.1.x needs it for the declaration of `FILE'.
93281         Patch by Volker Borchert.
93282
93283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93284         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93285         sys/fs_types.h, and make the link-test for getfsstat guard #include
93286         directives with appropriate #if HAVE_*_H tests so that we can
93287         detect getfsstat on Apple Darwin1.3.7 systems.
93288         Reported by Nelson Beebe.
93289         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93290
93291 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93292
93293         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93294         #defines strtoimax.  Also treat the other strto* functions
93295         like strtoimax.
93296
93297         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93298         Check for strtoul and strtoumax,
93299         as those declarations are made even in the signed case.
93300         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93301         Likewise, for strtol and strtoimax.
93302
93303 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93304
93305         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93306         #defines strtoimax.  Also treat the other strto* functions
93307         like strtoimax.
93308
93309         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93310         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93311         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93312
93313 2001-09-26  Jim Meyering  <meyering@lucent.com>
93314
93315         Most macros in unlocked-io.h had the wrong number of arguments.
93316         * lib/gen-uio: New script.
93317         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93318         * lib/unlocked-io.hin: Remove file.
93319         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93320         rather than trying to embed it here.
93321         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93322         Reported by Padraig Brady.
93323
93324 2001-09-25  Volker Borchert  <bt@teknon.de>
93325
93326         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93327         `result'.
93328
93329 2001-09-24  Jim Meyering  <meyering@lucent.com>
93330
93331         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93332
93333 2001-09-23  Jim Meyering  <meyering@lucent.com>
93334
93335         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93336         instead of the mere test for existence of mntent.h.  The latter
93337         would get a false-positive on AIX 3.4 systems.
93338         In the outer getmntent if-block, don't die if neither of the getmntent
93339         tests succeeds.  Instead, just fall through and continue with the
93340         remaining tests.
93341
93342 2001-09-23  Jim Meyering  <meyering@lucent.com>
93343
93344         * lib/mountlist.c: Remove useless parentheses in #if directives.
93345         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93346         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93347
93348 2001-09-22  Jim Meyering  <meyering@lucent.com>
93349
93350         * m4/gettext.m4: New file.  From gettext.
93351         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93352         * m4/progtest.m4: Likewise
93353         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93354         * m4/glibc21.m4: Likewise.
93355
93356         * m4/libintl.m4: Remove.  No longer used.
93357
93358 2001-09-22  Jim Meyering  <meyering@lucent.com>
93359
93360         * lib/localcharset.c: Update from latest gettext.
93361         * lib/config.charset: Likewise.
93362
93363 2001-09-20  Jim Meyering  <meyering@lucent.com>
93364
93365         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93366         strtoimax.
93367         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93368         strtoumax.
93369
93370 2001-09-20  Jim Meyering  <meyering@lucent.com>
93371
93372         * lib/xstrtol.c (strtoimax): Guard declaration with
93373         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93374         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93375         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93376         (strtoumax): Likewise, for completeness (it wasn't necessary).
93377
93378 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93379
93380         * lib/strtoimax.c (HAVE_LONG_LONG):
93381         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93382         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93383         to work around bug in IBM C compiler.
93384
93385 2001-09-17  Jim Meyering  <meyering@lucent.com>
93386
93387         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93388         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93389         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93390         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93391         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93392         whenever the right hand side need not be expanded by the shell.
93393
93394 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93395
93396         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93397         library.  It's not correct, as some older glibcs are buggy.
93398         fnmatch wasn't fixed until glibc 2.2.
93399
93400         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93401         special shell magic here.
93402
93403 2001-09-16  Jim Meyering  <meyering@lucent.com>
93404
93405         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93406         * m4/jm-macros.m4: Require it.
93407
93408 2001-09-16  Jim Meyering  <meyering@lucent.com>
93409
93410         * lib/mkdir.c: New file.
93411
93412 2001-09-15  Jim Meyering  <meyering@lucent.com>
93413
93414         * m4/jm-macros.m4: Check for help2man.
93415
93416 2001-09-11  Jim Meyering  <meyering@lucent.com>
93417
93418         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93419         The body, by Paul Eggert, was moved here from configure.in.
93420         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93421
93422 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93423
93424         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93425         (jm_PREREQ): Use it.
93426
93427 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93428
93429         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93430         Use ssize_t, not int, to store result of readlink.
93431         Check for ssize_t overflow as well as size_t overflow,
93432         as POSIX says the result of readlink is implementation-defined
93433         when ssize_t overflows.
93434         Remove unnecessary cast to char*.
93435         Use free+malloc instead of realloc, as the storage doesn't need
93436         to be preserved and it's clearer and can be more efficient that way.
93437         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93438         * lib/xreadlink.h (xreadlink): Update prototype.
93439
93440 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93441
93442         * lib/xgetcwd.c: Revert some of the previous change; intead,
93443         fix the HAVE_GETCWD_NULL code to behave more like the
93444         !HAVE_GETCWD_NULL code used to.
93445
93446         Include "xalloc.h".
93447         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93448         invoke xalloc_die.
93449
93450 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93451
93452         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93453         sys/param.h, as pathmax.h includes them.
93454
93455 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93456
93457         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93458         (jm_PREREQ_XGETCWD): New macro.
93459
93460         * m4/getcwd.m4: New file.
93461
93462 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93463
93464         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93465         like the HAVE_GETCWD_NULL code.
93466         Include pathmax.h if not HAVE_GETCWD.
93467         Do not include xalloc.h.
93468         (INITIAL_BUFFER_SIZE): New symbol.
93469         Do not use xmalloc / xrealloc, since the caller is responsible for
93470         handling errors.  Preserve errno around `free' during failure.
93471         Do not overrun buffer when using getwd.
93472
93473 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93474
93475         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93476         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93477         getcwd (NULL, 0).
93478
93479 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93480
93481         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93482         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93483         spotted by Jim Meyering.
93484
93485 2001-09-03  Jim Meyering  <meyering@lucent.com>
93486
93487         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93488         failure.
93489
93490 2001-09-02  Jim Meyering  <meyering@lucent.com>
93491
93492         * lib/error.c: Update from GNU libc.
93493
93494 2001-09-01  Jim Meyering  <meyering@lucent.com>
93495
93496         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93497         Used by df.
93498
93499 2001-09-01  Jim Meyering  <meyering@lucent.com>
93500
93501         * lib/xreadlink.c: New file.
93502         * lib/xreadlink.h: New file.
93503         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93504         xreadlink.h.
93505
93506         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93507         doesn't conflict with sparc Solaris 7's definition in
93508         /usr/include/sys/int_types.h.
93509
93510         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93511         files.
93512         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93513         and strncasecmp as r-values.  Unixware didn't have declarations.
93514
93515 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93516
93517         * lib/xstrtol.h: Add copyright notice.
93518         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93519         LONGINT_INVALID_SUFFIX_CHAR.
93520
93521 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93522
93523         * lib/xstrtol.c (strtoimax): New decl.
93524
93525 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93526
93527         * lib/xgetcwd.c: Don't include pathmax.h.
93528         Include stdlib.h and unistd.h if available.
93529         Include xalloc.h.
93530         (xmalloc, xstrdup, free): Remove decls.
93531         (xgetcwd): Don't assume sizes fit in unsigned.
93532         Check for overflow when computing sizes.
93533         Simplify reallocation code.
93534
93535 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93536
93537         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93538         a directory's st_size can have an arbitrary value, so the old
93539         usage could waste an arbitrary amount of memory.  All uses
93540         changed.
93541         * lib/savedir.h: Update prototype.
93542
93543 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93544
93545         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93546
93547         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93548         old strtoimax.c.
93549
93550         Also, make the following further changes to make this file's
93551         configuration more similar to that of strtol.c:
93552         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93553         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93554         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93555         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93556         changed to signed values.
93557
93558         And make the following changes as well:
93559         Fix copyright notice, as 1999 was missing.
93560         (verify): New macro.
93561         (strtoimax): Check sizes at compile-time, not run-time.
93562         Prefer strtol to strtoll if both work.
93563         (main): Remove; it was not that useful and was a pain to maintain.
93564
93565         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93566
93567 2001-08-31  Jim Meyering  <meyering@lucent.com>
93568
93569         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93570         Use an initial, malloc'd, buffer of length 128 rather than
93571         a statically allocated one of length 1024.
93572
93573 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93574
93575         Simplify code, partly by assuming autoconf 2.52 semantics.
93576
93577         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93578
93579         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93580         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93581         All uses removed.
93582         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93583         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93584         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93585         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93586         jm_AC_HEADER_INTTYPES_H.
93587         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93588
93589         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93590
93591         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93592         Quote first arg of AC_DEFUN.
93593         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93594         since they are needed to parse the include file even if we need
93595         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93596         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93597         but with opposite signedness.
93598
93599 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93600
93601         Merge 'exclude' changes from tar 1.13.22.
93602         This fixes one or two unlikely storage allocation overflow bugs,
93603         but doesn't change user-visible behavior otherwise.
93604
93605 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93606
93607         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93608         (jm_PREREQ_EXCLUDE): New macro.
93609
93610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93611
93612         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93613         tm to be declared.
93614
93615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93616
93617         * lib/hash.c: Remove '2001' from copyright notice.
93618
93619 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93620
93621         * lib/full-write.h: New file.
93622         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93623         * lib/full-write.c: Correct credits, as cccp.c no longer
93624         exists and anyway it was so heavily changed from the old cccp
93625         code as to be unrecognizable.  Include full-write.h.
93626         (full_write): Return size_t, with short writes meaning failure.
93627         All callers changed.  This fixes a bug with large buffers
93628         on 64-bit hosts.
93629         * lib/utime.c: Include full-write.h.
93630
93631 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93632
93633         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93634         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93635         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93636         Include if available.
93637         (<xalloc.h>): Include
93638         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93639         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93640         collide with FNM macros.
93641         (struct patopts): New struct.
93642         (struct exclude): Use it, as exclude patterns now come with options.
93643         (new_exclude): Support above changes.
93644         (new_exclude, add_exclude_file):
93645         Initial size must now be a power of two to simplify overflow checking.
93646         (free_exclude, fnmatch_no_wildcards): New function.
93647         (excluded_filename): No longer requires options arg, as the options
93648         are determined by add_exclude.  Now returns bool, not int.
93649         (excluded_filename, add_exclude):
93650         Add support for the fancy new exclusion options.
93651         (add_exclude, add_exclude_file): Now takes int options arg.
93652         Check for arithmetic overflow when computing sizes.
93653         (add_exclude_file): xrealloc might modify errno, so don't
93654         realloc until after errno might be used.
93655
93656         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93657         New macros.
93658         (free_exclude): New decl.
93659         (add_exclude, add_exclude_file): Now takes int options arg.
93660         (excluded_filename): No longer requires options arg, as the options
93661         are determined by add_exclude.  Now returns bool, not int.
93662
93663 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93664
93665         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93666
93667 2001-08-27  Jim Meyering  <meyering@lucent.com>
93668
93669         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93670
93671         * lib/version-etc.c (N_): Remove definition.
93672         Revert most of last change.
93673         Instead, simply don't mark the `Copyright...' string for translation.
93674         Based on advice from Paul Eggert.
93675
93676         * lib/strtoxmax.c: Tweak comment.
93677
93678 2001-08-26  Jim Meyering  <meyering@lucent.com>
93679
93680         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93681
93682         * m4/xstrtoimax.m4: New file.
93683         * m4/xstrtoumax.m4: Add comments explaining why we
93684         AC_REPLACE_FUNCS(strtol).
93685
93686 2001-08-26  Jim Meyering  <meyering@lucent.com>
93687
93688         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93689         of copyright with `%s' so translators don't get an untranslated
93690         message in 2002.
93691         (COPYRIGHT_YEAR): Define.
93692         (version_etc): Use fprintf rather than fputs.
93693         Suggestion from Ulrich Drepper.
93694
93695         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93696
93697         * lib/strtoll.c: New file, from GNU libc.
93698         * lib/xstrtoimax.c: New file.
93699
93700         * lib/xstrtol.h: Add xstrtoimax.
93701         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93702         * lib/strtoimax.c: New file.  Likewise, but first define
93703         STRTOUXMAX_SIGNED.
93704
93705         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93706         ...
93707         * lib/strtoxmax.c: ... then renamed to this.
93708
93709 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93710
93711         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93712         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93713         (jm_AC_TYPE_INTMAX_T): New macro.
93714         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93715
93716         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93717
93718         * m4/longlong.m4: Renamed from ulonglong.m4.
93719         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93720         * m4/uintmax_t.m4: Removed.
93721
93722 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93723
93724         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93725         Port to Solaris 8, where 'sed' requires a space after the 'r'
93726         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93727         Redirect output to $tmp just once.
93728
93729 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93730
93731         * lib/addext.c (<errno.h>): Include.
93732         (errno): Declare if not defined.
93733         (addext): Work correctly when pathconf returns -1 and leaves
93734         errno alone because there is no limit.  Also, work even if
93735         pathconf returns a value greater than SIZE_MAX.
93736
93737 2001-08-12  Jim Meyering  <meyering@lucent.com>
93738
93739         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93740         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93741         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93742         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93743         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93744         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93745         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93746         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93747         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93748         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93749         utime.m4, utimes.m4, xstrtoumax.m4:
93750         Quote the first argument in each use of AC_DEFUN.
93751
93752 2001-08-12  Jim Meyering  <meyering@lucent.com>
93753
93754         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93755         Simply `return getcwd (NULL, 0);'.
93756         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93757         Use 1300 as initial value for length, not PATH_MAX.
93758
93759         * lib/pathmax.h: Clean up cpp syntax.
93760
93761 2001-08-12  Jim Meyering  <meyering@lucent.com>
93762
93763         * lib/gettimeofday.c: New file.
93764         * lib/gtod.h: New file.
93765         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93766
93767 2001-08-05  Jim Meyering  <meyering@lucent.com>
93768
93769         * m4/jm-macros.m4: Require autoconf-2.52.
93770
93771 2001-08-04  Jim Meyering  <meyering@lucent.com>
93772
93773         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93774         stmt, to get in sync with glibc.
93775
93776 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93777
93778         The following changes are from gettext 0.10.39 as maintained by
93779         Bruno Haible.
93780
93781         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93782         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93783         with inverted sense.  All uses changed.
93784
93785         * lib/mbswidth.c: Don't include <limits.h>.
93786         Include <stdlib.h> and <string.h> unconditionally.
93787         (iswcntrl, mbsinit, ISCNTRL): New macros.
93788         (mbsnwidth): Use K&R style function declarations.
93789         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93790         can optimize it when MB_CUR_MAX == 1.
93791         The width of control characters is zero, not 1.
93792
93793 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93794
93795         The following changes are from gettext 0.10.39 as maintained by
93796         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93797
93798         * m4/codeset.m4: Upgrade to serial AM1.
93799         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93800         all uses changed.  Quote first arg of AC_DEFUN.
93801         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93802
93803         * m4/iconv.m4: Upgrade to serial AM2.
93804         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93805         Add --with-libconv-prefix.
93806         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93807         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93808         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93809         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93810         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93811
93812         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93813         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93814         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93815         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93816         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93817         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93818         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93819         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93820         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93821
93822         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93823         string.h any more.
93824
93825         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93826         not the default value.
93827
93828         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93829         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93830         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93831         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93832         Also check for iswcntrl, used for wcwidth fallback.
93833         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93834         to Autoconf 2.13.
93835
93836 2001-08-03  Jim Meyering  <meyering@lucent.com>
93837
93838         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93839         as it was in the original.  Reported by Paul Eggert.
93840
93841 2001-07-16  Jim Meyering  <meyering@lucent.com>
93842
93843         * m4/gettimeofday.m4: New file.
93844         Prompted by a report from Bernhard Baehr.
93845
93846 2001-07-15  Jim Meyering  <meyering@lucent.com>
93847
93848         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93849         stuff. Now it's in ../Makefile.cfg.
93850
93851 2001-07-15  Jim Meyering  <meyering@lucent.com>
93852
93853         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93854         (BUILT_SOURCES): Add unlocked-io.h.
93855         (io_functions): Define.
93856         (unlocked-io.h): New rule.
93857         (DISTCLEANFILES): Add unlocked-io.h.
93858         (all-local): Depend on unlocked-io.h, to ensure it is created.
93859
93860         * lib/unlocked-io.hin: New file
93861
93862         * lib/regex.c: Update from glibc.
93863
93864 2001-07-05  Jim Meyering  <meyering@lucent.com>
93865
93866         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93867         recommendation.
93868         (libfetish_a_SOURCES): Put all .h files here instead.
93869         Remove a thus-exposed (better checks in automake) duplicate and
93870         two unnecessary .h files.
93871
93872 2001-07-04  Jim Meyering  <meyering@lucent.com>
93873
93874         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93875         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93876         distcheck failure.
93877
93878 2001-07-02  Jim Meyering  <meyering@lucent.com>
93879
93880         The following changes were prompted by suggestions from Bruno Haible.
93881
93882         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93883         is now generated.
93884         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93885         definition of EXTRA_DIST.
93886         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93887         ensure that the generated file is created/updated whenever the list
93888         of $(unlocked_functions) is changed.
93889         (jm-glibc-io.m4): New rule.
93890         (unlocked-io.h): New rule -- currently unused.
93891
93892 2001-06-24  Jim Meyering  <meyering@lucent.com>
93893
93894         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93895         unmatched right bracket, rather than kludging it with an extra,
93896         falsely-matching quote in a comment.  Patch by Akim Demaille.
93897
93898 2001-06-11  Jim Meyering  <meyering@lucent.com>
93899
93900         * lib/regex.c: Update from GNU libc.
93901
93902 2001-05-27  Jim Meyering  <meyering@lucent.com>
93903
93904         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93905         Check for ut_type in struct utmp.
93906
93907 2001-05-27  Jim Meyering  <meyering@lucent.com>
93908
93909         * lib/readutmp.h (UT_TYPE): Define.
93910
93911 2001-05-24  Jim Meyering  <meyering@lucent.com>
93912
93913         * lib/argmatch.c: Include "quote.h".
93914         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93915         quote function.  Reported by Göran Uddeborg.
93916
93917 2001-05-22  Jim Meyering  <meyering@lucent.com>
93918
93919         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93920         now that we use the package-supplied version unconditionally.
93921         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93922
93923 2001-05-21  Jim Meyering  <meyering@lucent.com>
93924
93925         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93926         shell syntax errors.
93927
93928 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93929
93930         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93931
93932 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93933
93934         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93935         Don't bother to check library strftime, since
93936         we'll be using our own my_strftime function anyway.
93937         Define my_strftime instead of strftime.
93938
93939 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93940
93941         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93942         which is not yet declared.
93943
93944 2001-05-15  Jim Meyering  <meyering@lucent.com>
93945
93946         * m4/regex.m4: Use proper quoting so brackets appear in the test
93947         program.
93948         Reported by, and with help from, Bruno Haible.
93949
93950 2001-05-13  Jim Meyering  <meyering@lucent.com>
93951
93952         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93953         undefined.
93954
93955 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93956
93957         dirname code cleanup.  base_name now behaves more compatibly
93958         with POSIX basename when given file names that have trailing
93959         slashes, and similarly for dir_name.  Add new primitives
93960         base_len and dir_len.  Put the directory-name-related decls
93961         into dirname.h.
93962
93963         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93964         * lib/backupfile.c (base_name): Likewise.
93965         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93966         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93967         * lib/makepath.c (strip_trailing_slashes): Likewise.
93968         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93969         ISSLASH): Likewise.
93970         * lib/rename.c (strip_trailing_slashes): Likewise.
93971         * lib/same.c (base_name): Likewise.
93972         * lib/stripslash.c (ISSLASH): Likewise.
93973
93974         * lib/addext.c: Include <dirname.h> after size_t is defined.
93975         * lib/backupfile.c: Likewise.
93976
93977         * lib/addext.c (addext): Use base_len to trim redundant
93978         trailing slashes instead of doing it ourselves.
93979         But do not trim the last slash if it is not redundant.
93980
93981         * lib/backupfile.c (find_backup_file_name,
93982         max_backup_version): Use base_len instead of rolling it ourselves.
93983         Handle the case of "" and (on DOS) "C:" correctly.
93984
93985         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93986         needed. Include <string.h>, <dirname.h>.
93987         (base_name): Allow file names ending in slashes, other than names
93988         that are all slashes.  In this case, return the basename followed
93989         by the slashes.  This is more general, and can be used in places
93990         where the original base_name purposely had an assertion failure.
93991         (base_len): New function.
93992
93993         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93994         Do not include <assert.h>; no longer needed.
93995         Include xalloc.h.
93996         (memrchr): Remove decl.
93997         (dir_name_r): Remove.
93998         (dir_len): Renamed from dirlen.  All callers changed.
93999         Rewrite in terms of base_name, for simplicity and consistency.
94000         (dir_name): Never return NULL.  All callers changed.
94001         Do not include <stdlib.h> in test program; no longer needed.
94002         return 0; is fine for test program.
94003
94004         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
94005         New macros.
94006         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
94007
94008         * lib/path-concat.c (path_concat): Use base_len to compute
94009         base length, not strlen; this means we cannot rely on memcpy
94010         to null-terminate.
94011
94012         * lib/same.c (STREQ): Remove.
94013         (same_name): Handle the case where the basename ends in trailing '/'.
94014
94015         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94016         a slash was stripped.  Do not strip the last slash after a
94017         file system prefix.
94018
94019 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94020
94021         * lib/Makefile.am (libfetish_a_SOURCES):
94022         Add strftime.c, since we now compile it on all hosts.
94023
94024         * lib/strftime.c (my_strftime):
94025         Define to nstrftime if emacs, but only if my_strftime is not defined.
94026         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94027         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94028         Add one more extra argument: a nanoseconds value.
94029         All uses changed.
94030         (ns): New macro.
94031         (my_strftime function): Add %N format.
94032         (emacs_strftimeu): Renamed from emacs_strftime,
94033         with extra ut argument.
94034
94035 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94036
94037         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94038
94039 2001-04-21  Jim Meyering  <meyering@lucent.com>
94040
94041         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94042         doesn't interfere.
94043
94044 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94045
94046         * m4/ftruncate.m4: Check for chsize.
94047         Link with ftruncate.o unconditionally if ftruncate is missing.
94048         This was required when cross-compiling to i586-mingw32msvc.
94049
94050 2001-04-08  Jim Meyering  <meyering@lucent.com>
94051
94052         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94053         recomputed; that's necessary when the offset spans a DST transition.
94054         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94055
94056 2001-04-02  Jim Meyering  <meyering@lucent.com>
94057
94058         * lib/regex.h, regex.c: Update from GNU libc.
94059
94060 2001-03-24  Jim Meyering  <meyering@lucent.com>
94061
94062         * m4/jm-macros.m4: Require autoconf-2.49d.
94063
94064 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94065
94066         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94067
94068 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94069
94070         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94071
94072 2001-03-17  Jim Meyering  <meyering@lucent.com>
94073
94074         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94075         now that the version in autoconf is equivalent.
94076         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94077
94078         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94079         Suggestion from Akim Demaille.
94080
94081         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94082         (jm_PREREQ_TEMPNAME): New function.
94083
94084 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94085
94086         * lib/tempname.c (uint64_t): Define to uintmax_t if
94087         not defined, and if UINT64_MAX is not defined.
94088         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94089         Reported by John David Anglin.
94090
94091 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94092
94093         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94094         resolve alias if codeset is empty.
94095         * lib/config.charset (BeOS): Use wildcard syntax.
94096
94097 2001-03-13  Jim Meyering  <meyering@lucent.com>
94098
94099         * lib/path-concat.c (path_concat)
94100         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94101         concatenating e.g., `C:' and `foo'.
94102         From Bruno Haible.
94103
94104 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94105
94106         * lib/localcharset.c (locale_charset): Don't use
94107         setlocale(LC_CTYPE,NULL). Don't return NULL.
94108         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94109
94110 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94111
94112         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94113         support for DOS/DJGPP.
94114
94115 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94116
94117         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94118         lacks mkstemp.  Compile our own tempname.c if we compile our own
94119         mkstemp.c, as mkstemp relies on tempname.
94120
94121 2001-03-01  Jim Meyering  <meyering@lucent.com>
94122
94123         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94124         AH_VERBATIM really does output its argument verbatim.
94125
94126 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94127
94128         * lib/Makefile.am (libfetish_a_SOURCES):
94129         Add dup-safer.c, fopen-safer.c.
94130         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94131
94132         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94133         * lib/unistd-safer.h: New files.
94134
94135 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94136
94137         The mkstemp replacement is taken from glibc 2.2.2, with some
94138         portability fixes for use outside glibc, as follows:
94139
94140         * lib/tempname.c (struct_stat64): New macro.
94141         (direxists, __gen_tempname): Use it.
94142         This avoids a portability problem with Solaris 8.
94143
94144         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94145         (<stddef.h>, <stdint.h>, <string.h>):
94146         Include only if STDC_HEADERS || _LIBC.
94147         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94148         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94149         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94150         (__set_errno): Define this macro if <errno.h> doesn't.
94151         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94152         Define these macros if <stdio.h> doesn't.
94153         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94154         Define these macros if <sys/stat.h>
94155         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94156         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94157         __xstat64): Define if not _LIBC.
94158         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94159         (__gen_tempname): Invoke gettimeofday only if
94160         HAVE_GETTIMEOFDAY || _LIBC;
94161         otherwise, fall back on plain "time".
94162         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94163
94164         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94165
94166         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94167
94168 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94169
94170         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94171
94172 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94173
94174         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94175         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94176         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94177         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94178
94179 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94180
94181         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94182         Remove workaround macros for hosts that have mbrtowc but not
94183         mbstate_t, as we now insist on proper declarations for both
94184         before using mbrtowc.
94185
94186 2001-02-17  Jim Meyering  <meyering@lucent.com>
94187
94188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94189         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94190         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94191         UnixWare 7.1.1.
94192
94193         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94194         rather than AC_CACHE_VAL.
94195
94196 2001-02-17  Jim Meyering  <meyering@lucent.com>
94197
94198         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94199         around included file name.
94200
94201         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94202
94203         * lib/strftime.c: Update from GNU libc (the only changes were to
94204         comments).
94205
94206 2001-02-17  Jim Meyering  <meyering@lucent.com>
94207
94208         * lib/regex.c: Update from libc.
94209
94210 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94211
94212         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94213         clash.
94214
94215 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94216
94217         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94218         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94219         Reported by Mark Hounschell via Paul Eggert.
94220
94221 2001-02-07  Jim Meyering  <meyering@lucent.com>
94222
94223         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94224
94225 2001-02-05  Jim Meyering  <meyering@lucent.com>
94226
94227         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94228         it includes the patch required for `large file' support with at least
94229         HP-UX's 10.20 /bin/cc.
94230
94231 2001-02-03  Jim Meyering  <meyering@lucent.com>
94232
94233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94234         AS_IF, now that it works once again (mysteriously).
94235         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94236
94237 2001-01-30  Jim Meyering  <meyering@lucent.com>
94238
94239         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94240         * m4/chown.m4: Rename conftestchown to conftest.chown.
94241         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94242         s/conftestdir2/conftest.d2/.
94243         * m4/utimes.m4: s/conftestdata/conftest.data/
94244         Inspired by Pavel Roskin's change in autoconf.
94245
94246 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94247
94248         * lib/config.charset: Update for FreeBSD 4.2.
94249
94250 2001-01-27  Jim Meyering  <meyering@lucent.com>
94251
94252         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94253         a use of AS_IF.
94254         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94255
94256 2001-01-26  Jim Meyering  <meyering@lucent.com>
94257
94258         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94259         quotearg.c includes it.
94260
94261 2001-01-26  Jim Meyering  <meyering@lucent.com>
94262
94263         * lib/quotearg.c: Include stddef.h.
94264         * lib/quote.c: Include stddef.h.
94265         Reported by Axel Kittenberger.
94266
94267         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94268         line in double quotes so that it evokes a better diagnostic.
94269         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94270         Reported by Axel Kittenberger.
94271
94272 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94273
94274         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94275         as if it was a `charset'.
94276
94277 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94278
94279         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94280         has const.
94281
94282 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94283
94284         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94285         to avoid a warning.  Add back 'const' to inptr.
94286
94287 2001-01-20  Jim Meyering  <meyering@lucent.com>
94288
94289         Be sure that headers are checked before used in code compiled
94290         for the type checks.
94291         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94292         In place of that, invoke jm_CHECK_ALL_TYPES.
94293         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94294         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94295         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94296         The check for ssize_t was mistakenly run before the test for unistd.h.
94297
94298         The configure-time check for stdbool.h was missing.
94299         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94300         (jm_PREREQ_HASH): New function.
94301
94302 2001-01-17  Jim Meyering  <meyering@lucent.com>
94303
94304         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94305         for autoconf-2.49c.
94306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94307
94308 2001-01-16  Jim Meyering  <meyering@lucent.com>
94309
94310         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94311         From Bruno Haible.
94312
94313 2001-01-14  Jim Meyering  <meyering@lucent.com>
94314
94315         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94316         foo and bar.  Create conftestdir/ in the script, not in the C code.
94317         Remove directories in the script, not in the C code.
94318         Remove conftestdir{,2} before trying to create the directory.
94319         Make the entire configure script fail if the mkdir fails.
94320
94321 2001-01-14  Jim Meyering  <meyering@lucent.com>
94322
94323         * lib/rename.c: New file.  From Volker Borchert.
94324         Include stdlib.h, string.h or strings.h, and xalloc.h.
94325         Use strip_trailing_slashes rather than open-coding it.
94326
94327 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94328
94329         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94330
94331 2001-01-03  Jim Meyering  <meyering@lucent.com>
94332
94333         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94334         of local `inptr' to avoid warning with some system declarations of
94335         iconv.
94336
94337 2001-01-02  Volker Borchert  <bt@teknon.de>
94338
94339         * m4/rename.m4: New file.
94340         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94341
94342 2001-01-01  Jim Meyering  <meyering@lucent.com>
94343
94344         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94345         even on systems with utmpx.h.  It's necessary for the declaration of
94346         utmp's ut_user member.  Reported by Andreas Jaeger.
94347
94348         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94349         available. They are required for the declarations of getgrgid and
94350         getpwuid resp.
94351         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94352         Reported by Andreas Jaeger.
94353
94354 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94355
94356         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94357         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94358         so `make install' also works in VPATH builds.
94359
94360 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94361
94362         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94363         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94364         can be used in subdirectories.
94365
94366 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94367
94368         * lib/modechange.c: Do not assume that mode_t uses the
94369         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94370         the other-execute bit of FOO even if S_IXOTH != 1.
94371
94372         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94373         WOTH, XOTH, ALLM): New macros.
94374         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94375          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94376         Use them.
94377         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94378         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94379         (mode_compile):
94380         No need to use uintmax_t; unsigned long is long enough.
94381         Don't bother to get suffix since we don't use it.
94382
94383 2000-12-26  Jim Meyering  <meyering@lucent.com>
94384
94385         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94386         better with autoheader.
94387
94388 2000-12-24  Jim Meyering  <meyering@lucent.com>
94389
94390         * lib/hash.c (is_prime): Return explicit boolean values.
94391         (hash_get_first): Return NULL to appease Irix5.6's 89.
94392         Reported by Nelson Beebe.
94393
94394 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94395
94396         * lib/localcharset.c (locale_charset): Add support for Win32.
94397
94398 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94399
94400         * lib/physmem.h, lib/physmem.c: New files.
94401
94402         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94403         (noinst_HEADERS): Add physmem.h.
94404
94405         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94406         't' for compatibility with Solaris 8 sort.
94407
94408 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94409
94410         * lib/config.charset: Add support for BeOS.
94411
94412 2000-12-17  Jim Meyering  <meyering@lucent.com>
94413
94414         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94415         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94416
94417 2000-12-16  Jim Meyering  <meyering@lucent.com>
94418
94419         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94420         N and M) would have treated it like `chown N:N FILE'.
94421
94422         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94423
94424 2000-12-16  Jim Meyering  <meyering@lucent.com>
94425
94426         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94427         SHELLS_FILE to a file name that's useful on djgpp systems.
94428         Include stdlib.h.
94429         (ADDITIONAL_DEFAULT_SHELLS): Define.
94430         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94431         Based mostly on a patch from Prashant TR.
94432
94433 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94434
94435         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94436         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94437         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94438
94439 2000-12-08  Andreas Schwab  <schwab@suse.de>
94440
94441         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94442         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94443
94444 2000-12-07  Jim Meyering  <meyering@lucent.com>
94445
94446         * lib/stripslash.c (ISSLASH): Define.
94447         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94448         `/'.
94449         From Prashant TR.
94450
94451         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94452         (dir_name_r): Declare this function as static.
94453         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94454         manifest itself on a name containing a mix of slashes and
94455         backslashes.
94456         Make this function work with names starting with a DOS-style
94457         drive letter and colon prefix.
94458         (dir_name): Append `.' if necessary.
94459         Based mostly on patches from Prashant TR and Eli Zaretskii.
94460
94461         * lib/dirname.h (dir_name_r): Remove prototype.
94462
94463 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94464
94465         * m4/off_t-format.m4: Remove this file.
94466         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94467
94468 2000-12-06  Jim Meyering  <meyering@lucent.com>
94469
94470         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94471         replacement strtoull, we may well need the replacement strtoul, too.
94472         Check for declarations of strtoul and strtoull.
94473         Check for strtol.  Mainly as a cue to cause automake to include
94474         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94475         Check for limits.h -- strtol.c needs it.
94476
94477 2000-12-05  Jim Meyering  <meyering@lucent.com>
94478
94479         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94480
94481 2000-12-04  Jim Meyering  <meyering@lucent.com>
94482
94483         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94484         Also include memory.h, stdlib.h, unistd.h if appropriate.
94485         Reported by Andreas Jaeger (conflicting declaration of malloc).
94486
94487 2000-12-02  Jim Meyering  <meyering@lucent.com>
94488
94489         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94490         * m4/jm-macros.m4 (jm_MACROS): require it.
94491
94492 2000-12-02  Jim Meyering  <meyering@lucent.com>
94493
94494         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94495
94496 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94497
94498         * lib/memrchr.c: Include <config.h> before any system include file.
94499
94500 2000-11-30  Jim Meyering  <meyering@lucent.com>
94501
94502         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94503
94504 2000-11-30  Jim Meyering  <meyering@lucent.com>
94505
94506         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94507
94508 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94509
94510         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94511
94512 2000-11-26  Jim Meyering  <meyering@lucent.com>
94513
94514         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94515
94516 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94517
94518         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94519         size of (size_t) -1; it's not portable.
94520
94521 2000-11-17  Jim Meyering  <meyering@lucent.com>
94522
94523         * lib/strstr.c: Update from GNU libc.
94524
94525 2000-11-17  Akim Demaille  <akim@epita.fr>
94526
94527         * lib/obstack.h: Formatting changes.
94528         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94529         prevent type checking.
94530         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94531         cast the value to (void *): assigning a `foo *' to a `void *'
94532         variable is valid.
94533         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94534
94535 2000-11-16  Jim Meyering  <meyering@lucent.com>
94536
94537         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94538
94539 2000-11-11  Jim Meyering  <meyering@lucent.com>
94540
94541         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94542
94543 2000-11-10  Jim Meyering  <meyering@lucent.com>
94544
94545         * lib/obstack.h: Update from GNU libc.
94546         * lib/obstack.c: Likewise.
94547
94548 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94549
94550         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94551
94552 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94553
94554         * lib/getusershell.c (setusershell): Use rewind rather than
94555         fseek/fseeko, to avoid configuration hassles with fseeko.
94556         Don't bother opening SHELLS_FILE if shellstream is NULL;
94557         it's not necessary.
94558
94559 2000-11-05  Jim Meyering  <meyering@lucent.com>
94560
94561         * lib/makepath.h (make_dir): Declare.
94562         * lib/makepath.c (make_dir): Remove `static' attribute.
94563         Tweak a comment.
94564
94565 2000-11-04  Jim Meyering  <meyering@lucent.com>
94566
94567         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94568
94569 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94570
94571         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94572         last one in a bucket, advance to the next bucket.
94573
94574 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94575
94576         * lib/fnmatch.c: Do not comment out all the code if we are using
94577         the GNU C library, because in some cases we are replacing buggy
94578         code in the GNU C library itself.
94579
94580 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94581
94582         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94583         (regex_compile): Catch bogus \(\1\).
94584
94585 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94586
94587         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94588         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94589         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94590
94591 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94592
94593         * lib/error.h, getline.h, modechange.h:
94594         Remove "2000" from Copyright line, as the file hasn't been
94595         changed this year other than in the copyright notice.
94596
94597         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94598         was changed this year.
94599
94600 2000-10-29  Jim Meyering  <meyering@lucent.com>
94601
94602         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94603         renaming.
94604         * m4/ls-mntd-fs.m4: Likewise
94605
94606 2000-10-29  Jim Meyering  <meyering@lucent.com>
94607
94608         * lib/xstat.in: Fix grammar in comment.
94609
94610 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94611
94612         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94613         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94614         doesn't define __restrict_arr.
94615
94616 2000-10-28  Jim Meyering  <meyering@lucent.com>
94617
94618         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94619         (jm_PREREQ_MEMCHR): New function.
94620
94621 2000-10-28  Jim Meyering  <meyering@lucent.com>
94622
94623         * lib/memchr.c: Update from libc.
94624         Adjust for portability:
94625         [HAVE_STDLIB_H]: Include stdlib.h.
94626         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94627         Undef __memchr, too.
94628         [!weak_alias]: Define __memchr to memchr.
94629
94630         * lib/regex.c: Update from libc.
94631         * lib/regex.h: Likewise.
94632         * lib/getopt1.c: Likewise.
94633         * lib/memcmp.c: Likewise.
94634
94635         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94636         Avoid using fseek, when possible -- it's broken by design.
94637         Patch by Ulrich Drepper.
94638
94639 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94640
94641         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94642         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94643         Giving in to popular pressure to shut up the compiler with casts.
94644
94645 2000-10-26  Jim Meyering  <meyering@lucent.com>
94646
94647         * lib/strftime.c: Update from libc.
94648
94649 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94650
94651         * regex.c: More `unsigned char' -> `re_char' changes.
94652         Also change several `int' into `re_wchar_t'.
94653         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94654         (PUSH_FAILURE_POINTER): Don't cast any more.
94655         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94656         We want GCC to complain, since this piece of code makes
94657         re_match non-reentrant, which *should* be fixed.
94658         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94659         (EXTEND_BUFFER): Use RETALLOC.
94660         (SET_LIST_BIT): Don't cast.
94661         (re_wchar_t): New type.
94662         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94663         that those two functions will always properly return.
94664         (IMMEDIATE_QUIT_CHECK): Cast to void.
94665         (analyse_first): Use recursion rather than an explicit stack.
94666         (re_compile_fastmap): Can't fail anymore.
94667         (re_search_2): Don't check re_compile_fastmap for failure.
94668         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94669         Now also sets the new value (passed in a new argument).
94670         (re_match_2_internal): Use it.
94671         Also, use a new var `reg' of type size_t when looping through regs
94672         rather than reuse the inappropriate `mcnt'.
94673
94674 2000-10-25  Jim Meyering  <meyering@lucent.com>
94675
94676         * lib/obstack.c: Update from libc.
94677
94678 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94679
94680         * regex.c (regex_compile): Change the way of handling a range from
94681         a char less than 256 to a char not less than 256.
94682
94683 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94684
94685         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94686         NT-Emacs only.
94687         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94688         so that re_search functions only quit when callers expect them to.
94689
94690 2000-10-23  Jim Meyering  <meyering@lucent.com>
94691
94692         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94693         wrong.  That set_locale call must not have any side effects.
94694         From Paul Eggert.
94695
94696 2000-10-22  Jim Meyering  <meyering@lucent.com>
94697
94698         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94699         [CYCLIC]: Remove now-unused definition.
94700
94701         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94702         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94703         Suggestion from Ulrich Drepper.
94704
94705 2000-10-21  Jim Meyering  <meyering@lucent.com>
94706
94707         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94708         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94709         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94710
94711 2000-10-21  Jim Meyering  <meyering@lucent.com>
94712
94713         * lib/dirname.c (memrchr): Declare if necessary.
94714         (dir_name): Remove the restriction that there be no
94715         trailing slashes.  Now, this code skips past them, effectively
94716         ignoring them.
94717         [TEST_DIRNAME] (main): New unit tests.
94718
94719         * lib/memrchr.c: New file from GNU libc.
94720         Undef __memrchr, too.
94721         [!weak_alias]: Define __memrchr to memrchr.
94722         Guard weak_alias use with `#ifdef weak_alias'.
94723
94724 2000-10-21  Jim Meyering  <meyering@lucent.com>
94725
94726         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94727         (dir_name): Use dir_name_r.
94728         * lib/dirname.h (dir_name_r): Declare it.
94729
94730 2000-10-17  Jim Meyering  <meyering@lucent.com>
94731
94732         * lib/quote.h (PARAMS): Define and use.
94733         Reported by Akim Demaille.
94734
94735         * lib/getopt.c: Update from libc.
94736
94737 2000-10-16  Jim Meyering  <meyering@lucent.com>
94738
94739         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94740         setlocale.
94741         From Jan Fedak.
94742
94743 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94744
94745         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94746
94747 2000-09-25  Jim Meyering  <meyering@lucent.com>
94748
94749         * lib/md5.h (rol): Define (from GnuPG).
94750
94751         * lib/sha.c: Give credit (GnuPG) where due.
94752         (M): Use rol rather than open-coding it.
94753         Add a FIXME comment.
94754
94755 2000-09-21  Jim Meyering  <meyering@lucent.com>
94756
94757         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94758         Reported by Michael Stone.
94759
94760 2000-09-20  Jim Meyering  <meyering@lucent.com>
94761
94762         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94763         (noinst_HEADERS): Add sha.h.
94764         Based on code from Scott G. Miller and from GnuPG.
94765
94766 2000-09-18  Jim Meyering  <meyering@lucent.com>
94767
94768         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94769         LIBS. Otherwise, everyone ends up linking with -lelf for some
94770         configurations.
94771         Reported by Mike Stone.
94772
94773 2000-09-15  Jim Meyering  <meyering@lucent.com>
94774
94775         * lib/regex.c: Update from libc.
94776
94777 2000-09-10  Jim Meyering  <meyering@lucent.com>
94778
94779         * lib/getopt.c (_getopt_internal): Update from glibc.
94780
94781 2000-09-09  Jim Meyering  <meyering@lucent.com>
94782
94783         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94784         think it should be used as a general replacement for isascii.
94785         * lib/fnmatch.c: Likewise.
94786         * lib/mbswidth.c: Likewise
94787         * lib/regex.c: Likewise.
94788
94789         Don't use atoi.
94790         * lib/userspec.c: Include sys/param.h and limits.h.
94791         Include xstrtol.h.
94792         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94793         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94794         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94795         UID, GID.  Check range.
94796
94797 2000-09-06  Jim Meyering  <meyering@lucent.com>
94798
94799         * lib/getopt.c (_getopt_internal): Update from glibc.
94800
94801 2000-08-30  Jim Meyering  <meyering@lucent.com>
94802
94803         * lib/strftime.c: Merge in changes from GNU libc.
94804
94805 2000-08-26  Jim Meyering  <meyering@lucent.com>
94806
94807         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94808         * m4/fpending.m4: New file.
94809
94810 2000-08-26  Jim Meyering  <meyering@lucent.com>
94811
94812         * lib/closeout.c: Include "__fpending.h".
94813         (close_stdout_status): Return right away if there's nothing to flush.
94814
94815         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94816         * lib/__fpending.c: New file.
94817         * lib/__fpending.h: New file.
94818
94819 2000-08-20  Jim Meyering  <meyering@lucent.com>
94820
94821         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94822         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94823         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94824
94825 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94826
94827         Improve fileutils installation on systems where running
94828         programs (like install) can't be unlinked.
94829         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94830         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94831
94832 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94833
94834         Standardize on "memory exhausted" instead of "Memory exhausted"
94835         or "virtual memory exhausted".
94836         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94837         "virtual memory exhausted".
94838         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94839         our own message.
94840         * lib/userspec.c (parse_user_spec): Likewise.
94841         * lib/bumpalloc.h: comment fix
94842         * lib/same.c, userspec.c: Include xalloc.h.
94843
94844         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94845         not char *const and pointing to a constant array.
94846         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94847         (xrealloc): Comment fix.
94848
94849         * lib/userspec.c (parse_user_spec):
94850         Don't translate a message until just before returning,
94851         to avoid unnecessary translation.
94852
94853 2000-08-07  Jim Meyering  <meyering@lucent.com>
94854
94855         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94856         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94857         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94858         getgroups.c, gethostname.c, getopt.h, group-member.c,
94859         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94860         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94861         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94862         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94863         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94864         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94865         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94866         yesno.c: Back out Copyright date changes for each file with no change
94867         this year.  This eases coordination with other programs using the same
94868         source code modules.  From Paul Eggert.
94869
94870 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94871
94872         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94873         not char, for compatibility with glibc 2.1.3 strftime.c.
94874
94875 2000-08-03  Greg McGary  <greg@mcgary.org>
94876
94877         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94878         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94879         (EXTEND_BUFFER): Use them.
94880
94881 2000-08-01  Jim Meyering  <meyering@lucent.com>
94882
94883         * lib/dirname.c (ISSLASH): Define.
94884         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94885         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94886         both `\' and `/' may be use as path separators.
94887         Based on a patch from Prashant TR.
94888
94889 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94890
94891         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94892         slot vector a constant, since it might get modified.
94893
94894 2000-07-31  Jim Meyering  <meyering@lucent.com>
94895
94896         * lib/xmalloc.c: Use `virtual memory exhausted', not
94897         `Memory exhausted'.
94898         * lib/obstack.c (print_and_abort): Likewise.
94899
94900 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94901
94902         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94903         buffer, so that the caller can always quote one small
94904         component of a "memory exhausted" message in slot 0.
94905         From a suggestion by Jim Meyering.
94906
94907 2000-07-30  Jim Meyering  <meyering@lucent.com>
94908
94909         * lib/makepath.c (make_path): Quote the other instance, too.
94910
94911         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94912         (STATIC_BUF_SIZE): Define.
94913         (quotearg_n_options): Use only statically allocated storage when
94914         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94915         than STATIC_BUF_SIZE.
94916
94917 2000-07-29  Jim Meyering  <meyering@lucent.com>
94918
94919         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94920         * lib/dirname.c (dir_name): Likewise.
94921
94922         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94923         `/'.
94924
94925         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94926         (dir_name): Assert that there are no trailing slashes.
94927
94928 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94929
94930         * lib/mbswidth.h (mbswidth): Add a flags argument.
94931         (mbswidth): New declaration.
94932         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94933         * lib/mbswidth.c (mbswidth): Add a flags argument.
94934         (mbsnwidth): New function.
94935
94936 2000-07-24  Jim Meyering  <meyering@lucent.com>
94937
94938         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94939
94940 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94941
94942         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94943
94944 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94945
94946         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94947         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94948         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94949         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94950         invoke multibyte primitives.
94951
94952 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94953
94954         * lib/quotearg.c:
94955         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94956         so that mbstate_t is always defined.
94957
94958         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94959         be 1 in at least one GCC installation, and this configuration
94960         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94961         performance on hosts that have mbrtowc but have only unibyte
94962         locales, but I assume these hosts are rare.
94963
94964 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94965
94966         * lib/mbswidth.c (_XOPEN_SOURCE):
94967         Don't define; this causes problems on Solaris 7.
94968         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94969
94970 2000-07-23  Jim Meyering  <meyering@lucent.com>
94971
94972         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94973         too: getgrgid, getpwuid, getuid.
94974
94975 2000-07-23  Jim Meyering  <meyering@lucent.com>
94976
94977         * lib/basename.c (base_name): Add an assertion.
94978
94979 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94980
94981         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94982         shadow its mbsinit function.
94983
94984 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94985
94986         * lib/mbswidth.h: New file.
94987         * lib/mbswidth.c: New file.
94988         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94989         (noinst_HEADERS): Add mbswidth.h.
94990
94991 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94992
94993         * lib/config.charset: Add support for FreeBSD. Improve support for
94994         HP-UX and IRIX 6.
94995
94996 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94997
94998         * m4/mbswidth.m4: New file.
94999         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
95000
95001 2000-07-15  Jim Meyering  <meyering@lucent.com>
95002
95003         * lib/makepath.c: Include quote.h.
95004         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
95005         corresponding argument in a `quote (...)' call.
95006         Give better diagnostics.
95007
95008         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95009         (noinst_HEADERS): Add quote.h.
95010
95011         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95012         from tar's src/misc.c.
95013         * lib/quote.h: New file.  Prototypes for same.
95014
95015 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95016
95017         From a suggestion by Bruno Haible.
95018         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95019         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95020         to decide whether to define the BeOS workaround macro;
95021         this adjusts to the change to AC_MBSTATE_T.
95022
95023 2000-07-14  Jim Meyering  <meyering@lucent.com>
95024
95025         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95026         jm_AC_TYPE_UINTMAX_T.
95027
95028 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95029
95030         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95031
95032         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95033         quotearg_buffer_restyled): Add support for
95034         clocale_quoting_style.  Undo previous change to
95035         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95036         and "{RIGHT QUOTATION MARK}" msgids.
95037
95038 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95039
95040         From a suggestion by Bruno Haible.
95041         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95042         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95043         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95044         and mbstate_t, to a single-part test that simply defines mbstate_t.
95045         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95046         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95047
95048 2000-07-10  Jim Meyering  <meyering@lucent.com>
95049
95050         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95051
95052         * m4/gnu-source.m4: Output to confdefs.h directly.
95053         Suggestion from Akim Demaille.
95054
95055 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95056
95057         The old behavior of quoting `like this' doesn't look good with
95058         newer, ISO-style fonts.  See:
95059         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95060
95061         Instead, quote "like this" by default.  Let the translator
95062         tailor the locale-specific quoting behavior by providing
95063         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95064
95065         * lib/quotearg.c (N_): New macro.
95066         (gettext_default): New function.
95067         (quotearg_buffer_restyled): Use
95068         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95069         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95070
95071 2000-07-09  Jim Meyering  <meyering@lucent.com>
95072
95073         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95074         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95075
95076         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95078
95079 2000-07-09  Jim Meyering  <meyering@lucent.com>
95080
95081         * lib/Most files: Update copyright dates to include 2000.
95082
95083 2000-07-08  Jim Meyering  <meyering@lucent.com>
95084
95085         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95086         if not defined.
95087         (xgethostname): Remove now-unnecessary #ifdef.
95088         Move declaration of `err' into loop where it's used.
95089
95090 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95091         and Bruno Haible  <haible@clisp.cons.org>
95092
95093         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95094         only if the test for an object-type mbstate_t fails.  This
95095         prevents us from mistakenly reporting that mbstate_t is a
95096         system object type after we "#define mbstate_t int" to work
95097         around its lack.
95098
95099 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95100         and Bruno Haible  <haible@clisp.cons.org>
95101
95102         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95103
95104 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95105
95106         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95107         to strerror_r.
95108         Include <ctype.h> for use of isalpha.
95109
95110 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95111
95112         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95113         by allocating a larger buffer. Test the gethostname return value for
95114         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95115         returns an error and ENAMETOOLONG isn't defined.
95116
95117 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95118
95119         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95120         dimension.
95121
95122 2000-07-04  Jim Meyering  <meyering@lucent.com>
95123
95124         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95125         of the deprecated AC_CHECKING.
95126
95127 2000-07-04  Jim Meyering  <meyering@lucent.com>
95128
95129         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95130         Reported by Bruno Haible.
95131
95132 2000-07-04  Jim Meyering  <meyering@lucent.com>
95133
95134         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95135         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95136         lacks mbrtowc.
95137
95138 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95139
95140         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95141         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95142
95143 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95144         and Bruno Haible  <haible@clisp.cons.org>
95145
95146         * lib/quotearg.c (mbrtowc):
95147         Assign to *pwc, and return 1 only if result is nonzero.
95148         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95149
95150 2000-07-03  Jim Meyering  <meyering@lucent.com>
95151
95152         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95153
95154 2000-07-03  Jim Meyering  <meyering@lucent.com>
95155
95156         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95157         This is necessary to get a definition of e.g., UTMP_FILE on
95158         HP-UX 10.20.
95159         From Bob Proulx.
95160
95161 2000-07-02  Jim Meyering  <meyering@lucent.com>
95162
95163         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95164
95165         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95166         AC_LIBOBJ(function_name).
95167         * m4/chown.m4: Likewise.
95168         * m4/fnmatch.m4: Likewise.
95169         * m4/ftruncate.m4: Likewise.
95170         * m4/getgroups.m4: Likewise.
95171         * m4/getline.m4: Likewise.
95172         * m4/group-member.m4: Likewise.
95173         * m4/jm-macros.m4: Likewise.
95174         * m4/lstat.m4: Likewise.
95175         * m4/malloc.m4: Likewise.
95176         * m4/memcmp.m4: Likewise.
95177         * m4/nanosleep.m4: Likewise.
95178         * m4/putenv.m4: Likewise.
95179         * m4/realloc.m4: Likewise.
95180         * m4/regex.m4: Likewise.
95181         * m4/stat.m4: Likewise.
95182         * m4/strftime.m4: Likewise.
95183
95184 2000-07-02  Jim Meyering  <meyering@lucent.com>
95185
95186         * lib/quotearg.c (mbstate_t): Don't define here.
95187
95188 2000-07-02  Jim Meyering  <meyering@lucent.com>
95189
95190         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95191
95192 2000-07-01  Jim Meyering  <meyering@lucent.com>
95193
95194         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95195
95196 2000-07-01  Jim Meyering  <meyering@lucent.com>
95197
95198         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95199         problem.
95200
95201 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95202
95203         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95204         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95205
95206 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95207
95208         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95209         per change in ../m4/ls-mntd-fs.m4.
95210         (read_filesystem_list): Ignore symbolic links.
95211
95212 2000-06-29  Jim Meyering  <meyering@lucent.com>
95213
95214         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95215         for declaration of strcmp.
95216
95217         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95218
95219         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95220         Avoid warning by casting result to `char *' to remove `const'.
95221
95222 2000-06-28  Jim Meyering  <meyering@lucent.com>
95223
95224         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95225         included by quotearg.c, for which we perform this test.  From
95226         Bruno Haible.
95227
95228 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95229
95230         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95231         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95232         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95233
95234 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95235
95236         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95237
95238 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95239
95240         savedir now sets errno on failure and invokes xmalloc to get memory.
95241         Fix a couple of other minor bugs while we're at it.
95242
95243         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95244         (NAMLEN): Remove macro.
95245         (malloc, realloc): Remove decls.
95246         (stpcpy): Likewise.
95247         ("xalloc.h"): Include.
95248         (NAME_SIZE_DEFAULT): New macro.
95249         (savedir): Use xmalloc / xrealloc to allocate memory.
95250         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95251         Skip "" directory entries.
95252         Use strlen to calculate directory entry length, since the old method
95253         is rarely used these days and isn't worth supporting.
95254         Don't use a pointer after freeing it.
95255         Check for integer overflow when calculating allocation size.
95256         Use memcpy to copy entries, instead of stpcpy.
95257         Set errno properly when returning NULL.
95258         Check for readdir error.
95259
95260 2000-06-26  Jim Meyering  <meyering@lucent.com>
95261
95262         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95263
95264 2000-06-25  Jim Meyering  <meyering@lucent.com>
95265
95266         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95267         Linux header bug when _XOPEN_SOURCE is defined to 500.
95268
95269 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95270
95271         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95272         deficiency.
95273
95274 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95275
95276         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95277         Include xalloc.h.
95278         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95279
95280 2000-06-24  Jim Meyering  <meyering@lucent.com>
95281
95282         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95283         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95284         for which strerror does return char*, but which lacks a conveniently
95285         accessible declaration of the function.  If the compile-test says
95286         strerror_r doesn't work, then resort to a `run'-test that works on
95287         BeOS and segfaults on DEC Unix.
95288
95289 2000-06-24  Jim Meyering  <meyering@lucent.com>
95290
95291         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95292
95293 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95294
95295         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95296         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95297
95298 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95299
95300         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95301         (mbrtowc, mbstate_t): Define substitutes if
95302         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95303         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95304         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95305
95306 2000-06-23  Jim Meyering  <meyering@lucent.com>
95307
95308         * m4/afs.m4: Add missing AC_MSG_RESULT.
95309         Reported by Bruno Haible.
95310
95311         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95312         Suggestion from Bruno Haible.
95313
95314 2000-06-23  Jim Meyering  <meyering@lucent.com>
95315
95316         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95317
95318 2000-06-21  Jim Meyering  <meyering@lucent.com>
95319
95320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95321
95322 2000-06-21  Jim Meyering  <meyering@lucent.com>
95323
95324         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95325         (noinst_HEADERS): Add getstr.h.
95326
95327         * lib/getline.c (getstr): Move into a separate file.
95328         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95329         the following changes: new parameter, delim2; both delim[12]
95330         parameters have type `int', not `char'.  The latter would lose
95331         with 8-bit delimiters.
95332         * lib/getstr.h: New file.
95333
95334 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95335
95336         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95337         than 1024, return a memory chunk of least possible size, instead
95338         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95339         Use free/xmalloc instead of xrealloc to avoid copying for very long
95340         paths.
95341
95342 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95343
95344         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95345         the empty string.
95346
95347 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95348
95349         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95350         address, not strdup.  Include <stdlib.h> and don't declare free().
95351
95352 2000-06-19  Jim Meyering  <meyering@lucent.com>
95353
95354         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95355
95356 2000-06-18  Jim Meyering  <meyering@lucent.com>
95357
95358         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95359
95360         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95361         `checking whether...' message to be consistent with that of the
95362         lstat test.
95363
95364 2000-06-18  Jim Meyering  <meyering@lucent.com>
95365
95366         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95367         Besides, these days every porting target provides a mkdir function.
95368
95369         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95370         needed. (this snippet comes from src/system.h).
95371
95372 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95373
95374         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95375
95376 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95377
95378         * lib/human.c (adjust_value): New function.
95379         (human_readable_inexact): Apply rounding style even when
95380         printing approximate values.
95381
95382 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95383
95384         * lib/human.c (human_readable_inexact): Allow an input block
95385         size that is not a multiple of the output block size, and vice versa.
95386         Reported by Piergiorgio Sartor.
95387
95388 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95389
95390         * lib/getdate.y (get_date): Apply relative times after time
95391         zone indicator, not before.  Reported by Todd A. Jacobs.
95392
95393 2000-06-13  Jim Meyering  <meyering@lucent.com>
95394
95395         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95396
95397         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95398
95399 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95400
95401         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95402
95403 2000-06-12  Jim Meyering  <meyering@lucent.com>
95404
95405         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95406         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95407         optional argument.
95408         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95409         the optional argument, `lib'.
95410
95411 2000-06-08  Jim Meyering  <meyering@lucent.com>
95412
95413         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95414
95415 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95416
95417         Rewrite largefile configuration so that we don't need to run
95418         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95419         AC_CANONICAL_HOST in configure.in -- jmm]
95420
95421         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95422         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95423         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95424         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95425         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95426         All uses changed.
95427         Instead of inspecting the output of getconf, try to compile the
95428         test program without and with the macro definition.
95429         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95430         for getconf.  Instead, check for the needed flags by compiling
95431         test programs.
95432
95433 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95434
95435         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95436
95437 2000-06-04  Jim Meyering  <meyering@lucent.com>
95438
95439         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95440         SunOS 4.1.4 for which gid_t is an unsigned type.
95441
95442 2000-06-03  Jim Meyering  <meyering@lucent.com>
95443
95444         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95445         now that autoconf requires that.
95446
95447         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95448         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95449         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95450
95451 2000-06-03  Jim Meyering  <meyering@lucent.com>
95452
95453         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95454
95455 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95456
95457         * m4/glibc21.m4: New file.
95458         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95459
95460 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95461
95462         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95463         newer, don't install charset.alias.
95464         * lib/config.charset: Change the Linux/glibc rules so they become empty
95465         on glibc-2.1 or newer.
95466
95467 2000-06-02  Jim Meyering  <meyering@lucent.com>
95468
95469         * lib/mountlist.c: Back out last change.  Instead, do this...
95470         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95471         me_dummy member using the same `ignore'-testing code.
95472         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95473         fs_type strings.
95474         From Mark D. Roth.
95475
95476 2000-05-29  Jim Meyering  <meyering@lucent.com>
95477
95478         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95479         mounts with the `ignore' attribute.  Based on a patch from
95480         Mark D. Roth.
95481
95482 2000-05-28  Jim Meyering  <meyering@lucent.com>
95483
95484         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95485         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95486         * m4/stat.m4: Likewise.
95487         * m4/lstat.m4: Likewise.
95488         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95489
95490         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95491         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95492
95493 2000-05-26  Jim Meyering  <meyering@lucent.com>
95494
95495         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95496
95497 2000-05-24  Jim Meyering  <meyering@lucent.com>
95498
95499         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95500         autoconf requires that.
95501         * m4/lib-check.m4: Likewise.
95502         * m4/jm-macros.m4: Likewise.
95503         * m4/strftime.m4: Likewise.
95504
95505         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95506         AC_CHECK_DECLS, now that autoconf requires that.
95507
95508 2000-05-22  Jim Meyering  <meyering@lucent.com>
95509
95510         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95511         * m4/lstat.m4: Likewise.
95512
95513 2000-05-22  Jim Meyering  <meyering@lucent.com>
95514
95515         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95516
95517 2000-05-20  Jim Meyering  <meyering@lucent.com>
95518
95519         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95520         (jm_PREREQ): Use it.
95521
95522 2000-05-18  Jim Meyering  <meyering@lucent.com>
95523
95524         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95525         back, too, since it may have been modified by allocate_entry.
95526         (hash_delete): Rewrite to use neither the assignment operator
95527         nor the comma operator in an if-expression.
95528
95529 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95530
95531         * lib/closeout.c:
95532         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95533         Remove; no longer needed.
95534         "quotearg.h": Add include.
95535         (file_name): Do not bother to explicitly initialize to NULL; it's less
95536         efficient on some hosts.
95537         (close_stdout_status): Remove test as to whether stdout was already
95538         closed; it breaks for the case "echo x | sort >&-".
95539         Quote file name colons.
95540         Do not assume that _("write error") lacks format strings.
95541
95542 2000-05-15  Jim Meyering  <meyering@lucent.com>
95543
95544         * lib/version-etc.c (version_etc_copyright): Update the copyright
95545         string used in all --version output.
95546
95547 2000-05-14  Jim Meyering  <meyering@lucent.com>
95548
95549         * lib/closeout.c (close_stdout_set_file_name): New function.
95550         (close_stdout_status): Use new file-scoped global.
95551         Return right away if fstat says the stdout file descriptor is invalid.
95552         * lib/closeout.h (close_stdout_set_file_name): Declare.
95553
95554 2000-05-10  Jim Meyering  <meyering@lucent.com>
95555
95556         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95557         (close_stdout_set_status): New function.
95558         * lib/closeout.h (close_stdout_set_status): Declare.
95559
95560 2000-05-09  Jim Meyering  <meyering@lucent.com>
95561
95562         * m4/gettext.m4: Rename this...
95563         * m4/libintl.m4: ...to this.
95564
95565 2000-05-08  Jim Meyering  <meyering@lucent.com>
95566
95567         * lib/long-options.c: Don't include closeout.h.
95568         (parse_long_options): Don't call close_stdout for --version.
95569
95570 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95571
95572         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95573         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95574         2.1.3 bug.  This avoids a clash when files like regex.c define
95575         _GNU_SOURCE.
95576
95577 2000-05-06  Jim Meyering  <meyering@lucent.com>
95578
95579         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95580         (AC_REPLACE_FUNCS): Add strnlen.
95581
95582         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95583         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95584
95585         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95586         AC_SEARCH_LIBS call for nanosleep.
95587         (LIB_NANOSLEEP): Set and AC_SUBST.
95588
95589 2000-05-06  Jim Meyering  <meyering@lucent.com>
95590
95591         * lib/strnlen.c: Undefine __strnlen and strnlen.
95592         [!weak_alias]: Define __strnlen to strnlen.
95593
95594         * lib/atexit.c: New file, from libiberty.
95595
95596 2000-05-06  Jim Meyering  <meyering@lucent.com>
95597
95598         * lib/closeout.c (close_stdout_status): Also check for errors on the
95599         stderr stream.
95600
95601 2000-05-05  Jim Meyering  <meyering@lucent.com>
95602
95603         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95604         AC_SEARCH_LIBS call for clock_gettime.
95605         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95606
95607         * m4/search-libs.m4: Update from autoconf.
95608
95609         su doesn't work on Solaris 2.6.
95610         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95611         <shadow.h>.  Reported by Dragos Harabor.
95612
95613 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95614
95615         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95616         memcpy instead of xmalloc, xrealloc, path_concat.
95617         (locale_charset): Treat empty environment variables as absent.
95618         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95619
95620 2000-05-04  Jim Meyering  <meyering@lucent.com>
95621
95622         * lib/getopt.c: Update from glibc.
95623         * lib/obstack.c: Likewise.
95624         * lib/obstack.h: Likewise.
95625         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95626         file
95627
95628         * lib/regex.h: Likewise.
95629         * lib/strndup.c: Likewise.
95630         * lib/strnlen.c: New file, from glibc.
95631
95632 2000-05-03  Jim Meyering  <meyering@lucent.com>
95633
95634         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95635
95636 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95637
95638         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95639         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95640         compile-time test, rather than inspecting host and OS, to
95641         decide whether to define _LARGEFILE_SOURCE.
95642
95643 2000-05-01  Jim Meyering  <meyering@lucent.com>
95644
95645         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95646
95647         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95648         Based on a patch from Bruno Haible.
95649
95650 2000-05-01  Jim Meyering  <meyering@lucent.com>
95651
95652         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95653
95654 2000-04-29  Jim Meyering  <meyering@lucent.com>
95655
95656         * lib/path-concat.c: Declare strdup only if it's not defined.
95657         * lib/canon-host.c: Likewise.
95658
95659 2000-04-28  Jim Meyering  <meyering@lucent.com>
95660
95661         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95662         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95663         is included first, then limits.h is included by locale.h by libintl.h.
95664         From John David Anglin.
95665
95666 2000-04-25  Jim Meyering  <meyering@lucent.com>
95667
95668         * lib/makepath.c (S_IRWXUGO): Define.
95669         (make_path): Always perform explicit chmod if MODE specifies any
95670         of the `special' permission bits.  Prompted by a bug report against
95671         install from Mate Wierdl and Joost van Baal.
95672
95673 2000-04-18  Jim Meyering  <meyering@lucent.com>
95674
95675         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95676         (jm_PREREQ): Use it.
95677
95678 2000-04-18  Jim Meyering  <meyering@lucent.com>
95679
95680         * lib/README: New file.
95681
95682         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95683         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95684
95685 2000-04-17  Jim Meyering  <meyering@lucent.com>
95686
95687         Get it right :-)
95688         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95689         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95690         Suggestion from Akim Demaille.
95691
95692 2000-04-17  Jim Meyering  <meyering@lucent.com>
95693
95694         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95695         the definition of it to rpl_strftime also defined-away the system's
95696         declaration.
95697
95698 2000-04-15  Jim Meyering  <meyering@lucent.com>
95699
95700         Use `C' to denote so-called `contiguous' files, the same way
95701         that tar does.
95702         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95703         (ftypelet): Use S_ISCTG.
95704         From Michael Deutschmann.
95705
95706 2000-04-14  Jim Meyering  <meyering@lucent.com>
95707
95708         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95709         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95710         clobbered.
95711
95712 2000-04-14  Jim Meyering  <meyering@lucent.com>
95713
95714         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95715
95716 2000-04-13  Jim Meyering  <meyering@lucent.com>
95717
95718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95719         AH_VERBATIM to insert required #ifndef into config.h.in.
95720         Suggestion from Akim Demaille.
95721
95722 2000-04-12  Jim Meyering  <meyering@lucent.com>
95723
95724         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95725         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95726         Christian Krackowizer.
95727
95728         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95729         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95730         (AC_SYS_LARGEFILE): Require.
95731         (AM_C_PROTOTYPES): Require.
95732
95733 2000-04-08  Jim Meyering  <meyering@lucent.com>
95734
95735         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95736         names don't conflict.  Reported by Eli Zaretskii.
95737
95738 2000-04-07  Jim Meyering  <meyering@lucent.com>
95739
95740         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95741         sys/types.h, to work around system header problems on AIX 3.2.5.
95742         From Bruno Haible.
95743
95744 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95745
95746         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95747         bug.  Deal with the different error behavior of Irix iconv.
95748
95749 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95750
95751         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95752         IRIX if the installer said otherwise.
95753
95754 2000-04-05  Jim Meyering  <meyering@lucent.com>
95755
95756         Portability tweaks required for ultrix4.3.
95757         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95758         (jm_CHECK_DECLS): Add getutent to the list of functions.
95759         (_jm_DECL_HEADERS): Add utmpx.h.
95760         From John David Anglin.
95761
95762         * m4/strftime.m4: Back out the 2000-04-02 change.
95763         Instead of that change, simply undefine putenv in the test program.
95764
95765 2000-04-05  Jim Meyering  <meyering@lucent.com>
95766
95767         Portability tweaks required for ultrix4.3.
95768         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95769         getutent.
95770         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95771         * lib/canon-host.c: Declare strdup.
95772         * lib/path-concat.c: Likewise.
95773         From John David Anglin.
95774
95775 2000-04-04  Jim Meyering  <meyering@lucent.com>
95776
95777         Be more DOS 8.3-friendly.
95778         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95779         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95780         * lib/Makefile.am: Reflect renaming.
95781         Reported by Eli Zaretskii.
95782
95783         Use a temporary file name that won't clash with `charset.alias'
95784         in the DOS 8.3 name space.
95785         * lib/Makefile.am (charset_tmp): Define.
95786         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95787         (uninstall-local): Likewise.
95788         Reported by Eli Zaretskii.
95789
95790 2000-04-03  Jim Meyering  <meyering@lucent.com>
95791
95792         * m4/gettext.m4: Fix typo in comment.
95793
95794         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95795         textutils/configure.in).  Suggestion from Paul Eggert.
95796         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95797
95798 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95799
95800         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95801         variable in the shell rather than using putenv, which isn't
95802         portable.  This avoids the configure-time inter-test dependency
95803         on the potentially-renamed putenv function.
95804
95805 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95806
95807         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95808         before checking struct stat.st_blksize, so that
95809         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95810
95811 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95812
95813         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95814         since strftime.c uses HAVE_STRFTIME to decide whether to use
95815         the underlying strftime.
95816
95817 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95818
95819         * lib/time/strftime.c (my_strftime): Make sure we call the system
95820         strftime, not ourselves, when invoking the underlying strftime.
95821
95822 2000-03-24  Jim Meyering  <meyering@lucent.com>
95823
95824         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95825         (charset_alias): Define.
95826         (install-exec-local): Factor out common code.
95827         (uninstall-local): Split lines longer than 80.
95828         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95829         (SUFFIXES): Define.
95830         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95831         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95832
95833 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95834
95835         * lib/config.charset: Output a line containing "Packages using this
95836         file".
95837         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95838         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95839         ref-del.sed): New rules.
95840
95841 2000-03-17  Jim Meyering  <meyering@lucent.com>
95842
95843         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95844         Otherwise, include <strings.h>
95845
95846 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95847
95848         * lib/unicodeio.c (utf8_wctomb): New function.
95849         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95850         format instead of in UCS-4 with platform dependent endianness.
95851
95852 2000-03-10  Jim Meyering  <meyering@lucent.com>
95853
95854         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95855         From Marco Franzen.
95856
95857 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95858
95859         * lib/savedir.c (savedir): Work even if directory size is
95860         negative; this can happen with some screwy NFS configurations.
95861
95862 2000-03-06  Jim Meyering  <meyering@lucent.com>
95863
95864         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95865         if it's NULL (because we ran out of memory).  From Bruno Haible.
95866
95867 2000-03-05  Jim Meyering  <meyering@lucent.com>
95868
95869         * lib/localcharset.c ("path-concat.h"): Include.
95870         (get_charset_aliases): Use path_concat instead of ANSI string
95871         concatenation.
95872
95873         * lib/unicodeio.h (PARAMS): Define.
95874         Use it to guard prototype.
95875
95876 2000-03-04  Jim Meyering  <meyering@lucent.com>
95877
95878         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95879         for lib/localcharset.c.
95880
95881 2000-03-04  Jim Meyering  <meyering@lucent.com>
95882
95883         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95884         installing into it.
95885         (uninstall-local): Uncomment this rule so `make distcheck' works
95886         once again.
95887
95888         * lib/unicodeio.c (<errno.h>): Include it.
95889         (errno): Declare if not defined.
95890
95891         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95892
95893         * lib/config.charset: New version, incorporating remarks from a linux
95894         i18n mailing list.  From Bruno Haible.
95895
95896 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95897
95898         * m4/codeset.m4: New file.
95899         * m4/iconv.m4: New file.
95900         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95901
95902 2000-03-03  Jim Meyering  <meyering@lucent.com>
95903
95904         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95905
95906 2000-03-02  Jim Meyering  <meyering@lucent.com>
95907
95908         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95909         the messages come out on separate lines.
95910
95911         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95912         rather than jm_CHECK_DECLARATIONS.
95913         * m4/decl.m4: Remove now-unused file.
95914
95915         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95916         geteuid.
95917
95918 2000-03-02  Jim Meyering  <meyering@lucent.com>
95919
95920         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95921
95922 2000-03-01  Jim Meyering  <meyering@lucent.com>
95923
95924         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95925         * lib/unicodeio.c: Likewise.
95926
95927 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95928
95929         * lib/config.charset: New file.
95930         * lib/localcharset.c: New file.
95931         * lib/unicodeio.h, lib/unicodeio.c: New files.
95932         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95933         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95934         (noinst_HEADERS): Add unicodeio.h.
95935         (all-local, install-exec-local, charset.alias): New targets.
95936
95937 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95938
95939         * lib/quotearg.c (ALERT_CHAR): New macro.
95940         (quotearg_buffer_restyled): Use it.
95941
95942 2000-02-27  Jim Meyering  <meyering@lucent.com>
95943
95944         * m4/check-decl.m4: Add getenv to the list.
95945
95946 2000-02-27  Jim Meyering  <meyering@lucent.com>
95947
95948         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95949         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95950
95951         * lib/backupfile.c: Guard inclusion of stdlib.h with
95952         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95953         Declare malloc if needed.
95954
95955         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95956         `#ifndef HAVE_DECL..'
95957         now that autoconf always defines the HAVE_DECL_ symbols.
95958         * lib/human.c: Likewise.
95959         * lib/same.c: Likewise.
95960         * lib/strtoumax.c: Likewise.
95961
95962         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95963         declaration check was not run.
95964         * lib/hash.c: Likewise.
95965         * lib/human.c: Likewise.
95966         * lib/same.c: Likewise.
95967         * lib/strtoumax.c: Likewise.
95968
95969         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95970         `.', then first look up the entire `.'-containing string as a login
95971         name.
95972
95973 2000-02-23  Jim Meyering  <meyering@lucent.com>
95974
95975         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95976         in place of my hack.
95977
95978 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95979
95980         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95981         (textint): New typedef.
95982         (parser_control): Member year changed from int to textint.
95983         All uses changed.
95984         (YYSTYPE): Removed; replaced by %union with int and textint members.
95985         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95986         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95987         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95988         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95989         (date, number, to_year): Use width of number in digits, not its value,
95990         to determine whether it's a 2-digit year, or a 2-digit time.
95991         (yylex): Store number of digits of numeric tokens.
95992         Reported by John Kendall.
95993
95994         (parser_control): Changed from struct parser_control to typedef (for
95995         consistency).  All uses changed.
95996
95997         (tID): Removed; not used.
95998         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95999
96000 2000-02-14  Paul Eggert  <eggert@twinsun.com>
96001
96002         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
96003         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
96004
96005 2000-02-12  Jim Meyering  <meyering@lucent.com>
96006
96007         * lib/userspec.c (ISDIGIT): Define it.
96008         (isdigit): Remove definition.
96009         (is_number): Use ISDIGIT, not isdigit.
96010         <libintl.h>: Include.
96011         (_ and N_): Define.
96012         (parse_user_spec): Mark translatable strings.
96013
96014 2000-02-10  Jim Meyering  <meyering@lucent.com>
96015
96016         With these changes, nanosleep.[ch] are finally enough like the other
96017         lib/* replacement files to compile on a few more losing systems.
96018
96019         * lib/nanosleep.h: Don't include config.h.
96020         Remove prototype from declaration of nanosleep.
96021         (PARAMS): Remove now-unneeded definition.
96022         * lib/nanosleep.c: #undef nanosleep.
96023         (rpl_nanosleep): Rename from nanosleep.
96024
96025 2000-02-10  Jim Meyering  <meyering@lucent.com>
96026
96027         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96028         gnu_nanosleep to rpl_nanosleep.
96029
96030 2000-02-09  Jim Meyering  <meyering@lucent.com>
96031
96032         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96033         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96034
96035 2000-02-08  Akim Demaille  <akim@epita.fr>
96036
96037         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96038         `[' and `]' and remove uses of `changequote'.
96039         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96040         (AC_SYS_LARGEFILE): Likewise.
96041         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96042         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96043         of changequote.
96044         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96045         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96046         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96047         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96048
96049 2000-02-05  Jim Meyering  <meyering@lucent.com>
96050
96051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96052         Remove explicit use of AC_HEADER_TIME.  It is required by
96053         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96054         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96055         in autoconf whereby the expansion of the latter ended up preceding
96056         the expansion of its prerequisite, AC_HEADER_TIME.
96057         Reported by Volker Borchert.
96058
96059 2000-02-03  Jim Meyering  <meyering@lucent.com>
96060
96061         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96062
96063 2000-02-03  Jim Meyering  <meyering@lucent.com>
96064
96065         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96066         rather than with `#if HAVE_UTMPNAME'.
96067
96068 2000-02-02  Jim Meyering  <meyering@lucent.com>
96069
96070         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96071         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96072         Reported by Eli Zaretskii.
96073
96074 2000-02-01  Jim Meyering  <meyering@lucent.com>
96075
96076         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96077
96078 2000-01-31  Jim Meyering  <meyering@lucent.com>
96079
96080         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96081         functions.  Add the time.h and sys/time.h headers along with the
96082         AC_REQUIRE'ment of AC_HEADER_TIME.
96083
96084 2000-01-31  Jim Meyering  <meyering@lucent.com>
96085
96086         * lib/nanosleep.h (nanosleep): Guard declaration with
96087         `#if ! HAVE_DECL_NANOSLEEP'.
96088         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96089         the declaration in that vendor's sys/timers.h.
96090         Reported by Christian Krackowizer.
96091
96092         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96093         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96094         (ISPRINT): Likewise.
96095         Reported by Tom Tromey.
96096
96097 2000-01-30  Jim Meyering  <meyering@lucent.com>
96098
96099         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96100
96101         * m4/prereq.m4 (utmp_includes): Define.
96102         Check for ut_user and ut_name members in both struct utmpx
96103         and struct utmp.
96104
96105 2000-01-30  Jim Meyering  <meyering@lucent.com>
96106
96107         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96108         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96109         header files where only utmpx.ut_user is declared.
96110
96111         * lib/readutmp.h (UT_USER): Define.
96112
96113 2000-01-29  Jim Meyering  <meyering@lucent.com>
96114
96115         * m4/lib-check.m4: New file containing library-related checks from
96116         fileutils and sh-utils (textutils had none).
96117
96118 2000-01-28  Jim Meyering  <meyering@lucent.com>
96119
96120         * m4/perl.m4: Change format of warning message to look more like that
96121         from the missing script.  Suggestion from François Pinard.
96122
96123 2000-01-25  Jim Meyering  <meyering@lucent.com>
96124
96125         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96126         well as time.h in the compile check.
96127         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96128         Fix typo in cross-compiling case: s/yes/no/.
96129
96130 2000-01-23  Jim Meyering  <meyering@lucent.com>
96131
96132         * m4/jm-macros.m4: Move df-related tests here from
96133         fileutils/configure.in
96134
96135         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96136         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96137
96138         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96139         s/space/ac_fsusage_space/.
96140         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96141
96142         * m4/ftruncate.m4: New file (derived from part of
96143         fileutils/configure.in).
96144         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96145         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96146
96147         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96148         AC_SUBST these here, rather than just in sh-util/configure.in, so
96149         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96150         all the same.
96151         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96152         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96153         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96154         (AC_SUBST(POW_LIBM)): Likewise.
96155         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96156
96157 2000-01-23  Jim Meyering  <meyering@lucent.com>
96158
96159         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96160         obstack.c.
96161
96162 2000-01-22  Jim Meyering  <meyering@lucent.com>
96163
96164         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96165
96166         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96167
96168         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96169         configure.in
96170         (AC_CHECK_HEADERS): Likewise for sh-utils.
96171         (AC_CHECK_HEADERS): Likewise for textutils.
96172         Merge the three lists of headers.
96173
96174         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96175         from fileutils' configure.in.
96176
96177         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96178         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96179         check-decl.m4.
96180
96181         * m4/check-decl.m4: Use #if rather than #ifdef.
96182         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96183         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96184         (_jm_DECL_HEADERS): Define new function.
96185         (jm_CHECK_DECLARATIONS): Require it.
96186
96187 2000-01-22  Jim Meyering  <meyering@lucent.com>
96188
96189         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96190         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96191         Required for some AIX systems.  Reported by Christian Krackowizer.
96192         [TESTING] (main): New function.
96193
96194         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96195         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96196         letters.
96197
96198         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96199         iswprint.
96200
96201         * lib/strverscmp.c (ISDIGIT): Define.
96202         (strverscmp): Use ISDIGIT, not isdigit.
96203
96204 2000-01-19  Jim Meyering  <meyering@lucent.com>
96205
96206         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96207         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96208         defines `struct timespec' in <sys/time.h>
96209
96210         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96211         Thanks to Akim for explaining.
96212
96213 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96214
96215         * lib/nanosleep.c (nanosleep):
96216         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96217         POSIX.1 doesn't require SA_INTERRUPT and some systems
96218         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96219         it's been part of POSIX.1 since day 1 (in 1988).
96220
96221 2000-01-17  Jim Meyering  <meyering@lucent.com>
96222
96223         * lib/interlock: Remove unused file.  Reported by François Pinard.
96224
96225 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96226
96227         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96228         alert, backslash, formfeed, and vertical tab unnecessarily in
96229         shell quoting style.
96230
96231 2000-01-16  Jim Meyering  <meyering@lucent.com>
96232
96233         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96234         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96235         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96236         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96237
96238 2000-01-16  Jim Meyering  <meyering@lucent.com>
96239
96240         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96241         because the latter didn't work.
96242
96243 2000-01-15  Jim Meyering  <meyering@lucent.com>
96244
96245         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96246         (AC_REPLACE_FUNCS): Add memcpy and memset.
96247         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96248         Add strpbrk.
96249         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96250
96251 2000-01-12  Jim Meyering  <meyering@lucent.com>
96252
96253         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96254         (jm_PREREQ): Use it.
96255         (jm_PREREQ_READUTMP): New macro.
96256         (jm_PREREQ): Use it.
96257
96258 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96259
96260         Quote multibyte characters correctly.
96261         * m4/c-bs-a.m4: New file.
96262         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96263         (jm_PREREQ): Use it.
96264
96265 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96266
96267         * m4/uintmax_t.m4: Port to autoconf 2.13.
96268
96269 2000-01-08  Jim Meyering  <meyering@ascend.com>
96270
96271         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96272         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96273
96274 2000-01-04  Jim Meyering  <meyering@ascend.com>
96275
96276         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96277         jm_STRUCT_DIRENT_D_TYPE.
96278         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96279         jm_STRUCT_DIRENT_D_INO.
96280         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96281         jm_STRUCT_UTIMBUF.
96282         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96283         renamings.
96284         * m4/utime.m4: Likewise.
96285
96286         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96287         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96288
96289 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96290
96291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96292         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96293
96294 2000-01-02  Jim Meyering  <meyering@ascend.com>
96295
96296         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96297         remember if this is necessary.
96298
96299 1999-12-26  Jim Meyering  <meyering@ascend.com>
96300
96301         * m4/jm-macros.m4: Use it here.
96302         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96303
96304 1999-12-23  Jim Meyering  <meyering@ascend.com>
96305
96306         * m4/jm-macros.m4: Check for clock_gettime (moved from
96307         fileutils/configure.in)
96308         Check for gettimeofday.
96309
96310 1999-12-20  Jim Meyering  <meyering@ascend.com>
96311
96312         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96313         autoconf-2.14a-1999-12-20.
96314
96315 1999-12-19  Jim Meyering  <meyering@ascend.com>
96316
96317         * m4/lstat-slash.m4: New file.
96318         * m4/jm-macros.m4: Use the new macro:
96319         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96320
96321 1999-12-07  Jim Meyering  <meyering@ascend.com>
96322
96323         * m4/perl.m4: Require that File::Compare be available, too.
96324         Too many systems seem to lack it.
96325
96326         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96327         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96328
96329 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96330
96331         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96332         problem with the QNX 4.25 shell, which doesn't propagate exit
96333         status of failed commands inside shell assignments.
96334
96335 1999-11-17  Jim Meyering  <meyering@ascend.com>
96336
96337         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96338
96339 1999-11-07  Jim Meyering  <meyering@ascend.com>
96340
96341         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96342
96343 1999-11-06  Jim Meyering  <meyering@ascend.com>
96344
96345         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96346         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96347
96348 1999-11-05  Jim Meyering  <meyering@ascend.com>
96349
96350         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96351         configure.in of textutils, fileutils, and sh-utils into this one
96352         (shared between those packages) file.
96353         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96354         AC_STRUCT_ST_BLKSIZE.
96355
96356 1999-11-03  Jim Meyering  <meyering@ascend.com>
96357
96358         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96359         of AC_CHECK_TYPE checks includes unistd.h.
96360         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96361         Suggestion from Akim Demaille.
96362
96363 1999-10-30  Jim Meyering  <meyering@ascend.com>
96364
96365         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96366         m4-quoted string.
96367         * m4/ls-mntd-fs.m4: Likewise.
96368         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96369         * m4/jm-winsz1.m4: Likewise.
96370
96371         * m4/const.m4: Remove file, since the fix made it into the experimental
96372         version of autoconf.
96373         * m4/mktime.m4: Likewise.
96374
96375         * m4/check-type.m4: Remove file, now that the latest version of
96376         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96377
96378         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96379         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96380         AC_CHECK_TYPE.
96381
96382 1999-10-04  Jim Meyering  <meyering@ascend.com>
96383
96384         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96385
96386 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96387
96388         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96389         2.95.1 bug with HP-UX 10.20.
96390
96391 1999-09-17  Jim Meyering  <meyering@ascend.com>
96392
96393         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96394         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96395         due to missing strdup (against sh-utils-2.0).
96396
96397 1999-08-29  Jim Meyering  <meyering@ascend.com>
96398
96399         * m4/jm-macros.m4: Require jm_BISON.
96400         * m4/bison.m4: New file.
96401
96402 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96403
96404         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96405         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96406
96407 1999-08-05  Jim Meyering  <meyering@ascend.com>
96408
96409         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96410         to avoid conflicts with `conftest' on 8+3 filesystems.
96411         Suggestion from Eli Zaretskii.
96412
96413 1999-08-04  Jim Meyering  <meyering@ascend.com>
96414
96415         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96416         fileutils and sh-utils (textutils's getline test was inadequate).
96417         (AM_FUNC_GETLINE): Run this test.
96418         (AC_CHECK_FUNCS): Check for getdelim.
96419         Reported by Bob Proulx.
96420
96421 1999-08-02  Jim Meyering  <meyering@ascend.com>
96422
96423         * m4/jm-macros.m4: Add a comment.
96424
96425 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96426
96427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96428         <inttypes.h> defines strtoumax as a macro (and not as a
96429         function).
96430
96431 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96432
96433         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96434         that we can shift, multiply and divide unsigned long long
96435         values; Ultrix cc can't do it.
96436
96437 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96438
96439         * m4/mktime.m4: New file, which is a preview of what should appear
96440         in the next public autoconf release.
96441
96442 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96443
96444         * m4/lfs.m4: Remove this file.
96445         * m4/largefile.m4: New file.  It contains the old contents of
96446         lfs.m4, except that all names with prefix AC_LFS have been
96447         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96448         compatible with future autoconf versions.  Also, some minor m4
96449         quoting problems have been fixed.
96450
96451 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96452
96453         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96454         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96455         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96456         and simplify the shell code.
96457
96458 1999-08-01  Jim Meyering  <meyering@ascend.com>
96459
96460         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96461         m4.
96462
96463 1999-07-20  Jim Meyering  <meyering@ascend.com>
96464
96465         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96466
96467 1999-07-15  Jim Meyering  <meyering@ascend.com>
96468
96469         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96470
96471 1999-05-22  Jim Meyering  <meyering@ascend.com>
96472
96473         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96474
96475 1999-05-20  Jim Meyering  <meyering@ascend.com>
96476
96477         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96478         Add a colon after each `then' in case $4 is empty.
96479
96480 1999-05-16  Jim Meyering  <meyering@ascend.com>
96481
96482         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96483
96484 1999-05-10  Jim Meyering  <meyering@ascend.com>
96485
96486         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96487
96488         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96489         AC_FUNC_MKTIME.
96490
96491 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96492
96493         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96494
96495 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96496
96497         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96498         not CPPFLAGS, so that linking works correctly in IRIX.
96499
96500 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96501
96502         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96503
96504 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96505
96506         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96507         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96508         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96509         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96510         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96511
96512         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96513
96514 1999-04-20  Jim Meyering  <meyering@ascend.com>
96515
96516         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96517         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96518         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96519
96520 1999-04-18  Jim Meyering  <meyering@ascend.com>
96521
96522         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96523         * m4/jm-macros.m4: Use it.
96524
96525 1999-04-06  Jim Meyering  <meyering@ascend.com>
96526
96527         * m4/strftime.m4: Remove test for %f.
96528
96529 1999-03-29  Jim Meyering  <meyering@ascend.com>
96530
96531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96532         superset of the AC_TYPE_* checks in the textutils, fileutils,
96533         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96534         AC_TYPE_PID_T.
96535
96536 1999-03-28  Jim Meyering  <meyering@ascend.com>
96537
96538         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96539         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96540         replaced e.g., in the *.sh files of the sh-utils.
96541
96542 1999-03-20  Jim Meyering  <meyering@ascend.com>
96543
96544         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96545         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96546         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96547
96548 1999-03-19  Jim Meyering  <meyering@ascend.com>
96549
96550         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96551
96552 1999-03-12  Jim Meyering  <meyering@ascend.com>
96553
96554         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96555
96556 1999-03-07  Jim Meyering  <meyering@ascend.com>
96557
96558         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96559         declared.
96560
96561 1999-02-17  Jim Meyering  <meyering@ascend.com>
96562
96563         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96564         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96565
96566 1999-02-07  Jim Meyering  <meyering@ascend.com>
96567
96568         * m4/group-member.m4: New file -- extracted from sh-utils'
96569         configure.in.
96570
96571         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96572         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96573
96574 1999-02-06  Jim Meyering  <meyering@ascend.com>
96575
96576         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96577         * m4/fnmatch.m4: Likewise.
96578         * m4/getgroups.m4: Likewise.
96579         * m4/lstat.m4: Likewise.
96580         * m4/malloc.m4: Likewise.
96581         * m4/putenv.m4: Likewise.
96582         * m4/realloc.m4: Likewise.
96583         * m4/regex.m4: Likewise.
96584         * m4/stat.m4: Likewise.
96585         * m4/strftime.m4: Likewise.
96586         Suggestion from Alain Magloire.
96587
96588         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96589         * m4/fnmatch.m4: Likewise.
96590         * m4/getgroups.m4: Likewise.
96591         * m4/getline.m4: Likewise.
96592         * m4/lstat.m4: Likewise.
96593         * m4/malloc.m4: Likewise.
96594         * m4/memcmp.m4: Likewise.
96595         * m4/putenv.m4: Likewise.
96596         * m4/realloc.m4: Likewise.
96597         * m4/regex.m4: Likewise.
96598         * m4/stat.m4: Likewise.
96599         * m4/strftime.m4: Likewise.
96600         Suggestion from Alain Magloire.
96601
96602         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96603         an argument.
96604
96605         * m4/regex.m4: Add a run-time Test for proper operation of
96606         re_compile_pattern.
96607
96608 1999-01-31  Jim Meyering  <meyering@ascend.com>
96609
96610         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96611
96612 1999-01-30  Jim Meyering  <meyering@ascend.com>
96613
96614         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96615
96616         * m4/jm-mktime.m4: Make this a wrapper around the official
96617         AM_FUNC_MKTIME rather than my private copy, now that the official one
96618         is up to date.
96619         * m4/mktime.m4: Remove file.
96620
96621         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96622         * m4/uptime.m4: Likewise.
96623         * m4/uintmax_t.m4: Likewise.
96624
96625 1999-01-28  Jim Meyering  <meyering@ascend.com>
96626
96627         * m4/jm-macros.m4: Use jm_AFS.
96628         * m4/afs.m4: New file (from fileutils' configure.in).
96629
96630         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96631         * m4/chown.m4: Likewise.
96632         * m4/d-ino.m4: Likewise.
96633         * m4/d-type.m4: Likewise.
96634         * m4/fnmatch.m4: Likewise.
96635         * m4/getgroups.m4: Likewise.
96636         * m4/gettext.m4: Likewise.
96637         * m4/jm-mktime.m4: Likewise.
96638         * m4/jm-winsz2.m4: Likewise.
96639         * m4/lcmessage.m4: Likewise.
96640         * m4/ls-mntd-fs.m4: Likewise.
96641         * m4/malloc.m4: Likewise.
96642         * m4/memcmp.m4: Likewise.
96643         * m4/putenv.m4: Likewise.
96644         * m4/realloc.m4: Likewise.
96645         * m4/st_mtim.m4: Likewise.
96646         * m4/strftime.m4: Likewise.
96647
96648 1999-01-16  Jim Meyering  <meyering@ascend.com>
96649
96650         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96651         (ARGMATCH_DIE_DECL): Define.
96652
96653 1999-01-12  Jim Meyering  <meyering@ascend.com>
96654
96655         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96656         Reported by Lars Hecking.
96657
96658 1999-01-10  Jim Meyering  <meyering@ascend.com>
96659
96660         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96661         gross kludge.
96662         * m4/inttypes_h.m4: Likewise.
96663         * m4/lstat.m4: Likewise.
96664         * m4/malloc.m4: Likewise.
96665         * m4/readdir.m4: Likewise.
96666         * m4/realloc.m4: Likewise.
96667         * m4/st_dm_mode.m4: Likewise.
96668         * m4/stat.m4: Likewise.
96669         * m4/utimbuf.m4: Likewise.
96670         * m4/utimes.m4: Likewise.
96671
96672         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96673         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96674         comments in config.h.in are meaningful.
96675
96676         * m4/jm-macros.m4: Require autoconf-2.13 here.
96677
96678         * m4/regex.m4: By default, don't use the included regex.c on systems
96679         with glibc 2.  Suggestion from Uli Drepper.
96680
96681 1999-01-02  Jim Meyering  <meyering@ascend.com>
96682
96683         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96684
96685 1998-12-18  Jim Meyering  <meyering@ascend.com>
96686
96687         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96688         Based on a suggestion from Lars Hecking.
96689
96690 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96691
96692         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96693
96694 1998-11-16  Jim Meyering  <meyering@ascend.com>
96695
96696         * m4/lfs.m4: Double-quote the `uname...` expression.
96697
96698 1998-11-14  Jim Meyering  <meyering@ascend.com>
96699
96700         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96701         * m4/stat.m4: Likewise.
96702
96703 1998-11-03  Jim Meyering  <meyering@ascend.com>
96704
96705         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96706         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96707
96708 1998-10-18  Jim Meyering  <meyering@ascend.com>
96709
96710         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96711
96712 1998-10-17  Jim Meyering  <meyering@ascend.com>
96713
96714         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96715         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96716         calls for those previously hard-coded headers.  Instead, take a new
96717         parameter.
96718         (jm_CHECK_DECLARATIONS): Reflect interface change.
96719         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96720         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96721
96722         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96723
96724 1998-10-14  Jim Meyering  <meyering@ascend.com>
96725
96726         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96727         instead of "TZ=America/Vancouver".  From Paul Eggert.
96728
96729 1998-10-11  Jim Meyering  <meyering@ascend.com>
96730
96731         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96732         This adds a test for a recently added compatibility fix for mktime.c.
96733         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96734
96735 1998-09-27  Jim Meyering  <meyering@ascend.com>
96736
96737         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96738
96739         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96740         ../configure.in, including a change from Gordon Matzigkeit to allow
96741         cross-compiling for the Hurd.
96742
96743         * m4/glibc.m4: New file/macro to test for the GNU C Library
96744         versions 1 and 2.  From Gordon Matzigkeit.
96745         Indent.
96746
96747 1998-09-21  Jim Meyering  <meyering@ascend.com>
96748
96749         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96750
96751 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96752
96753         Port nanosecond-resolution times to UnixWare 2.1.2 and
96754         pedantic Solaris 2.6.
96755
96756         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96757         AC_STRUCT_ST_MTIM.
96758         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96759         Generate name of ns member, instead of just 1 or undef.
96760         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96761
96762 1998-08-15  Jim Meyering  <meyering@ascend.com>
96763
96764         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96765         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96766         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96767         instead of jm_TYPE_SSIZE_T.
96768
96769 1998-08-12  Jim Meyering  <meyering@ascend.com>
96770
96771         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96772
96773 1998-08-02  Jim Meyering  <meyering@ascend.com>
96774
96775         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96776         in acconfig.h manually.
96777
96778 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96779
96780         * m4/st_mtim.m4: New file.
96781
96782 1998-07-28  Jim Meyering  <meyering@ascend.com>
96783
96784         * m4/utimes.m4: Undef stat.
96785
96786 1998-07-25  Jim Meyering  <meyering@ascend.com>
96787
96788         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96789         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96790
96791 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96792
96793         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96794         uid and gid actually remain unchanged.
96795
96796 1998-07-07  Jim Meyering  <meyering@ascend.com>
96797
96798         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96799
96800 1998-07-04  Jim Meyering  <meyering@ascend.com>
96801
96802         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96803         to prove that this macro can be used in packages without regex.c.
96804
96805 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96806
96807         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96808         is to be used.
96809
96810 1998-07-03  Jim Meyering  <meyering@ascend.com>
96811
96812         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96813
96814         * m4/gettext.m4: New file -- from gettext-0.10.35.
96815         * m4/lcmessage.m4: Likewise.
96816         * m4/progtest.m4: Likewise.
96817
96818         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96819         * m4/jm-macros.m4: Require the new macro.
96820
96821 1998-06-29  Jim Meyering  <meyering@ascend.com>
96822
96823         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96824         for the definition of NGROUPS (used in a system header included
96825         by sys/mount.h).
96826
96827 1998-06-28  Jim Meyering  <meyering@ascend.com>
96828
96829         * m4/ls-mntd-fs.m4: New file.
96830         * m4/fstypename.m4: New file.
96831
96832         * m4/jm-macros.m4: Require the new macro.
96833         * m4/jm-glibc-io.m4: New file.
96834
96835 1998-05-19  Jim Meyering  <meyering@ascend.com>
96836
96837         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96838         * m4/lchown.m4: New file.
96839
96840         * m4/Makefile.am.in: New file.
96841         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96842
96843 1998-05-14  Jim Meyering  <meyering@ascend.com>
96844
96845         * m4/Makefile.am (EXTRA_DIST): Add them.
96846         * m4/jm-macros.m4: New file.
96847         * m4/utimbuf.m4: New file.
96848
96849 1998-05-12  Jim Meyering  <meyering@ascend.com>
96850
96851         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96852
96853 1998-05-11  Jim Meyering  <meyering@ascend.com>
96854
96855         * m4/isc-posix.m4: New file.
96856
96857 1998-05-10  Jim Meyering  <meyering@ascend.com>
96858
96859         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96860
96861 1998-05-09  Jim Meyering  <meyering@ascend.com>
96862
96863         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96864         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96865         with automake.
96866
96867         * m4/ssize_t.m4: New file.
96868         * m4/mktime.m4: Remove file -- the new automake has this now.
96869
96870 1998-04-26  Jim Meyering  <meyering@ascend.com>
96871
96872         * m4/assert.m4: New file.
96873         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96874
96875 1998-04-05  Jim Meyering  <meyering@ascend.com>
96876
96877         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96878         (jm_PREREQ): Use it here.
96879
96880 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96881
96882         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96883         in acconfig.h.
96884
96885 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96886
96887         * m4/prereq.m4: New file.
96888         * m4/error.m4: New file.
96889         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96890
96891 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96892
96893         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96894         cache-check for the same variable -- that defeated the purpose of
96895         the test; the test program was never run.  This was a problem only
96896         on systems with losing getline functions -- HP-UX 10.20 is one.
96897         Reported by Bjorn Helgaas.
96898
96899 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96900
96901         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96902
96903 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96904
96905         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96906
96907         * m4/const.m4: New file.  Use an initializer in this declaration
96908         typedef int charset[2]; const charset x;
96909         Reported by Bob Glickstein.
96910
96911 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96912
96913         * m4/chown.m4: Fix reversed types on -1 args to chown.
96914         From Kaveh Ghazi.
96915
96916 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96917
96918         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96919         Add lseek and memchr.
96920
96921         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96922         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96923         have a 20-character limit on names.
96924
96925 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96926
96927         * m4/inttypes_h.m4: New file.
96928         * m4/uintmax_t.m4: New file.
96929         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96930
96931
96932         -----
96933
96934         Local Variables:
96935         coding: utf-8
96936         End:
96937
96938         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96939
96940         Copying and distribution of this file, with or without
96941         modification, are permitted provided the copyright notice
96942         and this notice are preserved.